var/cache/dev/twig/78/78fb51d8737fb2dea24065000c98ca87.php line 38
<?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;
/* Default/page.html.twig */
class __TwigTemplate_562e38d9c3c0df70aca4a2a3e117f556 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 8
return "Default/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", "Default/page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/page.html.twig"));
// line 1
if ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 1, $this->source); })())) {
// line 2
$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", false, false, false, 2);
}
// line 4
$context["iconColor"] = "#81B0B1";
// line 5
$context["titleColor"] = "#1F4878";
// line 6
$context["bgColor"] = "#ffffff";
// line 7
$context["menu"] = "ministers";
// line 8
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/page.html.twig", 8);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 9
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 10
echo "<div class='";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("gpadding bottom-60-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("hz-20-in vt-30-in"), "html", null, true);
echo " '>
\t";
// line 11
if ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })())) {
// line 12
echo "\t";
$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", false, false, false, 12));
// line 13
echo " <div class='";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("flex row top"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);
echo "'>
";
// line 14
$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", false, false, false, 14) || 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", false, false, false, 14)) || 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", false, false, false, 14)) || (twig_length_filter($this->env, 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.', 14, $this->source); })()), "summary", [], "any", false, false, false, 14)) > 20));
// line 15
echo "\t\t";
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", false, false, false, 15) || 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", false, false, false, 15)) || 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", false, false, false, 15))) {
// line 16
echo "\t\t<figure class='";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("third right-80 "), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("w100 bottom-20"), "html", null, true);
echo "'>
\t\t\t";
// line 17
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", false, false, false, 17)) {
// line 18
echo "\t\t\t<img src='";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, 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); })()), "picture", [], "any", false, false, false, 18), "file", [], "any", false, false, false, 18)), "html", null, true);
echo "' class='block w100 ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("radius-20"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("radius-10"), "html", null, true);
echo "' alt=\"";
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", false, false, false, 18)) ? (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", false, false, false, 18)) : ((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 18, $this->source); })()))), "html", null, true);
echo "\">
\t\t\t";
}
// line 20
echo "\t\t\t<h2 class='h3 success top-20 upper font-alt'>";
((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", false, false, false, 20)) ? (print (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.', 20, $this->source); })()), "pictureTitle", [], "any", false, false, false, 20), "html", null, true))) : (print ("")));
echo "</h2>
\t\t\t<h3 class='h6 semibold'>";
// line 21
((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", false, false, false, 21)) ? (print (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.', 21, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 21), "html", null, true))) : (print ("")));
echo "</h3>
\t\t</figure>
";
} elseif ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, // line 23
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 23, $this->source); })()), "summary", [], "any", false, false, false, 23)) > 20)) {
// line 24
echo "\t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("third-40 right-80"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("w100 bottom-20"), "html", null, true);
echo "'>
\t\t\t<ul class='list h4'>
\t\t\t\t";
// line 26
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", false, false, false, 26);
echo "
\t\t\t</ul>
\t\t</div>
\t\t";
}
// line 30
echo "\t\t<div class='w100 ";
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", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);
echo " '>
\t\t\t<div class='article h5 text-justify'>
\t\t\t";
// line 32
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", false, false, false, 32);
echo "
\t\t\t</div>
\t\t</div>
</div>
\t";
}
// line 37
echo "</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Default/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% if page %}
{% set title = page.title %}
{% endif %}
{% set iconColor = \"#81B0B1\" %}
{% set titleColor = \"#1F4878\" %}
{% set bgColor = \"#ffffff\" %}
{% set menu = \"ministers\" %}
{% extends 'Default/base.html.twig' %}
{% block content %}
<div class='{{desktop(\"gpadding bottom-60-in\")}} {{mobile(\"hz-20-in vt-30-in\")}} '>
\t{% if page %}
\t{% set content = page.content|summary %}
<div class='{{desktop(\"flex row top\")}} {{mobile(\"\")}}'>
{% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
\t\t{% if page.picture or page.pictureTitle or page.pictureSubtitle %}
\t\t<figure class='{{desktop(\"third right-80 \")}} {{mobile(\"w100 bottom-20\")}}'>
\t\t\t{% if page.picture %}
\t\t\t<img src='{{asset(page.picture.file)}}' class='block w100 {{desktop(\"radius-20\")}} {{mobile(\"radius-10\")}}' alt=\"{{page.pictureTitle ? page.pictureTitle : title}}\">
\t\t\t{% endif %}
\t\t\t<h2 class='h3 success top-20 upper font-alt'>{{page.pictureTitle ? page.pictureTitle}}</h2>
\t\t\t<h3 class='h6 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
\t\t</figure>
{% elseif content.summary|length > 20 %}
\t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow {{desktop(\"third-40 right-80\")}} {{mobile(\"w100 bottom-20\")}}'>
\t\t\t<ul class='list h4'>
\t\t\t\t{{ content.summary|raw }}
\t\t\t</ul>
\t\t</div>
\t\t{% endif %}
\t\t<div class='w100 {{desktop(hasSidebar ? \"\" : \"gpadding\")}} {{mobile(\"\")}} '>
\t\t\t<div class='article h5 text-justify'>
\t\t\t{{ content.content|raw }}
\t\t\t</div>
\t\t</div>
</div>
\t{% endif %}
</div>
{% endblock %}
", "Default/page.html.twig", "/home/olasoftnka/asin/templates/Default/page.html.twig");
}
}