<?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;
/* blog/index.html.twig */
class __TwigTemplate_24afaf9744ba4061d2a5579de69e22b7529ba01ff60ff02c0b9c288cd8c72322 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascripts_body' => [$this, 'block_javascripts_body'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "main/_tpl.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", "blog/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "blog/index.html.twig"));
// line 4
$context["title"] = "Блог GetMeBack";
// line 5
$context["description"] = "Публикации в СМИ, обзоры и кейсы, обновления и не только. Будьте в курсе актуальных новостей GetMeBack";
// line 6
$context["keywords"] = "Блог программа лояльности, обзоры, кейсы";
// line 1
$this->parent = $this->loadTemplate("main/_tpl.html.twig", "blog/index.html.twig", 1);
$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_javascripts_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", "javascripts_body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts_body"));
// line 9
echo " ";
$this->displayParentBlock("javascripts_body", $context, $blocks);
echo "
";
// line 10
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("blog");
echo "
";
// line 11
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("blog");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 14
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 15
echo "
<div class=\"blog block block_padding_top\">
<div class=\"page-head\">
<ul class=\"breadcrumbs\">
<li class=\"breadcrumbs__entry breadcrumbs__entry_current\"><a class=\"breadcrumbs__lnk\" href=\"";
// line 19
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">Главная</a></li>
<li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"#\">Блог</a></li>
</ul>
<h1>Блог</h1>
</div>
<p class=\"blog__subtitle\">Публикации в СМИ, кейсы, обновления и не только. Будьте в курсе актуальных новостей GetMeBack</p>
<div class=\"tags\">
";
// line 27
if ((isset($context["current_tag"]) || array_key_exists("current_tag", $context) ? $context["current_tag"] : (function () { throw new RuntimeError('Variable "current_tag" does not exist.', 27, $this->source); })())) {
// line 28
echo " <a href=\"/blog\" class=\"tags__lnk\">Все</a>
";
} else {
// line 30
echo " <a href=\"/blog\" class=\"tags__lnk current\">Все</a>
";
}
// line 32
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tags"]) || array_key_exists("tags", $context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.', 32, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 33
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_tag", ["slug" => twig_get_attribute($this->env, $this->source, $context["tag"], "slug", [], "any", false, false, false, 33)]), "html", null, true);
echo "\"
";
// line 34
if ((0 === twig_compare((isset($context["current_tag"]) || array_key_exists("current_tag", $context) ? $context["current_tag"] : (function () { throw new RuntimeError('Variable "current_tag" does not exist.', 34, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["tag"], "id", [], "any", false, false, false, 34)))) {
// line 35
echo " class=\"tags__lnk current\"
";
} else {
// line 37
echo " class=\"tags__lnk\"
";
}
// line 39
echo " >#";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 39), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </div>
<div class=\"blog-container\">
";
// line 43
echo twig_include($this->env, $context, "blog/index_content.html.twig", ["posts" => // line 44
(isset($context["posts"]) || array_key_exists("posts", $context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.', 44, $this->source); })()), "page_count" => // line 45
(isset($context["page_count"]) || array_key_exists("page_count", $context) ? $context["page_count"] : (function () { throw new RuntimeError('Variable "page_count" does not exist.', 45, $this->source); })()), "current_page" => // line 46
(isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 46, $this->source); })())]);
// line 48
echo "
</div>
</div>
<div class=\"ask-form\">
<div class=\"block\">
<form class=\"form__container formsController\" method=\"POST\" data-url=\"";
// line 53
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form_blog_feedback");
echo "\">
<div class=\"loading loading-default\">
<div class=\"loading__inner\"></div>
</div>
<p>У вас есть вопросы или предложения?</p>
<div class=\"main-title\">Свяжитесь с нами!</div>
<div class=\"form__inner\">
<div class=\"form__col\">
<label class=\"form__label\">
<span class=\"form__caption\">Ваше имя</span>
<input class=\"form__input\" type=\"text\" name=\"name\" required>
</label>
<label class=\"form__label\">
<span class=\"form__caption\">Номер телефона</span>
<input class=\"form__input form__input_phone\" type=\"tel\" name=\"phone\" required>
</label>
<label class=\"form__label\">
<span class=\"form__caption\">E-mail</span>
<input class=\"form__input\" type=\"email\" name=\"email\" required>
</label>
</div>
<div class=\"form__col\">
<label class=\"form__label\">
<span class=\"form__caption\">Сообщение:</span>
<textarea class=\"form__input form__input_textarea\" name=\"message\" required></textarea>
</label>
</div>
</div>
<div class=\"form__inner\">
<div class=\"form__col\">
<button class=\"btn btn_blue fc-submit\" type=\"submit\" onclick=\"";
// line 83
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["YM"]) || array_key_exists("YM", $context) ? $context["YM"] : (function () { throw new RuntimeError('Variable "YM" does not exist.', 83, $this->source); })()), "goal", [0 => "advice"], "method", false, false, false, 83), "html", null, true);
echo "\">Отправить сообщение</button>
</div>
<div class=\"form__col\">
<div class=\"form__hint\">
Нажимая кнопку «Продолжить», вы соглашаетесь с <a href=\"https://getmeback.ru/docs/politika.pdf\" target=\"_blank\">политикой конфиденциальности</a>
</div>
</div>
</div>
<div class=\"form__error\"></div>
</form>
<div class=\"form__success\">
Ваше сообщение успешно отправлено
</div>
</div>
</div>
<div class=\"block block_padding\">
<div class=\"tgbanner\">
<div class=\"tgbanner__title\">Подпишитесь на наш <nobr>Telegram-канал</nobr></div>
<p>чтобы быть в курсе новостей GetMeBack раньше всех</p>
<div class=\"tgbanner__btn-container\">
<a href=\"https://t.me/getmeback_russia\" target=\"_blank\" class=\"btn btn_white\">Подписаться</a>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "blog/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 212 => 83, 179 => 53, 172 => 48, 170 => 46, 169 => 45, 168 => 44, 167 => 43, 163 => 41, 154 => 39, 150 => 37, 146 => 35, 144 => 34, 139 => 33, 134 => 32, 130 => 30, 126 => 28, 124 => 27, 113 => 19, 107 => 15, 97 => 14, 85 => 11, 81 => 10, 76 => 9, 66 => 8, 55 => 1, 53 => 6, 51 => 5, 49 => 4, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'main/_tpl.html.twig' %}
{% set title = 'Блог GetMeBack' %}
{% set description = 'Публикации в СМИ, обзоры и кейсы, обновления и не только. Будьте в курсе актуальных новостей GetMeBack' %}
{% set keywords = 'Блог программа лояльности, обзоры, кейсы' %}
{% block javascripts_body %}
{{ parent() }}
{{ encore_entry_script_tags('blog') }}
{{ encore_entry_link_tags('blog') }}
{% endblock %}
{% block content %}
<div class=\"blog block block_padding_top\">
<div class=\"page-head\">
<ul class=\"breadcrumbs\">
<li class=\"breadcrumbs__entry breadcrumbs__entry_current\"><a class=\"breadcrumbs__lnk\" href=\"{{ path('home') }}\">Главная</a></li>
<li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"#\">Блог</a></li>
</ul>
<h1>Блог</h1>
</div>
<p class=\"blog__subtitle\">Публикации в СМИ, кейсы, обновления и не только. Будьте в курсе актуальных новостей GetMeBack</p>
<div class=\"tags\">
{% if current_tag %}
<a href=\"/blog\" class=\"tags__lnk\">Все</a>
{% else %}
<a href=\"/blog\" class=\"tags__lnk current\">Все</a>
{% endif %}
{% for tag in tags %}
<a href=\"{{ path('blog_tag', {slug: tag.slug}) }}\"
{% if current_tag == tag.id %}
class=\"tags__lnk current\"
{% else %}
class=\"tags__lnk\"
{% endif %}
>#{{ tag.name }}</a>
{% endfor %}
</div>
<div class=\"blog-container\">
{{ include('blog/index_content.html.twig', {
posts: posts,
page_count: page_count,
current_page: current_page,
})
}}
</div>
</div>
<div class=\"ask-form\">
<div class=\"block\">
<form class=\"form__container formsController\" method=\"POST\" data-url=\"{{ path('form_blog_feedback') }}\">
<div class=\"loading loading-default\">
<div class=\"loading__inner\"></div>
</div>
<p>У вас есть вопросы или предложения?</p>
<div class=\"main-title\">Свяжитесь с нами!</div>
<div class=\"form__inner\">
<div class=\"form__col\">
<label class=\"form__label\">
<span class=\"form__caption\">Ваше имя</span>
<input class=\"form__input\" type=\"text\" name=\"name\" required>
</label>
<label class=\"form__label\">
<span class=\"form__caption\">Номер телефона</span>
<input class=\"form__input form__input_phone\" type=\"tel\" name=\"phone\" required>
</label>
<label class=\"form__label\">
<span class=\"form__caption\">E-mail</span>
<input class=\"form__input\" type=\"email\" name=\"email\" required>
</label>
</div>
<div class=\"form__col\">
<label class=\"form__label\">
<span class=\"form__caption\">Сообщение:</span>
<textarea class=\"form__input form__input_textarea\" name=\"message\" required></textarea>
</label>
</div>
</div>
<div class=\"form__inner\">
<div class=\"form__col\">
<button class=\"btn btn_blue fc-submit\" type=\"submit\" onclick=\"{{ YM.goal('advice') }}\">Отправить сообщение</button>
</div>
<div class=\"form__col\">
<div class=\"form__hint\">
Нажимая кнопку «Продолжить», вы соглашаетесь с <a href=\"https://getmeback.ru/docs/politika.pdf\" target=\"_blank\">политикой конфиденциальности</a>
</div>
</div>
</div>
<div class=\"form__error\"></div>
</form>
<div class=\"form__success\">
Ваше сообщение успешно отправлено
</div>
</div>
</div>
<div class=\"block block_padding\">
<div class=\"tgbanner\">
<div class=\"tgbanner__title\">Подпишитесь на наш <nobr>Telegram-канал</nobr></div>
<p>чтобы быть в курсе новостей GetMeBack раньше всех</p>
<div class=\"tgbanner__btn-container\">
<a href=\"https://t.me/getmeback_russia\" target=\"_blank\" class=\"btn btn_white\">Подписаться</a>
</div>
</div>
</div>
{# {% for tag in tags %}#}
{# <a href=\"#{{ tag.slug }}\">{{ tag.name }}</a>#}
{# {% endfor %}#}
{% endblock %}", "blog/index.html.twig", "/home/getmeback-core/www/dev-site/templates/blog/index.html.twig");
}
}