Advertisement
rafaelpires20

content-product

Dec 6th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying product content within loops.
  4.  *
  5.  * Override this template by copying it to yourtheme/woocommerce/content-product.php
  6.  *
  7.  * @author      WooThemes
  8.  * @package     WooCommerce/Templates
  9.  * @version     2.5.0
  10.  */
  11.  
  12. global $rossi_options;
  13.  
  14. $webLayout = rossi_get_layout();
  15.  
  16. switch($webLayout)
  17. {
  18.     case "layout-1":
  19.         require(get_template_directory() . "/woocommerce/content-product-layout-1.php");
  20.     break;
  21.     case "layout-2":
  22.         require(get_template_directory() . "/woocommerce/content-product-layout-2.php");
  23.     break;
  24.     case "layout-3":
  25.         require(get_template_directory() . "/woocommerce/content-product-layout-3.php");
  26.     break;
  27.     case "layout-4":
  28.         require(get_template_directory() . "/woocommerce/content-product-layout-4.php");
  29.     break; 
  30.     case "layout-5":
  31.         require(get_template_directory() . "/woocommerce/content-product-layout-5.php");
  32.     break; 
  33.     case "layout-6":
  34.         require(get_template_directory() . "/woocommerce/content-product-layout-6.php");
  35.     break;
  36.     default:
  37.         require(get_template_directory() . "/woocommerce/content-product-layout-1.php");
  38.     break;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement