var/cache/dev/twig/c4/c473d9717556bcf9ab08fefd2b360463.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Shop/detail.html.twig */
  14. class __TwigTemplate_f061c779803bfe016c2ade322cb3dca1 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "product.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/detail.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/detail.html.twig"));
  40.         $this->parent $this->loadTemplate("product.html.twig""Shop/detail.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\">
  57. ";
  58.         // line 6
  59.         if (( !array_key_exists("document"$context) ||  !(isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'6$this->source); })()))) {
  60.             // line 7
  61.             echo "    ";
  62.             $context["document"] = Pimcore\Model\Document::getById(1);
  63.         }
  64.         // line 10
  65.         echo "<div class=\"breadcrumb-block\">
  66.   <div class=\"container\">
  67.     <!-- breadcrumb of the page -->
  68.     <ul class=\"breadcrumb\">
  69.       <li>
  70.         <a href=\"/";
  71.         // line 15
  72.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'15$this->source); })()), 15$this->source), "html"nulltrue);
  73.         echo "/\" class=\"home\">
  74.           ";
  75.         // line 16
  76.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.home"), "html"nulltrue);
  77.         echo "
  78.         </a>
  79.       </li>
  80.       <li>
  81.         <a href=\"";
  82.         // line 20
  83.         echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["prefix" => (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'20$this->source); })())], "product-landing"), "html"nulltrue);
  84.         echo "\">
  85.           ";
  86.         // line 21
  87.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.our-products"), "html"nulltrue);
  88.         echo "
  89.         </a>
  90.       </li>
  91.       ";
  92.         // line 24
  93.         $context["rootCategory"] = "";
  94.         // line 25
  95.         echo "      
  96.       ";
  97.         // line 26
  98.         if (twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'26$this->source); })()), "getCategories", [], "method"falsefalsetrue26)) {
  99.             // line 27
  100.             echo "        ";
  101.             $context["category"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'27$this->source); })()), "getCategories", [], "method"falsefalsetrue27), 0, [], "array"falsefalsetrue27);
  102.             // line 28
  103.             echo "        ";
  104.             $context["parentcategory"] = twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'28$this->source); })()), "getParent", [], "method"falsefalsetrue28);
  105.             // line 29
  106.             echo "        ";
  107.             if ((((isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'29$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'29$this->source); })()), "getType", [], "method"falsefalsetrue29) == "object")) && (twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'29$this->source); })()), "getClassname", [], "method"falsefalsetrue29) == "CategoryAlcoholType"))) {
  108.                 // line 30
  109.                 echo "          ";
  110.                 $context["parenturl"] = twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'30$this->source); })()), "getDetailUrl", [["rootCategory" => (isset($context["rootCategory"]) || array_key_exists("rootCategory"$context) ? $context["rootCategory"] : (function () { throw new RuntimeError('Variable "rootCategory" does not exist.'30$this->source); })()), "document" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'30$this->source); })())]], "method"falsefalsetrue30);
  111.                 // line 31
  112.                 echo "          <li>
  113.             <a href=\"";
  114.                 // line 32
  115.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parenturl"]) || array_key_exists("parenturl"$context) ? $context["parenturl"] : (function () { throw new RuntimeError('Variable "parenturl" does not exist.'32$this->source); })()), 32$this->source), "html"nulltrue);
  116.                 echo "\">
  117.               ";
  118.                 // line 33
  119.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'33$this->source); })()), "getName", [], "method"falsefalsetrue33), 33$this->source), "html"nulltrue);
  120.                 echo "
  121.             </a>
  122.           </li>
  123.         ";
  124.             }
  125.             // line 37
  126.             echo "      ";
  127.         }
  128.         // line 38
  129.         echo "      <li class=\"active\">
  130.         <a href=\"";
  131.         // line 39
  132.         (((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'39$this->source); })())) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'39$this->source); })()), "getDetailUrl", [["rootCategory" => (isset($context["rootCategory"]) || array_key_exists("rootCategory"$context) ? $context["rootCategory"] : (function () { throw new RuntimeError('Variable "rootCategory" does not exist.'39$this->source); })()), "document" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'39$this->source); })())]], "method"falsefalsetrue39), "html"nulltrue))) : (print ("")));
  133.         echo "\">
  134.           ";
  135.         // line 40
  136.         (((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'40$this->source); })())) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'40$this->source); })()), "getName", [], "method"falsefalsetrue40), "html"nulltrue))) : (print ("")));
  137.         echo "
  138.         </a>
  139.       </li>
  140.     </ul>
  141.   </div>
  142. </div>
  143. <div class=\"container\">
  144.     <div class=\"heading-holder\">
  145.       <!-- main heading of the page -->
  146.       <h1>";
  147.         // line 49
  148.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'49$this->source); })()), "getOSName", [], "method"falsefalsetrue49), 49$this->source), "html"nulltrue);
  149.         echo "</h1>
  150.       <h2 class=\"sub-heading\">";
  151.         // line 50
  152.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'50$this->source); })()), "getContent", [], "method"falsefalsetrue50), 50$this->source), "html"nulltrue);
  153.         echo "</h2>
  154.     </div>
  155.     <div class=\"detail-block\">
  156.       <div class=\"row\">
  157.         <div class=\"col-sm-3\">
  158.           <div class=\"widget-block\">            
  159.             ";
  160.         // line 56
  161.         $context["brand"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'56$this->source); })()), "getBrand", [], "method"falsefalsetrue56);
  162.         // line 57
  163.         echo "            ";
  164.         if ((isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'57$this->source); })())) {
  165.             // line 58
  166.             echo "                  <div class=\"widget\" style=\"margin-bottom: 10px;\">
  167.                     <div class=\"heading\">
  168.                       <h2>Image type</h2>
  169.                     </div>
  170.                     <ul class=\"link-list\">                
  171.                       ";
  172.             // line 63
  173.             $context["brandimage"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'63$this->source); })()), 0, [], "array"falsefalsetrue63), "getObject", [], "method"falsefalsetrue63), "getBrandMarkImage", [], "method"falsefalsetrue63);
  174.             echo "                
  175.                       
  176.                       <!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
  177.                     </ul>
  178.                   </div>\t\t
  179.                   <div class=\"widget\">
  180.               <div class=\"logo-link-holder\">
  181.               <a class=\"download-btn button\" href=\"";
  182.             // line 70
  183.             echo twig_escape_filter($this->env, ((("/" $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'70$this->source); })()), 70$this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'70$this->source); })()), 0, [], "array"falsefalsetrue70), "getObject", [], "method"falsefalsetrue70), "getId", [], "method"falsefalsetrue70), 70$this->source)), "html"nulltrue);
  184.             echo "\">";
  185.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.viewall"), "html"nulltrue);
  186.             echo " ";
  187.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'70$this->source); })()), 0, [], "array"falsefalsetrue70), "getObject", [], "method"falsefalsetrue70), "getBrandName", [], "method"falsefalsetrue70), 70$this->source), "html"nulltrue);
  188.             echo " ";
  189.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.products"), "html"nulltrue);
  190.             echo "</a>
  191.               </div>
  192.                     <div class=\"logo-holder\">
  193.                       <div class=\"logo-wrap\">
  194.                         <a href=\"";
  195.             // line 74
  196.             echo twig_escape_filter($this->env, ((("/" $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'74$this->source); })()), 74$this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'74$this->source); })()), 0, [], "array"falsefalsetrue74), "getObject", [], "method"falsefalsetrue74), "getId", [], "method"falsefalsetrue74), 74$this->source)), "html"nulltrue);
  197.             echo "\">
  198.                           ";
  199.             // line 75
  200.             if ((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'75$this->source); })())) {
  201.                 // line 76
  202.                 echo "                            <img src=\"";
  203.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'76$this->source); })()), "DocumentImage", [], "any"falsefalsetrue76), "getThumbnail", [["width" => 221]], "method"falsefalsetrue76), 76$this->source), "html"nulltrue);
  204.                 echo "\">
  205.                           ";
  206.             } else {
  207.                 // line 78
  208.                 echo "                          <h2>";
  209.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'78$this->source); })()), "getName", [], "method"falsefalsetrue78), 78$this->source), "html"nulltrue);
  210.                 echo "</h2>
  211.                           ";
  212.             }
  213.             // line 80
  214.             echo "                        </a>
  215.                       </div>
  216.                     </div>
  217.                     <div class=\"download-logo\" style=\"margin-top: 10px;\">
  218.                     <a class=\"download-btn button\" href=\"";
  219.             // line 84
  220.             echo twig_escape_filter($this->envtwig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'84$this->source); })()), "DocumentImage", [], "any"falsefalsetrue84), "getFullPath", [], "method"falsefalsetrue84), 84$this->source), ["/var/www/html/web" => ""]), "html"nulltrue);
  221.             echo "\" download>Download Image</a>
  222.               </div>
  223.                   </div>
  224.             ";
  225.         }
  226.         // line 88
  227.         echo "          </div>
  228.         </div>
  229.         <div class=\"col-sm-6\">
  230.           <div class=\"product-info\">
  231.             <div class=\"heading-holder\">
  232.               <h2 class=\"sub-heading\">Description</h2>
  233.             </div>
  234.             ";
  235.         // line 95
  236.         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'95$this->source); })()), "description", [], "any"falsefalsetrue95), 95$this->source);
  237.         echo 
  238.           </div>
  239.         </div>
  240.         <div class=\"col-sm-3\">
  241.           <div class=\"widget-block\">            
  242.             ";
  243.         // line 100
  244.         $context["brand"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'100$this->source); })()), "getBrand", [], "method"falsefalsetrue100);
  245.         // line 101
  246.         echo "            ";
  247.         if ((isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'101$this->source); })())) {
  248.             // line 102
  249.             echo "                  <div class=\"widget\" style=\"margin-bottom: 10px;\">
  250.                     <div class=\"heading\">
  251.                       <h2>Image type</h2>
  252.                     </div>
  253.                     <ul class=\"link-list\">                
  254.                       ";
  255.             // line 107
  256.             $context["brandimage"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'107$this->source); })()), 0, [], "array"falsefalsetrue107), "getObject", [], "method"falsefalsetrue107), "getBrandMarkImage", [], "method"falsefalsetrue107);
  257.             echo "                
  258.                       
  259.                       <!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
  260.                     </ul>
  261.                   </div>\t\t
  262.                   <div class=\"widget\">
  263.               <div class=\"logo-link-holder\">
  264.               <a class=\"download-btn button\" href=\"";
  265.             // line 114
  266.             echo twig_escape_filter($this->env, ((("/" $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'114$this->source); })()), 114$this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'114$this->source); })()), 0, [], "array"falsefalsetrue114), "getObject", [], "method"falsefalsetrue114), "getId", [], "method"falsefalsetrue114), 114$this->source)), "html"nulltrue);
  267.             echo "\">";
  268.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.viewall"), "html"nulltrue);
  269.             echo " ";
  270.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'114$this->source); })()), 0, [], "array"falsefalsetrue114), "getObject", [], "method"falsefalsetrue114), "getBrandName", [], "method"falsefalsetrue114), 114$this->source), "html"nulltrue);
  271.             echo " ";
  272.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.products"), "html"nulltrue);
  273.             echo "</a>
  274.               </div>
  275.                     <div class=\"logo-holder\">
  276.                       <div class=\"logo-wrap\">
  277.                         <a href=\"";
  278.             // line 118
  279.             echo twig_escape_filter($this->env, ((("/" $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'118$this->source); })()), 118$this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'118$this->source); })()), 0, [], "array"falsefalsetrue118), "getObject", [], "method"falsefalsetrue118), "getId", [], "method"falsefalsetrue118), 118$this->source)), "html"nulltrue);
  280.             echo "\">
  281.                           ";
  282.             // line 119
  283.             if ((isset($context["brandimage"]) || array_key_exists("brandimage"$context) ? $context["brandimage"] : (function () { throw new RuntimeError('Variable "brandimage" does not exist.'119$this->source); })())) {
  284.                 // line 120
  285.                 echo "                            <img src=\"";
  286.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["brandimage"]) || array_key_exists("brandimage"$context) ? $context["brandimage"] : (function () { throw new RuntimeError('Variable "brandimage" does not exist.'120$this->source); })()), "getThumbnail", [["width" => 151]], "method"falsefalsetrue120), 120$this->source), "html"nulltrue);
  287.                 echo "\">
  288.                           ";
  289.             } else {
  290.                 // line 122
  291.                 echo "                          <h2>";
  292.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'122$this->source); })()), 0, [], "array"falsefalsetrue122), "getObject", [], "method"falsefalsetrue122), "getBrandName", [], "method"falsefalsetrue122), 122$this->source), "html"nulltrue);
  293.                 echo "</h2>
  294.                           ";
  295.             }
  296.             // line 124
  297.             echo "                        </a>
  298.                       </div>
  299.                     </div>
  300.               <div class=\"download-logo\" style=\"margin-top: 10px;\">
  301.               <a class=\"download-btn button\" href=\"";
  302.             // line 128
  303.             echo twig_escape_filter($this->envtwig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["brandimage"]) || array_key_exists("brandimage"$context) ? $context["brandimage"] : (function () { throw new RuntimeError('Variable "brandimage" does not exist.'128$this->source); })()), "getFullPath", [], "method"falsefalsetrue128), 128$this->source), ["/var/www/html/web" => ""]), "html"nulltrue);
  304.             echo "\" download>Download Logo</a>
  305.               </div>
  306.                   </div>
  307.             ";
  308.         }
  309.         // line 132
  310.         echo "          </div>
  311.         </div>
  312.       </div>
  313.     </div>    
  314.     <div class=\"tab-holder\">
  315.       <ul class=\"tabset\">        
  316.         <li class=\"first\"><a href=\"#tab1\" ><span>Photos</span></a></li>        
  317.         ";
  318.         // line 140
  319.         if ((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'140$this->source); })()), "getVideoList", [], "method"falsefalsetrue140) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'140$this->source); })()), "getVideoList", [], "method"falsefalsetrue140)) > 0))) {
  320.             // line 141
  321.             echo "          <li class=\"seventh\"><a href=\"#tab2\"><span>Video</span></a></li>
  322.         ";
  323.         }
  324.         // line 143
  325.         echo "        ";
  326.         if ((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'143$this->source); })()), "getDocumentList", [], "method"falsefalsetrue143) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'143$this->source); })()), "getDocumentList", [], "method"falsefalsetrue143)) > 0))) {
  327.             // line 144
  328.             echo "          <li class=\"seventh\"><a href=\"#tab3\" class=\"active\"><span>Documents</span></a></li>
  329.         ";
  330.         }
  331.         // line 146
  332.         echo "      </ul>
  333.       <div class=\"tab-content\">
  334.         <div class=\"accordion\">          
  335.           ";
  336.         // line 149
  337.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'149$this->source); })()), "getImages", [], "method"falsefalsetrue149))) {
  338.             echo "          
  339.           <div class=\"accordion-holder active\">
  340.             <a href=\"#\" class=\"accordion-opener\">";
  341.             // line 151
  342.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.product-photos"), "html"nulltrue);
  343.             echo "</a>
  344.             <div id=\"here\" class=\"accordion-slide\">
  345.               <div id=\"tab1\" class=\"tab-data\">
  346.                 <div class=\"content-wrap\">
  347.                     ";
  348.             // line 155
  349.             $context['_parent'] = $context;
  350.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'155$this->source); })()), "getImages", [], "method"falsefalsetrue155));
  351.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  352.                 // line 156
  353.                 echo "                    <div class=\"col-sm-4\">
  354.                       <div class=\"product-post hover-js\">
  355.                         <div class=\"img-holder\">
  356.                           ";
  357.                 // line 159
  358.                 if (twig_get_attribute($this->env$this->source$context["image"], "getImage", [], "method"falsefalsetrue159)) {
  359.                     // line 160
  360.                     echo "                            ";
  361.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "getImage", [], "method"falsefalsetrue160), "getThumbnail", ["alcoholtype"], "method"falsefalsetrue160), "getHtml", [["width" => 300"height" => 222]], "method"falsefalsetrue160), 160$this->source);
  362.                     echo "
  363.                           ";
  364.                 }
  365.                 // line 161
  366.                 echo "                          
  367.                         </div>
  368.                         <a class=\"download-btn button video-download-btn\" data-basename=\"";
  369.                 // line 163
  370.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->basenameFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "getImage", [], "method"falsefalsetrue163), "getFilename", [], "method"falsefalsetrue163), 163$this->source)), "html"nulltrue);
  371.                 echo "\" data-brand=\"";
  372.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'163$this->source); })()), 0, [], "array"falsefalsetrue163), "getObject", [], "method"falsefalsetrue163), "getBrandName", [], "method"falsefalsetrue163), 163$this->source), "html"nulltrue);
  373.                 echo "\" download href=\"";
  374.                 echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "getImage", [], "method"falsefalsetrue163), "getPath", [], "method"falsefalsetrue163), 163$this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "getImage", [], "method"falsefalsetrue163), "getFilename", [], "method"falsefalsetrue163), 163$this->source)), "html"nulltrue);
  375.                 echo "\">Download Image</a>
  376.                       </div>
  377.                     </div> 
  378.                     ";
  379.             }
  380.             $_parent $context['_parent'];
  381.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  382.             $context array_intersect_key($context$_parent) + $_parent;
  383.             // line 167
  384.             echo "                </div>
  385.               </div>
  386.             </div>
  387.           </div>
  388.           ";
  389.         }
  390.         // line 172
  391.         echo "          ";
  392.         if ((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'172$this->source); })()), "getVideoList", [], "method"falsefalsetrue172) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'172$this->source); })()), "getVideoList", [], "method"falsefalsetrue172)) > 0))) {
  393.             // line 173
  394.             echo "          <div class=\"accordion-holder\">
  395.             <a href=\"#\" class=\"accordion-opener\">";
  396.             // line 174
  397.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.video"), "html"nulltrue);
  398.             echo "</a>
  399.             <div class=\"accordion-slide\">
  400.               <div id=\"tab2\" class=\"tab-data\">
  401.                 <div class=\"content-wrap\">
  402.                     ";
  403.             // line 178
  404.             $context['_parent'] = $context;
  405.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'178$this->source); })()), "getVideoList", [], "method"falsefalsetrue178));
  406.             foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  407.                 // line 179
  408.                 echo "                        ";
  409.                 $context["src"] = ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["video"], "getPath", [], "method"falsefalsetrue179), 179$this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["video"], "getFilename", [], "method"falsefalsetrue179), 179$this->source));
  410.                 // line 180
  411.                 echo "                        <div class=\"video_holder\">
  412.                             
  413.                             <video controls>
  414.                                 <source src=\"";
  415.                 // line 183
  416.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["src"]) || array_key_exists("src"$context) ? $context["src"] : (function () { throw new RuntimeError('Variable "src" does not exist.'183$this->source); })()), 183$this->source), "html"nulltrue);
  417.                 echo "\" type=\"video/mp4\">
  418.                             </video>
  419. \t\t\t\t\t\t\t              <a class=\"download-btn button video-download-btn\" data-basename=\"";
  420.                 // line 185
  421.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->basenameFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["video"], "getFilename", [], "method"falsefalsetrue185), 185$this->source)), "html"nulltrue);
  422.                 echo "\" data-brand=\"";
  423.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'185$this->source); })()), 0, [], "array"falsefalsetrue185), "getObject", [], "method"falsefalsetrue185), "getBrandName", [], "method"falsefalsetrue185), 185$this->source), "html"nulltrue);
  424.                 echo "\" download href=\"";
  425.                 echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["video"], "getPath", [], "method"falsefalsetrue185), 185$this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["video"], "getFilename", [], "method"falsefalsetrue185), 185$this->source)), "html"nulltrue);
  426.                 echo "\">Download Video</a>
  427.                         </div>
  428.                      ";
  429.             }
  430.             $_parent $context['_parent'];
  431.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  432.             $context array_intersect_key($context$_parent) + $_parent;
  433.             // line 188
  434.             echo "                </div>
  435.               </div>
  436.             </div>
  437.           </div>
  438.           ";
  439.         }
  440.         // line 193
  441.         echo "
  442.           ";
  443.         // line 194
  444.         if ((twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'194$this->source); })()), "getDocumentList", [], "method"falsefalsetrue194) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'194$this->source); })()), "getDocumentList", [], "method"falsefalsetrue194)) > 0))) {
  445.             // line 195
  446.             echo "          <div class=\"accordion-holder\">
  447.             <a href=\"#\" class=\"accordion-opener\">";
  448.             // line 196
  449.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.video"), "html"nulltrue);
  450.             echo "</a>
  451.             <div class=\"accordion-slide\">
  452.               <div id=\"tab3\" class=\"tab-data\">
  453.                 <div class=\"content-wrap\">                    
  454.                     <table class=\"table table-striped\">
  455.                         <thead>
  456.                             <tr>
  457.                                 <th>Document Name</th>
  458.                                 <th>Document Size</th>
  459.                                 <th>Document Type</th>
  460.                                 <th>Download</th>
  461.                             </tr>
  462.                         </thead>
  463.                         <tbody>
  464.                             ";
  465.             // line 210
  466.             $context['_parent'] = $context;
  467.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'210$this->source); })()), "getDocumentList", [], "method"falsefalsetrue210));
  468.             foreach ($context['_seq'] as $context["_key"] => $context["document"]) {
  469.                 echo "                           
  470.                             <tr>
  471.                                 <td>";
  472.                 // line 212
  473.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["document"], "filename", [], "any"falsefalsetrue212), 212$this->source), "html"nulltrue);
  474.                 echo "</td>
  475.                                 <td>";
  476.                 // line 213
  477.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->formatBytes($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["document"], "getFileSize", [], "method"falsefalsetrue213), 213$this->source)), "html"nulltrue);
  478.                 echo "</td>
  479.                                 <td><i class=\"";
  480.                 // line 214
  481.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->getDocumentIcon($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["document"], "mimeType", [], "any"falsefalsetrue214), 214$this->source)), "html"nulltrue);
  482.                 echo "\" style=\"font-size:24px;\"></i></td> <!-- Example using Font Awesome icons -->
  483.                                 <td><a class=\"download-btn button video-download-btn\" data-basename=\"";
  484.                 // line 215
  485.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->basenameFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["document"], "getFilename", [], "method"falsefalsetrue215), 215$this->source)), "html"nulltrue);
  486.                 echo "\" data-brand=\"";
  487.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'215$this->source); })()), 0, [], "array"falsefalsetrue215), "getObject", [], "method"falsefalsetrue215), "getBrandName", [], "method"falsefalsetrue215), 215$this->source), "html"nulltrue);
  488.                 echo "\" download href=\"";
  489.                 echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["document"], "getPath", [], "method"falsefalsetrue215), 215$this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["document"], "getFilename", [], "method"falsefalsetrue215), 215$this->source)), "html"nulltrue);
  490.                 echo "\">Download</a></td>
  491.                             </tr> 
  492.                             ";
  493.             }
  494.             $_parent $context['_parent'];
  495.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['document'], $context['_parent'], $context['loop']);
  496.             $context array_intersect_key($context$_parent) + $_parent;
  497.             // line 217
  498.             echo "                           
  499.                         </tbody>
  500.                     </table>
  501.                 </div>
  502.               </div>
  503.             </div>
  504.           </div>
  505.           ";
  506.         }
  507.         // line 225
  508.         echo "
  509.           ";
  510.         // line 351
  511.         echo "
  512.           
  513.           
  514.           
  515.         </div>
  516.       </div>
  517.     </div>
  518. </div>
  519. ";
  520.         // line 434
  521.         echo "
  522. ";
  523.         // line 698
  524.         echo "<iframe id=\"my_iframe\" style=\"display:none;\"></iframe>
  525. ";
  526.         
  527.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  528.         
  529.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  530.     }
  531.     /**
  532.      * @codeCoverageIgnore
  533.      */
  534.     public function getTemplateName()
  535.     {
  536.         return "Shop/detail.html.twig";
  537.     }
  538.     /**
  539.      * @codeCoverageIgnore
  540.      */
  541.     public function isTraitable()
  542.     {
  543.         return false;
  544.     }
  545.     /**
  546.      * @codeCoverageIgnore
  547.      */
  548.     public function getDebugInfo()
  549.     {
  550.         return array (  545 => 698,  541 => 434,  529 => 351,  524 => 225,  514 => 217,  501 => 215,  497 => 214,  493 => 213,  489 => 212,  482 => 210,  465 => 196,  462 => 195,  460 => 194,  457 => 193,  450 => 188,  437 => 185,  432 => 183,  427 => 180,  424 => 179,  420 => 178,  413 => 174,  410 => 173,  407 => 172,  400 => 167,  386 => 163,  382 => 161,  376 => 160,  374 => 159,  369 => 156,  365 => 155,  358 => 151,  353 => 149,  348 => 146,  344 => 144,  341 => 143,  337 => 141,  335 => 140,  325 => 132,  318 => 128,  312 => 124,  306 => 122,  300 => 120,  298 => 119,  294 => 118,  281 => 114,  271 => 107,  264 => 102,  261 => 101,  259 => 100,  251 => 95,  242 => 88,  235 => 84,  229 => 80,  223 => 78,  217 => 76,  215 => 75,  211 => 74,  198 => 70,  188 => 63,  181 => 58,  178 => 57,  176 => 56,  167 => 50,  163 => 49,  151 => 40,  147 => 39,  144 => 38,  141 => 37,  134 => 33,  130 => 32,  127 => 31,  124 => 30,  121 => 29,  118 => 28,  115 => 27,  113 => 26,  110 => 25,  108 => 24,  102 => 21,  98 => 20,  91 => 16,  87 => 15,  80 => 10,  76 => 7,  74 => 6,  70 => 4,  60 => 3,  37 => 1,);
  551.     }
  552.     public function getSourceContext()
  553.     {
  554.         return new Source("{% extends 'product.html.twig' %}
  555. {% block content %}
  556. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\">
  557. {% if not document is defined or not document %}
  558.     {% set document = pimcore_document(1) %}
  559. {% endif %}
  560. {# {% set product = product.parent %} #}
  561. <div class=\"breadcrumb-block\">
  562.   <div class=\"container\">
  563.     <!-- breadcrumb of the page -->
  564.     <ul class=\"breadcrumb\">
  565.       <li>
  566.         <a href=\"/{{ locale }}/\" class=\"home\">
  567.           {{ 'espirits.header.home'|trans }}
  568.         </a>
  569.       </li>
  570.       <li>
  571.         <a href=\"{{ pimcore_url({prefix: locale},'product-landing') }}\">
  572.           {{ 'espirits.header.our-products'|trans }}
  573.         </a>
  574.       </li>
  575.       {% set rootCategory = '' %}
  576.       
  577.       {% if product.getCategories() %}
  578.         {% set category = product.getCategories()[0] %}
  579.         {% set parentcategory = category.getParent() %}
  580.         {% if parentcategory and parentcategory.getType() == \"object\" and parentcategory.getClassname() == \"CategoryAlcoholType\" %}
  581.           {% set parenturl = parentcategory.getDetailUrl({\"rootCategory\" : rootCategory, \"document\" : document}) %}
  582.           <li>
  583.             <a href=\"{{ parenturl }}\">
  584.               {{ parentcategory.getName() }}
  585.             </a>
  586.           </li>
  587.         {% endif %}
  588.       {% endif %}
  589.       <li class=\"active\">
  590.         <a href=\"{{ category ? category.getDetailUrl({\"rootCategory\" : rootCategory, \"document\" : document}) : \"\" }}\">
  591.           {{ category ? category.getName() : \"\" }}
  592.         </a>
  593.       </li>
  594.     </ul>
  595.   </div>
  596. </div>
  597. <div class=\"container\">
  598.     <div class=\"heading-holder\">
  599.       <!-- main heading of the page -->
  600.       <h1>{{ product.getOSName() }}</h1>
  601.       <h2 class=\"sub-heading\">{{ product.getContent() }}</h2>
  602.     </div>
  603.     <div class=\"detail-block\">
  604.       <div class=\"row\">
  605.         <div class=\"col-sm-3\">
  606.           <div class=\"widget-block\">            
  607.             {% set brand = product.getBrand() %}
  608.             {% if brand %}
  609.                   <div class=\"widget\" style=\"margin-bottom: 10px;\">
  610.                     <div class=\"heading\">
  611.                       <h2>Image type</h2>
  612.                     </div>
  613.                     <ul class=\"link-list\">                
  614.                       {% set brandimage = brand[0].getObject().getBrandMarkImage() %}                
  615.                       
  616.                       <!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
  617.                     </ul>
  618.                   </div>\t\t
  619.                   <div class=\"widget\">
  620.               <div class=\"logo-link-holder\">
  621.               <a class=\"download-btn button\" href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">{{ 'espirits.detail.viewall'|trans }} {{ brand[0].getObject().getBrandName() }} {{ 'espirits.detail.products'|trans }}</a>
  622.               </div>
  623.                     <div class=\"logo-holder\">
  624.                       <div class=\"logo-wrap\">
  625.                         <a href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">
  626.                           {% if product %}
  627.                             <img src=\"{{ product.DocumentImage.getThumbnail({ width: 221 }) }}\">
  628.                           {% else %}
  629.                           <h2>{{ product.getName() }}</h2>
  630.                           {% endif %}
  631.                         </a>
  632.                       </div>
  633.                     </div>
  634.                     <div class=\"download-logo\" style=\"margin-top: 10px;\">
  635.                     <a class=\"download-btn button\" href=\"{{ product.DocumentImage.getFullPath()|replace({'/var/www/html/web' : ''}) }}\" download>Download Image</a>
  636.               </div>
  637.                   </div>
  638.             {% endif %}
  639.           </div>
  640.         </div>
  641.         <div class=\"col-sm-6\">
  642.           <div class=\"product-info\">
  643.             <div class=\"heading-holder\">
  644.               <h2 class=\"sub-heading\">Description</h2>
  645.             </div>
  646.             {{product.description|raw}} 
  647.           </div>
  648.         </div>
  649.         <div class=\"col-sm-3\">
  650.           <div class=\"widget-block\">            
  651.             {% set brand = product.getBrand() %}
  652.             {% if brand %}
  653.                   <div class=\"widget\" style=\"margin-bottom: 10px;\">
  654.                     <div class=\"heading\">
  655.                       <h2>Image type</h2>
  656.                     </div>
  657.                     <ul class=\"link-list\">                
  658.                       {% set brandimage = brand[0].getObject().getBrandMarkImage() %}                
  659.                       
  660.                       <!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
  661.                     </ul>
  662.                   </div>\t\t
  663.                   <div class=\"widget\">
  664.               <div class=\"logo-link-holder\">
  665.               <a class=\"download-btn button\" href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">{{ 'espirits.detail.viewall'|trans }} {{ brand[0].getObject().getBrandName() }} {{ 'espirits.detail.products'|trans }}</a>
  666.               </div>
  667.                     <div class=\"logo-holder\">
  668.                       <div class=\"logo-wrap\">
  669.                         <a href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">
  670.                           {% if brandimage %}
  671.                             <img src=\"{{ brandimage.getThumbnail({ width: 151 }) }}\">
  672.                           {% else %}
  673.                           <h2>{{ brand[0].getObject().getBrandName() }}</h2>
  674.                           {% endif %}
  675.                         </a>
  676.                       </div>
  677.                     </div>
  678.               <div class=\"download-logo\" style=\"margin-top: 10px;\">
  679.               <a class=\"download-btn button\" href=\"{{ brandimage.getFullPath()|replace({'/var/www/html/web' : ''}) }}\" download>Download Logo</a>
  680.               </div>
  681.                   </div>
  682.             {% endif %}
  683.           </div>
  684.         </div>
  685.       </div>
  686.     </div>    
  687.     <div class=\"tab-holder\">
  688.       <ul class=\"tabset\">        
  689.         <li class=\"first\"><a href=\"#tab1\" ><span>Photos</span></a></li>        
  690.         {% if product.getVideoList() and product.getVideoList()|length > 0 %}
  691.           <li class=\"seventh\"><a href=\"#tab2\"><span>Video</span></a></li>
  692.         {% endif %}
  693.         {% if product.getDocumentList() and product.getDocumentList()|length > 0 %}
  694.           <li class=\"seventh\"><a href=\"#tab3\" class=\"active\"><span>Documents</span></a></li>
  695.         {% endif %}
  696.       </ul>
  697.       <div class=\"tab-content\">
  698.         <div class=\"accordion\">          
  699.           {% if product.getImages() is not empty %}          
  700.           <div class=\"accordion-holder active\">
  701.             <a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.product-photos'|trans }}</a>
  702.             <div id=\"here\" class=\"accordion-slide\">
  703.               <div id=\"tab1\" class=\"tab-data\">
  704.                 <div class=\"content-wrap\">
  705.                     {% for image in product.getImages() %}
  706.                     <div class=\"col-sm-4\">
  707.                       <div class=\"product-post hover-js\">
  708.                         <div class=\"img-holder\">
  709.                           {% if image.getImage() %}
  710.                             {{ image.getImage().getThumbnail('alcoholtype').getHtml({ 'width': 300, 'height': 222 })|raw }}
  711.                           {% endif %}                          
  712.                         </div>
  713.                         <a class=\"download-btn button video-download-btn\" data-basename=\"{{ basename(image.getImage().getFilename()) }}\" data-brand=\"{{ brand[0].getObject().getBrandName() }}\" download href=\"{{ image.getImage().getPath() ~ image.getImage().getFilename() }}\">Download Image</a>
  714.                       </div>
  715.                     </div> 
  716.                     {% endfor %}
  717.                 </div>
  718.               </div>
  719.             </div>
  720.           </div>
  721.           {% endif %}
  722.           {% if product.getVideoList() and product.getVideoList()|length > 0 %}
  723.           <div class=\"accordion-holder\">
  724.             <a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.video'|trans }}</a>
  725.             <div class=\"accordion-slide\">
  726.               <div id=\"tab2\" class=\"tab-data\">
  727.                 <div class=\"content-wrap\">
  728.                     {% for video in product.getVideoList() %}
  729.                         {% set src = video.getPath() ~ video.getFilename() %}
  730.                         <div class=\"video_holder\">
  731.                             
  732.                             <video controls>
  733.                                 <source src=\"{{ src }}\" type=\"video/mp4\">
  734.                             </video>
  735. \t\t\t\t\t\t\t              <a class=\"download-btn button video-download-btn\" data-basename=\"{{ basename(video.getFilename()) }}\" data-brand=\"{{ brand[0].getObject().getBrandName() }}\" download href=\"{{ video.getPath() ~ video.getFilename() }}\">Download Video</a>
  736.                         </div>
  737.                      {% endfor %}
  738.                 </div>
  739.               </div>
  740.             </div>
  741.           </div>
  742.           {% endif %}
  743.           {% if product.getDocumentList() and product.getDocumentList()|length > 0 %}
  744.           <div class=\"accordion-holder\">
  745.             <a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.video'|trans }}</a>
  746.             <div class=\"accordion-slide\">
  747.               <div id=\"tab3\" class=\"tab-data\">
  748.                 <div class=\"content-wrap\">                    
  749.                     <table class=\"table table-striped\">
  750.                         <thead>
  751.                             <tr>
  752.                                 <th>Document Name</th>
  753.                                 <th>Document Size</th>
  754.                                 <th>Document Type</th>
  755.                                 <th>Download</th>
  756.                             </tr>
  757.                         </thead>
  758.                         <tbody>
  759.                             {% for document in product.getDocumentList() %}                           
  760.                             <tr>
  761.                                 <td>{{document.filename}}</td>
  762.                                 <td>{{format_bytes(document.getFileSize())}}</td>
  763.                                 <td><i class=\"{{ document_icon(document.mimeType) }}\" style=\"font-size:24px;\"></i></td> <!-- Example using Font Awesome icons -->
  764.                                 <td><a class=\"download-btn button video-download-btn\" data-basename=\"{{ basename(document.getFilename()) }}\" data-brand=\"{{ brand[0].getObject().getBrandName() }}\" download href=\"{{ document.getPath() ~ document.getFilename() }}\">Download</a></td>
  765.                             </tr> 
  766.                             {% endfor %}                           
  767.                         </tbody>
  768.                     </table>
  769.                 </div>
  770.               </div>
  771.             </div>
  772.           </div>
  773.           {% endif %}
  774.           {# {% if sizeVariants is not empty %}
  775.           <div class=\"accordion-holder active\">
  776.             <a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.product-photos'|trans }}</a>
  777.             <div id=\"here\" class=\"accordion-slide\">
  778.               <div id=\"tab10\" class=\"tab-data\">
  779.                 <div class=\"content-wrap\">
  780.                   <div class=\"row\">
  781.                     <div class=\"col-sm-6 col-md-5\">
  782.                       <div class=\"wrap\">
  783.                         <h3>{{ 'espirits.detail.bottle-sizes'|trans }}</h3>
  784.                         <div id=\"bottle-sizes\">
  785.                           <ul class=\"type-list\">
  786.                             
  787.                             {% set firstimage = null %}
  788.                             {% if sizeVariants is not empty %}
  789.                               {% for variant in sizeVariants %}
  790.                               
  791.                                 {% set countries = variant.getCountryAvailabilityList() %}
  792.                                 {% set continue = 0 %}
  793.                                 {% set break = false %}
  794.                                 {% for lcountry in countries %}
  795.                                   {% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
  796.                                     {% set continue = 1 %}
  797.                                     {% set break = true %}
  798.                                   {% endif %}
  799.                                 {% endfor %}
  800.                                {% if continue is not empty %}
  801.                                 {% if variant.getBottlePhoto() is not empty %}
  802.                                     {% if not firstimage %}
  803.                                         {% set firstimage = variant.getBottlePhoto() %}
  804.                                         <li id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"active\">
  805.                                             <a href=\"#\"><span>{{ variant.getBottleSize() }}</span></a>
  806.                                         </li>
  807.                                     {% else %}
  808.                                         <li id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\">
  809.                                             <a href=\"#\"><span>{{ variant.getBottleSize() }}</span></a>
  810.                                         </li>
  811.                                     {% endif %}
  812.                                 {% else %}
  813.                                     <li id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\">
  814.                                         <a class=\"disabled\"><span>{{ variant.getBottleSize() }}</span></a>
  815.                                     </li>
  816.                                 {% endif %}
  817.                             {% endif %}
  818.                               {% endfor %}
  819.                             {% endif %}
  820.                           </ul>
  821.                         </div>
  822.                       </div>
  823.                     </div>
  824.                     <div class=\"col-sm-6 col-md-7\">
  825.                       {% if sizeVariants is not empty %}
  826.                         <h3>Bottle Details</h3>
  827.                         <div id=\"image-block\">
  828.                           {% set i = 1 %}
  829.                           {% for variant in sizeVariants %} 
  830.                             {% set countries = variant.getCountryAvailabilityList() %}
  831.                             {% set continue = 0 %}
  832.                             {% set break = false %}
  833.                             {% for lcountry in countries %}
  834.                               {% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
  835.                                 {% set continue = 1 %}
  836.                                 {% set break = true %}
  837.                               {% endif %}
  838.                             {% endfor %}
  839.                             {% if continue is not empty %}
  840.                               <div id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"{{ (i == 1) ? 'active' : '' }}\">
  841.                                
  842.                                 <div class=\"extra-info\">
  843.                                   <dl>
  844.                                     <dt>GTIN</dt>
  845.                                     <dd>{{ variant.getGTIN()|default('N/A') }}</dd>
  846.                                   </dl>
  847.                                   {% if variant.getBottleMaterial() is not empty %}
  848.                                   <dl>
  849.                                     <dt>Material</dt>
  850.                                     <dd>{{ (variant.getBottleMaterial() is not empty) ? variant.getBottleMaterial() : 'N/A' }}</dd>
  851.                                     
  852.                                   </dl>
  853.                                   {% endif %}
  854.                                    
  855.                                   {% set htArray = variant.getBottleHeight()|split(' ') %}
  856.                                   {% set wdArray = variant.getBottleWidth()|split(' ') %}
  857.                                   {% set dpArray = variant.getBottleDepth()|split(' ') %}
  858.                                  
  859.                                   {% if htArray is not empty and wdArray is not empty and dpArray is not empty %}
  860.                                     {% if htArray[0] and wdArray[0] and dpArray[0] %}
  861.                                     <dl>
  862.                                       <dt>Dimension</dt>
  863.                                         <dd>{{ htArray[0] ~ ' x ' ~ wdArray[0] ~ ' x ' ~ dpArray[0] }} IN</dd>
  864.                                     </dl>
  865.                                     {% endif %}
  866.                                   {% endif %}
  867.                                   
  868.                                   {% if variant.getBottleWeight() is not empty %}
  869.                                   <dl>
  870.                                     <dt>Weight</dt>
  871.                                     <dd>{{ (variant.getBottleWeight() is not empty) ? variant.getBottleWeight() : 'N/A' }}</dd>
  872.                                   </dl>
  873.                                   {% endif %}
  874.                                 </div>
  875.                               </div>
  876.                             {% endif %}
  877.                             {% set i = i+1 %} 
  878.                           {% endfor %}
  879.                         </div>
  880.                       {% endif %}
  881.                     </div>
  882.                   </div>
  883.                 </div>
  884.               </div>
  885.             </div>
  886.           </div>
  887.           {% endif %} #}
  888.           
  889.           
  890.           
  891.         </div>
  892.       </div>
  893.     </div>
  894. </div>
  895. {# {% for variant in sizeVariants %}
  896.   {% set countries = variant.getCountryAvailabilityList() %}
  897.   {% set continue = 0 %}
  898.   {% set break = false %}
  899.   {% for lcountry in countries %}
  900.       {% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
  901.         {% set continue = 1 %}
  902.         {% set break = true %}
  903.       {% endif %}
  904.   {% endfor %}
  905.   {% if continue is not empty %}
  906.       <!-- Bottle images Modal -->
  907.       <div id=\"downloadModal_{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"downloadModal modal fade\" role=\"dialog\">
  908.         <div class=\"modal-dialog\">
  909.           <!-- Modal content-->
  910.           <div class=\"modal-content\">
  911.             <div class=\"modal-header\">
  912.               <button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
  913.               <h4 class=\"modal-title\">Download Image Assets</h4>
  914.             </div>
  915.             <div class=\"modal-body\">
  916.           <form id=\"download_{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
  917.           <h3>{{ product.getOSName() ~ '-' ~ variant.getBottleSize() }}</h3>
  918.           <label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
  919.           <select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
  920.             <option data-img-src=\"{{ variant.getBottlePhoto().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ variant.getBottlePhoto().getId() }}\">{{ variant.getBottlePhoto().getKey() }}</option>
  921.                 
  922.               {% set images = variant.getAdditionalImages() %}
  923.               {% for item in images %}
  924.                 {% if item['AdditionalPhoto'] is not empty %}
  925.                   {% set asset = pimcore_asset_by_path(item['AdditionalPhoto'].getData()) %}
  926.                   <option data-img-src=\"{{ asset.getThumbnail(\"eSpirits_Detail_Thumb\") }}\" value=\"{{ asset.getId() }}\">{{ asset.getKey() }}</option>
  927.                 {% endif %}  
  928.               {% endfor %}
  929.           </select>
  930.             <div class=\"form-group\">
  931.               <label class=\"control-label\" for=\"photographyfilefileformat_{{ variant.getBottleSize()|replace({' ': ''}) }}\">{{ 'checkout.photographyfileformat'|trans }}</label>
  932.               <div>
  933.                 <input checked type=\"radio\" id=\"photographyfileformatPNG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
  934.                 <label for=\"photographyfileformatPNG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" style=\"margin-right: 8px;\"> PNG </label>
  935.               </div>
  936.               <div>
  937.                 <input type=\"radio\" id=\"photographyfileformatJPG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
  938.                 <label for=\"photographyfileformatJPG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" style=\"margin-right: 8px;\"> JPG </label>
  939.               </div>
  940.             </div>
  941.             <div class=\"form-group\">
  942.               <label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
  943.               <div>
  944.                 <select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
  945.                     <option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
  946.                     <option value=\"eSpirits_2\">750 x 1500 (px)</option>
  947.                     <option value=\"eSpirits_3\">1000 x 1000 (px)</option>
  948.                     <option value=\"eSpirits_4\">1500 x 1500 (px)</option>
  949.                     <option value=\"eSpirits_5\">2000 x 2000 (px)</option>
  950.                 </select>
  951.               </div>
  952.             </div>\t
  953.             </div>
  954.           <input type=\"hidden\" name=\"order_type\" value=\"direct\">
  955.           <input type=\"hidden\" name=\"product_id\" value=\"{{ variant.getId() }}\">
  956.             <div class=\"modal-footer\">
  957.               <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
  958.           <input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
  959.           </form>
  960.             </div>
  961.           </div>
  962.         </div>
  963.       </div>
  964.   {% endif %}    
  965. {% endfor %} #}
  966. {# <div id=\"downloadModal_Lifestyle\" class=\"downloadModal modal fade\" role=\"dialog\">
  967.   <div class=\"modal-dialog\">
  968.     
  969.     <div class=\"modal-content\">
  970.       <div class=\"modal-header\">
  971.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '&times;'|raw }}</button>
  972.         <h4 class=\"modal-title\">Download Lifestyle Assets</h4>
  973.       </div>
  974.       <div class=\"modal-body\">
  975.         <form id=\"download_Lifestyle\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
  976.           <h3>{{ product.getOSName() }}</h3>
  977.           <label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
  978.           <select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
  979.             {% if product.getLifestylePhotoList() is not empty %}
  980.               {% set x =0 %}
  981.               {% for item in product.getLifestylePhotoList().getItems() %}
  982.                 {% if item.getPhotoLifestyle() is not empty %}
  983.                   <option data-img-src=\"{{ item.getPhotoLifestyle().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ item.getPhotoLifestyle().getId() }}\">{{ item.getPhotoLifestyle().getKey() }}</option>
  984.                 {% endif %}
  985.                 {% set x = x+1 %}
  986.               {% endfor %}
  987.             {% endif %}
  988.           </select>
  989.           <div class=\"form-group\">
  990.             <label class=\"control-label\" for=\"datafileformat_lifestyle\">{{ 'checkout.photographyfileformat'|trans }}</label>
  991.             <div>
  992.               <input checked type=\"radio\" id=\"photographyfileformatPNG_Lifestyle\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
  993.               <label for=\"photographyfileformatPNG_Lifestyle\" style=\"margin-right: 8px;\"> PNG </label>
  994.             </div>
  995.             <div>
  996.               <input type=\"radio\" id=\"photographyfileformatJPG_Lifestyle\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
  997.               <label for=\"photographyfileformatJPG_Lifestyle\" style=\"margin-right: 8px;\"> JPG </label>
  998.             </div>
  999.           </div>
  1000.           <div class=\"form-group\">
  1001.             <label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
  1002.             <div>
  1003.               <select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
  1004.                   <option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
  1005.                   <option value=\"eSpirits_2\">750 x 1500 (px)</option>
  1006.                   <option value=\"eSpirits_3\">1000 x 1000 (px)</option>
  1007.                   <option value=\"eSpirits_4\">1500 x 1500 (px)</option>
  1008.                   <option value=\"eSpirits_5\">2000 x 2000 (px)</option>
  1009.               </select>
  1010.             </div>
  1011.           </div>\t
  1012.           </div>
  1013.           <input type=\"hidden\" name=\"order_type\" value=\"direct\">
  1014.           <input type=\"hidden\" name=\"product_id\" value=\"{{product.id}}\">
  1015.           <div class=\"modal-footer\">
  1016.             <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
  1017.           <input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
  1018.         </form>
  1019.       </div>
  1020.     </div>
  1021.   </div>
  1022. </div>
  1023. <div id=\"downloadModal_Infographics\" class=\"downloadModal modal fade\" role=\"dialog\">
  1024.   <div class=\"modal-dialog\">    
  1025.     <div class=\"modal-content\">
  1026.       <div class=\"modal-header\">
  1027.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '&times;'|raw }}</button>
  1028.         <h4 class=\"modal-title\">Download Infographics</h4>
  1029.       </div>
  1030.       <div class=\"modal-body\">
  1031.         <form id=\"download_Infographics\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
  1032.           <h3>{{ product.getOSName() }}</h3>
  1033.           <label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
  1034.           <select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
  1035.             {% if product.getInfographicsPhotoList() is not empty %}
  1036.               {% set x =0 %}
  1037.               {% for item in product.getInfographicsPhotoList().getItems() %}
  1038.                 {% if item.getPhotoLifestyle() is not empty %}
  1039.                   <option data-img-src=\"{{ item.getPhotoLifestyle().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ item.getPhotoLifestyle().getId() }}\">{{ item.getPhotoLifestyle().getKey() }}</option>
  1040.                 {% endif %}
  1041.                 {% set x = x+1 %}
  1042.               {% endfor %}
  1043.             {% endif %}
  1044.           </select>
  1045.           <div class=\"form-group\">
  1046.             <label class=\"control-label\" for=\"datafileformat_infographics\">{{ 'checkout.photographyfileformat'|trans }}</label>
  1047.             <div>
  1048.               <input checked type=\"radio\" id=\"photographyfileformatPNG_Infographics\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
  1049.               <label for=\"photographyfileformatPNG_Infographics\" style=\"margin-right: 8px;\"> PNG </label>
  1050.             </div>
  1051.             <div>
  1052.               <input type=\"radio\" id=\"photographyfileformatJPG_Infographics\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
  1053.               <label for=\"photographyfileformatJPG_Infographics\" style=\"margin-right: 8px;\"> JPG </label>
  1054.             </div>
  1055.           </div>
  1056.           <div class=\"form-group\">
  1057.             <label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
  1058.             <div>
  1059.               <select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
  1060.                   <option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
  1061.                   <option value=\"eSpirits_2\">750 x 1500 (px)</option>
  1062.                   <option value=\"eSpirits_3\">1000 x 1000 (px)</option>
  1063.                   <option value=\"eSpirits_4\">1500 x 1500 (px)</option>
  1064.                   <option value=\"eSpirits_5\">2000 x 2000 (px)</option>
  1065.               </select>
  1066.             </div>
  1067.           </div>\t
  1068.           </div>
  1069.           <input type=\"hidden\" name=\"order_type\" value=\"direct\">
  1070.           <input type=\"hidden\" name=\"product_id\" value=\"{{product.id}}\">
  1071.           <div class=\"modal-footer\">
  1072.             <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
  1073.           <input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
  1074.         </form>
  1075.       </div>
  1076.     </div>
  1077.   </div>
  1078. </div>
  1079. <div id=\"downloadModal_Recipes\" class=\"downloadModal modal fade\" role=\"dialog\">
  1080.   <div class=\"modal-dialog\">
  1081.     
  1082.     <div class=\"modal-content\">
  1083.       <div class=\"modal-header\">
  1084.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '&times;'|raw }}</button>
  1085.         <h4 class=\"modal-title\">Download Recipes</h4>
  1086.       </div>
  1087.       <div class=\"modal-body\">
  1088.         <form id=\"download_Recipes\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
  1089.           <h3>{{ product.getOSName() }}</h3>
  1090.           <label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
  1091.           <select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
  1092.             {% if recipes %}
  1093.               {% set x = 0 %}
  1094.               
  1095.               {% for recipe in recipes %}
  1096.                 {% if recipe.getObject().getRecipePhoto() is not empty %}
  1097.                 
  1098.                   <option data-img-src=\"{{ recipe.getObject().getRecipePhoto().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ recipe.getObject().getId() }}\">{{ recipe.getObject().getRecipeName() }}</option>
  1099.                 {% endif %}
  1100.                 {% set x = x+1 %}
  1101.               {% endfor %}
  1102.             {% endif %}
  1103.           </select>
  1104.           <div class=\"form-group\">
  1105.             <label class=\"control-label\" for=\"datafileformat_Recipes\">{{ 'checkout.photographyfileformat'|trans }}</label>
  1106.             <div>
  1107.               <input checked type=\"radio\" id=\"photographyfileformatPNG_Recipes\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
  1108.               <label for=\"photographyfileformatPNG_Recipes\" style=\"margin-right: 8px;\"> PNG </label>
  1109.             </div>
  1110.             <div>
  1111.               <input type=\"radio\" id=\"photographyfileformatJPG_Recipes\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
  1112.               <label for=\"photographyfileformatJPG_Recipes\" style=\"margin-right: 8px;\"> JPG </label>
  1113.             </div>
  1114.           </div>
  1115.           <div class=\"form-group\">
  1116.             <label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
  1117.             <div>
  1118.               <select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
  1119.                   <option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
  1120.                   <option value=\"eSpirits_2\">750 x 1500 (px)</option>
  1121.                   <option value=\"eSpirits_3\">1000 x 1000 (px)</option>
  1122.                   <option value=\"eSpirits_4\">1500 x 1500 (px)</option>
  1123.                   <option value=\"eSpirits_5\">2000 x 2000 (px)</option>
  1124.               </select>
  1125.             </div>
  1126.           </div>\t
  1127.           </div>
  1128.           <input type=\"hidden\" name=\"order_type\" value=\"recipes\">
  1129.           <input type=\"hidden\" name=\"product_id\" value=\"{{ product.getId() }}\">
  1130.           <div class=\"modal-footer\">
  1131.             <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
  1132.           <input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
  1133.         </form>
  1134.       </div>
  1135.     </div>
  1136.   </div>
  1137. </div>
  1138. <div id=\"downloadModal_digitalMarketing\" class=\"downloadModal modal fade\" role=\"dialog\">
  1139.   <div class=\"modal-dialog\">    
  1140.     <div class=\"modal-content\">
  1141.       <div class=\"modal-header\">
  1142.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '&times;'|raw }}</button>
  1143.         <h4 class=\"modal-title\">Download Programming Assets Assets</h4>
  1144.       </div>
  1145.       <div class=\"modal-body\">
  1146. \t  <form id=\"download_digitalMarketing\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
  1147. \t\t<h3>{{ product.getName() }}</h3>
  1148. \t\t<label class=\"control-label\">Select Images</label>
  1149. \t\t<select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
  1150. \t\t{% for x in 1..5 %}    
  1151.       {% if attribute(product, 'getAssets'~x) is not empty %}
  1152.           {% for item in attribute(product, 'getAssets'~x) %}
  1153.               {% if attribute(item, 'Asset'~x) %} 
  1154.                   {% set asset = attribute(item, 'Asset'~x) %}
  1155.                   {% if asset %}
  1156.                       {% set asset = asset.getData() %}
  1157.                       <option data-img-src=\"{{ asset.getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ asset.getId() }}\">{{ asset.getFilename() }}</option>
  1158.                   {% endif %}
  1159.               {% endif %}
  1160.           {% endfor %}
  1161.       {% endif %}
  1162.     {% endfor %}\t\t  
  1163. \t\t</select>
  1164. \t\t\t<div class=\"form-group\">
  1165. \t\t\t\t<label class=\"control-label\" for=\"photographyfilefileformat_digitalMarketing\">{{ 'checkout.photographyfileformat'|trans }}</label>
  1166. \t\t\t\t<div>
  1167. \t\t\t\t\t<input checked type=\"radio\" id=\"photographyfileformatOriginal_digitalMarketing\" name=\"photographyfileformat\" placeholder=\"ORIGINAL\" value=\"ORIGINAL\" />
  1168. \t\t\t\t\t<label for=\"photographyfileformatOriginal_digitalMarketing\" style=\"margin-right: 8px;\"> Original </label>
  1169. \t\t\t\t</div>
  1170. \t\t\t\t<div>
  1171. \t\t\t\t\t<input type=\"radio\" id=\"photographyfileformatPNG_digitalMarketing\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
  1172. \t\t\t\t\t<label for=\"photographyfileformatPNG_digitalMarketing\" style=\"margin-right: 8px;\"> PNG </label>
  1173. \t\t\t\t</div>
  1174. \t\t\t\t<div>
  1175. \t\t\t\t\t<input type=\"radio\" id=\"photographyfileformatJPG_digitalMarketing\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
  1176. \t\t\t\t\t<label for=\"photographyfileformatJPG_digitalMarketing\" style=\"margin-right: 8px;\"> JPG </label>
  1177. \t\t\t\t</div>
  1178. \t\t\t</div>
  1179. \t\t\t<div class=\"form-group\">
  1180. \t\t\t\t<label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
  1181. \t\t\t\t<div>
  1182. \t\t\t\t\t<select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
  1183. \t\t\t\t\t\t\t<option value=\"eSpirits_1\">Original - Largest Image Size</option>
  1184. \t\t\t\t\t\t\t<option value=\"eSpirits_2\">750 x 1500 (px)</option>
  1185. \t\t\t\t\t\t\t<option value=\"eSpirits_3\">1000 x 1000 (px)</option>
  1186. \t\t\t\t\t\t\t<option value=\"eSpirits_4\">1500 x 1500 (px)</option>
  1187. \t\t\t\t\t\t\t<option value=\"eSpirits_5\">2000 x 2000 (px)</option>
  1188. \t\t\t\t\t</select>
  1189. \t\t\t\t</div>
  1190. \t\t\t</div>\t
  1191.       </div>
  1192. \t  <input type=\"hidden\" name=\"order_type\" value=\"direct\">
  1193. \t  <input type=\"hidden\" name=\"product_id\" value=\"{{ product.getId() }}\">
  1194.       <div class=\"modal-footer\">
  1195.         <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>
  1196. \t\t<input type=\"submit\" class=\"btn btn-default\" value=\"Download Images\">
  1197. \t\t</form>
  1198.       </div>
  1199.     </div>
  1200.   </div>
  1201. </div>
  1202. <div id=\"downloadLoading\" class=\"downloadLoading modal fade\" role=\"dialog\">
  1203.   <div class=\"modal-dialog\">
  1204.     
  1205.     <div class=\"modal-content\">
  1206. \t  <div class=\"modal-header\">
  1207.         <h4 class=\"modal-title\">{{ 'espirits.detail.generatingdownload'|trans }}</h4>
  1208.       </div>
  1209.       <div class=\"modal-body\">
  1210. \t\t<div class=\"loading\"></div>
  1211.       </div>
  1212.       <div class=\"modal-footer\">
  1213.         <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
  1214.       </div>
  1215.     </div>
  1216.   </div>
  1217. </div> #}
  1218. <iframe id=\"my_iframe\" style=\"display:none;\"></iframe>
  1219. {% endblock %}
  1220. ""Shop/detail.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Shop/detail.html.twig");
  1221.     }
  1222.     
  1223.     public function checkSecurity()
  1224.     {
  1225.         static $tags = array("if" => 6"set" => 7"for" => 155);
  1226.         static $filters = array("escape" => 15"trans" => 16"replace" => 84"raw" => 95"length" => 140);
  1227.         static $functions = array("pimcore_document" => 7"pimcore_url" => 20"basename" => 163"format_bytes" => 213"document_icon" => 214);
  1228.         try {
  1229.             $this->sandbox->checkSecurity(
  1230.                 ['if''set''for'],
  1231.                 ['escape''trans''replace''raw''length'],
  1232.                 ['pimcore_document''pimcore_url''basename''format_bytes''document_icon']
  1233.             );
  1234.         } catch (SecurityError $e) {
  1235.             $e->setSourceContext($this->source);
  1236.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1237.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1238.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1239.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1240.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1241.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1242.             }
  1243.             throw $e;
  1244.         }
  1245.     }
  1246. }