breadcrumb.php
2 years ago
form-login.php
1 year ago
quantity-input.php
1 year ago
sidebar.php
2 years ago
wrapper-end.php
2 years ago
wrapper-start.php
2 years ago
wrapper-end.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Content wrappers |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/global/wrapper-end.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://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></div>'; |
| 27 | break; |
| 28 | case 'twentyeleven': |
| 29 | echo '</div>'; |
| 30 | get_sidebar( 'shop' ); |
| 31 | echo '</div>'; |
| 32 | break; |
| 33 | case 'twentytwelve': |
| 34 | echo '</div></div>'; |
| 35 | break; |
| 36 | case 'twentythirteen': |
| 37 | echo '</div></div>'; |
| 38 | break; |
| 39 | case 'twentyfourteen': |
| 40 | echo '</div></div></div>'; |
| 41 | get_sidebar( 'content' ); |
| 42 | break; |
| 43 | case 'twentyfifteen': |
| 44 | echo '</div></div>'; |
| 45 | break; |
| 46 | case 'twentysixteen': |
| 47 | echo '</main></div>'; |
| 48 | break; |
| 49 | default: |
| 50 | echo '</main></div>'; |
| 51 | break; |
| 52 | } |
| 53 |