var/cache/dev/twig/32/32c8cac9453ce5fc19594dd5a38fac95.php line 38

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. /* Frontend/Index/index.html.twig */
  14. class __TwigTemplate_49a39e03203548342c922814642992c8 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.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "Frontend/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/Index/index.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/Index/index.html.twig"));
  38.         $this->parent $this->loadTemplate("Frontend/base.html.twig""Frontend/Index/index.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 3
  54.         echo "\t
  55. \t
  56. <div class='containerr p-t-25'>
  57. \t<div id=\"homeSlides\" class=\"carousel slide\" data-ride=\"carousel\">
  58. \t  <div class=\"carousel-inner\">\t  \t
  59. \t\t  ";
  60.         // line 9
  61.         $context['_parent'] = $context;
  62.         $context['_seq'] = twig_ensure_traversable((isset($context["slides"]) || array_key_exists("slides"$context) ? $context["slides"] : (function () { throw new RuntimeError('Variable "slides" does not exist.'9$this->source); })()));
  63.         $context['loop'] = [
  64.           'parent' => $context['_parent'],
  65.           'index0' => 0,
  66.           'index'  => 1,
  67.           'first'  => true,
  68.         ];
  69.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  70.             $length count($context['_seq']);
  71.             $context['loop']['revindex0'] = $length 1;
  72.             $context['loop']['revindex'] = $length;
  73.             $context['loop']['length'] = $length;
  74.             $context['loop']['last'] = === $length;
  75.         }
  76.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  77.             echo "\t\t  
  78. \t\t\t    ";
  79.             // line 10
  80.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse10) == 1)) {
  81.                 // line 11
  82.                 echo "\t\t\t    \t";
  83.                 $context["activeFlag"] = "active";
  84.                 // line 12
  85.                 echo "\t\t\t    ";
  86.             } else {
  87.                 // line 13
  88.                 echo "\t\t\t    \t";
  89.                 $context["activeFlag"] = "";
  90.                 echo "\t\t    
  91. \t\t\t    ";
  92.             }
  93.             // line 15
  94.             echo "\t\t  \t    <div class=\"carousel-item ";
  95.             echo twig_escape_filter($this->env, (isset($context["activeFlag"]) || array_key_exists("activeFlag"$context) ? $context["activeFlag"] : (function () { throw new RuntimeError('Variable "activeFlag" does not exist.'15$this->source); })()), "html"nulltrue);
  96.             echo " \" data-interval=\"10000\" >
  97. \t\t\t  \t  ";
  98.             // line 16
  99.             if (((twig_get_attribute($this->env$this->source$context["item"], "text1", [], "any"falsefalsefalse16) == "") && (twig_get_attribute($this->env$this->source$context["item"], "text2", [], "any"falsefalsefalse16) == ""))) {
  100.                 echo "  
  101. \t\t\t      <div class=\"d-block w-100\" style=\"background-image:url('";
  102.                 // line 17
  103.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "imagePath", [], "any"falsefalsefalse17), "html"nulltrue);
  104.                 echo "');background-size:cover;background-repeat:no-repeat;background-position:top center;width:100%;height:700px;\" alt=\"\">
  105. \t\t\t\t  ";
  106.             } else {
  107.                 // line 19
  108.                 echo "\t\t\t      <div class=\"d-block w-100\" style=\"background:linear-gradient(0deg,rgba(0, 0, 0, ";
  109.                 if ((twig_get_attribute($this->env$this->source$context["item"], "gradientLower", [], "any"falsefalsefalse19) != "")) {
  110.                     echo " 0.";
  111.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "gradientLower", [], "any"falsefalsefalse19), "html"nulltrue);
  112.                 } else {
  113.                     echo "0.0";
  114.                 }
  115.                 echo "),rgba(0, 0, 0,";
  116.                 if ((twig_get_attribute($this->env$this->source$context["item"], "gradientHigher", [], "any"falsefalsefalse19) != "")) {
  117.                     echo " 0.";
  118.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "gradientHigher", [], "any"falsefalsefalse19), "html"nulltrue);
  119.                 } else {
  120.                     echo "0.0";
  121.                 }
  122.                 echo ")), url('";
  123.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "imagePath", [], "any"falsefalsefalse19), "html"nulltrue);
  124.                 echo "');background-size:cover;background-repeat:no-repeat;background-position:top center;width:100%;height:700px;\" alt=\"\">\t\t\t\t  
  125. \t\t\t\t  ";
  126.             }
  127.             // line 21
  128.             echo "\t\t\t\t    <div class=\"container h-full\">
  129. \t\t\t\t\t        
  130. \t\t\t\t\t\t<div class=\"flex-col-l-m h-full p-t-100 p-b-30 respon5\">
  131. \t\t\t\t\t\t\t<div class=\"animated fadeIn \" style=\"width:100%;";
  132.             // line 24
  133.             if ((twig_get_attribute($this->env$this->source$context["item"], "textAlignment", [], "any"falsefalsefalse24) == "")) {
  134.                 echo "text-align:left !important;";
  135.             } else {
  136.                 echo "text-align:";
  137.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "textAlignment", [], "any"falsefalsefalse24), "html"nulltrue);
  138.                 echo " !important;";
  139.             }
  140.             echo "\">
  141. \t\t\t\t\t\t\t\t<span class=\"ltext-101 cl2 respon2\" style='color:#";
  142.             // line 25
  143.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "text1color", [], "any"falsefalsefalse25), "html"nulltrue);
  144.             echo " !important;'>
  145. \t\t\t\t\t\t\t\t\t";
  146.             // line 26
  147.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "text1", [], "any"falsefalsefalse26), "html"nulltrue);
  148.             echo "
  149. \t\t\t\t\t\t\t\t</span>
  150. \t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t
  151. \t\t\t\t\t\t\t<div class=\"animated fadeIn \" style=\"width:100%;";
  152.             // line 29
  153.             if ((twig_get_attribute($this->env$this->source$context["item"], "textAlignment", [], "any"falsefalsefalse29) == "")) {
  154.                 echo "text-align:left !important;";
  155.             } else {
  156.                 echo "text-align:";
  157.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "textAlignment", [], "any"falsefalsefalse29), "html"nulltrue);
  158.                 echo " !important;";
  159.             }
  160.             echo "\">
  161. \t\t\t\t\t\t\t\t<h2 class=\"ltext-201 cl2 p-t-19 p-b-43 respon1\" style='color:#";
  162.             // line 30
  163.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "text2color", [], "any"falsefalsefalse30), "html"nulltrue);
  164.             echo " !important;'>
  165. \t\t\t\t\t\t\t\t\t";
  166.             // line 31
  167.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "text2", [], "any"falsefalsefalse31), "html"nulltrue);
  168.             echo "
  169. \t\t\t\t\t\t\t\t</h2>
  170. \t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  171. \t\t\t\t\t\t</div>
  172. \t\t\t\t\t\t
  173. \t\t\t\t\t\t\t\t\t\t\t
  174. \t\t\t\t    </div>\t\t
  175. \t\t\t\t      
  176. \t\t\t      </div>
  177. \t\t\t    </div>\t\t  \t\t\t    
  178. \t\t  ";
  179.             ++$context['loop']['index0'];
  180.             ++$context['loop']['index'];
  181.             $context['loop']['first'] = false;
  182.             if (isset($context['loop']['length'])) {
  183.                 --$context['loop']['revindex0'];
  184.                 --$context['loop']['revindex'];
  185.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  186.             }
  187.         }
  188.         $_parent $context['_parent'];
  189.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  190.         $context array_intersect_key($context$_parent) + $_parent;
  191.         // line 42
  192.         echo "\t\t  \t\t
  193. \t  </div>
  194. \t  <a class=\"carousel-control-prev\" href=\"#homeSlides\" role=\"button\" data-slide=\"prev\">
  195. \t    <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
  196. \t    <span class=\"sr-only\">Anterior</span>
  197. \t  </a>
  198. \t  <a class=\"carousel-control-next\" href=\"#homeSlides\" role=\"button\" data-slide=\"next\">
  199. \t    <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
  200. \t    <span class=\"sr-only\">Siguiente</span>
  201. \t  </a>
  202. \t</div>
  203. </div>\t
  204. <!---- MARCAS ---->
  205. ";
  206.         // line 60
  207.         if ((twig_length_filter($this->env, (isset($context["brands"]) || array_key_exists("brands"$context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.'60$this->source); })())) > 0)) {
  208.             // line 61
  209.             echo "\t";
  210.             if (((twig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'61$this->source); })()), "brandTitle", [], "any"falsefalsefalse61) != "") && (twig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'61$this->source); })()), "brandSubtitle", [], "any"falsefalsefalse61) != ""))) {
  211.                 // line 62
  212.                 echo "\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  213. \t\t\t<div class='col-12'>
  214. \t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
  215. \t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
  216. \t\t\t\t\t\t";
  217.                 // line 66
  218.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'66$this->source); })()), "brandTitle", [], "any"falsefalsefalse66), "html"nulltrue);
  219.                 echo "
  220. \t\t\t\t\t</h2>
  221. \t\t\t\t\t<p>";
  222.                 // line 68
  223.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'68$this->source); })()), "brandSubtitle", [], "any"falsefalsefalse68), "html"nulltrue);
  224.                 echo "</p>
  225. \t\t\t\t</section>
  226. \t\t\t</div>\t
  227. \t\t</div>
  228. \t";
  229.             }
  230.             // line 72
  231.             echo "\t
  232. <!-- Banner -->
  233. <div class=\"sec-banner bg0 p-t-30\">
  234. \t<div class=\"container\">
  235. \t\t<div class=\"row\">
  236. \t\t\t\t
  237. \t\t\t";
  238.             // line 78
  239.             $context['_parent'] = $context;
  240.             $context['_seq'] = twig_ensure_traversable((isset($context["brands"]) || array_key_exists("brands"$context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.'78$this->source); })()));
  241.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  242.                 // line 79
  243.                 echo "\t\t\t\t";
  244.                 if ((twig_get_attribute($this->env$this->source$context["item"], "featured", [], "any"falsefalsefalse79) == 1)) {
  245.                     // line 80
  246.                     echo "\t\t\t\t\t";
  247.                     if ((twig_get_attribute($this->env$this->source$context["item"], "brand_count", [], "any"falsefalsefalse80) > 0)) {
  248.                         // line 81
  249.                         echo "\t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
  250. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  251. \t\t\t\t\t\t\t<div class=\"block1 wrap-pic-w bkg_block\" style='background-size:cover !important;background:linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), url(\"";
  252.                         // line 83
  253.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/brand/" twig_get_attribute($this->env$this->source$context["item"], "image_path", [], "any"falsefalsefalse83))), "html"nulltrue);
  254.                         echo "\");'>\t\t\t
  255. \t\t\t\t\t\t\t\t<a href=\"";
  256.                         // line 84
  257.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_product", ["brand" => twig_get_attribute($this->env$this->source$context["item"], "brand_id", [], "any"falsefalsefalse84), "slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'84$this->source); })())]), "html"nulltrue);
  258.                         echo "\" class=\"block1-txt ab-t-l s-full flex-col-l-sb p-lr-38 p-tb-34 trans-03 respon3\">
  259. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
  260. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
  261. \t\t\t\t\t\t\t\t\t\t\t";
  262.                         // line 87
  263.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse87), "html"nulltrue);
  264.                         echo "
  265. \t\t\t\t\t\t\t\t\t\t</span>\t\t\t
  266. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-info stext-102 trans-04\">\t\t\t\t\t\t\t\t\t
  267. \t\t\t\t\t\t\t\t\t\t\t";
  268.                         // line 90
  269.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "brand_count", [], "any"falsefalsefalse90), "html"nulltrue);
  270.                         echo " ";
  271.                         if ((twig_get_attribute($this->env$this->source$context["item"], "brand_count", [], "any"falsefalsefalse90) != 1)) {
  272.                             echo "Productos";
  273.                         } else {
  274.                             echo "Producto";
  275.                         }
  276.                         echo "\t\t\t\t\t\t\t\t\t
  277. \t\t\t\t\t\t\t\t\t\t</span>
  278. \t\t\t\t\t\t\t\t\t</div>\t\t\t
  279. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
  280. \t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
  281. \t\t\t\t\t\t\t\t\t\t\tVer más
  282. \t\t\t\t\t\t\t\t\t\t</div>
  283. \t\t\t\t\t\t\t\t\t</div>
  284. \t\t\t\t\t\t\t\t</a>
  285. \t\t\t\t\t\t\t</div>
  286. \t\t\t\t\t\t\t
  287. \t\t\t\t\t\t</div>
  288. \t\t\t\t\t";
  289.                     }
  290.                     // line 103
  291.                     echo "\t\t\t\t";
  292.                 }
  293.                 // line 104
  294.                 echo "\t\t\t";
  295.             }
  296.             $_parent $context['_parent'];
  297.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  298.             $context array_intersect_key($context$_parent) + $_parent;
  299.             // line 105
  300.             echo "\t
  301. \t\t</div>
  302. \t</div>
  303. </div>
  304. ";
  305.         }
  306.         // line 110
  307.         echo "
  308. <!---- CATEGORIAS ---->
  309. ";
  310.         // line 114
  311.         if ((twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'114$this->source); })())) > 0)) {
  312.             // line 115
  313.             echo "\t";
  314.             if (((twig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'115$this->source); })()), "categoryTitle", [], "any"falsefalsefalse115) != "") && (twig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'115$this->source); })()), "categorySubtitle", [], "any"falsefalsefalse115) != ""))) {
  315.                 // line 116
  316.                 echo "\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  317. \t\t\t<div class='col-12'>
  318. \t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
  319. \t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
  320. \t\t\t\t\t\t";
  321.                 // line 120
  322.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'120$this->source); })()), "categoryTitle", [], "any"falsefalsefalse120), "html"nulltrue);
  323.                 echo "
  324. \t\t\t\t\t</h2>
  325. \t\t\t\t\t<p>";
  326.                 // line 122
  327.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'122$this->source); })()), "categorySubtitle", [], "any"falsefalsefalse122), "html"nulltrue);
  328.                 echo "</p>
  329. \t\t\t\t</section>
  330. \t\t\t</div>\t
  331. \t\t</div>
  332. \t";
  333.             }
  334.             // line 126
  335.             echo "\t
  336. <!-- Banner -->
  337. <div class=\"sec-banner bg0 p-t-30\">
  338. \t<div class=\"container\">
  339. \t\t<div class=\"row\">
  340. \t\t\t\t
  341. \t\t\t";
  342.             // line 132
  343.             $context['_parent'] = $context;
  344.             $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'132$this->source); })()));
  345.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  346.                 // line 133
  347.                 echo "\t\t\t\t";
  348.                 if ((twig_get_attribute($this->env$this->source$context["item"], "featured", [], "any"falsefalsefalse133) == 1)) {
  349.                     // line 134
  350.                     echo "\t\t\t\t\t";
  351.                     if ((twig_get_attribute($this->env$this->source$context["item"], "category_count", [], "any"falsefalsefalse134) > 0)) {
  352.                         // line 135
  353.                         echo "\t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
  354. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  355. \t\t\t\t\t\t\t<div class=\"block1 wrap-pic-w bkg_block\" style='background:linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), url(\"";
  356.                         // line 137
  357.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "image_path", [], "any"falsefalsefalse137), "html"nulltrue);
  358.                         echo "\");'>\t\t\t
  359. \t\t\t\t\t\t\t\t<a href=\"";
  360.                         // line 138
  361.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_product", ["category" => twig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse138), "slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'138$this->source); })())]), "html"nulltrue);
  362.                         echo "\" class=\"block1-txt ab-t-l s-full flex-col-l-sb p-lr-38 p-tb-34 trans-03 respon3\">
  363. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
  364. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
  365. \t\t\t\t\t\t\t\t\t\t\t";
  366.                         // line 141
  367.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse141), "html"nulltrue);
  368.                         echo "
  369. \t\t\t\t\t\t\t\t\t\t</span>\t\t\t
  370. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-info stext-102 trans-04\">\t\t\t\t\t\t\t\t\t
  371. \t\t\t\t\t\t\t\t\t\t\t";
  372.                         // line 144
  373.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "category_count", [], "any"falsefalsefalse144), "html"nulltrue);
  374.                         echo " ";
  375.                         if ((twig_get_attribute($this->env$this->source$context["item"], "category_count", [], "any"falsefalsefalse144) != 1)) {
  376.                             echo "Productos";
  377.                         } else {
  378.                             echo "Producto";
  379.                         }
  380.                         echo "\t\t\t\t\t\t\t\t\t\t
  381. \t\t\t\t\t\t\t\t\t\t</span>
  382. \t\t\t\t\t\t\t\t\t</div>\t\t\t
  383. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
  384. \t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
  385. \t\t\t\t\t\t\t\t\t\t\tVer más
  386. \t\t\t\t\t\t\t\t\t\t</div>
  387. \t\t\t\t\t\t\t\t\t</div>
  388. \t\t\t\t\t\t\t\t</a>
  389. \t\t\t\t\t\t\t</div>
  390. \t\t\t\t\t\t\t
  391. \t\t\t\t\t\t</div>
  392. \t\t\t\t\t";
  393.                     }
  394.                     // line 157
  395.                     echo "\t\t\t\t";
  396.                 }
  397.                 // line 158
  398.                 echo "\t\t\t";
  399.             }
  400.             $_parent $context['_parent'];
  401.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  402.             $context array_intersect_key($context$_parent) + $_parent;
  403.             // line 159
  404.             echo "\t
  405. \t\t</div>
  406. \t</div>
  407. </div>
  408. ";
  409.         }
  410.         // line 165
  411.         echo "
  412. <!---- BLOGS ---->
  413. ";
  414.         // line 168
  415.         if ((twig_length_filter($this->env, (isset($context["blogs"]) || array_key_exists("blogs"$context) ? $context["blogs"] : (function () { throw new RuntimeError('Variable "blogs" does not exist.'168$this->source); })())) > 0)) {
  416.             // line 169
  417.             echo "\t";
  418.             if (((twig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'169$this->source); })()), "blogTitle", [], "any"falsefalsefalse169) != "") && (twig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'169$this->source); })()), "blogSubtitle", [], "any"falsefalsefalse169) != ""))) {
  419.                 // line 170
  420.                 echo "\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  421. \t\t\t<div class='col-12'>
  422. \t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
  423. \t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
  424. \t\t\t\t\t\t";
  425.                 // line 174
  426.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'174$this->source); })()), "blogTitle", [], "any"falsefalsefalse174), "html"nulltrue);
  427.                 echo "
  428. \t\t\t\t\t</h2>
  429. \t\t\t\t\t<p>
  430. \t\t\t\t\t\t";
  431.                 // line 177
  432.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'177$this->source); })()), "blogSubtitle", [], "any"falsefalsefalse177), "html"nulltrue);
  433.                 echo "
  434. \t\t\t\t\t</p>
  435. \t\t\t\t</section>
  436. \t\t\t</div>\t
  437. \t\t</div>
  438. \t";
  439.             }
  440.             // line 182
  441.             echo "\t
  442. \t<!-- Banner -->
  443. \t<div class=\"sec-banner bg0 p-t-30\">
  444. \t\t<div class=\"container\">
  445. \t\t\t<div class=\"row justify-content-md-center\">                        
  446. \t\t\t\t";
  447.             // line 187
  448.             $context['_parent'] = $context;
  449.             $context['_seq'] = twig_ensure_traversable((isset($context["blogs"]) || array_key_exists("blogs"$context) ? $context["blogs"] : (function () { throw new RuntimeError('Variable "blogs" does not exist.'187$this->source); })()));
  450.             foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  451.                 // line 188
  452.                 echo "\t\t\t\t
  453. \t\t\t\t\t<div class=\"col-lg-4\" style=\"padding-top: 10px\">
  454. \t\t\t\t\t\t<div class=\"card\">
  455. \t\t\t\t\t\t\t<img  class=\"card-img-top\" src=\"";
  456.                 // line 191
  457.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/blog/" twig_get_attribute($this->env$this->source$context["blog"], "coverPath", [], "any"falsefalsefalse191))), "html"nulltrue);
  458.                 echo "\" alt=\"Image\" onerror=\"this.onerror=null;this.src='";
  459.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/no_image.png"), "html"nulltrue);
  460.                 echo "'\" onclick=\"window.location.href='";
  461.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_blog_detail", ["blogId" => $this->extensions['Nzo\UrlEncryptorBundle\Twig\EncryptorExtension']->encryptFilter(twig_get_attribute($this->env$this->source$context["blog"], "blogId", [], "any"falsefalsefalse191)), "from_inicio" => true"slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'191$this->source); })())]), "html"nulltrue);
  462.                 echo "'\">
  463. \t\t\t\t\t\t\t<div class=\"card-body\" >                
  464. \t\t\t\t\t\t\t\t<h5 class=\"card-title\" style='margin-bottom:0px;'>
  465. \t\t\t\t\t\t\t\t\t<a href=\"";
  466.                 // line 194
  467.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_blog_detail", ["blogId" => $this->extensions['Nzo\UrlEncryptorBundle\Twig\EncryptorExtension']->encryptFilter(twig_get_attribute($this->env$this->source$context["blog"], "blogId", [], "any"falsefalsefalse194)), "from_inicio" => true"slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'194$this->source); })())]), "html"nulltrue);
  468.                 echo "\">
  469. \t\t\t\t\t\t\t\t\t\t";
  470.                 // line 195
  471.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "title", [], "any"falsefalsefalse195), "html"nulltrue);
  472.                 echo "
  473. \t\t\t\t\t\t\t\t\t</a>
  474. \t\t\t\t\t\t\t\t</h5>
  475. \t\t\t\t\t\t\t\t<small style='color:#ccc'>";
  476.                 // line 198
  477.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "createdAt", [], "any"falsefalsefalse198), "F m, Y"), "html"nulltrue);
  478.                 if (twig_get_attribute($this->env$this->source$context["blog"], "blogCategory", [], "any"falsefalsefalse198)) {
  479.                     echo " | ";
  480.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["blog"], "blogCategory", [], "any"falsefalsefalse198), "name", [], "any"falsefalsefalse198), "html"nulltrue);
  481.                 }
  482.                 echo "</small>
  483. \t\t\t\t\t\t\t\t<br><br>
  484. \t\t\t\t\t\t\t\t<div style='min-height: 130px;'>
  485. \t\t\t\t\t\t\t\t\t<p class=\"card-text\">";
  486.                 // line 201
  487.                 echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["blog"], "shortContent", [], "any"falsefalsefalse201), 0200), "html"nulltrue);
  488.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "shortContent", [], "any"falsefalsefalse201)) > 200)) {
  489.                     echo " ...";
  490.                 }
  491.                 echo "</p>
  492. \t\t\t\t\t\t\t\t</div>
  493. \t\t\t\t\t\t\t</div>
  494. \t\t\t\t\t\t</div>
  495. \t\t\t\t\t</div>
  496. \t\t\t\t
  497. \t\t\t\t";
  498.             }
  499.             $_parent $context['_parent'];
  500.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  501.             $context array_intersect_key($context$_parent) + $_parent;
  502.             // line 208
  503.             echo "\t\t\t</div>
  504. \t\t</div>
  505. \t</div>
  506. ";
  507.         }
  508.         // line 212
  509.         echo "
  510. <!-- LOAD ITEMS DINAMICALLY -->
  511. <br>
  512. ";
  513.         // line 216
  514.         echo twig_include($this->env$context"Frontend/product.html.twig", ["filter" => true"webSetting" => (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'216$this->source); })()), "slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'216$this->source); })())]);
  515.         echo "
  516. \t
  517. ";
  518.         
  519.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  520.         
  521.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  522.     }
  523.     public function getTemplateName()
  524.     {
  525.         return "Frontend/Index/index.html.twig";
  526.     }
  527.     public function isTraitable()
  528.     {
  529.         return false;
  530.     }
  531.     public function getDebugInfo()
  532.     {
  533.         return array (  539 => 216,  533 => 212,  527 => 208,  511 => 201,  501 => 198,  495 => 195,  491 => 194,  481 => 191,  476 => 188,  472 => 187,  465 => 182,  456 => 177,  450 => 174,  444 => 170,  441 => 169,  439 => 168,  434 => 165,  426 => 159,  420 => 158,  417 => 157,  395 => 144,  389 => 141,  383 => 138,  379 => 137,  375 => 135,  372 => 134,  369 => 133,  365 => 132,  357 => 126,  349 => 122,  344 => 120,  338 => 116,  335 => 115,  333 => 114,  327 => 110,  320 => 105,  314 => 104,  311 => 103,  289 => 90,  283 => 87,  277 => 84,  273 => 83,  269 => 81,  266 => 80,  263 => 79,  259 => 78,  251 => 72,  243 => 68,  238 => 66,  232 => 62,  229 => 61,  227 => 60,  207 => 42,  182 => 31,  178 => 30,  168 => 29,  162 => 26,  158 => 25,  148 => 24,  143 => 21,  123 => 19,  118 => 17,  114 => 16,  109 => 15,  103 => 13,  100 => 12,  97 => 11,  95 => 10,  76 => 9,  68 => 3,  58 => 2,  35 => 1,);
  534.     }
  535.     public function getSourceContext()
  536.     {
  537.         return new Source("{% extends 'Frontend/base.html.twig' %}
  538. {% block body %}
  539. \t
  540. \t
  541. <div class='containerr p-t-25'>
  542. \t<div id=\"homeSlides\" class=\"carousel slide\" data-ride=\"carousel\">
  543. \t  <div class=\"carousel-inner\">\t  \t
  544. \t\t  {% for item in slides %}\t\t  
  545. \t\t\t    {% if loop.index == 1 %}
  546. \t\t\t    \t{% set activeFlag = 'active' %}
  547. \t\t\t    {% else %}
  548. \t\t\t    \t{% set activeFlag = '' %}\t\t    
  549. \t\t\t    {% endif %}
  550. \t\t  \t    <div class=\"carousel-item {{activeFlag}} \" data-interval=\"10000\" >
  551. \t\t\t  \t  {% if item.text1 == '' and item.text2 == '' %}  
  552. \t\t\t      <div class=\"d-block w-100\" style=\"background-image:url('{{item.imagePath}}');background-size:cover;background-repeat:no-repeat;background-position:top center;width:100%;height:700px;\" alt=\"\">
  553. \t\t\t\t  {% else %}
  554. \t\t\t      <div class=\"d-block w-100\" style=\"background:linear-gradient(0deg,rgba(0, 0, 0, {% if item.gradientLower != '' %} 0.{{item.gradientLower}}{% else %}0.0{% endif %}),rgba(0, 0, 0,{% if item.gradientHigher != '' %} 0.{{item.gradientHigher}}{% else %}0.0{% endif %})), url('{{item.imagePath}}');background-size:cover;background-repeat:no-repeat;background-position:top center;width:100%;height:700px;\" alt=\"\">\t\t\t\t  
  555. \t\t\t\t  {% endif %}
  556. \t\t\t\t    <div class=\"container h-full\">
  557. \t\t\t\t\t        
  558. \t\t\t\t\t\t<div class=\"flex-col-l-m h-full p-t-100 p-b-30 respon5\">
  559. \t\t\t\t\t\t\t<div class=\"animated fadeIn \" style=\"width:100%;{%if item.textAlignment == ''%}text-align:left !important;{%else%}text-align:{{item.textAlignment}} !important;{%endif%}\">
  560. \t\t\t\t\t\t\t\t<span class=\"ltext-101 cl2 respon2\" style='color:#{{item.text1color}} !important;'>
  561. \t\t\t\t\t\t\t\t\t{{item.text1}}
  562. \t\t\t\t\t\t\t\t</span>
  563. \t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t
  564. \t\t\t\t\t\t\t<div class=\"animated fadeIn \" style=\"width:100%;{%if item.textAlignment == ''%}text-align:left !important;{%else%}text-align:{{item.textAlignment}} !important;{%endif%}\">
  565. \t\t\t\t\t\t\t\t<h2 class=\"ltext-201 cl2 p-t-19 p-b-43 respon1\" style='color:#{{item.text2color}} !important;'>
  566. \t\t\t\t\t\t\t\t\t{{item.text2}}
  567. \t\t\t\t\t\t\t\t</h2>
  568. \t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  569. \t\t\t\t\t\t</div>
  570. \t\t\t\t\t\t
  571. \t\t\t\t\t\t\t\t\t\t\t
  572. \t\t\t\t    </div>\t\t
  573. \t\t\t\t      
  574. \t\t\t      </div>
  575. \t\t\t    </div>\t\t  \t\t\t    
  576. \t\t  {% endfor %}
  577. \t\t  \t\t
  578. \t  </div>
  579. \t  <a class=\"carousel-control-prev\" href=\"#homeSlides\" role=\"button\" data-slide=\"prev\">
  580. \t    <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
  581. \t    <span class=\"sr-only\">Anterior</span>
  582. \t  </a>
  583. \t  <a class=\"carousel-control-next\" href=\"#homeSlides\" role=\"button\" data-slide=\"next\">
  584. \t    <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
  585. \t    <span class=\"sr-only\">Siguiente</span>
  586. \t  </a>
  587. \t</div>
  588. </div>\t
  589. <!---- MARCAS ---->
  590. {% if brands | length > 0 %}
  591. \t{% if webSetting.brandTitle != '' and webSetting.brandSubtitle != '' %}
  592. \t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  593. \t\t\t<div class='col-12'>
  594. \t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
  595. \t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
  596. \t\t\t\t\t\t{{webSetting.brandTitle}}
  597. \t\t\t\t\t</h2>
  598. \t\t\t\t\t<p>{{webSetting.brandSubtitle}}</p>
  599. \t\t\t\t</section>
  600. \t\t\t</div>\t
  601. \t\t</div>
  602. \t{% endif %}\t
  603. <!-- Banner -->
  604. <div class=\"sec-banner bg0 p-t-30\">
  605. \t<div class=\"container\">
  606. \t\t<div class=\"row\">
  607. \t\t\t\t
  608. \t\t\t{% for item in brands %}
  609. \t\t\t\t{% if item.featured == 1 %}
  610. \t\t\t\t\t{% if item.brand_count > 0 %}
  611. \t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
  612. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  613. \t\t\t\t\t\t\t<div class=\"block1 wrap-pic-w bkg_block\" style='background-size:cover !important;background:linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), url(\"{{asset(\"uploads/brand/\"~item.image_path) }}\");'>\t\t\t
  614. \t\t\t\t\t\t\t\t<a href=\"{{ path('frontend_product', {'brand': item.brand_id, slug:slug}) }}\" class=\"block1-txt ab-t-l s-full flex-col-l-sb p-lr-38 p-tb-34 trans-03 respon3\">
  615. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
  616. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
  617. \t\t\t\t\t\t\t\t\t\t\t{{item.name}}
  618. \t\t\t\t\t\t\t\t\t\t</span>\t\t\t
  619. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-info stext-102 trans-04\">\t\t\t\t\t\t\t\t\t
  620. \t\t\t\t\t\t\t\t\t\t\t{{item.brand_count}} {% if item.brand_count != 1 %}Productos{%else%}Producto{%endif%}\t\t\t\t\t\t\t\t\t
  621. \t\t\t\t\t\t\t\t\t\t</span>
  622. \t\t\t\t\t\t\t\t\t</div>\t\t\t
  623. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
  624. \t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
  625. \t\t\t\t\t\t\t\t\t\t\tVer más
  626. \t\t\t\t\t\t\t\t\t\t</div>
  627. \t\t\t\t\t\t\t\t\t</div>
  628. \t\t\t\t\t\t\t\t</a>
  629. \t\t\t\t\t\t\t</div>
  630. \t\t\t\t\t\t\t
  631. \t\t\t\t\t\t</div>
  632. \t\t\t\t\t{% endif %}
  633. \t\t\t\t{% endif %}
  634. \t\t\t{% endfor %}
  635. \t
  636. \t\t</div>
  637. \t</div>
  638. </div>
  639. {% endif %}
  640. <!---- CATEGORIAS ---->
  641. {% if categories | length > 0 %}
  642. \t{% if webSetting.categoryTitle != '' and webSetting.categorySubtitle != '' %}
  643. \t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  644. \t\t\t<div class='col-12'>
  645. \t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
  646. \t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
  647. \t\t\t\t\t\t{{webSetting.categoryTitle}}
  648. \t\t\t\t\t</h2>
  649. \t\t\t\t\t<p>{{webSetting.categorySubtitle}}</p>
  650. \t\t\t\t</section>
  651. \t\t\t</div>\t
  652. \t\t</div>
  653. \t{% endif %}\t
  654. <!-- Banner -->
  655. <div class=\"sec-banner bg0 p-t-30\">
  656. \t<div class=\"container\">
  657. \t\t<div class=\"row\">
  658. \t\t\t\t
  659. \t\t\t{% for item in categories %}
  660. \t\t\t\t{% if item.featured == 1 %}
  661. \t\t\t\t\t{% if item.category_count > 0 %}
  662. \t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
  663. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  664. \t\t\t\t\t\t\t<div class=\"block1 wrap-pic-w bkg_block\" style='background:linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), url(\"{{item.image_path}}\");'>\t\t\t
  665. \t\t\t\t\t\t\t\t<a href=\"{{ path('frontend_product', {'category': item.category_id, slug:slug}) }}\" class=\"block1-txt ab-t-l s-full flex-col-l-sb p-lr-38 p-tb-34 trans-03 respon3\">
  666. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
  667. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
  668. \t\t\t\t\t\t\t\t\t\t\t{{item.name}}
  669. \t\t\t\t\t\t\t\t\t\t</span>\t\t\t
  670. \t\t\t\t\t\t\t\t\t\t<span class=\"block1-info stext-102 trans-04\">\t\t\t\t\t\t\t\t\t
  671. \t\t\t\t\t\t\t\t\t\t\t{{item.category_count}} {% if item.category_count != 1 %}Productos{%else%}Producto{%endif%}\t\t\t\t\t\t\t\t\t\t
  672. \t\t\t\t\t\t\t\t\t\t</span>
  673. \t\t\t\t\t\t\t\t\t</div>\t\t\t
  674. \t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
  675. \t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
  676. \t\t\t\t\t\t\t\t\t\t\tVer más
  677. \t\t\t\t\t\t\t\t\t\t</div>
  678. \t\t\t\t\t\t\t\t\t</div>
  679. \t\t\t\t\t\t\t\t</a>
  680. \t\t\t\t\t\t\t</div>
  681. \t\t\t\t\t\t\t
  682. \t\t\t\t\t\t</div>
  683. \t\t\t\t\t{% endif %}
  684. \t\t\t\t{% endif %}
  685. \t\t\t{% endfor %}
  686. \t
  687. \t\t</div>
  688. \t</div>
  689. </div>
  690. {% endif %}
  691. <!---- BLOGS ---->
  692. {% if blogs | length > 0 %}
  693. \t{% if webSetting.blogTitle != '' and webSetting.blogSubtitle != '' %}
  694. \t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  695. \t\t\t<div class='col-12'>
  696. \t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
  697. \t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
  698. \t\t\t\t\t\t{{webSetting.blogTitle}}
  699. \t\t\t\t\t</h2>
  700. \t\t\t\t\t<p>
  701. \t\t\t\t\t\t{{webSetting.blogSubtitle}}
  702. \t\t\t\t\t</p>
  703. \t\t\t\t</section>
  704. \t\t\t</div>\t
  705. \t\t</div>
  706. \t{% endif %}\t
  707. \t<!-- Banner -->
  708. \t<div class=\"sec-banner bg0 p-t-30\">
  709. \t\t<div class=\"container\">
  710. \t\t\t<div class=\"row justify-content-md-center\">                        
  711. \t\t\t\t{% for blog in blogs %}
  712. \t\t\t\t
  713. \t\t\t\t\t<div class=\"col-lg-4\" style=\"padding-top: 10px\">
  714. \t\t\t\t\t\t<div class=\"card\">
  715. \t\t\t\t\t\t\t<img  class=\"card-img-top\" src=\"{{ asset('uploads/blog/'~blog.coverPath) }}\" alt=\"Image\" onerror=\"this.onerror=null;this.src='{{asset(\"images/no_image.png\")}}'\" onclick=\"window.location.href='{{ path('frontend_blog_detail', {'blogId': blog.blogId|nzo_encrypt, 'from_inicio': true, slug:slug}) }}'\">
  716. \t\t\t\t\t\t\t<div class=\"card-body\" >                
  717. \t\t\t\t\t\t\t\t<h5 class=\"card-title\" style='margin-bottom:0px;'>
  718. \t\t\t\t\t\t\t\t\t<a href=\"{{ path('frontend_blog_detail', {'blogId': blog.blogId|nzo_encrypt, 'from_inicio': true, slug:slug}) }}\">
  719. \t\t\t\t\t\t\t\t\t\t{{blog.title}}
  720. \t\t\t\t\t\t\t\t\t</a>
  721. \t\t\t\t\t\t\t\t</h5>
  722. \t\t\t\t\t\t\t\t<small style='color:#ccc'>{{ blog.createdAt | date('F m, Y')}}{% if blog.blogCategory %} | {{blog.blogCategory.name}}{% endif %}</small>
  723. \t\t\t\t\t\t\t\t<br><br>
  724. \t\t\t\t\t\t\t\t<div style='min-height: 130px;'>
  725. \t\t\t\t\t\t\t\t\t<p class=\"card-text\">{{ blog.shortContent| slice(0, 200)}}{% if blog.shortContent|raw |length > 200 %} ...{%endif%}</p>
  726. \t\t\t\t\t\t\t\t</div>
  727. \t\t\t\t\t\t\t</div>
  728. \t\t\t\t\t\t</div>
  729. \t\t\t\t\t</div>
  730. \t\t\t\t
  731. \t\t\t\t{% endfor %}
  732. \t\t\t</div>
  733. \t\t</div>
  734. \t</div>
  735. {% endif %}
  736. <!-- LOAD ITEMS DINAMICALLY -->
  737. <br>
  738. {{ include('Frontend/product.html.twig', {filter:true, webSetting: webSetting, slug: slug}) }}
  739. \t
  740. {% endblock %}""Frontend/Index/index.html.twig""/home/sinfilas/public_html/templates/Frontend/Index/index.html.twig");
  741.     }
  742. }