var/cache/dev/twig/b6/b6b2d159efe2aab661c84f310b57d56d.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/place.html.twig */
  14. class __TwigTemplate_f340a4cdae0c705ec259ec597403ffe0 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/place.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/place.html.twig"));
  39.         $this->parent = $this->loadTemplate("layouts/layout.html.twig", "templates/place.html.twig", 1);
  40.         $this->parent->display($context, array_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 7
  60.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/activity-2.jpg"), "html", null, true);
  61.         echo ")\">
  62.                 <div class=\"container\">
  63.                     <div class=\"page-title\">
  64.                         <h2 class=\"title\">";
  65.         // line 10
  66.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tourist attractions"), "html", null, true);
  67.         echo "</h2>
  68.                     </div>
  69.                 </div>
  70.             </div>
  71.         </div>
  72.         <div class=\"blog blog-item\">
  73.             <div class=\"container\">
  74.                 <div class=\"row\">
  75.                     <!-- === blog-content === -->
  76.                     <div class=\"col-sm-12\">
  77.                         <article>
  78.                             <div class=\"content\">
  79.                                 <!--=== blog title ===-->
  80.                                 <div class=\"h1 title\">
  81.                                     ";
  82.         // line 34
  83.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["place"]) || array_key_exists("place", $context) ? $context["place"] : (function () { throw new RuntimeError('Variable "place" does not exist.', 34, $this->source); })()), "title", [], "any", false, false, false, 34), "html", null, true);
  84.         echo "
  85.                                 </div>
  86.                                 <div class=\"image\">
  87.                                     <img src=\"";
  88.         // line 39
  89.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/" . twig_get_attribute($this->env, $this->source, (isset($context["place"]) || array_key_exists("place", $context) ? $context["place"] : (function () { throw new RuntimeError('Variable "place" does not exist.', 39, $this->source); })()), "image", [], "any", false, false, false, 39))), "html", null, true);
  90.         echo "\" alt=\"";
  91.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["place"]) || array_key_exists("place", $context) ? $context["place"] : (function () { throw new RuntimeError('Variable "place" does not exist.', 39, $this->source); })()), "title", [], "any", false, false, false, 39), "html", null, true);
  92.         echo "\">
  93.                                 </div>
  94.                                 <br>
  95.                                 ";
  96.         // line 42
  97.         echo twig_get_attribute($this->env, $this->source, (isset($context["place"]) || array_key_exists("place", $context) ? $context["place"] : (function () { throw new RuntimeError('Variable "place" does not exist.', 42, $this->source); })()), "text", [], "any", false, false, false, 42);
  98.         echo "
  99.                             </div>
  100.                             <!--=== blog image ===-->
  101.                             <!--=== blog content ===-->
  102.                         </article>
  103.                     </div>
  104.                     <!-- === blog-menu === -->
  105.                 </div> <!--/row-->
  106.             </div><!--/container-->
  107.         </div>
  108.     </section>
  109.     <section class=\"cards\">
  110.         <!-- === cards header === -->
  111.         <div class=\"section-header\">
  112.             <div class=\"container\">
  113.                 <h2 class=\"title\"><span>";
  114.         // line 73
  115.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Near by"), "html", null, true);
  116.         echo "</span></h2>
  117.                 <p>";
  118.         // line 74
  119.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Perhaps you might be interested in othefile:///home/alexk/Загрузки/artgs-fix/task-1/room.html.twigr places."), "html", null, true);
  120.         echo "</p>
  121.             </div>
  122.         </div>
  123.         <div class=\"container _nearby\">
  124.             <div class=\"row\">
  125.                 ";
  126.         // line 81
  127.         $context['_parent'] = $context;
  128.         $context['_seq'] = twig_ensure_traversable((isset($context["places"]) || array_key_exists("places", $context) ? $context["places"] : (function () { throw new RuntimeError('Variable "places" does not exist.', 81, $this->source); })()));
  129.         foreach ($context['_seq'] as $context["key"] => $context["place"]) {
  130.             // line 82
  131.             echo "                    <div class=\"col-xs-12 col-sm-4\">
  132.                         <figure class=\"\">
  133.                             <figcaption style=\"background-image:url(";
  134.             // line 84
  135.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/images/" . twig_get_attribute($this->env, $this->source, $context["place"], "image", [], "any", false, false, false, 84))), "html", null, true);
  136.             echo ")\">
  137.                                 <img src=\"";
  138.             // line 85
  139.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/images/" . twig_get_attribute($this->env, $this->source, $context["place"], "image", [], "any", false, false, false, 85))), "html", null, true);
  140.             echo "\" alt=\"\">
  141.                             </figcaption>
  142.                             <a href=\"";
  143.             // line 87
  144.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("place", ["slug" => twig_get_attribute($this->env, $this->source, $context["place"], "slug", [], "any", false, false, false, 87)]), "html", null, true);
  145.             echo "\" class=\"btn btn-clean\" onclick=\"\">";
  146.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["place"], "title", [], "any", false, false, false, 87), "html", null, true);
  147.             echo "</a>
  148.                         </figure>
  149.                     </div>
  150.                 ";
  151.         }
  152.         $_parent = $context['_parent'];
  153.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['place'], $context['_parent'], $context['loop']);
  154.         $context = array_intersect_key($context, $_parent) + $_parent;
  155.         // line 91
  156.         echo "
  157.             </div>
  158.         </div>
  159.     </section>
  160. ";
  161.         
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  163.         
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  165.     }
  166.     // line 98
  167.     public function block_title($context, array $blocks = [])
  168.     {
  169.         $macros = $this->macros;
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  174.         // line 99
  175.         echo "
  176. ";
  177.         
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179.         
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  181.     }
  182.     public function getTemplateName()
  183.     {
  184.         return "templates/place.html.twig";
  185.     }
  186.     public function isTraitable()
  187.     {
  188.         return false;
  189.     }
  190.     public function getDebugInfo()
  191.     {
  192.         return array (  225 => 99,  215 => 98,  200 => 91,  188 => 87,  183 => 85,  179 => 84,  175 => 82,  171 => 81,  161 => 74,  157 => 73,  123 => 42,  115 => 39,  107 => 34,  80 => 10,  74 => 7,  69 => 4,  59 => 3,  36 => 1,);
  193.     }
  194.     public function getSourceContext()
  195.     {
  196.         return new Source("{% extends \"layouts/layout.html.twig\" %}
  197. {% block body %}
  198.     <section class=\"page\">
  199.         <!-- ===  Page header === -->
  200.         <div class=\"position-relative\">
  201.             <div class=\"page-header\" style=\"background-image:url({{ asset('images/activity-2.jpg') }})\">
  202.                 <div class=\"container\">
  203.                     <div class=\"page-title\">
  204.                         <h2 class=\"title\">{{ 'Tourist attractions'|trans }}</h2>
  205.                     </div>
  206.                 </div>
  207.             </div>
  208.         </div>
  209.         <div class=\"blog blog-item\">
  210.             <div class=\"container\">
  211.                 <div class=\"row\">
  212.                     <!-- === blog-content === -->
  213.                     <div class=\"col-sm-12\">
  214.                         <article>
  215.                             <div class=\"content\">
  216.                                 <!--=== blog title ===-->
  217.                                 <div class=\"h1 title\">
  218.                                     {{ place.title }}
  219.                                 </div>
  220.                                 <div class=\"image\">
  221.                                     <img src=\"{{ asset('images/'~place.image) }}\" alt=\"{{ place.title }}\">
  222.                                 </div>
  223.                                 <br>
  224.                                 {{ place.text|raw }}
  225.                             </div>
  226.                             <!--=== blog image ===-->
  227.                             <!--=== blog content ===-->
  228.                         </article>
  229.                     </div>
  230.                     <!-- === blog-menu === -->
  231.                 </div> <!--/row-->
  232.             </div><!--/container-->
  233.         </div>
  234.     </section>
  235.     <section class=\"cards\">
  236.         <!-- === cards header === -->
  237.         <div class=\"section-header\">
  238.             <div class=\"container\">
  239.                 <h2 class=\"title\"><span>{{ 'Near by'|trans }}</span></h2>
  240.                 <p>{{ 'Perhaps you might be interested in othefile:///home/alexk/Загрузки/artgs-fix/task-1/room.html.twigr places.'|trans }}</p>
  241.             </div>
  242.         </div>
  243.         <div class=\"container _nearby\">
  244.             <div class=\"row\">
  245.                 {% for key, place in places %}
  246.                     <div class=\"col-xs-12 col-sm-4\">
  247.                         <figure class=\"\">
  248.                             <figcaption style=\"background-image:url({{ asset('/images/'~place.image) }})\">
  249.                                 <img src=\"{{ asset('/images/'~place.image) }}\" alt=\"\">
  250.                             </figcaption>
  251.                             <a href=\"{{ url('place', {'slug': place.slug}) }}\" class=\"btn btn-clean\" onclick=\"\">{{ place.title }}</a>
  252.                         </figure>
  253.                     </div>
  254.                 {% endfor %}
  255.             </div>
  256.         </div>
  257.     </section>
  258. {% endblock %}
  259. {% block title %}
  260. {% endblock %}
  261. ", "templates/place.html.twig", "/var/www/app/templates/templates/place.html.twig");
  262.     }
  263. }