var/cache/dev/twig/2a/2ac238c1833dd8d2c5ec471e995984cf.php line 39

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. /* templates/blog_post.html.twig */
  14. class __TwigTemplate_b806a8d8eec051533d1a2a34b529351b 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.             'body' => [$this'block_body'],
  24.             'title' => [$this'block_title'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "layouts/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""templates/blog_post.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""templates/blog_post.html.twig"));
  39.         $this->parent $this->loadTemplate("layouts/layout.html.twig""templates/blog_post.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_body($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  54.         // line 4
  55.         echo "    <section class=\"page\">
  56.         <!-- ===  Page header === -->
  57.         <div class=\"position-relative\">
  58.             <div class=\"page-header\" style=\"background-image:url(";
  59.         // line 8
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/activity-2.jpg"), "html"nulltrue);
  61.         echo ")\">
  62.                 <div class=\"container\">
  63.                     <div class=\"page-title\">
  64.                         <h2 class=\"title\">";
  65.         // line 11
  66.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("News"), "html"nulltrue);
  67.         echo "</h2>
  68.                         <p>
  69.                         </p>
  70.                     </div>
  71.                 </div>
  72.             </div>
  73.         </div>
  74.         <div class=\"blog blog-item\" id=\"_post\">
  75.             <div class=\"container\">
  76.                 <div class=\"row\">
  77.                     <!-- === blog-content === -->
  78.                     <div class=\"col-sm-12\">
  79.                         <article>
  80.                             <div class=\"content\">
  81.                                 <!--=== blog title ===-->
  82.                                 <div class=\"h1 title\">
  83.                                     ";
  84.         // line 38
  85.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'38$this->source); })()), "title", [], "any"falsefalsefalse38), "html"nulltrue);
  86.         echo "
  87.                                     <small>";
  88.         // line 39
  89.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'39$this->source); })()), "subtitle", [], "any"falsefalsefalse39), "html"nulltrue);
  90.         echo "</small>
  91.                                 </div>
  92.                                 <div class=\"blog-info blog-info-top\">
  93.                                     <div class=\"entry\">
  94.                                         <i class=\"fa fa-calendar\"></i>
  95.                                         <span>";
  96.         // line 46
  97.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'46$this->source); })()), "createdAt", [], "any"falsefalsefalse46), "d.m.Y"), "html"nulltrue);
  98.         echo "</span>
  99.                                     </div>
  100.                                 </div> <!--/blog-info-->
  101.                                 ";
  102.         // line 50
  103.         echo twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'50$this->source); })()), "text", [], "any"falsefalsefalse50);
  104.         echo "
  105.                                 ";
  106.         // line 52
  107.         $context["ids"] = [131415];
  108.         // line 53
  109.         echo "                                ";
  110.         if (twig_in_filter(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'53$this->source); })()), "id", [], "any"falsefalsefalse53), (isset($context["ids"]) || array_key_exists("ids"$context) ? $context["ids"] : (function () { throw new RuntimeError('Variable "ids" does not exist.'53$this->source); })()))) {
  111.             // line 54
  112.             echo "                                    ";
  113.             $this->loadTemplate("partials/news/meeting.html.twig""templates/blog_post.html.twig"54)->display($context);
  114.             // line 55
  115.             echo "                                ";
  116.         }
  117.         // line 56
  118.         echo "                            </div>
  119.                             <!--=== blog image ===-->
  120.                             <div class=\"image\">
  121.                                 <img src=\"";
  122.         // line 61
  123.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/" twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'61$this->source); })()), "image", [], "any"falsefalsefalse61))), "html"nulltrue);
  124.         echo "\" alt=\"";
  125.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'61$this->source); })()), "title", [], "any"falsefalsefalse61), "html"nulltrue);
  126.         echo "\">
  127.                             </div>
  128.                             <!--=== blog content ===-->
  129.                         </article>
  130.                     </div>
  131.                     <!-- === blog-menu === -->
  132.                 </div> <!--/row-->
  133.             </div><!--/container-->
  134.         </div>
  135.     </section>
  136. ";
  137.         
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  139.         
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  141.     }
  142.     // line 83
  143.     public function block_title($context, array $blocks = [])
  144.     {
  145.         $macros $this->macros;
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  150.         // line 84
  151.         echo "
  152. ";
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.         
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157.     }
  158.     public function getTemplateName()
  159.     {
  160.         return "templates/blog_post.html.twig";
  161.     }
  162.     public function isTraitable()
  163.     {
  164.         return false;
  165.     }
  166.     public function getDebugInfo()
  167.     {
  168.         return array (  198 => 84,  188 => 83,  155 => 61,  148 => 56,  145 => 55,  142 => 54,  139 => 53,  137 => 52,  132 => 50,  125 => 46,  115 => 39,  111 => 38,  81 => 11,  75 => 8,  69 => 4,  59 => 3,  36 => 1,);
  169.     }
  170.     public function getSourceContext()
  171.     {
  172.         return new Source("{% extends \"layouts/layout.html.twig\" %}
  173. {% block body %}
  174.     <section class=\"page\">
  175.         <!-- ===  Page header === -->
  176.         <div class=\"position-relative\">
  177.             <div class=\"page-header\" style=\"background-image:url({{ asset('images/activity-2.jpg') }})\">
  178.                 <div class=\"container\">
  179.                     <div class=\"page-title\">
  180.                         <h2 class=\"title\">{{ 'News'|trans }}</h2>
  181.                         <p>
  182.                         </p>
  183.                     </div>
  184.                 </div>
  185.             </div>
  186.         </div>
  187.         <div class=\"blog blog-item\" id=\"_post\">
  188.             <div class=\"container\">
  189.                 <div class=\"row\">
  190.                     <!-- === blog-content === -->
  191.                     <div class=\"col-sm-12\">
  192.                         <article>
  193.                             <div class=\"content\">
  194.                                 <!--=== blog title ===-->
  195.                                 <div class=\"h1 title\">
  196.                                     {{ post.title }}
  197.                                     <small>{{ post.subtitle }}</small>
  198.                                 </div>
  199.                                 <div class=\"blog-info blog-info-top\">
  200.                                     <div class=\"entry\">
  201.                                         <i class=\"fa fa-calendar\"></i>
  202.                                         <span>{{ post.createdAt|date('d.m.Y') }}</span>
  203.                                     </div>
  204.                                 </div> <!--/blog-info-->
  205.                                 {{ post.text|raw }}
  206.                                 {% set ids = [13, 14, 15] %}
  207.                                 {% if post.id in ids %}
  208.                                     {% include 'partials/news/meeting.html.twig' %}
  209.                                 {% endif %}
  210.                             </div>
  211.                             <!--=== blog image ===-->
  212.                             <div class=\"image\">
  213.                                 <img src=\"{{ asset('images/'~post.image) }}\" alt=\"{{ post.title }}\">
  214.                             </div>
  215.                             <!--=== blog content ===-->
  216.                         </article>
  217.                     </div>
  218.                     <!-- === blog-menu === -->
  219.                 </div> <!--/row-->
  220.             </div><!--/container-->
  221.         </div>
  222.     </section>
  223. {% endblock %}
  224. {% block title %}
  225. {% endblock %}
  226. ""templates/blog_post.html.twig""/var/www/app/templates/templates/blog_post.html.twig");
  227.     }
  228. }