<?php global $k_option; ?>
<!--end main-->
</div>
<!-- end center-->
</div>
<!--end wrapper-->
</div>
<div class="wrapper fullwidth" id='wrapper_footer'>
<div class="center">
<div id="footer">
<?php
$columns = 1;
$add_class = '';
foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas
{
echo '<div class="one_third '.$add_class.'">';
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - Column '.$columns) ) : $default_widget[$footer_widget] = true; endif;
if(!isset($default_widget[$footer_widget]) && $k_option['includes']['dummy_footer'] != 2)
{
//calling the placeholding content defined at the bottom of this file
display_placeholder($footer_widget);
}
echo '</div>';
$columns++;
$add_class = '';
if($columns == 3) { $add_class = ‘last’; }
}
?>
<!-- end footer-->
</div>
<!--end center-->
</div>
<!--end wrapper -->
</div>
<div id="footer_bottom" class="wrapper">
<div class="center">
<span class="copyright">All content Copyright © <a href="<?php echo get_settings('home'); ?>/"><?php echo get_bloginfo('name'); ?></a></span>
<a href="http://themes.weboy.org/" class="scrollTop">Worpress Themes</a>
<a href="http://jdarko82.deviantart.com/" class="scrollTop">Hire Darko Media Omniversal ™ for your next design project. View our portfolio - </a>
<!-- end center -->
</div>
<!-- end footer -->
</div>
<?php wp_footer();
if($k_option['general']['analytics']) echo $k_option['general']['analytics'];
?>
</body>
</html>
<?php
################################################################################################################
// these are the placeholder that get displayed if nothing is put into a footer widget areas in your
// wordpress backend at appearance->widgets
################################################################################################################
function display_placeholder($whichone)
{
if($whichone == 'left')
{ ?>
<div class='box_small box widget'>
<h3>Pages</h3>
<ul>
<?php wp_list_pages('title_li=&depth=-1' ); ?>
</ul>
</div>
<?php
}
if($whichone == 'center')
{ ?>
<div class='box_small box widget'>
<h3>Categories</h3>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'); ?>
</ul>
</div>
<?php
}
if($whichone == 'right')
{ ?>
<?php
}
}
?>