Нет описания

wrapper-start.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. if ( ! defined( 'ABSPATH' ) ) {
  18. exit; // Exit if accessed directly
  19. }
  20. $template = wc_get_theme_slug_for_templates();
  21. switch ( $template ) {
  22. case 'twentyten':
  23. echo '<div id="container"><div id="content" role="main">';
  24. break;
  25. case 'twentyeleven':
  26. echo '<div id="primary"><div id="content" role="main" class="twentyeleven">';
  27. break;
  28. case 'twentytwelve':
  29. echo '<div id="primary" class="site-content"><div id="content" role="main" class="twentytwelve">';
  30. break;
  31. case 'twentythirteen':
  32. echo '<div id="primary" class="site-content"><div id="content" role="main" class="entry-content twentythirteen">';
  33. break;
  34. case 'twentyfourteen':
  35. echo '<div id="primary" class="content-area"><div id="content" role="main" class="site-content twentyfourteen"><div class="tfwc">';
  36. break;
  37. case 'twentyfifteen':
  38. echo '<div id="primary" role="main" class="content-area twentyfifteen"><div id="main" class="site-main t15wc">';
  39. break;
  40. case 'twentysixteen':
  41. echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">';
  42. break;
  43. default:
  44. echo '<div id="primary" class="content-area"><main id="main" class="site-main" role="main">';
  45. break;
  46. }