Advertisement
Guest User

wrapper-start.php

a guest
Dec 18th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.48 KB | None | 0 0
  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.  
  24. <?php
  25. if ( is_product() ) :
  26.     $bimber_class = array(
  27.                 'g1-row',
  28.                 'g1-row-layout-page',
  29.             );
  30.     if ( bimber_show_breadcrumbs() ) {
  31.         $bimber_class[] = 'g1-row-padding-m';
  32.     }
  33. ?>
  34.     <div class="<?php echo implode( ' ', array_map( 'sanitize_html_class', $bimber_class ) ); ?>">
  35.         <div class="g1-row-background">
  36.         </div>
  37.         <div class="g1-row-inner">
  38.             <div class="g1-column g1-column-2of3" id="primary">
  39.                 <div id="content" role="main">
  40. <?php else : ?>
  41.     <div class="g1-row g1-row-layout-page g1-row-padding-m archive-body">
  42.         <div class="g1-row-inner">
  43.  
  44.             <?php if ( bimber_woocommerce_page_has_sidebar() ) : ?>
  45.                 <div class="g1-column g1-column-2of3">
  46.             <?php else : ?>
  47.                 <div class="g1-column">
  48.             <?php  endif; ?>
  49. <?php endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement