breadcrumb.php
9 years ago
form-login.php
9 years ago
quantity-input.php
9 years ago
sidebar.php
9 years ago
wrapper-end.php
9 years ago
wrapper-start.php
9 years ago
wrapper-start.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Content wrappers |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/global/wrapper-start.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @author WooThemes |
| 15 | * @package WooCommerce/Templates |
| 16 | * @version 1.6.4 |
| 17 | */ |
| 18 | |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; // Exit if accessed directly |
| 21 | } |
| 22 | |
| 23 | $template = get_option( 'template' ); |
| 24 | |
| 25 | switch ( $template ) { |
| 26 | case 'twentyeleven' : |
| 27 | echo '<div id="primary"><div id="content" role="main" class="twentyeleven">'; |
| 28 | break; |
| 29 | case 'twentytwelve' : |
| 30 | echo '<div id="primary" class="site-content"><div id="content" role="main" class="twentytwelve">'; |
| 31 | break; |
| 32 | case 'twentythirteen' : |
| 33 | echo '<div id="primary" class="site-content"><div id="content" role="main" class="entry-content twentythirteen">'; |
| 34 | break; |
| 35 | case 'twentyfourteen' : |
| 36 | echo '<div id="primary" class="content-area"><div id="content" role="main" class="site-content twentyfourteen"><div class="tfwc">'; |
| 37 | break; |
| 38 | case 'twentyfifteen' : |
| 39 | echo '<div id="primary" role="main" class="content-area twentyfifteen"><div id="main" class="site-main t15wc">'; |
| 40 | break; |
| 41 | case 'twentysixteen' : |
| 42 | echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">'; |
| 43 | break; |
| 44 | default : |
| 45 | echo '<div id="container"><div id="content" role="main">'; |
| 46 | break; |
| 47 | } |
| 48 |