Advertisement
aa_frey

footer.php

Apr 13th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying the footer.
  4. *
  5. * Contains the closing of the #content div and all content after
  6. *
  7. * @package Precious Lite
  8. */
  9. ?>
  10.  
  11. <footer id="main-footer">
  12. <div class="container">
  13. <?php if(!dynamic_sidebar('sidebar-6')) : ?>
  14. <div class="footer-col"><h2><?php echo of_get_option('abouttitle','About Us'); ?></h2>
  15. <p><?php echo of_get_option('aboutcontent','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam mattis ultricies mollis. Donec tincidunt, odio id laoreet consequat, leo metus dapibus odio, eget egestas nisl ligula id elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse molestie felis nibh, ac porttitor nunc blandit a. Donec in maximus augue. Nunc luctus est sit amet consectetur lobortis. Praesent quis bibendum tortor. <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam mattis ultricies mollis. Donec tincidunt, odio id laoreet consequat, leo metus dapibus odio, eget egestas nisl ligula id elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse molestie felis nibh, ac porttitor nunc blandit a. Donec in maximus augue. Nunc luctus est sit amet consectetur lobortis. Praesent quis bibendum tortor. '); ?></p>
  16. </div><!-- footer-col -->
  17. <?php endif; ?>
  18.  
  19. <?php if(!dynamic_sidebar('sidebar-7')) : ?>
  20. <div class="footer-col"><h2>Recent Posts</h2>
  21. <?php $foot_query = new WP_Query('post_type=post&showposts=3'); ?>
  22. <?php while($foot_query->have_posts() ) : $foot_query->the_post(); ?>
  23. <div class="foot-post">
  24. <?php if( has_post_thumbnail() ) { ?>
  25. <div class="foot-post-thumb"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?> </a>
  26. </div><!-- foot-post-thumb -->
  27. <?php } ?>
  28. <div class="foot-post-content"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  29. <?php echo content(10); ?>
  30. </div><!-- foot-post-content --><div class="clear"></div>
  31. </div><!-- foot-post -->
  32. <?php endwhile; ?>
  33. </div><!-- footer-col -->
  34. <?php endif; ?>
  35.  
  36. <?php if(!dynamic_sidebar('sidebar-8')) : ?>
  37. <div class="footer-col"><h2><?php echo of_get_option('socialtitle','Connect with us'); ?></h2>
  38. <?php echo do_shortcode(of_get_option('socialcontent','[social_area][social icon="facebook" link="#linkfb"][social icon="twitter" link="#linktweet"][social icon="linkedin" link="#"][social icon="rss" link="#"][social icon="medium" link="#"][social icon="stumbleupon" link="#"][social icon="google-plus" link="#"][social icon="pinterest-p" link="#"][social icon="behance" link="#"][social icon="github" link="#"][social icon="google" link="#"][social icon="codepen" link="#"][social icon="digg" link="#"][social icon="slack" link="#"][social icon="skype" link="#"][social icon="tumblr" link="#"][social icon="vk" link="#"][social icon="xing" link="#"][social icon="yelp" link="#"][social icon="wordpress" link="#"][/social_area]')); ?>
  39. </div><!-- footer-col -->
  40. <?php endif; ?><div class="clear"></div>
  41. </div><!-- container -->
  42. </footer><!-- #main-footer -->
  43. <div class="copyright-wrapper">
  44. <div class="inner">
  45. <div class="footer-menu">
  46. <?php if(!dynamic_sidebar('sidebar-4')) : ?>
  47. <?php wp_nav_menu(array('theme_location' => 'footer')); ?>
  48. <?php endif; ?>
  49. </div><!-- footer-menu -->
  50. <div class="copyright">
  51. <?php if(!dynamic_sidebar('sidebar-5')) : ?>
  52. <p><?php if( of_get_option('copytext',true) != ''){ echo of_get_option('copytext','&copy; 2015 Precious. All Rights Reserved. Precious Lite Theme by <a href="http://flythemes.net" target="_blank">Flythemes</a>.'); }; ?></p>
  53. <?php endif; ?>
  54. </div><!-- copyright --><div class="clear"></div>
  55. </div><!-- inner -->
  56. </div>
  57. </div>
  58. <a href="#" class="scrollToTop"></a>
  59. <?php wp_footer(); ?>
  60.  
  61. </body>
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement