breadcrumb.php
5 years ago
form-login.php
3 years ago
quantity-input.php
3 years ago
sidebar.php
5 years ago
wrapper-end.php
5 years ago
wrapper-start.php
5 years ago
wrapper-start.php
50 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 | * @package WooCommerce\Templates |
| 15 | * @version 3.3.0 |
| 16 | */ |
| 17 | |
| 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | exit; // Exit if accessed directly |
| 20 | } |
| 21 | |
| 22 | $template = wc_get_theme_slug_for_templates(); |
| 23 | |
| 24 | switch ( $template ) { |
| 25 | case 'twentyten': |
| 26 | echo '<div id="container"><div id="content" role="main">'; |
| 27 | break; |
| 28 | case 'twentyeleven': |
| 29 | echo '<div id="primary"><div id="content" role="main" class="twentyeleven">'; |
| 30 | break; |
| 31 | case 'twentytwelve': |
| 32 | echo '<div id="primary" class="site-content"><div id="content" role="main" class="twentytwelve">'; |
| 33 | break; |
| 34 | case 'twentythirteen': |
| 35 | echo '<div id="primary" class="site-content"><div id="content" role="main" class="entry-content twentythirteen">'; |
| 36 | break; |
| 37 | case 'twentyfourteen': |
| 38 | echo '<div id="primary" class="content-area"><div id="content" role="main" class="site-content twentyfourteen"><div class="tfwc">'; |
| 39 | break; |
| 40 | case 'twentyfifteen': |
| 41 | echo '<div id="primary" role="main" class="content-area twentyfifteen"><div id="main" class="site-main t15wc">'; |
| 42 | break; |
| 43 | case 'twentysixteen': |
| 44 | echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">'; |
| 45 | break; |
| 46 | default: |
| 47 | echo '<div id="primary" class="content-area"><main id="main" class="site-main" role="main">'; |
| 48 | break; |
| 49 | } |
| 50 |