| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 3 |
|
| 4 |
get_header(); |
| 5 |
|
| 6 |
$template = strtolower(get_option('template')); |
| 7 |
|
| 8 |
if($template == 'twentyeleven') { |
| 9 |
echo('<div id="primary"><div id="content" role="main">'); |
| 10 |
} else if($template == 'twentytwelve') { |
| 11 |
echo('<div id="primary" class="site-content"><div id="content" role="main">'); |
| 12 |
} else if($template == 'twentythirteen') { |
| 13 |
echo('<div id="primary" class="site-content"><div id="content" role="main" class="twentythirteen"><article class="post hentry"><div class="entry-content">'); |
| 14 |
} else if($template == 'twentyfourteen') { |
| 15 |
echo('<div id="primary" class="content-area"><div id="content" role="main" class="site-content"><div class="entry-content">'); |
| 16 |
} else if($template == 'twentyfifteen' or $template == 'twentysixteen') { |
| 17 |
echo('<div id="primary" class="content-area"><main id="main" class="site-main" role="main"><article class="post hentry"><div class="entry-content">'); |
| 18 |
} else if($template == 'twentyseventeen') { |
| 19 |
echo('<div class="wrap"><div id="primary" class="content-area"><main id="main" class="site-main" role="main">'); |
| 20 |
} else if($template == 'divi') { |
| 21 |
echo('<div id="main-content"><div class="container"><div id="content-area" class="clearfix"><div id="left-area">'); |
| 22 |
} else if(function_exists('woo_content_before')) { |
| 23 |
woo_content_before(); |
| 24 |
echo('<div id="content" class="col-full">'); |
| 25 |
echo('<div id="main-sidebar-container">'); |
| 26 |
woo_main_before(); |
| 27 |
echo('<div id="main" class="col-left">'); |
| 28 |
woo_loop_before(); |
| 29 |
} else if(function_exists('genesis')) { |
| 30 |
get_header(); |
| 31 |
do_action('genesis_before_content_sidebar_wrap'); |
| 32 |
echo('<div id="content-sidebar-wrap">'); |
| 33 |
do_action('genesis_before_content'); |
| 34 |
echo('<div id="content" class="hfeed content">'); |
| 35 |
do_action('genesis_before_loop'); |
| 36 |
} else { |
| 37 |
echo '<div id="container"><div id="content" role="main">'; |
| 38 |
} |