Advertisement
deliciousthemes

Sidebar Code

Dec 12th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <?php global $data; //get theme options ?>
  2.  
  3.     <div class="centered-wrapper">
  4.    
  5.         <footer id="footer">
  6.             <div class="double-separator"></div>
  7.             <div id="topfooter">
  8.                 <?php if(is_front_page()) {   ?>
  9.                     <?php if ( !dynamic_sidebar('top-footer') ) : ?>
  10.                        <p><?php _e('You need to drag a widget into your footer in the WordPress Admin', 'haze'); ?></p>
  11.                     <?php endif; ?>    
  12.                 <?php } ?>     
  13.             </div><!--end topfooter-->
  14.        
  15.             <div id="bottomfooter">        
  16.                 <div class="one-half">
  17.                
  18.                 <?php if($data['copyright_textarea'] !='') { ?>
  19.                     <p><?php echo $data['copyright_textarea'];  ?></p>
  20.                     <?php } else { ?>
  21.                     <p><?php _e('Copyright - 2012 - Haze. All Rights Reserved', 'haze'); ?></p>
  22.                     <?php } ?>
  23.                 </div><!--end one-half-->
  24.  
  25.                 <div class="one-half column-last">
  26.                     <ul id="social">
  27.                         <?php
  28.                             $social_links = array('rss','facebook','twitter','flickr','google', 'forrst', 'dribbble' ,'vimeo', 'linkedin', 'skype');
  29.                             if($social_links) {
  30.                             foreach($social_links as $social_link) {
  31.                                 if(!empty($data[$social_link])) { echo '<li><a href="'. $data[$social_link] .'" title="'. $social_link .'" class="'.$social_link.'"  target="_blank">'.$social_link.'</a></li>';
  32.                                 }
  33.                             }
  34.                         }
  35.                         ?>                 
  36.                     </ul>                  
  37.                 </div><!--end one-half-->
  38.                 <a href="#" class="totop">scroll to top</a>
  39.             </div><!--end bottomfooter-->      
  40.         </footer><!--end footer--> 
  41.        
  42.     </div><!--end centered-wrapper-->  
  43. </div>
  44.  
  45.     <?php wp_footer(); ?>
  46.  
  47. <?php
  48. //show tracking code - header
  49. echo stripslashes($data['tracking_code_footer']);
  50. ?> 
  51. </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement