<?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;
/* templates/place.html.twig */
class __TwigTemplate_f340a4cdae0c705ec259ec597403ffe0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'title' => [$this, 'block_title'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/layout.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", "templates/place.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "templates/place.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "templates/place.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo " <section class=\"page\">
<!-- === Page header === -->
<div class=\"position-relative\">
<div class=\"page-header\" style=\"background-image:url(";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/activity-2.jpg"), "html", null, true);
echo ")\">
<div class=\"container\">
<div class=\"page-title\">
<h2 class=\"title\">";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tourist attractions"), "html", null, true);
echo "</h2>
</div>
</div>
</div>
</div>
<div class=\"blog blog-item\">
<div class=\"container\">
<div class=\"row\">
<!-- === blog-content === -->
<div class=\"col-sm-12\">
<article>
<div class=\"content\">
<!--=== blog title ===-->
<div class=\"h1 title\">
";
// line 34
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);
echo "
</div>
<div class=\"image\">
<img src=\"";
// line 39
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);
echo "\" alt=\"";
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);
echo "\">
</div>
<br>
";
// line 42
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);
echo "
</div>
<!--=== blog image ===-->
<!--=== blog content ===-->
</article>
</div>
<!-- === blog-menu === -->
</div> <!--/row-->
</div><!--/container-->
</div>
</section>
<section class=\"cards\">
<!-- === cards header === -->
<div class=\"section-header\">
<div class=\"container\">
<h2 class=\"title\"><span>";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Near by"), "html", null, true);
echo "</span></h2>
<p>";
// line 74
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);
echo "</p>
</div>
</div>
<div class=\"container _nearby\">
<div class=\"row\">
";
// line 81
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["key"] => $context["place"]) {
// line 82
echo " <div class=\"col-xs-12 col-sm-4\">
<figure class=\"\">
<figcaption style=\"background-image:url(";
// line 84
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);
echo ")\">
<img src=\"";
// line 85
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);
echo "\" alt=\"\">
</figcaption>
<a href=\"";
// line 87
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);
echo "\" class=\"btn btn-clean\" onclick=\"\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["place"], "title", [], "any", false, false, false, 87), "html", null, true);
echo "</a>
</figure>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['place'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 91
echo "
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 98
public function block_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 99
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "templates/place.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"layouts/layout.html.twig\" %}
{% block body %}
<section class=\"page\">
<!-- === Page header === -->
<div class=\"position-relative\">
<div class=\"page-header\" style=\"background-image:url({{ asset('images/activity-2.jpg') }})\">
<div class=\"container\">
<div class=\"page-title\">
<h2 class=\"title\">{{ 'Tourist attractions'|trans }}</h2>
</div>
</div>
</div>
</div>
<div class=\"blog blog-item\">
<div class=\"container\">
<div class=\"row\">
<!-- === blog-content === -->
<div class=\"col-sm-12\">
<article>
<div class=\"content\">
<!--=== blog title ===-->
<div class=\"h1 title\">
{{ place.title }}
</div>
<div class=\"image\">
<img src=\"{{ asset('images/'~place.image) }}\" alt=\"{{ place.title }}\">
</div>
<br>
{{ place.text|raw }}
</div>
<!--=== blog image ===-->
<!--=== blog content ===-->
</article>
</div>
<!-- === blog-menu === -->
</div> <!--/row-->
</div><!--/container-->
</div>
</section>
<section class=\"cards\">
<!-- === cards header === -->
<div class=\"section-header\">
<div class=\"container\">
<h2 class=\"title\"><span>{{ 'Near by'|trans }}</span></h2>
<p>{{ 'Perhaps you might be interested in othefile:///home/alexk/Загрузки/artgs-fix/task-1/room.html.twigr places.'|trans }}</p>
</div>
</div>
<div class=\"container _nearby\">
<div class=\"row\">
{% for key, place in places %}
<div class=\"col-xs-12 col-sm-4\">
<figure class=\"\">
<figcaption style=\"background-image:url({{ asset('/images/'~place.image) }})\">
<img src=\"{{ asset('/images/'~place.image) }}\" alt=\"\">
</figcaption>
<a href=\"{{ url('place', {'slug': place.slug}) }}\" class=\"btn btn-clean\" onclick=\"\">{{ place.title }}</a>
</figure>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}
{% block title %}
{% endblock %}
", "templates/place.html.twig", "/var/www/app/templates/templates/place.html.twig");
}
}