<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Frontend/Index/index.html.twig */
class __TwigTemplate_49a39e03203548342c922814642992c8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Frontend/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Frontend/Index/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Frontend/Index/index.html.twig"));
$this->parent = $this->loadTemplate("Frontend/base.html.twig", "Frontend/Index/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 3
echo "\t
\t
<div class='containerr p-t-25'>
\t<div id=\"homeSlides\" class=\"carousel slide\" data-ride=\"carousel\">
\t <div class=\"carousel-inner\">\t \t
\t\t ";
// line 9
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
echo "\t\t
\t\t\t ";
// line 10
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 10) == 1)) {
// line 11
echo "\t\t\t \t";
$context["activeFlag"] = "active";
// line 12
echo "\t\t\t ";
} else {
// line 13
echo "\t\t\t \t";
$context["activeFlag"] = "";
echo "\t\t
\t\t\t ";
}
// line 15
echo "\t\t \t <div class=\"carousel-item ";
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", null, true);
echo " \" data-interval=\"10000\" >
\t\t\t \t ";
// line 16
if (((twig_get_attribute($this->env, $this->source, $context["item"], "text1", [], "any", false, false, false, 16) == "") && (twig_get_attribute($this->env, $this->source, $context["item"], "text2", [], "any", false, false, false, 16) == ""))) {
echo "
\t\t\t <div class=\"d-block w-100\" style=\"background-image:url('";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "imagePath", [], "any", false, false, false, 17), "html", null, true);
echo "');background-size:cover;background-repeat:no-repeat;background-position:top center;width:100%;height:700px;\" alt=\"\">
\t\t\t\t ";
} else {
// line 19
echo "\t\t\t <div class=\"d-block w-100\" style=\"background:linear-gradient(0deg,rgba(0, 0, 0, ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "gradientLower", [], "any", false, false, false, 19) != "")) {
echo " 0.";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "gradientLower", [], "any", false, false, false, 19), "html", null, true);
} else {
echo "0.0";
}
echo "),rgba(0, 0, 0,";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "gradientHigher", [], "any", false, false, false, 19) != "")) {
echo " 0.";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "gradientHigher", [], "any", false, false, false, 19), "html", null, true);
} else {
echo "0.0";
}
echo ")), url('";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "imagePath", [], "any", false, false, false, 19), "html", null, true);
echo "');background-size:cover;background-repeat:no-repeat;background-position:top center;width:100%;height:700px;\" alt=\"\">\t\t\t\t
\t\t\t\t ";
}
// line 21
echo "\t\t\t\t <div class=\"container h-full\">
\t\t\t\t\t
\t\t\t\t\t\t<div class=\"flex-col-l-m h-full p-t-100 p-b-30 respon5\">
\t\t\t\t\t\t\t<div class=\"animated fadeIn \" style=\"width:100%;";
// line 24
if ((twig_get_attribute($this->env, $this->source, $context["item"], "textAlignment", [], "any", false, false, false, 24) == "")) {
echo "text-align:left !important;";
} else {
echo "text-align:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "textAlignment", [], "any", false, false, false, 24), "html", null, true);
echo " !important;";
}
echo "\">
\t\t\t\t\t\t\t\t<span class=\"ltext-101 cl2 respon2\" style='color:#";
// line 25
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "text1color", [], "any", false, false, false, 25), "html", null, true);
echo " !important;'>
\t\t\t\t\t\t\t\t\t";
// line 26
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "text1", [], "any", false, false, false, 26), "html", null, true);
echo "
\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<div class=\"animated fadeIn \" style=\"width:100%;";
// line 29
if ((twig_get_attribute($this->env, $this->source, $context["item"], "textAlignment", [], "any", false, false, false, 29) == "")) {
echo "text-align:left !important;";
} else {
echo "text-align:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "textAlignment", [], "any", false, false, false, 29), "html", null, true);
echo " !important;";
}
echo "\">
\t\t\t\t\t\t\t\t<h2 class=\"ltext-201 cl2 p-t-19 p-b-43 respon1\" style='color:#";
// line 30
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "text2color", [], "any", false, false, false, 30), "html", null, true);
echo " !important;'>
\t\t\t\t\t\t\t\t\t";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "text2", [], "any", false, false, false, 31), "html", null, true);
echo "
\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t </div>\t\t
\t\t\t\t
\t\t\t </div>
\t\t\t </div>\t\t \t\t\t
\t\t ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 42
echo "\t\t \t\t
\t </div>
\t <a class=\"carousel-control-prev\" href=\"#homeSlides\" role=\"button\" data-slide=\"prev\">
\t <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
\t <span class=\"sr-only\">Anterior</span>
\t </a>
\t <a class=\"carousel-control-next\" href=\"#homeSlides\" role=\"button\" data-slide=\"next\">
\t <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
\t <span class=\"sr-only\">Siguiente</span>
\t </a>
\t</div>
</div>\t
<!---- MARCAS ---->
";
// line 60
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)) {
// line 61
echo "\t";
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", false, false, false, 61) != "") && (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", false, false, false, 61) != ""))) {
// line 62
echo "\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
\t\t\t<div class='col-12'>
\t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
\t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
\t\t\t\t\t\t";
// line 66
echo twig_escape_filter($this->env, 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.', 66, $this->source); })()), "brandTitle", [], "any", false, false, false, 66), "html", null, true);
echo "
\t\t\t\t\t</h2>
\t\t\t\t\t<p>";
// line 68
echo twig_escape_filter($this->env, 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.', 68, $this->source); })()), "brandSubtitle", [], "any", false, false, false, 68), "html", null, true);
echo "</p>
\t\t\t\t</section>
\t\t\t</div>\t
\t\t</div>
\t";
}
// line 72
echo "\t
<!-- Banner -->
<div class=\"sec-banner bg0 p-t-30\">
\t<div class=\"container\">
\t\t<div class=\"row\">
\t\t\t\t
\t\t\t";
// line 78
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 79
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "featured", [], "any", false, false, false, 79) == 1)) {
// line 80
echo "\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "brand_count", [], "any", false, false, false, 80) > 0)) {
// line 81
echo "\t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\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(\"";
// line 83
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", false, false, false, 83))), "html", null, true);
echo "\");'>\t\t\t
\t\t\t\t\t\t\t\t<a href=\"";
// line 84
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", false, false, false, 84), "slug" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 84, $this->source); })())]), "html", null, true);
echo "\" class=\"block1-txt ab-t-l s-full flex-col-l-sb p-lr-38 p-tb-34 trans-03 respon3\">
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
\t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 87
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 87), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</span>\t\t\t
\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
\t\t\t\t\t\t\t\t\t\t\t";
// line 90
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "brand_count", [], "any", false, false, false, 90), "html", null, true);
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "brand_count", [], "any", false, false, false, 90) != 1)) {
echo "Productos";
} else {
echo "Producto";
}
echo "\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t</div>\t\t\t
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
\t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
\t\t\t\t\t\t\t\t\t\t\tVer más
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 103
echo "\t\t\t\t";
}
// line 104
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 105
echo "\t
\t\t</div>
\t</div>
</div>
";
}
// line 110
echo "
<!---- CATEGORIAS ---->
";
// line 114
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)) {
// line 115
echo "\t";
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", false, false, false, 115) != "") && (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", false, false, false, 115) != ""))) {
// line 116
echo "\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
\t\t\t<div class='col-12'>
\t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
\t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
\t\t\t\t\t\t";
// line 120
echo twig_escape_filter($this->env, 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.', 120, $this->source); })()), "categoryTitle", [], "any", false, false, false, 120), "html", null, true);
echo "
\t\t\t\t\t</h2>
\t\t\t\t\t<p>";
// line 122
echo twig_escape_filter($this->env, 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.', 122, $this->source); })()), "categorySubtitle", [], "any", false, false, false, 122), "html", null, true);
echo "</p>
\t\t\t\t</section>
\t\t\t</div>\t
\t\t</div>
\t";
}
// line 126
echo "\t
<!-- Banner -->
<div class=\"sec-banner bg0 p-t-30\">
\t<div class=\"container\">
\t\t<div class=\"row\">
\t\t\t\t
\t\t\t";
// line 132
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 133
echo "\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "featured", [], "any", false, false, false, 133) == 1)) {
// line 134
echo "\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "category_count", [], "any", false, false, false, 134) > 0)) {
// line 135
echo "\t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\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(\"";
// line 137
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "image_path", [], "any", false, false, false, 137), "html", null, true);
echo "\");'>\t\t\t
\t\t\t\t\t\t\t\t<a href=\"";
// line 138
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", false, false, false, 138), "slug" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 138, $this->source); })())]), "html", null, true);
echo "\" class=\"block1-txt ab-t-l s-full flex-col-l-sb p-lr-38 p-tb-34 trans-03 respon3\">
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
\t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 141
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 141), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</span>\t\t\t
\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
\t\t\t\t\t\t\t\t\t\t\t";
// line 144
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "category_count", [], "any", false, false, false, 144), "html", null, true);
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "category_count", [], "any", false, false, false, 144) != 1)) {
echo "Productos";
} else {
echo "Producto";
}
echo "\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t</div>\t\t\t
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
\t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
\t\t\t\t\t\t\t\t\t\t\tVer más
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 157
echo "\t\t\t\t";
}
// line 158
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 159
echo "\t
\t\t</div>
\t</div>
</div>
";
}
// line 165
echo "
<!---- BLOGS ---->
";
// line 168
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)) {
// line 169
echo "\t";
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", false, false, false, 169) != "") && (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", false, false, false, 169) != ""))) {
// line 170
echo "\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
\t\t\t<div class='col-12'>
\t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
\t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
\t\t\t\t\t\t";
// line 174
echo twig_escape_filter($this->env, 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.', 174, $this->source); })()), "blogTitle", [], "any", false, false, false, 174), "html", null, true);
echo "
\t\t\t\t\t</h2>
\t\t\t\t\t<p>
\t\t\t\t\t\t";
// line 177
echo twig_escape_filter($this->env, 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.', 177, $this->source); })()), "blogSubtitle", [], "any", false, false, false, 177), "html", null, true);
echo "
\t\t\t\t\t</p>
\t\t\t\t</section>
\t\t\t</div>\t
\t\t</div>
\t";
}
// line 182
echo "\t
\t<!-- Banner -->
\t<div class=\"sec-banner bg0 p-t-30\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row justify-content-md-center\">
\t\t\t\t";
// line 187
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 188
echo "\t\t\t\t
\t\t\t\t\t<div class=\"col-lg-4\" style=\"padding-top: 10px\">
\t\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t\t<img class=\"card-img-top\" src=\"";
// line 191
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", false, false, false, 191))), "html", null, true);
echo "\" alt=\"Image\" onerror=\"this.onerror=null;this.src='";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/no_image.png"), "html", null, true);
echo "'\" onclick=\"window.location.href='";
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", false, false, false, 191)), "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", null, true);
echo "'\">
\t\t\t\t\t\t\t<div class=\"card-body\" >
\t\t\t\t\t\t\t\t<h5 class=\"card-title\" style='margin-bottom:0px;'>
\t\t\t\t\t\t\t\t\t<a href=\"";
// line 194
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", false, false, false, 194)), "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", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t";
// line 195
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "title", [], "any", false, false, false, 195), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</h5>
\t\t\t\t\t\t\t\t<small style='color:#ccc'>";
// line 198
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "createdAt", [], "any", false, false, false, 198), "F m, Y"), "html", null, true);
if (twig_get_attribute($this->env, $this->source, $context["blog"], "blogCategory", [], "any", false, false, false, 198)) {
echo " | ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["blog"], "blogCategory", [], "any", false, false, false, 198), "name", [], "any", false, false, false, 198), "html", null, true);
}
echo "</small>
\t\t\t\t\t\t\t\t<br><br>
\t\t\t\t\t\t\t\t<div style='min-height: 130px;'>
\t\t\t\t\t\t\t\t\t<p class=\"card-text\">";
// line 201
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "shortContent", [], "any", false, false, false, 201), 0, 200), "html", null, true);
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "shortContent", [], "any", false, false, false, 201)) > 200)) {
echo " ...";
}
echo "</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 208
echo "\t\t\t</div>
\t\t</div>
\t</div>
";
}
// line 212
echo "
<!-- LOAD ITEMS DINAMICALLY -->
<br>
";
// line 216
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); })())]);
echo "
\t
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Frontend/Index/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'Frontend/base.html.twig' %}
{% block body %}
\t
\t
<div class='containerr p-t-25'>
\t<div id=\"homeSlides\" class=\"carousel slide\" data-ride=\"carousel\">
\t <div class=\"carousel-inner\">\t \t
\t\t {% for item in slides %}\t\t
\t\t\t {% if loop.index == 1 %}
\t\t\t \t{% set activeFlag = 'active' %}
\t\t\t {% else %}
\t\t\t \t{% set activeFlag = '' %}\t\t
\t\t\t {% endif %}
\t\t \t <div class=\"carousel-item {{activeFlag}} \" data-interval=\"10000\" >
\t\t\t \t {% if item.text1 == '' and item.text2 == '' %}
\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=\"\">
\t\t\t\t {% else %}
\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
\t\t\t\t {% endif %}
\t\t\t\t <div class=\"container h-full\">
\t\t\t\t\t
\t\t\t\t\t\t<div class=\"flex-col-l-m h-full p-t-100 p-b-30 respon5\">
\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%}\">
\t\t\t\t\t\t\t\t<span class=\"ltext-101 cl2 respon2\" style='color:#{{item.text1color}} !important;'>
\t\t\t\t\t\t\t\t\t{{item.text1}}
\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t
\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%}\">
\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;'>
\t\t\t\t\t\t\t\t\t{{item.text2}}
\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t </div>\t\t
\t\t\t\t
\t\t\t </div>
\t\t\t </div>\t\t \t\t\t
\t\t {% endfor %}
\t\t \t\t
\t </div>
\t <a class=\"carousel-control-prev\" href=\"#homeSlides\" role=\"button\" data-slide=\"prev\">
\t <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>
\t <span class=\"sr-only\">Anterior</span>
\t </a>
\t <a class=\"carousel-control-next\" href=\"#homeSlides\" role=\"button\" data-slide=\"next\">
\t <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>
\t <span class=\"sr-only\">Siguiente</span>
\t </a>
\t</div>
</div>\t
<!---- MARCAS ---->
{% if brands | length > 0 %}
\t{% if webSetting.brandTitle != '' and webSetting.brandSubtitle != '' %}
\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
\t\t\t<div class='col-12'>
\t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
\t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
\t\t\t\t\t\t{{webSetting.brandTitle}}
\t\t\t\t\t</h2>
\t\t\t\t\t<p>{{webSetting.brandSubtitle}}</p>
\t\t\t\t</section>
\t\t\t</div>\t
\t\t</div>
\t{% endif %}\t
<!-- Banner -->
<div class=\"sec-banner bg0 p-t-30\">
\t<div class=\"container\">
\t\t<div class=\"row\">
\t\t\t\t
\t\t\t{% for item in brands %}
\t\t\t\t{% if item.featured == 1 %}
\t\t\t\t\t{% if item.brand_count > 0 %}
\t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\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
\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\">
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
\t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
\t\t\t\t\t\t\t\t\t\t\t{{item.name}}
\t\t\t\t\t\t\t\t\t\t</span>\t\t\t
\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
\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
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t</div>\t\t\t
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
\t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
\t\t\t\t\t\t\t\t\t\t\tVer más
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t
\t\t</div>
\t</div>
</div>
{% endif %}
<!---- CATEGORIAS ---->
{% if categories | length > 0 %}
\t{% if webSetting.categoryTitle != '' and webSetting.categorySubtitle != '' %}
\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
\t\t\t<div class='col-12'>
\t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
\t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
\t\t\t\t\t\t{{webSetting.categoryTitle}}
\t\t\t\t\t</h2>
\t\t\t\t\t<p>{{webSetting.categorySubtitle}}</p>
\t\t\t\t</section>
\t\t\t</div>\t
\t\t</div>
\t{% endif %}\t
<!-- Banner -->
<div class=\"sec-banner bg0 p-t-30\">
\t<div class=\"container\">
\t\t<div class=\"row\">
\t\t\t\t
\t\t\t{% for item in categories %}
\t\t\t\t{% if item.featured == 1 %}
\t\t\t\t\t{% if item.category_count > 0 %}
\t\t\t\t\t\t<div class=\"col-md-6 col-xl-4 p-b-30 m-lr-auto\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\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
\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\">
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child1 flex-col-l\">
\t\t\t\t\t\t\t\t\t\t<span class=\"block1-name ltext-102 trans-04 p-b-8\">
\t\t\t\t\t\t\t\t\t\t\t{{item.name}}
\t\t\t\t\t\t\t\t\t\t</span>\t\t\t
\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
\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
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t</div>\t\t\t
\t\t\t\t\t\t\t\t\t<div class=\"block1-txt-child2 p-b-4 trans-05\">
\t\t\t\t\t\t\t\t\t\t<div class=\"block1-link stext-101 cl0 trans-09\">
\t\t\t\t\t\t\t\t\t\t\tVer más
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t
\t\t</div>
\t</div>
</div>
{% endif %}
<!---- BLOGS ---->
{% if blogs | length > 0 %}
\t{% if webSetting.blogTitle != '' and webSetting.blogSubtitle != '' %}
\t\t<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
\t\t\t<div class='col-12'>
\t\t\t\t<section class=\"txt-center p-lr-15 p-tb-52 text_color_main\">
\t\t\t\t\t<h2 class=\"ltext-105 txt-center\">
\t\t\t\t\t\t{{webSetting.blogTitle}}
\t\t\t\t\t</h2>
\t\t\t\t\t<p>
\t\t\t\t\t\t{{webSetting.blogSubtitle}}
\t\t\t\t\t</p>
\t\t\t\t</section>
\t\t\t</div>\t
\t\t</div>
\t{% endif %}\t
\t<!-- Banner -->
\t<div class=\"sec-banner bg0 p-t-30\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row justify-content-md-center\">
\t\t\t\t{% for blog in blogs %}
\t\t\t\t
\t\t\t\t\t<div class=\"col-lg-4\" style=\"padding-top: 10px\">
\t\t\t\t\t\t<div class=\"card\">
\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}) }}'\">
\t\t\t\t\t\t\t<div class=\"card-body\" >
\t\t\t\t\t\t\t\t<h5 class=\"card-title\" style='margin-bottom:0px;'>
\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}) }}\">
\t\t\t\t\t\t\t\t\t\t{{blog.title}}
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</h5>
\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>
\t\t\t\t\t\t\t\t<br><br>
\t\t\t\t\t\t\t\t<div style='min-height: 130px;'>
\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>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t</div>
\t</div>
{% endif %}
<!-- LOAD ITEMS DINAMICALLY -->
<br>
{{ include('Frontend/product.html.twig', {filter:true, webSetting: webSetting, slug: slug}) }}
\t
{% endblock %}", "Frontend/Index/index.html.twig", "/home/sinfilas/public_html/templates/Frontend/Index/index.html.twig");
}
}