| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 3 |
|
| 4 |
$template = strtolower(get_option('template')); |
| 5 |
|
| 6 |
if($template == 'twentythirteen') { |
| 7 |
echo('</div></article></div></div>'); |
| 8 |
get_sidebar(); |
| 9 |
get_footer(); |
| 10 |
} elseif($template == 'twentyfourteen') { |
| 11 |
echo('</div></div></div>'); |
| 12 |
get_sidebar(); |
| 13 |
get_footer(); |
| 14 |
} else if($template == 'twentyfifteen' or $template == 'twentysixteen') { |
| 15 |
echo('</div></article></main></div>'); |
| 16 |
get_sidebar(); |
| 17 |
get_footer(); |
| 18 |
} else if($template == 'twentyseventeen') { |
| 19 |
echo('</div></div></div>'); |
| 20 |
get_footer(); |
| 21 |
} else if($template == 'divi') { |
| 22 |
echo('</div>'); |
| 23 |
get_sidebar(); |
| 24 |
echo('</div></div></div>'); |
| 25 |
get_footer(); |
| 26 |
} else if(function_exists('woo_content_before')) { |
| 27 |
woo_loop_after(); |
| 28 |
echo('</div><!-- /#main -->'); |
| 29 |
woo_main_after(); |
| 30 |
get_sidebar(); |
| 31 |
echo('</div><!-- /#main-sidebar-container -->'); |
| 32 |
get_sidebar('alt'); |
| 33 |
echo('</div><!-- /#content -->'); |
| 34 |
woo_content_after(); |
| 35 |
get_footer(); |
| 36 |
} else if(function_exists('genesis')) { |
| 37 |
do_action( 'genesis_after_loop' ); |
| 38 |
echo('</div><!-- end #content -->'); |
| 39 |
do_action('genesis_after_content'); |
| 40 |
echo('</div><!-- end #content-sidebar-wrap -->'); |
| 41 |
do_action( 'genesis_after_content_sidebar_wrap' ); |
| 42 |
get_footer(); |
| 43 |
} else { |
| 44 |
echo('</div></div>'); |
| 45 |
get_sidebar(); |
| 46 |
get_footer(); |
| 47 |
} |