<?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_0ca8686387846d56bb5704944cf5d13150489ca773c8aba28ad71cc71672dd62 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'titlebox' => [$this, 'block_titlebox'],
'body' => [$this, 'block_body'],
'banner' => [$this, 'block_banner'],
];
}
protected function doGetParent(array $context)
{
// line 6
return "Default/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/page.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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 3
$context["description"] = 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.', 3, $this->source); })()), "description", [], "any", false, false, false, 3);
}
// line 5
$context["menu"] = (((isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 5, $this->source); })())) ? ((isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 5, $this->source); })())) : ("about"));
// line 6
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/page.html.twig", 6);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_titlebox($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "titlebox"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "titlebox"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 14
public function block_banner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
// line 15
echo "<div class=\"flex col htop-in\">
<div class='relative w100 flex col gpadding ";
// line 17
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-40-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
<i class=\"vt-5-in bg-gray quarter-80 radius-5\"></i>
<h1 class='success h2'>";
// line 19
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 19, $this->source); })()), "html", null, true);
echo "</h1>
</div>
<div class='relative gpadding ";
// line 22
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-80-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html", null, true);
echo " '>
\t";
// line 23
if ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 23, $this->source); })())) {
// line 24
echo " \t";
$context["content"] = call_user_func_array($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.', 24, $this->source); })()), "content", [], "any", false, false, false, 24)]);
// line 25
echo " <div class='";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row top"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 26
$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.', 26, $this->source); })()), "picture", [], "any", false, false, false, 26) || 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.', 26, $this->source); })()), "pictureTitle", [], "any", false, false, false, 26)) || 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.', 26, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 26)) || (1 === twig_compare(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.', 26, $this->source); })()), "summary", [], "any", false, false, false, 26)), 20)));
// line 27
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.', 27, $this->source); })()), "picture", [], "any", false, false, false, 27) || 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.', 27, $this->source); })()), "pictureTitle", [], "any", false, false, false, 27)) || 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.', 27, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 27))) {
// line 28
echo " \t\t<figure class='";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third right-80 "]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html", null, true);
echo "'>
\t\t\t";
// line 29
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.', 29, $this->source); })()), "picture", [], "any", false, false, false, 29)) {
// line 30
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.', 30, $this->source); })()), "picture", [], "any", false, false, false, 30), "thumbnail", [], "any", false, false, false, 30)), "html", null, true);
echo "' class='block w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["radius-20"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($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.', 30, $this->source); })()), "pictureTitle", [], "any", false, false, false, 30)) ? (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.', 30, $this->source); })()), "pictureTitle", [], "any", false, false, false, 30)) : ((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 30, $this->source); })()))), "html", null, true);
echo "\">
\t\t\t";
}
// line 32
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.', 32, $this->source); })()), "pictureTitle", [], "any", false, false, false, 32)) ? (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.', 32, $this->source); })()), "pictureTitle", [], "any", false, false, false, 32), "html", null, true))) : (print ("")));
echo "</h2>
\t\t\t<h3 class='h6 semibold'>";
// line 33
((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.', 33, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 33)) ? (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.', 33, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 33), "html", null, true))) : (print ("")));
echo "</h3>
\t\t</figure>
";
} elseif ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, // line 35
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 35, $this->source); })()), "summary", [], "any", false, false, false, 35)), 20))) {
// line 36
echo " \t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-40 right-80"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html", null, true);
echo "'>
\t\t\t<ul class='list h5'>
\t\t\t\t";
// line 38
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.', 38, $this->source); })()), "summary", [], "any", false, false, false, 38);
echo "
\t\t\t</ul>
\t\t</div>
\t\t";
}
// line 42
echo " \t\t<div class='w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo " '>
\t\t\t<div class='article h6 text-justify light'>
\t\t\t";
// line 44
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.', 44, $this->source); })()), "content", [], "any", false, false, false, 44);
echo "
\t\t\t</div>
\t\t</div>
</div>
\t";
}
// line 49
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 220 => 49, 212 => 44, 204 => 42, 197 => 38, 189 => 36, 187 => 35, 182 => 33, 177 => 32, 165 => 30, 163 => 29, 156 => 28, 153 => 27, 151 => 26, 144 => 25, 141 => 24, 139 => 23, 133 => 22, 127 => 19, 120 => 17, 116 => 15, 106 => 14, 88 => 11, 70 => 8, 59 => 6, 57 => 5, 54 => 3, 52 => 2, 50 => 1, 37 => 6,);
}
public function getSourceContext()
{
return new Source("{% if page %}
{% set title = page.title %}
{% set description = page.description %}
{% endif %}
{% set menu = menu ? menu : 'about' %}
{% extends 'Default/base.html.twig' %}
{% block titlebox %}
{% endblock titlebox %}
{% block body %}
{% endblock body %}
{% block banner %}
<div class=\"flex col htop-in\">
<div class='relative w100 flex col gpadding {{desktop(\"top-40-in\")}} {{mobile(\"\")}}'>
<i class=\"vt-5-in bg-gray quarter-80 radius-5\"></i>
<h1 class='success h2'>{{title}}</h1>
</div>
<div class='relative gpadding {{desktop(\"vt-80-in\")}} {{mobile(\"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.thumbnail)}}' 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 h5'>
\t\t\t\t{{ content.summary|raw }}
\t\t\t</ul>
\t\t</div>
\t\t{% endif %}
\t\t<div class='w100 {{desktop('')}} {{mobile(\"\")}} '>
\t\t\t<div class='article h6 text-justify light'>
\t\t\t{{ content.content|raw }}
\t\t\t</div>
\t\t</div>
</div>
\t{% endif %}
</div>
</div>
{% endblock %}
", "Default/page.html.twig", "/home/olasoftnka/cefal/templates/Default/page.html.twig");
}
}