var/cache/dev/twig/8d/8d00b443c87db6b18724e0c03c2a222b3d02ffab02919dec29dfb22c15a2804d.php line 153

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* front/base/base_corporate.html.twig */
  15. class __TwigTemplate_e2f64f6a879ecbdaba8248c8970cfffa4059156b67e2d57e14009f403a8f2c67 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'meta_title_fb' => [$this'block_meta_title_fb'],
  25.             'meta_image_fb' => [$this'block_meta_image_fb'],
  26.             'current_url' => [$this'block_current_url'],
  27.             'meta_description_fb' => [$this'block_meta_description_fb'],
  28.             'header' => [$this'block_header'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "front/base/base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/base/base_corporate.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/base/base_corporate.html.twig"));
  43.         // line 15
  44.         $context["is_shop"] = false;
  45.         // line 1
  46.         $this->parent $this->loadTemplate("front/base/base.html.twig""front/base/base_corporate.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 3
  54.     public function block_meta_title_fb($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_title_fb"));
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_title_fb"));
  61.         (((CoreExtension::getAttribute($this->env$this->source, ($context["metas"] ?? null), "meta_title", [], "any"truetruefalse3) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["metas"] ?? null), "meta_title", [], "any"falsefalsefalse3)))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, ($context["metas"] ?? null), "meta_title", [], "any"falsefalsefalse3), "html"nulltrue)) : (yield ""));
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.         return; yield '';
  67.     }
  68.     // line 5
  69.     public function block_meta_image_fb($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_image_fb"));
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_image_fb"));
  76.         if ( !CoreExtension::getAttribute($this->env$this->source, ($context["metas"] ?? null), "meta_image_fb", [], "any"truetruefalse5)) {
  77.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url_img"]) || array_key_exists("base_url_img"$context) ? $context["base_url_img"] : (function () { throw new RuntimeError('Variable "base_url_img" does not exist.'5$this->source); })()), "html"nulltrue);
  78.             yield " public/img/cms/bigbuy-home.jpg";
  79.         } else {
  80.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'5$this->source); })()), "html"nulltrue);
  81.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("App\\Application\\Service\\Helper\\LinkGenerator::BIGBUY_LANDING_PATH_IMAGES"), "html"nulltrue);
  82.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["metas"]) || array_key_exists("metas"$context) ? $context["metas"] : (function () { throw new RuntimeError('Variable "metas" does not exist.'5$this->source); })()), "meta_image_fb", [], "any"falsefalsefalse5), "html"nulltrue);
  83.         }
  84.         
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  86.         
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  88.         return; yield '';
  89.     }
  90.     // line 7
  91.     public function block_current_url($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""current_url"));
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""current_url"));
  98.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "uri", [], "any"falsefalsefalse7), "html"nulltrue);
  99.         
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  101.         
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  103.         return; yield '';
  104.     }
  105.     // line 8
  106.     public function block_meta_description_fb($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description_fb"));
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_description_fb"));
  113.         (((CoreExtension::getAttribute($this->env$this->source, ($context["metas"] ?? null), "meta_description", [], "any"truetruefalse8) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["metas"] ?? null), "meta_description", [], "any"falsefalsefalse8)))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, ($context["metas"] ?? null), "meta_description", [], "any"falsefalsefalse8), "html"nulltrue)) : (yield ""));
  114.         
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  116.         
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  118.         return; yield '';
  119.     }
  120.     // line 11
  121.     public function block_header($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  128.         // line 12
  129.         yield "    ";
  130.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\HeaderController::corporateHeader", ["parentController" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'12$this->source); })()), "request", [], "any"falsefalsefalse12), "get", ["_controller"], "method"falsefalsefalse12), "uri" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'12$this->source); })()), "request", [], "any"falsefalsefalse12), "uri", [], "any"falsefalsefalse12)]));
  131.         yield "
  132. ";
  133.         
  134.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  135.         
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  137.         return; yield '';
  138.     }
  139.     /**
  140.      * @codeCoverageIgnore
  141.      */
  142.     public function getTemplateName()
  143.     {
  144.         return "front/base/base_corporate.html.twig";
  145.     }
  146.     /**
  147.      * @codeCoverageIgnore
  148.      */
  149.     public function isTraitable()
  150.     {
  151.         return false;
  152.     }
  153.     /**
  154.      * @codeCoverageIgnore
  155.      */
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  163 => 12,  153 => 11,  133 => 8,  113 => 7,  86 => 5,  66 => 3,  55 => 1,  53 => 15,  40 => 1,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{% extends 'front/base/base.html.twig' %}
  163. {# metas landings #}
  164. {% block meta_title_fb %}{{ metas.meta_title??\"\" }}{% endblock %}
  165. {% block meta_image_fb %}{% if metas.meta_image_fb is not defined %}{{ base_url_img}} public/img/cms/bigbuy-home.jpg{% else %}{{ base_url}}{{ constant('App\\\\Application\\\\Service\\\\Helper\\\\LinkGenerator::BIGBUY_LANDING_PATH_IMAGES')}}{{ metas.meta_image_fb }}{% endif %}
  166. {% endblock %}
  167. {% block current_url %}{{ app.request.uri }}{% endblock %}
  168. {% block meta_description_fb %}{{ metas.meta_description??\"\" }}{% endblock %}
  169. {# endblock metas landings #}
  170. {% block header %}
  171.     {{ render(controller('App\\\\Controller\\\\Front\\\\HeaderController::corporateHeader', { parentController: app.request.get('_controller'), uri: app.request.uri })) }}
  172. {% endblock %}
  173. {% set is_shop = false %}""front/base/base_corporate.html.twig""/var/www/bigbuy-web/templates/front/base/base_corporate.html.twig");
  174.     }
  175. }