| 1 | <?php |
|---|
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
|---|
| 3 | exit; // Exit if accessed directly |
|---|
| 4 | } |
|---|
| 5 | |
|---|
| 6 | $template = get_option( 'template' ); |
|---|
| 7 | |
|---|
| 8 | switch ( $template ) { |
|---|
| 9 | case 'twentyeleven' : |
|---|
| 10 | echo '<div id="primary"><div id="content" role="main" class="twentyeleven">'; |
|---|
| 11 | break; |
|---|
| 12 | case 'twentytwelve' : |
|---|
| 13 | echo '<div id="primary" class="site-content"><div id="content" role="main" class="twentytwelve">'; |
|---|
| 14 | break; |
|---|
| 15 | case 'twentythirteen' : |
|---|
| 16 | echo '<div id="primary" class="site-content"><div id="content" role="main" class="entry-content twentythirteen">'; |
|---|
| 17 | break; |
|---|
| 18 | case 'twentyfourteen' : |
|---|
| 19 | echo '<div id="primary" class="content-area"><div id="content" role="main" class="site-content twentyfourteen"><div class="tfwc">'; |
|---|
| 20 | break; |
|---|
| 21 | case 'twentyfifteen' : |
|---|
| 22 | echo '<div id="primary" role="main" class="content-area twentyfifteen"><div id="main" class="site-main t15wc">'; |
|---|
| 23 | break; |
|---|
| 24 | case 'twentysixteen' : |
|---|
| 25 | echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">'; |
|---|
| 26 | break; |
|---|
| 27 | default : |
|---|
| 28 | echo '<div class="container"><div id="content" role="main">'; |
|---|
| 29 | break; |
|---|
| 30 | } |
|---|