FooterController

The Eewee responsive design FooterController class.

Defined (1)

The class is defined in the following location(s).

/inc/controllers/FooterController.php  
  1. class FooterController{ 
  2.  
  3. public function __construct() { 
  4. add_action( 'wp_footer', array($this, 'eewee_footer_actu_rs') ); 
  5. add_action( 'wp_footer', array($this, 'poweredby') ); 
  6.  
  7.  
  8. // HOOK FOOTER  
  9. function eewee_footer_actu_rs() { 
  10. ?><div class="row-fluid"><?php 
  11. ?><div class="span4"><?php 
  12.  
  13. // get posts 
  14. $args = array( 
  15. 'numberposts' => 10,  
  16. 'offset' => 0,  
  17. 'category' => '',  
  18. 'orderby' => 'post_date',  
  19. 'order' => 'DESC',  
  20. 'include' => '',  
  21. 'exclude' => '',  
  22. 'meta_key' => '',  
  23. 'meta_value' => '',  
  24. 'post_type' => 'post',  
  25. 'post_mime_type' => '',  
  26. 'post_parent' => '',  
  27. 'post_status' => 'publish',  
  28. 'suppress_filters' => true ); 
  29. $posts = get_posts( $args ); 
  30. //echo "<pre>"; var_dump($posts); echo "</pre>"; 
  31. ?> 
  32. <dl class="dl-horizontal"><?php 
  33. foreach( $posts as $post ) { 
  34. ?> 
  35. <dt><?php echo ToolsController::getFormatDate($post->post_modified); ?></dt> 
  36. <dd><a href='<?php echo get_permalink($post->ID); ?>'><?php echo $post->post_title; ?></a></dd> 
  37. <?php 
  38. }//foreach 
  39. ?> 
  40. </dl> 
  41. </div><!-- span --> 
  42.  
  43. <?php $rs = new ReseauxSociauxController(); ?> 
  44.  
  45. <?php // twitter ?> 
  46. <div class="span4"> 
  47.  
  48. <?php echo $rs->twWidgetProfil("michaeldumontet"); ?> 
  49.  
  50. </div><!-- span --> 
  51.  
  52. <?php // facebook ?> 
  53. <div class="span4"> 
  54.  
  55. <?php $rs->fbSdkJs(); echo $rs->fbLikeBox("eeweefr"); ?> 
  56.  
  57. </div><!-- span --> 
  58. </div><!-- row-fluid --> 
  59.  
  60.  
  61.  
  62.  
  63. <div class="row-fluid"> 
  64. <div class="span8"> 
  65. <?php 
  66. wp_nav_menu(  
  67. array( 
  68. 'theme_location' => 'footer_menu',  
  69. 'menu' => '',  
  70. 'container' => 'div',  
  71. 'container_class' => 'menu-footer-container',  
  72. 'container_id' => '',  
  73. 'menu_class' => 'menu',  
  74. 'menu_id' => '',  
  75. 'echo' => true,  
  76. 'fallback_cb' => 'wp_page_menu',  
  77. 'before' => '',  
  78. 'after' => '',  
  79. 'link_before' => '',  
  80. 'link_after' => '',  
  81. 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',  
  82. 'depth' => 2,  
  83. 'walker' => '' 
  84. ); 
  85. ?> 
  86. </div> 
  87. <div class="span4 about-company"> 
  88. <h3><?php _e("A propos", "eewee"); ?></h3> 
  89. <?php $options = get_option('eewee_options'); ?> 
  90. <span itemprop="description" itemscope itemtype="http://data-vocabulary.org/Thing"> 
  91. <?php echo esc_attr($options['eewee_address_about']); ?> 
  92. </span> 
  93. </div> 
  94. </div> 
  95.  
  96. <?php echo $this->getAddress(); ?> 
  97.  
  98. <?php 
  99. }//function 
  100.  
  101.  
  102.  
  103.  
  104. public function getAddress() { 
  105. $options = get_option('eewee_options'); ?> 
  106. <br /> 
  107. <div class="row-fluid"> 
  108. <div class="span12"> 
  109. <div itemscope itemtype="http://data-vocabulary.org/Organization">  
  110. <span itemprop="name"><a href="<?php echo home_url(); ?>" itemprop="url"><strong><?php echo esc_attr($options['eewee_address_company']); ?></strong></a></span> 
  111.  
  112. <i class="icon-map-marker"></i> 
  113. <span itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address"> 
  114. <?php if( !empty($options['eewee_address_address1']) ) { ?> 
  115. <span itemprop="street-address"><?php echo esc_attr($options['eewee_address_address1']); ?></span>,  
  116. <?php } ?> 
  117. <?php if( !empty($options['eewee_address_address2']) ) { ?> 
  118. <span itemprop="street-address"><?php echo esc_attr($options['eewee_address_address2']); ?></span>,  
  119. <?php } ?> 
  120. <?php if( !empty($options['eewee_address_zip']) ) { ?> 
  121. <span itemprop="postalCode"><?php echo esc_attr($options['eewee_address_zip']); ?></span> 
  122. <?php } ?> 
  123. <?php if( !empty($options['eewee_address_city']) ) { ?> 
  124. <span itemprop="addressLocality"><?php echo esc_attr($options['eewee_address_city']); ?></span> 
  125. <?php } ?> 
  126. </span> 
  127.  
  128. <i class=" icon-headphones"></i> 
  129. <?php if( !empty($options['eewee_address_phone1']) ) { ?> 
  130. <abbr title="Phone"><?php _e("Ph.", "eewee"); ?></abbr> <span itemprop="telephone"><?php echo esc_attr($options['eewee_address_phone1']); ?></span> 
  131. <?php } ?> 
  132. <?php if( !empty($options['eewee_address_phone2']) ) { ?> 
  133. <abbr title="Phone"><?php _e("Ph.", "eewee"); ?></abbr> <span itemprop="telephone"><?php echo esc_attr($options['eewee_address_phone2']); ?></span> 
  134. <?php } ?> 
  135. <?php if( !empty($options['eewee_address_phone3']) ) { ?> 
  136. <abbr title="Phone"><?php _e("Ph.", "eewee"); ?></abbr> <span itemprop="telephone"><?php echo esc_attr($options['eewee_address_phone3']); ?></span> 
  137. <?php } ?> 
  138. <?php if( !empty($options['eewee_address_mobile']) ) { ?> 
  139. <abbr title="Mobile"><?php _e("Ph.", "eewee"); ?></abbr> <span itemprop="telephone"><?php echo esc_attr($options['eewee_address_mobile']); ?></span> 
  140. <?php } ?> 
  141. <?php if( !empty($options['eewee_address_zip']) ) { ?>  
  142. <abbr title="Fax"><?php _e("Fax", "eewee"); ?></abbr> <span itemprop="faxNumber"><?php echo esc_attr($options['eewee_address_fax']); ?></span> 
  143. <?php } ?> 
  144. <?php if( !empty($options['eewee_address_zip']) ) { ?>  
  145.  
  146. <?php } ?> 
  147. <?php if( !empty($options['eewee_address_zip']) ) { ?>  
  148.  
  149.  
  150. <?php } ?> 
  151. <br /> 
  152.  
  153. <i class="icon-envelope"></i>  
  154. <span itemprop="email"><a href="mailto:<?php echo esc_attr($options['eewee_address_email']); ?>"><?php echo esc_attr($options['eewee_address_email']); ?></a></span> 
  155. </div> 
  156. </div> 
  157. </div> 
  158. <?php 
  159.  
  160.  
  161.  
  162.  
  163. /** 
  164. * Powered by 
  165. */ 
  166. public function poweredby() { 
  167. $p = " 
  168. <div class='generator poweredby pull-right'> 
  169. Powered by <a href='http://www.eewee.fr' title='Developpement themes/plugins CMS Wordpress' rel='tooltip'>eewee.fr</a> 
  170. </div> 
  171.  
  172. <script type='text/javascript'> 
  173. jQuery(document).ready(function($) { 
  174. $(document).ready(function() { 
  175. $('[rel=tooltip]').tooltip() 
  176. }); 
  177. }); 
  178. </script>"; 
  179. echo $p; 
  180.  
  181. }//fin class