var/cache/dev/twig/e3/e3eb19660d8ec29b300c5469df8c6e9b2b198c007a0b6f4a70e0ec74e4893e74.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\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. /* themes/ismart/page/index.html.twig */
  15. class __TwigTemplate_13b79c7755ca843e8aa42c61273d622a18c4f616e19904a8ad37005f764a6a74 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.             'customStyle' => [$this'block_customStyle'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "themes/ismart/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""themes/ismart/page/index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""themes/ismart/page/index.html.twig"));
  40.         $this->parent $this->loadTemplate("themes/ismart/base.html.twig""themes/ismart/page/index.html.twig"1);
  41.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 2
  48.     public function block_customStyle($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""customStyle"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""customStyle"));
  55.         // line 3
  56.         yield "\t<style>
  57. \t\t";
  58.         // line 4
  59.         yield CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'4$this->source); })()), "customCss", [], "any"falsefalsefalse4);
  60.         yield "
  61. \t</style>
  62. ";
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.         return; yield '';
  68.     }
  69.     // line 7
  70.     public function block_body($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  77.         // line 8
  78.         yield "    <main class=\"";
  79.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'8$this->source); })()), "css", [], "any"falsefalsefalse8), "html"nulltrue);
  80.         yield "\">
  81. \t\t";
  82.         // line 9
  83.         $context["blocks"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'9$this->source); })()), "block", [], "any"falsefalsefalse9);
  84.         // line 10
  85.         yield "\t\t
  86. \t\t";
  87.         // line 11
  88.         $context['_parent'] = $context;
  89.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'11$this->source); })()));
  90.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  91.             // line 12
  92.             yield "\t\t\t";
  93.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source$context["block"], "location", [], "any"falsefalsefalse12), ""))) {
  94.                 // line 13
  95.                 yield "\t\t\t
  96. \t\t\t\t";
  97.                 // line 14
  98.                 if ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["block"], "active", [], "any"falsefalsefalse14)) || (=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source$context["block"], "active", [], "any"falsefalsefalse14), "active")))) {
  99.                     // line 15
  100.                     yield "\t\t\t\t\t";
  101.                     yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Frontend\\Controller\\BlockController::run", ["id" => CoreExtension::getAttribute($this->env$this->source$context["block"], "id", [], "any"falsefalsefalse15), "request" => CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "request", [], "any"falsefalsefalse15)]));
  102.                     yield "
  103. \t\t\t\t";
  104.                 }
  105.                 // line 17
  106.                 yield "\t\t\t";
  107.             }
  108.             // line 18
  109.             yield "\t\t";
  110.         }
  111.         $_parent $context['_parent'];
  112.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  113.         $context array_intersect_key($context$_parent) + $_parent;
  114.         // line 19
  115.         yield "    </main>
  116. ";
  117.         
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  119.         
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  121.         return; yield '';
  122.     }
  123.     /**
  124.      * @codeCoverageIgnore
  125.      */
  126.     public function getTemplateName()
  127.     {
  128.         return "themes/ismart/page/index.html.twig";
  129.     }
  130.     /**
  131.      * @codeCoverageIgnore
  132.      */
  133.     public function isTraitable()
  134.     {
  135.         return false;
  136.     }
  137.     /**
  138.      * @codeCoverageIgnore
  139.      */
  140.     public function getDebugInfo()
  141.     {
  142.         return array (  134 => 19,  128 => 18,  125 => 17,  119 => 15,  117 => 14,  114 => 13,  111 => 12,  107 => 11,  104 => 10,  102 => 9,  97 => 8,  87 => 7,  73 => 4,  70 => 3,  60 => 2,  37 => 1,);
  143.     }
  144.     public function getSourceContext()
  145.     {
  146.         return new Source("{% extends 'themes/ismart/base.html.twig' %}
  147. {% block customStyle %}
  148. \t<style>
  149. \t\t{{ page.customCss | raw }}
  150. \t</style>
  151. {% endblock %}
  152. {% block body %}
  153.     <main class=\"{{ page.css }}\">
  154. \t\t{% set blocks = post.block %}
  155. \t\t
  156. \t\t{% for block in blocks %}
  157. \t\t\t{% if block.location == ''%}
  158. \t\t\t
  159. \t\t\t\t{% if block.active is empty or block.active == 'active' %}
  160. \t\t\t\t\t{{ render( controller( 'App\\\\Frontend\\\\Controller\\\\BlockController::run',{id: block.id, request:app.request} )) }}
  161. \t\t\t\t{% endif %}
  162. \t\t\t{% endif %}
  163. \t\t{% endfor %}
  164.     </main>
  165. {% endblock %}""themes/ismart/page/index.html.twig""/home/ismart/web/ismart.edu.vn/public_html/templates/themes/ismart/page/index.html.twig");
  166.     }
  167. }