var/cache/dev/twig/30/303870e89a0b297860283efb9fd417adb486387b9c76edf3d8d8e3c7a4e0259a.php line 60

Open in your IDE?
  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_0ca8686387846d56bb5704944cf5d13150489ca773c8aba28ad71cc71672dd62 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.             'titlebox' => [$this'block_titlebox'],
  24.             'body' => [$this'block_body'],
  25.             'banner' => [$this'block_banner'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 6
  31.         return "Default/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""Default/page.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""Default/page.html.twig"));
  40.         // line 1
  41.         if ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'1$this->source); })())) {
  42.             // line 2
  43.             $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);
  44.             // line 3
  45.             $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"falsefalsefalse3);
  46.         }
  47.         // line 5
  48.         $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"));
  49.         // line 6
  50.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/page.html.twig"6);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  54.         
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  56.     }
  57.     // line 8
  58.     public function block_titlebox($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  65.         
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  67.         
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  69.     }
  70.     // line 11
  71.     public function block_body($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  80.         
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  82.     }
  83.     // line 14
  84.     public function block_banner($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  91.         // line 15
  92.         echo "<div class=\"flex col htop-in\">
  93.     <div class='relative w100 flex col gpadding ";
  94.         // line 17
  95.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-40-in"]), "html"nulltrue);
  96.         echo " ";
  97.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  98.         echo "'>
  99.         <i class=\"vt-5-in bg-gray quarter-80 radius-5\"></i>
  100.         <h1 class='success h2'>";
  101.         // line 19
  102.         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"nulltrue);
  103.         echo "</h1>
  104.     </div>
  105.     <div class='relative gpadding ";
  106.         // line 22
  107.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-80-in"]), "html"nulltrue);
  108.         echo " ";
  109.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html"nulltrue);
  110.         echo " '>
  111.     \t";
  112.         // line 23
  113.         if ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'23$this->source); })())) {
  114.             // line 24
  115.             echo "    \t";
  116.             $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"falsefalsefalse24)]);
  117.             // line 25
  118.             echo "        <div class='";
  119.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row top"]), "html"nulltrue);
  120.             echo " ";
  121.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  122.             echo "'>
  123.             ";
  124.             // line 26
  125.             $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"falsefalsefalse26) || 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"falsefalsefalse26)) || 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"falsefalsefalse26)) || (=== twig_compare(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.'26$this->source); })()), "summary", [], "any"falsefalsefalse26)), 20)));
  126.             // line 27
  127.             echo "    \t\t";
  128.             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"falsefalsefalse27) || 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"falsefalsefalse27)) || 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"falsefalsefalse27))) {
  129.                 // line 28
  130.                 echo "    \t\t<figure class='";
  131.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third right-80 "]), "html"nulltrue);
  132.                 echo " ";
  133.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html"nulltrue);
  134.                 echo "'>
  135.     \t\t\t";
  136.                 // line 29
  137.                 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"falsefalsefalse29)) {
  138.                     // line 30
  139.                     echo "    \t\t\t<img src='";
  140.                     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.'30$this->source); })()), "picture", [], "any"falsefalsefalse30), "thumbnail", [], "any"falsefalsefalse30)), "html"nulltrue);
  141.                     echo "' class='block w100 ";
  142.                     echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["radius-20"]), "html"nulltrue);
  143.                     echo " ";
  144.                     echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["radius-10"]), "html"nulltrue);
  145.                     echo "' alt=\"";
  146.                     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"falsefalsefalse30)) ? (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"falsefalsefalse30)) : ((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'30$this->source); })()))), "html"nulltrue);
  147.                     echo "\">
  148.     \t\t\t";
  149.                 }
  150.                 // line 32
  151.                 echo "    \t\t\t<h2 class='h3 success top-20 upper font-alt'>";
  152.                 ((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"falsefalsefalse32)) ? (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.'32$this->source); })()), "pictureTitle", [], "any"falsefalsefalse32), "html"nulltrue))) : (print ("")));
  153.                 echo "</h2>
  154.     \t\t\t<h3 class='h6 semibold'>";
  155.                 // line 33
  156.                 ((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"falsefalsefalse33)) ? (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.'33$this->source); })()), "pictureSubtitle", [], "any"falsefalsefalse33), "html"nulltrue))) : (print ("")));
  157.                 echo "</h3>
  158.     \t\t</figure>
  159.             ";
  160.             } elseif ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source,             // line 35
  161. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'35$this->source); })()), "summary", [], "any"falsefalsefalse35)), 20))) {
  162.                 // line 36
  163.                 echo "    \t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow ";
  164.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-40 right-80"]), "html"nulltrue);
  165.                 echo " ";
  166.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html"nulltrue);
  167.                 echo "'>
  168.     \t\t\t<ul class='list h5'>
  169.     \t\t\t\t";
  170.                 // line 38
  171.                 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"falsefalsefalse38);
  172.                 echo "
  173.     \t\t\t</ul>
  174.     \t\t</div>
  175.     \t\t";
  176.             }
  177.             // line 42
  178.             echo "    \t\t<div class='w100 ";
  179.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  180.             echo " ";
  181.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  182.             echo " '>
  183.     \t\t\t<div class='article h6 text-justify light'>
  184.     \t\t\t";
  185.             // line 44
  186.             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"falsefalsefalse44);
  187.             echo "
  188.     \t\t\t</div>
  189.     \t\t</div>
  190.         </div>
  191.     \t";
  192.         }
  193.         // line 49
  194.         echo "    </div>
  195. </div>
  196. ";
  197.         
  198.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  199.         
  200.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  201.     }
  202.     public function getTemplateName()
  203.     {
  204.         return "Default/page.html.twig";
  205.     }
  206.     public function isTraitable()
  207.     {
  208.         return false;
  209.     }
  210.     public function getDebugInfo()
  211.     {
  212.         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,);
  213.     }
  214.     public function getSourceContext()
  215.     {
  216.         return new Source("{% if page %}
  217. {% set title = page.title %}
  218. {% set description = page.description %}
  219. {% endif %}
  220. {% set menu = menu ? menu : 'about' %}
  221. {% extends 'Default/base.html.twig' %}
  222. {% block titlebox %}
  223. {% endblock titlebox %}
  224. {% block body %}
  225. {% endblock body %}
  226. {% block banner %}
  227. <div class=\"flex col htop-in\">
  228.     <div class='relative w100 flex col gpadding {{desktop(\"top-40-in\")}} {{mobile(\"\")}}'>
  229.         <i class=\"vt-5-in bg-gray quarter-80 radius-5\"></i>
  230.         <h1 class='success h2'>{{title}}</h1>
  231.     </div>
  232.     <div class='relative gpadding {{desktop(\"vt-80-in\")}} {{mobile(\"vt-30-in\")}} '>
  233.     \t{% if page %}
  234.     \t{% set content = page.content|summary %}
  235.         <div class='{{desktop(\"flex row top\")}} {{mobile(\"\")}}'>
  236.             {% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
  237.     \t\t{% if page.picture or page.pictureTitle or page.pictureSubtitle %}
  238.     \t\t<figure class='{{desktop(\"third right-80 \")}} {{mobile(\"w100 bottom-20\")}}'>
  239.     \t\t\t{% if page.picture %}
  240.     \t\t\t<img src='{{asset(page.picture.thumbnail)}}' class='block w100 {{desktop(\"radius-20\")}} {{mobile(\"radius-10\")}}' alt=\"{{page.pictureTitle ? page.pictureTitle : title}}\">
  241.     \t\t\t{% endif %}
  242.     \t\t\t<h2 class='h3 success top-20 upper font-alt'>{{page.pictureTitle ? page.pictureTitle}}</h2>
  243.     \t\t\t<h3 class='h6 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
  244.     \t\t</figure>
  245.             {% elseif content.summary|length > 20 %}
  246.     \t\t<div class='border-right border-1x border-solid border-gray-alt hoverflow {{desktop(\"third-40 right-80\")}} {{mobile(\"w100 bottom-20\")}}'>
  247.     \t\t\t<ul class='list h5'>
  248.     \t\t\t\t{{ content.summary|raw }}
  249.     \t\t\t</ul>
  250.     \t\t</div>
  251.     \t\t{% endif %}
  252.     \t\t<div class='w100 {{desktop('')}} {{mobile(\"\")}} '>
  253.     \t\t\t<div class='article h6 text-justify light'>
  254.     \t\t\t{{ content.content|raw }}
  255.     \t\t\t</div>
  256.     \t\t</div>
  257.         </div>
  258.     \t{% endif %}
  259.     </div>
  260. </div>
  261. {% endblock %}
  262. ""Default/page.html.twig""/home/olasoftnka/cefal/templates/Default/page.html.twig");
  263.     }
  264. }