Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.93 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying the footer.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Amplifier
  7.  */
  8. ?>
  9. <div class="clear"></div>
  10.  
  11. <footer>
  12. <div class="dotted-hr"></div>
  13.     <?php $footer_choice = of_get_option('footer_choice');
  14.     if($footer_choice == 'true') { ?>
  15.    
  16.     <div id="home-widgets-wrap" >
  17.    
  18.         <div id="home-widgets" class="container_12 clearfix">
  19.            
  20.             <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('footer-widgets')) : // check for 'footer-widgets' and display if exists ?>
  21.            
  22.             <?php else : // if no 'cta-widgets' then display placeholder text ?>
  23.            
  24.             <?php include (TEMPLATEPATH.'/includes/placeholder/sidebar-footer.php'); ?>
  25.            
  26.             <?php endif; // end 'footer-widgets' check ?>
  27.            
  28.         </div> <!-- end #home-widgets .container_12 -->
  29.            
  30.     </div> <!-- end #home-widgets-wrap -->
  31.    
  32. <?php } elseif ($footer_choice == 'false') {} //nada ?>
  33.    
  34.     <div class="clear"></div>
  35.    
  36.     <!-- Begin Social Media Bar -->
  37.     <?php $social_bar_position = of_get_option('social_bar_position'); //check if user wants to display the social bar in footer
  38.     if ( $social_bar_position == 'bottom' || $social_bar_position == 'both' ) { ?>
  39.    
  40.         <div id="social-wrap">
  41.             <div id="social-icons" class="container_12">
  42.                 <ul class="grid_10 omega">
  43.                
  44.                     <!-- TWITTER -->
  45.                     <?php $twitter_name = of_get_option('twitter_username');
  46.                         if(!$twitter_name) { /* nada */ } else { ?>
  47.                
  48.                     <li id="twitter">
  49.                     <a href="http://twitter.com/<?php echo $twitter_name ?>" title="<?php echo of_get_option('twitter_title'); ?>">
  50.                         <div class="fadeThis">
  51.                             <span class="hover"></span>
  52.                         </div>
  53.                     </a>
  54.                     </li>
  55.                    
  56.                     <?php } ?>
  57.                     <!-- end Twitter -->
  58.                    
  59.                     <!-- FACEBOOK -->
  60.                     <?php $facebook_link = of_get_option('facebook_link');
  61.                         if(!$facebook_link) { /* nada */ } else { ?>
  62.                    
  63.                     <li id="facebook">
  64.                     <a href="<?php echo $facebook_link ?>" title="<?php echo of_get_option('facebook_title'); ?>">
  65.                         <div class="fadeThis">
  66.                             <span class="hover"></span>
  67.                         </div>
  68.                     </a>
  69.                     </li>
  70.                    
  71.                     <?php } ?>
  72.                     <!-- end Facebook -->
  73.                    
  74.                     <!-- LINKEDIN -->
  75.                     <?php $linkedin_link = of_get_option('linkedin_link');
  76.                         if(!$linkedin_link) { /* nada */ } else { ?>
  77.                    
  78.                     <li id="linkedin">
  79.                     <a href="<?php echo $linkedin_link ?>" title="<?php echo of_get_option('linkedin_title'); ?>">
  80.                         <div class="fadeThis">
  81.                             <span class="hover"></span>
  82.                         </div>
  83.                     </a>
  84.                     </li>
  85.                    
  86.                     <?php } ?>
  87.                     <!-- end Linkedin -->
  88.                
  89.                     <!-- DRIBBBLE -->
  90.                     <?php $dribbble_link = of_get_option('dribbble_link');
  91.                         if(!$dribbble_link) { /* nada */ } else { ?>
  92.                        
  93.                     <li id="dribbble">
  94.                     <a href="<?php echo $dribbble_link ?>" title="<?php echo of_get_option('dribbble_title'); ?>">
  95.                         <div class="fadeThis">
  96.                             <span class="hover"></span>
  97.                         </div>
  98.                     </a>
  99.                     </li>
  100.    
  101.                     <?php } ?>
  102.                     <!-- end Dribbble -->
  103.                
  104.                     <!-- FORRST -->
  105.                     <?php $forrst_link = of_get_option('forrst_link');
  106.                         if(!$forrst_link) { /* nada */ } else { ?>
  107.                        
  108.                     <li id="forrst">
  109.                     <a href="<?php echo $forrst_link ?>" title="<?php echo of_get_option('forrst_title'); ?>">
  110.                         <div class="fadeThis">
  111.                             <span class="hover"></span>
  112.                         </div>
  113.                     </a>
  114.                     </li>
  115.                    
  116.                     <?php } ?>
  117.                     <!-- end Forrst -->
  118.                    
  119.                     <!-- GOOGLE -->
  120.                     <?php $google_link = of_get_option('google_link');
  121.                         if(!$google_link) { /* nada */ } else { ?>
  122.                        
  123.                     <li id="google">
  124.                     <a href="<?php echo $google_link ?>" title="<?php echo of_get_option('google_title'); ?>">
  125.                         <div class="fadeThis">
  126.                             <span class="hover"></span>
  127.                         </div>
  128.                     </a>
  129.                     </li>
  130.                    
  131.                     <?php } ?>
  132.                     <!-- end Google -->
  133.  
  134.                     <!-- RSS -->
  135.                     <?php $rss_link = of_get_option('rss_link');
  136.                         if(!$rss_link) { /* nada */ } else { ?>
  137.                        
  138.                     <li id="rss">
  139.                     <a href="<?php echo $rss_link ?>" title="<?php echo of_get_option('rss_title'); ?>">
  140.                         <div class="fadeThis">
  141.                             <span class="hover"></span>
  142.                         </div>
  143.                     </a>
  144.                     </li>
  145.                    
  146.                     <?php } ?>
  147.                     <!-- end RSS -->
  148.  
  149.                     <!-- CONTACT -->
  150.                     <?php $contact_link = of_get_option('contact_link');
  151.                         if(!$contact_link) { /* nada */ } else { ?>
  152.                        
  153.                     <li id="contact">
  154.                     <a href="<?php echo $contact_link ?>" title="<?php echo of_get_option('contact_title'); ?>">
  155.                         <div class="fadeThis">
  156.                             <span class="hover"></span>
  157.                         </div>
  158.                     </a>
  159.                     </li>
  160.                    
  161.                     <?php } ?>
  162.                     <!-- end Contact -->
  163.                    
  164.                 </ul>
  165.                    
  166.                     <!-- Send a Message -->
  167.                     <div id="share" class="grid_2">
  168.                    
  169.                     <?php $contact_form = of_get_option('contact_form'); // Get the contact form shortcode
  170.                         if(!$contact_form) { /* nada */ } else { ?>
  171.  
  172.                         <div class="fadeThis">
  173.                             <span class="hover"></span>
  174.                             <a id="footer-contact" href="#inline1" title="<?php echo of_get_option('contact_message'); ?>" ><span><?php _e('Send a Message','amplifier'); ?></span></a>
  175.                         </div>
  176.  
  177.                         <div class="hidden">
  178.                             <div id="inline1">
  179.                                 <h3 class="fancybox-contact-title"><?php echo of_get_option('contact_title'); ?></h3>
  180.                                 <?php echo do_shortcode( $contact_form ); // placed the contact form shortcode from theme options panel ?>
  181.                             </div> <!-- end #inline1 -->
  182.                         </div> <!-- end .hidden -->
  183.                        
  184.                     <?php } ?>
  185.                            
  186.                     </div> <!-- end #share .grid_2 -->
  187.                
  188.             </div><!-- end .container_12 -->
  189.         </div> <!-- end #social-wrap -->
  190.        
  191.     <?php } else { } // end check for social bar position ?>
  192.        
  193.         <div id="copyright-wrap" class="clearfix">
  194.            
  195.             <div class="container_12">
  196.            
  197.                 <div id="copyright" class="grid_12 omega">
  198.                
  199.                     <p><?php echo stripslashes(of_get_option('copyright_text')); ?></p>
  200. <img src="http://socialemediatraining.nl/wp-content/uploads/2012/01/logo-breed_nl_350-92.png" height="40">
  201.                
  202.                 <!-- FOOTER NAVIGATION -->
  203.                    
  204.                 <?php if ( has_nav_menu( 'footer-menu' ) ) : /* if menu 'footer-menu' exists then use custom menu */ ?>
  205.                        
  206.                 <?php wp_nav_menu( array( 'theme_location' => 'footer-menu', 'items_wrap' => '<ul class="footer-nav">%3$s</ul>', 'container' => '' ) ); ?>
  207.                
  208.                 <?php endif; // End footer menu check ?>
  209.        
  210.                 </div> <!-- end #copyright -->
  211.                
  212.             </div><!-- end .container_12 -->
  213.            
  214.         </div> <!-- end #footer-widget-wrap -->
  215.        
  216. </footer>
  217.  
  218.     <!-- Nivo Slider Options -->
  219.     <?php $slider_choice = of_get_option('slider_choice'); //Get the slider choice
  220.     if ( is_front_page() && $slider_choice == 'nivo') {  require_once(TEMPLATEPATH . '/includes/nivo.php'); } ?>
  221.    
  222.     <!-- Content Slider Options -->
  223.     <?php $slider_choice = of_get_option('slider_choice'); //Get the slider choice
  224.     if ( is_front_page() && $slider_choice == 'content') { require_once(TEMPLATEPATH . '/includes/slides.php'); } ?>
  225.    
  226. <?php
  227.     /* Check Google Maps API Key
  228.      * Won't load js scripts if no API key
  229.      * is present
  230.     */
  231.     $map_api = of_get_option('map_api');
  232.     if(!empty($map_api)) {  ?>
  233.     <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=<?php echo $map_api; ?>&amp;hl=en"></script>
  234.     <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.gmap-1.1.0-min.js"></script>
  235. <?php } ?>
  236.  
  237. <?php include (TEMPLATEPATH.'/includes/link-hover.php'); // link hover effect ?>
  238.  
  239. <?php
  240. /* Display Theme version in footer sourcecode
  241.  * Used for debugging and support
  242. */
  243. $themeversion = get_theme_data(STYLESHEETPATH . '/style.css');
  244. $themeversion = $themeversion['Version']; ?>
  245. <!-- This is version <?php echo $themeversion ?> -->
  246.    
  247. <?php
  248.     /* Always have wp_footer() just before the closing </body>
  249.      * tag of your theme, or you will break many plugins, which
  250.      * generally use this hook to reference JavaScript files.
  251.      */
  252.     wp_footer();
  253. ?>
  254.  
  255. </body>
  256. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement