Guest User

James Morrison

a guest
Jul 28th, 2010
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. <?php global $k_option; ?>
  2. <!--end main-->
  3. </div>
  4. <!-- end center-->
  5. </div>
  6. <!--end wrapper-->
  7. </div>
  8.  
  9. <div class="wrapper fullwidth" id='wrapper_footer'>
  10.  
  11. <div class="center">
  12.  
  13. <div id="footer">
  14.  
  15. <?php
  16. $columns = 1;
  17. $add_class = '';
  18. foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas
  19. {
  20. echo '<div class="one_third '.$add_class.'">';
  21. if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - Column '.$columns) ) : $default_widget[$footer_widget] = true; endif;
  22.  
  23. if(!isset($default_widget[$footer_widget]) && $k_option['includes']['dummy_footer'] != 2)
  24. {
  25. //calling the placeholding content defined at the bottom of this file
  26. display_placeholder($footer_widget);
  27. }
  28. echo '</div>';
  29. $columns++;
  30. $add_class = '';
  31. if($columns == 3) { $add_class = 'last'; }
  32. }
  33.  
  34. ?>
  35. <!-- end footer-->
  36. </div>
  37. <!--end center-->
  38. </div>
  39.  
  40.  
  41. <!--end wrapper -->
  42. </div>
  43.  
  44. <div id="footer_bottom" class="wrapper">
  45.  
  46. <div class="center">
  47. <span class="copyright">All content Copyright &copy; <a href="<?php echo get_settings('home'); ?>/"><?php echo get_bloginfo('name'); ?></a></span>
  48. <a href="http://themes.weboy.org/" class="scrollTop">Worpress Themes</a>
  49. <a href="http://jdarko82.deviantart.com/" class="scrollTop">Hire Darko Media Omniversal ™ for your next design project. View our portfolio &nbsp;-&nbsp;</a>
  50. <!-- end center -->
  51. </div>
  52.  
  53. <!-- end footer -->
  54. </div>
  55. <?php wp_footer();
  56.  
  57. if($k_option['general']['analytics']) echo $k_option['general']['analytics'];
  58. ?>
  59. </body>
  60. </html>
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. <?php
  75. ################################################################################################################
  76. // these are the placeholder that get displayed if nothing is put into a footer widget areas in your
  77. // wordpress backend at appearance->widgets
  78. ################################################################################################################
  79.  
  80.  
  81. function display_placeholder($whichone)
  82. {
  83. if($whichone == 'left')
  84. { ?>
  85. <div class='box_small box widget'>
  86. <h3>Pages</h3>
  87. <ul>
  88. <?php wp_list_pages('title_li=&depth=-1' ); ?>
  89. </ul>
  90. </div>
  91. <?php
  92. }
  93.  
  94. if($whichone == 'center')
  95. { ?>
  96. <div class='box_small box widget'>
  97. <h3>Categories</h3>
  98. <ul>
  99. <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'); ?>
  100. </ul>
  101. </div>
  102. <?php
  103. }
  104.  
  105. if($whichone == 'right')
  106. { ?>
  107.  
  108. <?php
  109. }
  110. }
  111.  
  112.  
  113. ?>
Add Comment
Please, Sign In to add comment