wrapper-start.php 1.8 KB

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. * @author WooThemes
  15. * @package WooCommerce/Templates
  16. * @version 3.3.0
  17. */
  18. if ( ! defined( 'ABSPATH' ) ) {
  19. exit; // Exit if accessed directly
  20. }
  21. $template = wc_get_theme_slug_for_templates();
  22. switch ( $template ) {
  23. case 'twentyten' :
  24. echo '<div id="container"><div id="content" role="main">';
  25. break;
  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="primary" class="content-area"><main id="main" class="site-main" role="main">';
  46. break;
  47. }