<?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;
/* module/page.html.twig */
class __TwigTemplate_fe6a0b5f6c7766924b37786b4d4ba1ac8178cece5d3cdf701e91e789a335403b 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 3
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", "module/page.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "module/page.html.twig"));
$this->parent = $this->loadTemplate("main/_tpl.html.twig", "module/page.html.twig", 3);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
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 6
echo " ";
$this->displayParentBlock("javascripts_body", $context, $blocks);
echo "
";
// line 7
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("module");
echo "
";
// line 8
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("module");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
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 12
echo " <div class=\"content\">
<div class=\"content-head\">
<div class=\"block\">
<div class=\"page-head\">
<ul class=\"breadcrumbs\">
<li class=\"breadcrumbs__entry breadcrumbs__entry_current\"><a class=\"breadcrumbs__lnk\" href=\"";
// line 17
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">Главная</a></li>
<li class=\"breadcrumbs__entry\"><a class=\"breadcrumbs__lnk\" href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("module_page.ru", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 18, $this->source); })()), "slug", [], "any", false, false, false, 18)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 18, $this->source); })()), "title", [], "any", false, false, false, 18), "html", null, true);
echo "</a></li>
</ul>
<h1>";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 20, $this->source); })()), "title", [], "any", false, false, false, 20), "html", null, true);
echo "</h1>
</div>
<p class=\"ta-center\">";
// line 22
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 22, $this->source); })()), "description", [], "any", false, false, false, 22), "html", null, true));
echo "</p>
";
// line 23
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 23, $this->source); })()), "attachments", [], "any", false, false, false, 23))) {
// line 24
echo " <div class=\"content__main-slider\">
";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 25, $this->source); })()), "attachments", [], "any", false, false, false, 25));
foreach ($context['_seq'] as $context["_key"] => $context["attach"]) {
// line 26
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["attach"], "imageFile"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 26, $this->source); })()), "title", [], "any", false, false, false, 26), "html", null, true);
echo "\">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attach'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " </div>
";
}
// line 30
echo " </div>
</div>
";
// line 32
if (twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 32, $this->source); })()), "capabilityTitle", [], "any", false, false, false, 32)) {
// line 33
echo " <div class=\"content-text\">
<div class=\"block block_padding\">
<h2>";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 35, $this->source); })()), "capabilityTitle", [], "any", false, false, false, 35), "html", null, true);
echo "</h2>
";
// line 36
echo twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 36, $this->source); })()), "capabilityText", [], "any", false, false, false, 36);
echo "
</div>
</div>
";
}
// line 40
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 40, $this->source); })()), "configureTitle", [], "any", false, false, false, 40)) {
// line 41
echo " <div class=\"content-text\">
<div class=\"block block_padding\">
<h2>";
// line 43
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 43, $this->source); })()), "configureTitle", [], "any", false, false, false, 43), "html", null, true);
echo "</h2>
";
// line 44
echo twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 44, $this->source); })()), "configureText", [], "any", false, false, false, 44);
echo "
</div>
</div>
";
}
// line 48
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 48, $this->source); })()), "featureText", [], "any", false, false, false, 48)) {
// line 49
echo " <div class=\"content-feature\">
<div class=\"block\">
";
// line 51
if (twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 51, $this->source); })()), "featureYouTube", [], "any", false, false, false, 51)) {
// line 52
echo " <div class=\"feature__video\">
<iframe src=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['App\Twig\YoutubeExtension']->embed(twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 53, $this->source); })()), "featureYouTube", [], "any", false, false, false, 53)), "html", null, true);
echo "?controls=0\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>
</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 55
(isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 55, $this->source); })()), "featureImage", [], "any", false, false, false, 55)) {
// line 56
echo " <img class=\"feature__img\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 56, $this->source); })()), "featureImageFile"), "html", null, true);
echo "\" alt=\"\">
";
}
// line 58
echo " <div class=\"feature__text\">
";
// line 59
echo twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 59, $this->source); })()), "featureText", [], "any", false, false, false, 59);
echo "
<a class=\"btn btn_blue\" href=\"";
// line 60
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
echo "\" onclick=\"";
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.', 60, $this->source); })()), "goal", [0 => "free"], "method", false, false, false, 60), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "featureBtnText", [], "any", true, true, false, 60)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "featureBtnText", [], "any", false, false, false, 60), "Попробовать бесплатно")) : ("Попробовать бесплатно")), "html", null, true);
echo "</a>
</div>
</div>
</div>
";
}
// line 65
echo " <div class=\"content-tariff\">
<div class=\"block block_padding\">
<h2>Модуль доступен на тарифах</h2>
<table class=\"tariff__tbl\">
<thead>
<tr>
<th></th>
";
// line 72
$context["tariffs"] = twig_constant("App\\Entity\\ModulePage::TARIFFS");
// line 73
echo " ";
$context["tariffRows"] = "";
// line 74
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tariffs"]) || array_key_exists("tariffs", $context) ? $context["tariffs"] : (function () { throw new RuntimeError('Variable "tariffs" does not exist.', 74, $this->source); })()));
foreach ($context['_seq'] as $context["tariff"] => $context["id"]) {
// line 75
echo " <th>";
echo twig_escape_filter($this->env, $context["tariff"], "html", null, true);
echo "</th>
";
// line 76
$context["tariffRows"] = ((((isset($context["tariffRows"]) || array_key_exists("tariffRows", $context) ? $context["tariffRows"] : (function () { throw new RuntimeError('Variable "tariffRows" does not exist.', 76, $this->source); })()) . "<td>") . ((twig_in_filter( // line 77
$context["id"], twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 77, $this->source); })()), "tariffs", [], "any", false, false, false, 77))) ? ("<span class=\"round\"></span>") : ("<span class=\"cross\"></span>"))) . "</td>");
// line 80
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['tariff'], $context['id'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 81
echo " </tr>
</thead>
<tbody>
<tr>
<td>";
// line 85
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 85, $this->source); })()), "title", [], "any", false, false, false, 85), "html", null, true);
echo "</td>
";
// line 86
echo (isset($context["tariffRows"]) || array_key_exists("tariffRows", $context) ? $context["tariffRows"] : (function () { throw new RuntimeError('Variable "tariffRows" does not exist.', 86, $this->source); })());
echo "
</tr>
</tbody>
</table>
<div class=\"ta-center\"><a class=\"btn btn_blue\" href=\"";
// line 90
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tariff.ru");
echo "\">Посмотреть тарифы</a></div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "module/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 284 => 90, 277 => 86, 273 => 85, 267 => 81, 261 => 80, 259 => 77, 258 => 76, 253 => 75, 248 => 74, 245 => 73, 243 => 72, 234 => 65, 222 => 60, 218 => 59, 215 => 58, 209 => 56, 207 => 55, 202 => 53, 199 => 52, 197 => 51, 193 => 49, 190 => 48, 183 => 44, 179 => 43, 175 => 41, 172 => 40, 165 => 36, 161 => 35, 157 => 33, 155 => 32, 151 => 30, 147 => 28, 136 => 26, 132 => 25, 129 => 24, 127 => 23, 123 => 22, 118 => 20, 111 => 18, 107 => 17, 100 => 12, 90 => 11, 78 => 8, 74 => 7, 69 => 6, 59 => 5, 36 => 3,);
}
public function getSourceContext()
{
return new Source("{# @var module \\App\\Entity\\ModulePage #}
{% extends 'main/_tpl.html.twig' %}
{% block javascripts_body %}
{{ parent() }}
{{ encore_entry_script_tags('module') }}
{{ encore_entry_link_tags('module') }}
{% endblock %}
{% block content %}
<div class=\"content\">
<div class=\"content-head\">
<div class=\"block\">
<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=\"{{ path('module_page.ru', {slug:module.slug}) }}\">{{ module.title }}</a></li>
</ul>
<h1>{{ module.title }}</h1>
</div>
<p class=\"ta-center\">{{ module.description|nl2br }}</p>
{% if module.attachments|length %}
<div class=\"content__main-slider\">
{% for attach in module.attachments %}
<img src=\"{{ vich_uploader_asset(attach, 'imageFile') }}\" alt=\"{{ module.title }}\">
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% if module.capabilityTitle %}
<div class=\"content-text\">
<div class=\"block block_padding\">
<h2>{{ module.capabilityTitle }}</h2>
{{ module.capabilityText|raw }}
</div>
</div>
{% endif %}
{% if module.configureTitle %}
<div class=\"content-text\">
<div class=\"block block_padding\">
<h2>{{ module.configureTitle }}</h2>
{{ module.configureText|raw }}
</div>
</div>
{% endif %}
{% if module.featureText %}
<div class=\"content-feature\">
<div class=\"block\">
{% if module.featureYouTube %}
<div class=\"feature__video\">
<iframe src=\"{{ module.featureYouTube|youtube_embed }}?controls=0\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>
</div>
{% elseif module.featureImage %}
<img class=\"feature__img\" src=\"{{ vich_uploader_asset(module, 'featureImageFile') }}\" alt=\"\">
{% endif %}
<div class=\"feature__text\">
{{ module.featureText|raw }}
<a class=\"btn btn_blue\" href=\"{{ path('register') }}\" onclick=\"{{ YM.goal('free') }}\">{{ module.featureBtnText|default('Попробовать бесплатно') }}</a>
</div>
</div>
</div>
{% endif %}
<div class=\"content-tariff\">
<div class=\"block block_padding\">
<h2>Модуль доступен на тарифах</h2>
<table class=\"tariff__tbl\">
<thead>
<tr>
<th></th>
{% set tariffs = constant(\"App\\\\Entity\\\\ModulePage::TARIFFS\") %}
{% set tariffRows = '' %}
{% for tariff,id in tariffs %}
<th>{{ tariff }}</th>
{% set tariffRows = tariffRows ~ '<td>'
~ (id in module.tariffs ? '<span class=\"round\"></span>': '<span class=\"cross\"></span>')
~ '</td>'
%}
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
<td>{{ module.title }}</td>
{{ tariffRows|raw }}
</tr>
</tbody>
</table>
<div class=\"ta-center\"><a class=\"btn btn_blue\" href=\"{{ path('tariff.ru') }}\">Посмотреть тарифы</a></div>
</div>
</div>
</div>
{% endblock %}", "module/page.html.twig", "/home/getmeback-core/www/dev-site/templates/module/page.html.twig");
}
}