var/cache/dev/twig/89/892b4e5fadf6bde098ba997d2ea12e32.php line 51

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. /* content/home.html.twig */
  15. class __TwigTemplate_378967feb485c6ca6036a0cf32a9ebb5 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.             'content' => [$this'block_content'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layouts/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/home.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/home.html.twig"));
  41.         $this->parent $this->loadTemplate("layouts/layout.html.twig""content/home.html.twig"1);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 2
  56.         yield "
  57. ";
  58.         // line 3
  59.         $context["cache"] = $this->extensions['Pimcore\Twig\Extension\CacheExtension']->init("main_navigation_cache"60);
  60.         // line 4
  61.         if ( !CoreExtension::getAttribute($this->env$this->source, (isset($context["cache"]) || array_key_exists("cache"$context) ? $context["cache"] : (function () { throw new RuntimeError('Variable "cache" does not exist.'4$this->source); })()), "start", [], "method"falsefalsetrue4)) {
  62.             // line 5
  63.             yield "
  64. ";
  65.             // line 7
  66.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content", ["allowed" => ["portal-banner""our-technology-partners""proudly-sponsor""contact-c2-form"]]);
  67.             // line 11
  68.             yield "
  69. <!-- Hero Section -->
  70. <!--/Hero Section -->
  71. <!-- Tech Partners Section -->
  72. <!--/Tech Partners Section -->
  73. <!-- Main Content -->
  74. <div id=\"main-content\">
  75.     <!-- Main Page Content -->
  76.     <div id=\"main-page-content\" class=\"content-max-width\">
  77.         ";
  78.             // line 20
  79.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content2", ["allowed" => ["our-projects""services""award""our-customers""our-products""blog-and-news""achievement""global-partnership""contact-c2-form"]]);
  80.             // line 34
  81.             yield "
  82.     </div>
  83.     <!--/Main Page Content -->
  84. </div>
  85. <script type=\"application/ld+json\">
  86.     {
  87.         \"@context\": \"https://schema.org\",
  88.         \"@type\": \"Organization\",
  89.         \"name\": \"CENTRIC\",
  90.         \"url\": \"";
  91.             // line 43
  92.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(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.'43$this->source); })()), "request", [], "any"falsefalsetrue43), "getSchemeAndHttpHost", [], "any"falsefalsetrue43), 43$this->source), "html"nulltrue);
  93.             yield "\",
  94.         \"logo\": \"";
  95.             // line 44
  96.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(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.'44$this->source); })()), "request", [], "any"falsefalsetrue44), "getSchemeAndHttpHost", [], "any"falsefalsetrue44), 44$this->source), "html"nulltrue);
  97.             yield "/assets/images/centric_logo_color_text.svg\"
  98.     }
  99. </script>
  100. <!--/Main Content -->
  101.   ";
  102.             // line 49
  103.             CoreExtension::getAttribute($this->env$this->source, (isset($context["cache"]) || array_key_exists("cache"$context) ? $context["cache"] : (function () { throw new RuntimeError('Variable "cache" does not exist.'49$this->source); })()), "end", [], "method"falsefalsetrue49);
  104.         }
  105.         // line 51
  106.         yield "
  107. ";
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.         return; yield '';
  113.     }
  114.     /**
  115.      * @codeCoverageIgnore
  116.      */
  117.     public function getTemplateName()
  118.     {
  119.         return "content/home.html.twig";
  120.     }
  121.     /**
  122.      * @codeCoverageIgnore
  123.      */
  124.     public function isTraitable()
  125.     {
  126.         return false;
  127.     }
  128.     /**
  129.      * @codeCoverageIgnore
  130.      */
  131.     public function getDebugInfo()
  132.     {
  133.         return array (  122 => 51,  119 => 49,  111 => 44,  107 => 43,  96 => 34,  94 => 20,  83 => 11,  81 => 7,  77 => 5,  75 => 4,  73 => 3,  70 => 2,  38 => 1,);
  134.     }
  135.     public function getSourceContext()
  136.     {
  137.         return new Source("{% extends 'layouts/layout.html.twig' %} {% block content %}
  138. {% set cache = pimcore_cache(\"main_navigation_cache\", 60) %}
  139. {% if not cache.start() %}
  140. {{
  141.     pimcore_areablock(\"content\", {
  142.         allowed: [\"portal-banner\", \"our-technology-partners\",\"proudly-sponsor\",'contact-c2-form']
  143.     })
  144. }}
  145. <!-- Hero Section -->
  146. <!--/Hero Section -->
  147. <!-- Tech Partners Section -->
  148. <!--/Tech Partners Section -->
  149. <!-- Main Content -->
  150. <div id=\"main-content\">
  151.     <!-- Main Page Content -->
  152.     <div id=\"main-page-content\" class=\"content-max-width\">
  153.         {{
  154.             pimcore_areablock(\"content2\", {
  155.                 allowed: [
  156.                     \"our-projects\",
  157.                     \"services\",
  158.                     \"award\",
  159.                     \"our-customers\",
  160.                     \"our-products\",
  161.                     \"blog-and-news\",
  162.                     \"achievement\",
  163.                     \"global-partnership\",
  164.                     \"contact-c2-form\"
  165.                 ]
  166.             })
  167.         }}
  168.     </div>
  169.     <!--/Main Page Content -->
  170. </div>
  171. <script type=\"application/ld+json\">
  172.     {
  173.         \"@context\": \"https://schema.org\",
  174.         \"@type\": \"Organization\",
  175.         \"name\": \"CENTRIC\",
  176.         \"url\": \"{{app.request.getSchemeAndHttpHost}}\",
  177.         \"logo\": \"{{app.request.getSchemeAndHttpHost}}/assets/images/centric_logo_color_text.svg\"
  178.     }
  179. </script>
  180. <!--/Main Content -->
  181.   {% do cache.end() %}
  182. {% endif %}
  183. {% endblock %}
  184. ""content/home.html.twig""/var/www/html/templates/content/home.html.twig");
  185.     }
  186.     
  187.     public function checkSecurity()
  188.     {
  189.         static $tags = array("set" => 3"if" => 4"do" => 49);
  190.         static $filters = array("escape" => 43);
  191.         static $functions = array("pimcore_cache" => 3"pimcore_areablock" => 8);
  192.         try {
  193.             $this->sandbox->checkSecurity(
  194.                 ['set''if''do'],
  195.                 ['escape'],
  196.                 ['pimcore_cache''pimcore_areablock'],
  197.                 $this->source
  198.             );
  199.         } catch (SecurityError $e) {
  200.             $e->setSourceContext($this->source);
  201.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  202.                 $e->setTemplateLine($tags[$e->getTagName()]);
  203.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  204.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  205.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  206.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  207.             }
  208.             throw $e;
  209.         }
  210.     }
  211. }