<?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;
/* @Web/Publication/show.html.twig */
class __TwigTemplate_72911cd9e3f2d5e96bc8270c93c6c7d780ce703d2170f6bebe84ba5b9cec4dfa extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'meta' => [$this, 'block_meta'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@Web/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/Publication/show.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/Publication/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/Publication/show.html.twig"));
$this->parent = $this->loadTemplate("@Web/layout.html.twig", "@Web/Publication/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo "\t";
echo twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 4, $this->source); })()), "metaTitle", [], "any", false, false, false, 4);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 7
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 8
echo "
\t";
// line 9
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 9, $this->source); })()), "metaDescription", [], "any", false, false, false, 9)) {
// line 10
echo " <meta name=\"description\" content=\"";
echo twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 10, $this->source); })()), "metaDescription", [], "any", false, false, false, 10);
echo "\" />
\t";
}
// line 12
echo "
\t";
// line 13
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 13, $this->source); })()), "metaKeywords", [], "any", false, false, false, 13)) {
// line 14
echo " <meta name=\"keywords\" content=\"";
echo twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 14, $this->source); })()), "metaKeywords", [], "any", false, false, false, 14);
echo "\" />
\t";
}
// line 16
echo "
\t";
// line 17
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 17, $this->source); })()), "noindex", [], "any", false, false, false, 17)) {
// line 18
echo "\t\t<meta name=\"robots\" content=\"noindex, nofollow\" />
\t";
}
// line 20
echo "
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"";
// line 22
echo twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 22, $this->source); })()), "metaTitle", [], "any", false, false, false, 22);
echo "\" />
<meta property=\"og:description\" content=\"";
// line 23
echo twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 23, $this->source); })()), "metaDescription", [], "any", false, false, false, 23);
echo "\" />
<meta property=\"og:locale\" content=\"";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 24, $this->source); })()), "locale", [], "any", false, false, false, 24), "getCurLocaleISO", [], "method", false, false, false, 24), "html", null, true);
echo "\" />
<meta property=\"og:url\" content=\"";
// line 25
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 25, $this->source); })()), "request", [], "any", false, false, false, 25), "uri", [], "any", false, false, false, 25), "html", null, true);
echo "\" />
<meta property=\"og:image\" content=\"";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 26, $this->source); })()), "preview", [], "any", false, false, false, 26)), "html", null, true);
echo "\" />
<meta property=\"og:image:width\" content=\"320\" />
<meta property=\"og:image:height\" content=\"216\" />
<meta property=\"og:image:type\" content=\"image/jpeg\" />
<meta property=\"og:site_name\" content=\"";
// line 30
echo twig_escape_filter($this->env, (isset($context["siteName"]) || array_key_exists("siteName", $context) ? $context["siteName"] : (function () { throw new RuntimeError('Variable "siteName" does not exist.', 30, $this->source); })()), "html", null, true);
echo "\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=yes\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 35
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 36
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_css/publication.min.css"), "html", null, true);
echo "\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 40
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 41
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 42
if (twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 42, $this->source); })()), "checkIsDev", [], "any", false, false, false, 42)) {
// line 43
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_js/publication.js"), "html", null, true);
echo "\"></script>
";
} else {
// line 45
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_js/publication.min.js"), "html", null, true);
echo "\"></script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 48
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__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 49
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_publications");
echo "\" title=\"All blogs\" class=\"all-blogs\">
";
// line 50
$this->loadTemplate("@Web/SVGIconsCode/arrow.html.twig", "@Web/Publication/show.html.twig", 50)->display($context);
// line 51
echo " <span>
";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("blog_title_all_blogs"), "html", null, true);
echo "
</span>
</a>
<div class=\"publication-single\">
";
// line 57
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 57, $this->source); })()), "editLink", [], "any", false, false, false, 57)) {
// line 58
echo " [ <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 58, $this->source); })()), "editLink", [], "any", false, false, false, 58), "html", null, true);
echo "\" target=\"_blank\" rel=\"noopener\">edit</a> ]
";
}
// line 60
echo "
";
// line 61
if ( !twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 61, $this->source); })()), "showSite", [], "any", false, false, false, 61)) {
// line 62
echo " <h1 style=\"border: 1px solid #f00; padding: 20px;\">Внимание. Страница отображется только для админов, посетителям она не видна.</h1>
";
}
// line 64
echo "
\t\t<div class=\"header-and-comment-button-wrapper\">
\t <h1>
\t \t";
// line 67
echo twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 67, $this->source); })()), "title", [], "any", false, false, false, 67);
echo "
\t \t<span class=\"date\">";
// line 68
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 68, $this->source); })()), "publishDate", [], "any", false, false, false, 68), "d.m.y"), "html", null, true);
echo "</span>
";
// line 70
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 70, $this->source); })()), "isExhibition", [], "any", false, false, false, 70)) {
// line 71
echo " <br />
<span
class=\"top-header-button heading-button first-of-type js-call-popup-button\"
data-target-id=\"comments-block\"
>
";
// line 76
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("comment_add_question"), "html", null, true);
echo "
</span>
";
}
// line 79
echo "\t\t\t\t<span
class=\"top-header-button heading-button js-call-popup-button\"
\t\t\t\t\tdata-target-id=\"subscribe-block\"
\t\t\t\t>
\t\t\t\t\t";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("subscribe"), "html", null, true);
echo "
\t\t\t\t</span>
\t </h1>
\t\t</div>
";
// line 89
echo " <div class=\"info-block-public\">
<div id=\"trace\" class=\"trace\">
<div id=\"socialLinkBox\" class=\"social-link-box\">
<div id=\"arrow\" class=\"arrow\"></div>
<div class=\"social-link social-icons-list\">
";
// line 94
$this->loadTemplate("@Web/Common/social-block.html.twig", "@Web/Publication/show.html.twig", 94)->display(twig_array_merge($context, ["social" => (isset($context["social"]) || array_key_exists("social", $context) ? $context["social"] : (function () { throw new RuntimeError('Variable "social" does not exist.', 94, $this->source); })())]));
// line 95
echo " </div>
</div>
</div>
</div>
<div class=\"body-content ";
// line 100
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 100, $this->source); })()), "isExhibition", [], "any", false, false, false, 100)) {
echo "exhibition";
}
echo "\">
<div class=\"publication-content clearfix\">
";
// line 103
echo " <p>";
echo $this->extensions['WebBundle\Twig\AppExtension']->convertText(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 103, $this->source); })()), "body", [], "any", false, false, false, 103));
echo "</p>
</div>
</div>
";
// line 107
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 107, $this->source); })()), "isExhibition", [], "any", false, false, false, 107)) {
// line 108
echo " ";
$this->loadTemplate("@Web/Publication/exh_filters.html.twig", "@Web/Publication/show.html.twig", 108)->display(twig_array_merge($context, ["exh" => (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 108, $this->source); })())]));
// line 109
echo " ";
}
// line 110
echo " </div>
";
// line 112
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 112, $this->source); })()), "isExhibition", [], "any", false, false, false, 112)) {
// line 113
echo " ";
$this->loadTemplate("@Web/Publication/exh-content.html.twig", "@Web/Publication/show.html.twig", 113)->display(twig_array_merge($context, ["exh" => (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 113, $this->source); })())]));
// line 114
echo " ";
}
// line 115
echo "
";
// line 116
if ( !twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 116, $this->source); })()), "isExhibition", [], "any", false, false, false, 116)) {
// line 117
echo " ";
$this->loadTemplate("@Web/Comment/comment-tab.html.twig", "@Web/Publication/show.html.twig", 117)->display(twig_array_merge($context, ["unid" => twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 117, $this->source); })()), "unid", [], "any", false, false, false, 117), "entity" => twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 117, $this->source); })()), "id", [], "any", false, false, false, 117), "type" => 1, "place" => "top"]));
// line 118
echo " ";
$this->loadTemplate("@Web/Comment/comment-tab.html.twig", "@Web/Publication/show.html.twig", 118)->display(twig_array_merge($context, ["unid" => twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 118, $this->source); })()), "unid", [], "any", false, false, false, 118), "entity" => twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 118, $this->source); })()), "id", [], "any", false, false, false, 118), "type" => 1, "place" => "bottom"]));
// line 119
echo " ";
}
// line 120
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
public function getTemplateName()
{
return "@Web/Publication/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 417 => 120, 414 => 119, 411 => 118, 408 => 117, 406 => 116, 403 => 115, 400 => 114, 397 => 113, 395 => 112, 391 => 110, 388 => 109, 385 => 108, 383 => 107, 375 => 103, 368 => 100, 361 => 95, 359 => 94, 352 => 89, 344 => 83, 338 => 79, 332 => 76, 325 => 71, 322 => 70, 318 => 68, 314 => 67, 309 => 64, 305 => 62, 303 => 61, 300 => 60, 294 => 58, 292 => 57, 284 => 52, 281 => 51, 279 => 50, 274 => 49, 261 => 48, 244 => 45, 238 => 43, 236 => 42, 231 => 41, 218 => 40, 203 => 37, 198 => 36, 185 => 35, 168 => 30, 161 => 26, 157 => 25, 153 => 24, 149 => 23, 145 => 22, 141 => 20, 137 => 18, 135 => 17, 132 => 16, 126 => 14, 124 => 13, 121 => 12, 115 => 10, 113 => 9, 110 => 8, 97 => 7, 81 => 4, 68 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@Web/layout.html.twig' %}
{% block title %}
\t{{ blog.metaTitle | raw }}
{% endblock %}
{% block meta %}
\t{% if blog.metaDescription %}
<meta name=\"description\" content=\"{{ blog.metaDescription | raw }}\" />
\t{% endif %}
\t{% if blog.metaKeywords %}
<meta name=\"keywords\" content=\"{{ blog.metaKeywords | raw }}\" />
\t{% endif %}
\t{% if blog.noindex %}
\t\t<meta name=\"robots\" content=\"noindex, nofollow\" />
\t{% endif %}
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"{{ blog.metaTitle | raw }}\" />
<meta property=\"og:description\" content=\"{{ blog.metaDescription | raw }}\" />
<meta property=\"og:locale\" content=\"{{ te.locale.getCurLocaleISO() }}\" />
<meta property=\"og:url\" content=\"{{ te.request.uri }}\" />
<meta property=\"og:image\" content=\"{{ asset( blog.preview ) }}\" />
<meta property=\"og:image:width\" content=\"320\" />
<meta property=\"og:image:height\" content=\"216\" />
<meta property=\"og:image:type\" content=\"image/jpeg\" />
<meta property=\"og:site_name\" content=\"{{ siteName }}\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=yes\" />
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"{{ asset('_css/publication.min.css') }}\" />
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% if te.checkIsDev %}
<script src=\"{{ asset('_js/publication.js') }}\"></script>
{% else %}
<script src=\"{{ asset('_js/publication.min.js') }}\"></script>
{% endif %}
{% endblock %}
{% block content %}
<a href=\"{{ path('app_publications' ) }}\" title=\"All blogs\" class=\"all-blogs\">
{% include '@Web/SVGIconsCode/arrow.html.twig' %}
<span>
{{ 'blog_title_all_blogs' | trans }}
</span>
</a>
<div class=\"publication-single\">
{% if blog.editLink %}
[ <a href=\"{{ blog.editLink }}\" target=\"_blank\" rel=\"noopener\">edit</a> ]
{% endif %}
{% if not blog.showSite %}
<h1 style=\"border: 1px solid #f00; padding: 20px;\">Внимание. Страница отображется только для админов, посетителям она не видна.</h1>
{% endif %}
\t\t<div class=\"header-and-comment-button-wrapper\">
\t <h1>
\t \t{{ blog.title | raw }}
\t \t<span class=\"date\">{{ blog.publishDate | date('d.m.y') }}</span>
{# {% зачем-то временно отключаем комменты для выставок }% #}
{% if not blog.isExhibition %}
<br />
<span
class=\"top-header-button heading-button first-of-type js-call-popup-button\"
data-target-id=\"comments-block\"
>
{{ 'comment_add_question' | trans }}
</span>
{% endif %}
\t\t\t\t<span
class=\"top-header-button heading-button js-call-popup-button\"
\t\t\t\t\tdata-target-id=\"subscribe-block\"
\t\t\t\t>
\t\t\t\t\t{{ 'subscribe' | trans }}
\t\t\t\t</span>
\t </h1>
\t\t</div>
{# для соц сетей (неактивные, скрытые) #}
<div class=\"info-block-public\">
<div id=\"trace\" class=\"trace\">
<div id=\"socialLinkBox\" class=\"social-link-box\">
<div id=\"arrow\" class=\"arrow\"></div>
<div class=\"social-link social-icons-list\">
{% include '@Web/Common/social-block.html.twig' with {'social': social} %}
</div>
</div>
</div>
</div>
<div class=\"body-content {% if blog.isExhibition %}exhibition{% endif %}\">
<div class=\"publication-content clearfix\">
{# <p> для того, вдруг статический контент не будет иметь <p> #}
<p>{{ blog.body | convert_text | raw }}</p>
</div>
</div>
{% if blog.isExhibition %}
{% include '@Web/Publication/exh_filters.html.twig' with { 'exh': blog } %}
{% endif %}
</div>
{% if blog.isExhibition %}
{% include '@Web/Publication/exh-content.html.twig' with { 'exh': blog } %}
{% endif %}
{% if not blog.isExhibition %}
{% include '@Web/Comment/comment-tab.html.twig' with {'unid': blog.unid, 'entity': blog.id, 'type': 1, 'place': 'top'} %}
{% include '@Web/Comment/comment-tab.html.twig' with {'unid': blog.unid, 'entity': blog.id, 'type': 1, 'place': 'bottom'} %}
{% endif %}
{% endblock %}
", "@Web/Publication/show.html.twig", "/var/www/dev5.tile.expert/src/WebBundle/Resources/views/Publication/show.html.twig");
}
}