var/cache/dev/twig/78/78fb51d8737fb2dea24065000c98ca87.php line 38

  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. /* Default/page.html.twig */
  14. class __TwigTemplate_562e38d9c3c0df70aca4a2a3e117f556 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 8
  29.         return "Default/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""Default/page.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""Default/page.html.twig"));
  38.         // line 1
  39.         if ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'1$this->source); })())) {
  40.             // line 2
  41.             $context["title"] = twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'2$this->source); })()), "title", [], "any"falsefalsefalse2);
  42.         }
  43.         // line 4
  44.         $context["iconColor"] = "#81B0B1";
  45.         // line 5
  46.         $context["titleColor"] = "#1F4878";
  47.         // line 6
  48.         $context["bgColor"] = "#ffffff";
  49.         // line 7
  50.         $context["menu"] = "ministers";
  51.         // line 8
  52.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/page.html.twig"8);
  53.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  54.         
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.     }
  59.     // line 9
  60.     public function block_content($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  67.         // line 10
  68.         echo "<div class='";
  69.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("gpadding bottom-60-in"), "html"nulltrue);
  70.         echo " ";
  71.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("hz-20-in vt-30-in"), "html"nulltrue);
  72.         echo " '>
  73. \t";
  74.         // line 11
  75.         if ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'11$this->source); })())) {
  76.             // line 12
  77.             echo "\t";
  78.             $context["content"] = $this->env->getFilter('summary')->getCallable()(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'12$this->source); })()), "content", [], "any"falsefalsefalse12));
  79.             // line 13
  80.             echo "    <div class='";
  81.             echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("flex row top"), "html"nulltrue);
  82.             echo " ";
  83.             echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  84.             echo "'>
  85.         ";
  86.             // line 14
  87.             $context["hasSidebar"] = (((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'14$this->source); })()), "picture", [], "any"falsefalsefalse14) || twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'14$this->source); })()), "pictureTitle", [], "any"falsefalsefalse14)) || twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'14$this->source); })()), "pictureSubtitle", [], "any"falsefalsefalse14)) || (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'14$this->source); })()), "summary", [], "any"falsefalsefalse14)) > 20));
  88.             // line 15
  89.             echo "\t\t";
  90.             if (((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'15$this->source); })()), "picture", [], "any"falsefalsefalse15) || twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'15$this->source); })()), "pictureTitle", [], "any"falsefalsefalse15)) || twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'15$this->source); })()), "pictureSubtitle", [], "any"falsefalsefalse15))) {
  91.                 // line 16
  92.                 echo "\t\t<figure class='";
  93.                 echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("third right-80 "), "html"nulltrue);
  94.                 echo " ";
  95.                 echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("w100 bottom-20"), "html"nulltrue);
  96.                 echo "'>
  97. \t\t\t";
  98.                 // line 17
  99.                 if (twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'17$this->source); })()), "picture", [], "any"falsefalsefalse17)) {
  100.                     // line 18
  101.                     echo "\t\t\t<img src='";
  102.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'18$this->source); })()), "picture", [], "any"falsefalsefalse18), "file", [], "any"falsefalsefalse18)), "html"nulltrue);
  103.                     echo "' class='block w100 ";
  104.                     echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("radius-20"), "html"nulltrue);
  105.                     echo " ";
  106.                     echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("radius-10"), "html"nulltrue);
  107.                     echo "' alt=\"";
  108.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'18$this->source); })()), "pictureTitle", [], "any"falsefalsefalse18)) ? (twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'18$this->source); })()), "pictureTitle", [], "any"falsefalsefalse18)) : ((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'18$this->source); })()))), "html"nulltrue);
  109.                     echo "\">
  110. \t\t\t";
  111.                 }
  112.                 // line 20
  113.                 echo "\t\t\t<h2 class='h3 success top-20 upper font-alt'>";
  114.                 ((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'20$this->source); })()), "pictureTitle", [], "any"falsefalsefalse20)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'20$this->source); })()), "pictureTitle", [], "any"falsefalsefalse20), "html"nulltrue))) : (print ("")));
  115.                 echo "</h2>
  116. \t\t\t<h3 class='h6 semibold'>";
  117.                 // line 21
  118.                 ((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'21$this->source); })()), "pictureSubtitle", [], "any"falsefalsefalse21)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'21$this->source); })()), "pictureSubtitle", [], "any"falsefalsefalse21), "html"nulltrue))) : (print ("")));
  119.                 echo "</h3>
  120. \t\t</figure>
  121.         ";
  122.             } elseif ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source,             // line 23
  123. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'23$this->source); })()), "summary", [], "any"falsefalsefalse23)) > 20)) {
  124.                 // line 24
  125.                 echo "\t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow ";
  126.                 echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("third-40 right-80"), "html"nulltrue);
  127.                 echo " ";
  128.                 echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("w100 bottom-20"), "html"nulltrue);
  129.                 echo "'>
  130. \t\t\t<ul class='list h4'>
  131. \t\t\t\t";
  132.                 // line 26
  133.                 echo twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'26$this->source); })()), "summary", [], "any"falsefalsefalse26);
  134.                 echo "
  135. \t\t\t</ul>
  136. \t\t</div>
  137. \t\t";
  138.             }
  139.             // line 30
  140.             echo "\t\t<div class='w100 ";
  141.             echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()((((isset($context["hasSidebar"]) || array_key_exists("hasSidebar"$context) ? $context["hasSidebar"] : (function () { throw new RuntimeError('Variable "hasSidebar" does not exist.'30$this->source); })())) ? ("") : ("gpadding"))), "html"nulltrue);
  142.             echo " ";
  143.             echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  144.             echo " '>
  145. \t\t\t<div class='article h5 text-justify'>
  146. \t\t\t";
  147.             // line 32
  148.             echo twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'32$this->source); })()), "content", [], "any"falsefalsefalse32);
  149.             echo "
  150. \t\t\t</div>
  151. \t\t</div>
  152.     </div>
  153. \t";
  154.         }
  155.         // line 37
  156.         echo "</div>
  157. ";
  158.         
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160.         
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  162.     }
  163.     public function getTemplateName()
  164.     {
  165.         return "Default/page.html.twig";
  166.     }
  167.     public function isTraitable()
  168.     {
  169.         return false;
  170.     }
  171.     public function getDebugInfo()
  172.     {
  173.         return array (  170 => 37,  162 => 32,  154 => 30,  147 => 26,  139 => 24,  137 => 23,  132 => 21,  127 => 20,  115 => 18,  113 => 17,  106 => 16,  103 => 15,  101 => 14,  94 => 13,  91 => 12,  89 => 11,  82 => 10,  72 => 9,  61 => 8,  59 => 7,  57 => 6,  55 => 5,  53 => 4,  50 => 2,  48 => 1,  35 => 8,);
  174.     }
  175.     public function getSourceContext()
  176.     {
  177.         return new Source("{% if page %}
  178. {% set title = page.title %}
  179. {% endif %}
  180. {% set iconColor = \"#81B0B1\" %}
  181. {% set titleColor = \"#1F4878\" %}
  182. {% set bgColor = \"#ffffff\" %}
  183. {% set menu = \"ministers\" %}
  184. {% extends 'Default/base.html.twig' %}
  185. {% block content %}
  186. <div class='{{desktop(\"gpadding bottom-60-in\")}} {{mobile(\"hz-20-in vt-30-in\")}} '>
  187. \t{% if page %}
  188. \t{% set content = page.content|summary %}
  189.     <div class='{{desktop(\"flex row top\")}} {{mobile(\"\")}}'>
  190.         {% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
  191. \t\t{% if page.picture or page.pictureTitle or page.pictureSubtitle %}
  192. \t\t<figure class='{{desktop(\"third right-80 \")}} {{mobile(\"w100 bottom-20\")}}'>
  193. \t\t\t{% if page.picture %}
  194. \t\t\t<img src='{{asset(page.picture.file)}}' class='block w100 {{desktop(\"radius-20\")}} {{mobile(\"radius-10\")}}' alt=\"{{page.pictureTitle ? page.pictureTitle : title}}\">
  195. \t\t\t{% endif %}
  196. \t\t\t<h2 class='h3 success top-20 upper font-alt'>{{page.pictureTitle ? page.pictureTitle}}</h2>
  197. \t\t\t<h3 class='h6 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
  198. \t\t</figure>
  199.         {% elseif content.summary|length > 20 %}
  200. \t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow {{desktop(\"third-40 right-80\")}} {{mobile(\"w100 bottom-20\")}}'>
  201. \t\t\t<ul class='list h4'>
  202. \t\t\t\t{{ content.summary|raw }}
  203. \t\t\t</ul>
  204. \t\t</div>
  205. \t\t{% endif %}
  206. \t\t<div class='w100 {{desktop(hasSidebar ? \"\" : \"gpadding\")}} {{mobile(\"\")}} '>
  207. \t\t\t<div class='article h5 text-justify'>
  208. \t\t\t{{ content.content|raw }}
  209. \t\t\t</div>
  210. \t\t</div>
  211.     </div>
  212. \t{% endif %}
  213. </div>
  214. {% endblock %}
  215. ""Default/page.html.twig""/home/olasoftnka/asin/templates/Default/page.html.twig");
  216.     }
  217. }