Advertisement
Guest User

Untitled

a guest
Apr 30th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.47 KB | None | 0 0
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Footer Template
  8.  *
  9.  *
  10.  * @file           footer.php
  11.  * @package        Responsive
  12.  * @author         Emil Uzelac
  13.  * @copyright      2003 - 2013 ThemeID
  14.  * @license        license.txt
  15.  * @version        Release: 1.2
  16.  * @filesource     wp-content/themes/responsive/footer.php
  17.  * @link           http://codex.wordpress.org/Theme_Development#Footer_.28footer.php.29
  18.  * @since          available since Release 1.0
  19.  */
  20.  
  21. /*
  22.  * Globalize Theme options
  23.  */
  24. global $responsive_options;
  25. $responsive_options = responsive_get_options();
  26. ?>
  27.         <?php responsive_wrapper_bottom(); // after wrapper content hook ?>
  28.     </div><!-- end of #wrapper -->
  29.    <?php responsive_wrapper_end(); // after wrapper hook ?>
  30. </div><!-- end of #container -->
  31. <?php responsive_container_end(); // after container hook ?>
  32.  
  33. <div id="footer" class="clearfix">
  34.     <?php responsive_footer_top(); ?>
  35.  
  36.     <div id="footer-wrapper">
  37.    
  38.         <div class="grid col-940">
  39.                     <?php wp_nav_menu(array(
  40.                     'container'       => 'div',
  41.                         'container_class'   => 'main-nav',
  42.                         'fallback_cb'     =>  'responsive_fallback_menu',
  43.                         'theme_location'  => 'header-menu')
  44.                     );
  45.             ?>
  46.                
  47.             <?php if (has_nav_menu('sub-header-menu', 'responsive')) { ?>
  48.                 <?php wp_nav_menu(array(
  49.                     'container'       => '',
  50.                     'menu_class'      => 'sub-header-menu',
  51.                     'theme_location'  => 'sub-header-menu')
  52.                     );
  53.                 ?>
  54.             <?php } ?>
  55.  
  56.         <div class="grid col-540">
  57.         <?php if (has_nav_menu('footer-menu', 'responsive')) { ?>
  58.             <?php wp_nav_menu(array(
  59.                     'container'       => '',
  60.                     'fallback_cb'     =>  false,
  61.                     'menu_class'      => 'footer-menu',
  62.                     'theme_location'  => 'footer-menu')
  63.                     );
  64.                 ?>
  65.          <?php } ?>
  66.          </div><!-- end of col-540 -->
  67.          
  68.          <div class="grid col-380 fit">
  69.          <?php
  70.                    
  71.             // First let's check if any of this was set
  72.        
  73.                 echo '<ul class="social-icons">';
  74.                    
  75.                 if (!empty($responsive_options['twitter_uid'])) echo '<li class="twitter-icon"><a href="' . $responsive_options['twitter_uid'] . '">'
  76.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/twitter-icon.png" width="24" height="24" alt="Twitter">'
  77.                     .'</a></li>';
  78.  
  79.                 if (!empty($responsive_options['facebook_uid'])) echo '<li class="facebook-icon"><a href="' . $responsive_options['facebook_uid'] . '">'
  80.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/facebook-icon.png" width="24" height="24" alt="Facebook">'
  81.                     .'</a></li>';
  82.  
  83.                 if (!empty($responsive_options['linkedin_uid'])) echo '<li class="linkedin-icon"><a href="' . $responsive_options['linkedin_uid'] . '">'
  84.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/linkedin-icon.png" width="24" height="24" alt="LinkedIn">'
  85.                     .'</a></li>';
  86.                    
  87.                 if (!empty($responsive_options['youtube_uid'])) echo '<li class="youtube-icon"><a href="' . $responsive_options['youtube_uid'] . '">'
  88.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/youtube-icon.png" width="24" height="24" alt="YouTube">'
  89.                     .'</a></li>';
  90.                    
  91.                 if (!empty($responsive_options['stumble_uid'])) echo '<li class="stumble-upon-icon"><a href="' . $responsive_options['stumble_uid'] . '">'
  92.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/stumble-upon-icon.png" width="24" height="24" alt="StumbleUpon">'
  93.                     .'</a></li>';
  94.                    
  95.                 if (!empty($responsive_options['rss_uid'])) echo '<li class="rss-feed-icon"><a href="' . $responsive_options['rss_uid'] . '">'
  96.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/rss-feed-icon.png" width="24" height="24" alt="RSS Feed">'
  97.                     .'</a></li>';
  98.        
  99.                 if (!empty($responsive_options['google_plus_uid'])) echo '<li class="google-plus-icon"><a href="' . $responsive_options['google_plus_uid'] . '">'
  100.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/googleplus-icon.png" width="24" height="24" alt="Google Plus">'
  101.                     .'</a></li>';
  102.                    
  103.                 if (!empty($responsive_options['instagram_uid'])) echo '<li class="instagram-icon"><a href="' . $responsive_options['instagram_uid'] . '">'
  104.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/instagram-icon.png" width="24" height="24" alt="Instagram">'
  105.                     .'</a></li>';
  106.                    
  107.                 if (!empty($responsive_options['pinterest_uid'])) echo '<li class="pinterest-icon"><a href="' . $responsive_options['pinterest_uid'] . '">'
  108.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/pinterest-icon.png" width="24" height="24" alt="Pinterest">'
  109.                     .'</a></li>';
  110.                    
  111.                 if (!empty($responsive_options['yelp_uid'])) echo '<li class="yelp-icon"><a href="' . $responsive_options['yelp_uid'] . '">'
  112.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/yelp-icon.png" width="24" height="24" alt="Yelp!">'
  113.                     .'</a></li>';
  114.                    
  115.                 if (!empty($responsive_options['vimeo_uid'])) echo '<li class="vimeo-icon"><a href="' . $responsive_options['vimeo_uid'] . '">'
  116.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/vimeo-icon.png" width="24" height="24" alt="Vimeo">'
  117.                     .'</a></li>';
  118.                    
  119.                 if (!empty($responsive_options['foursquare_uid'])) echo '<li class="foursquare-icon"><a href="' . $responsive_options['foursquare_uid'] . '">'
  120.                     .'<img src="' . get_stylesheet_directory_uri() . '/icons/foursquare-icon.png" width="24" height="24" alt="foursquare">'
  121.                     .'</a></li>';
  122.              
  123.                 echo '</ul><!-- end of .social-icons -->';
  124.          ?>
  125.          </div><!-- end of col-380 fit -->
  126.          
  127.          </div><!-- end of col-940 -->
  128.          <?php get_sidebar('colophon'); ?>
  129.                
  130.         <div class="grid col-300 copyright">
  131.             <?php esc_attr_e('&copy;', 'responsive'); ?> <?php _e(date('Y')); ?><a href="<?php echo home_url('/') ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>">
  132.                 <?php bloginfo('name'); ?>
  133.             </a>
  134.         </div><!-- end of .copyright -->
  135.        
  136.         <div class="grid col-300 scroll-top"><a href="#scroll-top" title="<?php esc_attr_e( 'scroll to top', 'responsive' ); ?>"><?php _e( '&uarr;', 'responsive' ); ?></a></div>
  137.        
  138.         <div class="grid col-300 fit powered">
  139.             <a href="<?php echo esc_url(__('http://themeid.com/responsive-theme/','responsive')); ?>" title="<?php esc_attr_e('Responsive Theme', 'responsive'); ?>">
  140.                     <?php printf('Responsive Theme'); ?></a>
  141.             <?php esc_attr_e('powered by', 'responsive'); ?> <a href="<?php echo esc_url(__('http://wordpress.org/','responsive')); ?>" title="<?php esc_attr_e('WordPress', 'responsive'); ?>">
  142.                     <?php printf('WordPress'); ?></a>
  143.         </div><!-- end .powered -->
  144.        
  145.     </div><!-- end #footer-wrapper -->
  146.    
  147.     <?php responsive_footer_bottom(); ?>
  148. </div><!-- end #footer -->
  149. <?php responsive_footer_after(); ?>
  150.  
  151. <?php wp_footer(); ?>
  152. </body>
  153. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement