var/cache/te_dev/twig/82/824b6f50b8aca5a44281790fb3b36e47fbd4b5debd8559af76497be04099f1ae.php line 55

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. /* @Web/Publication/show.html.twig */
  14. class __TwigTemplate_72911cd9e3f2d5e96bc8270c93c6c7d780ce703d2170f6bebe84ba5b9cec4dfa extends \Twig\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.             'title' => [$this'block_title'],
  24.             'meta' => [$this'block_meta'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.             'content' => [$this'block_content'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@Web/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  39.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Publication/show.html.twig"));
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Publication/show.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Publication/show.html.twig"));
  44.         $this->parent $this->loadTemplate("@Web/layout.html.twig""@Web/Publication/show.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 3
  54.     public function block_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  58.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         // line 4
  64.         echo "\t";
  65.         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"falsefalsefalse4);
  66.         echo "
  67. ";
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.         
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  72.         
  73.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  74.     }
  75.     // line 7
  76.     public function block_meta($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  80.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  85.         // line 8
  86.         echo "
  87. \t";
  88.         // line 9
  89.         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"falsefalsefalse9)) {
  90.             // line 10
  91.             echo "        <meta name=\"description\" content=\"";
  92.             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"falsefalsefalse10);
  93.             echo "\" />
  94. \t";
  95.         }
  96.         // line 12
  97.         echo "
  98. \t";
  99.         // line 13
  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.'13$this->source); })()), "metaKeywords", [], "any"falsefalsefalse13)) {
  101.             // line 14
  102.             echo "        <meta name=\"keywords\" content=\"";
  103.             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"falsefalsefalse14);
  104.             echo "\" />
  105. \t";
  106.         }
  107.         // line 16
  108.         echo "
  109. \t";
  110.         // line 17
  111.         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"falsefalsefalse17)) {
  112.             // line 18
  113.             echo "\t\t<meta name=\"robots\" content=\"noindex, nofollow\" />
  114. \t";
  115.         }
  116.         // line 20
  117.         echo "
  118.     <meta property=\"og:type\" content=\"website\" />
  119.     <meta property=\"og:title\" content=\"";
  120.         // line 22
  121.         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"falsefalsefalse22);
  122.         echo "\" />
  123.     <meta property=\"og:description\" content=\"";
  124.         // line 23
  125.         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"falsefalsefalse23);
  126.         echo "\" />
  127.     <meta property=\"og:locale\" content=\"";
  128.         // line 24
  129.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse24), "getCurLocaleISO", [], "method"falsefalsefalse24), "html"nulltrue);
  130.         echo "\" />
  131.     <meta property=\"og:url\" content=\"";
  132.         // line 25
  133.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse25), "uri", [], "any"falsefalsefalse25), "html"nulltrue);
  134.         echo "\" />
  135.     <meta property=\"og:image\" content=\"";
  136.         // line 26
  137.         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"falsefalsefalse26)), "html"nulltrue);
  138.         echo "\" />
  139.     <meta property=\"og:image:width\" content=\"320\" />
  140.     <meta property=\"og:image:height\" content=\"216\" />
  141.     <meta property=\"og:image:type\" content=\"image/jpeg\" />
  142.     <meta property=\"og:site_name\" content=\"";
  143.         // line 30
  144.         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"nulltrue);
  145.         echo "\" />
  146.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=yes\" />
  147. ";
  148.         
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  150.         
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  152.         
  153.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  154.     }
  155.     // line 35
  156.     public function block_stylesheets($context, array $blocks = [])
  157.     {
  158.         $macros $this->macros;
  159.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  160.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  165.         // line 36
  166.         echo "    ";
  167.         $this->displayParentBlock("stylesheets"$context$blocks);
  168.         echo "
  169.     <link rel=\"stylesheet\" href=\"";
  170.         // line 37
  171.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_css/publication.min.css"), "html"nulltrue);
  172.         echo "\" />
  173.  ";
  174.         
  175.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  176.         
  177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  178.         
  179.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  180.     }
  181.     // line 40
  182.     public function block_javascripts($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  186.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  187.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  188.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  189.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  191.         // line 41
  192.         echo "    ";
  193.         $this->displayParentBlock("javascripts"$context$blocks);
  194.         echo "
  195.     ";
  196.         // line 42
  197.         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"falsefalsefalse42)) {
  198.             // line 43
  199.             echo "        <script src=\"";
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_js/publication.js"), "html"nulltrue);
  201.             echo "\"></script>
  202.     ";
  203.         } else {
  204.             // line 45
  205.             echo "        <script src=\"";
  206.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_js/publication.min.js"), "html"nulltrue);
  207.             echo "\"></script>
  208.     ";
  209.         }
  210.         
  211.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  212.         
  213.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  214.         
  215.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  216.     }
  217.     // line 48
  218.     public function block_content($context, array $blocks = [])
  219.     {
  220.         $macros $this->macros;
  221.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  222.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  223.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  224.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  225.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  226.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  227.         // line 49
  228.         echo "    <a href=\"";
  229.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_publications");
  230.         echo "\" title=\"All blogs\" class=\"all-blogs\">
  231.         ";
  232.         // line 50
  233.         $this->loadTemplate("@Web/SVGIconsCode/arrow.html.twig""@Web/Publication/show.html.twig"50)->display($context);
  234.         // line 51
  235.         echo "        <span>
  236.             ";
  237.         // line 52
  238.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("blog_title_all_blogs"), "html"nulltrue);
  239.         echo "
  240.         </span>
  241.     </a>
  242.     <div class=\"publication-single\">
  243.         ";
  244.         // line 57
  245.         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"falsefalsefalse57)) {
  246.             // line 58
  247.             echo "            [ <a href=\"";
  248.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse58), "html"nulltrue);
  249.             echo "\" target=\"_blank\" rel=\"noopener\">edit</a> ]
  250.         ";
  251.         }
  252.         // line 60
  253.         echo "
  254.         ";
  255.         // line 61
  256.         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"falsefalsefalse61)) {
  257.             // line 62
  258.             echo "            <h1 style=\"border: 1px solid #f00; padding: 20px;\">Внимание. Страница отображется только для админов, посетителям она не видна.</h1>
  259.         ";
  260.         }
  261.         // line 64
  262.         echo "
  263. \t\t<div class=\"header-and-comment-button-wrapper\">
  264. \t        <h1>
  265. \t        \t";
  266.         // line 67
  267.         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"falsefalsefalse67);
  268.         echo "
  269. \t        \t<span class=\"date\">";
  270.         // line 68
  271.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse68), "d.m.y"), "html"nulltrue);
  272.         echo "</span>
  273.                 ";
  274.         // line 70
  275.         echo "                ";
  276.         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"falsefalsefalse70)) {
  277.             // line 71
  278.             echo "                <br />
  279.                     <span
  280.                         class=\"top-header-button heading-button first-of-type js-call-popup-button\"
  281.                         data-target-id=\"comments-block\"
  282.                     >
  283.                         ";
  284.             // line 76
  285.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("comment_add_question"), "html"nulltrue);
  286.             echo "
  287.                     </span>
  288.                 ";
  289.         }
  290.         // line 79
  291.         echo "\t\t\t\t<span
  292.                     class=\"top-header-button heading-button js-call-popup-button\"
  293. \t\t\t\t\tdata-target-id=\"subscribe-block\"
  294. \t\t\t\t>
  295. \t\t\t\t\t";
  296.         // line 83
  297.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("subscribe"), "html"nulltrue);
  298.         echo "
  299. \t\t\t\t</span>
  300. \t        </h1>
  301. \t\t</div>
  302.         ";
  303.         // line 89
  304.         echo "        <div class=\"info-block-public\">
  305.             <div id=\"trace\" class=\"trace\">
  306.                 <div id=\"socialLinkBox\" class=\"social-link-box\">
  307.                     <div id=\"arrow\" class=\"arrow\"></div>
  308.                     <div class=\"social-link social-icons-list\">
  309.                         ";
  310.         // line 94
  311.         $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); })())]));
  312.         // line 95
  313.         echo "                    </div>
  314.                 </div>
  315.             </div>
  316.         </div>
  317.         <div class=\"body-content ";
  318.         // line 100
  319.         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"falsefalsefalse100)) {
  320.             echo "exhibition";
  321.         }
  322.         echo "\">
  323.             <div class=\"publication-content clearfix\">
  324.                 ";
  325.         // line 103
  326.         echo "                <p>";
  327.         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"falsefalsefalse103));
  328.         echo "</p>
  329.             </div>
  330.         </div>
  331.         ";
  332.         // line 107
  333.         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"falsefalsefalse107)) {
  334.             // line 108
  335.             echo "            ";
  336.             $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); })())]));
  337.             // line 109
  338.             echo "        ";
  339.         }
  340.         // line 110
  341.         echo "    </div>
  342.     ";
  343.         // line 112
  344.         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"falsefalsefalse112)) {
  345.             // line 113
  346.             echo "        ";
  347.             $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); })())]));
  348.             // line 114
  349.             echo "    ";
  350.         }
  351.         // line 115
  352.         echo "
  353.     ";
  354.         // line 116
  355.         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"falsefalsefalse116)) {
  356.             // line 117
  357.             echo "        ";
  358.             $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"falsefalsefalse117), "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"falsefalsefalse117), "type" => 1"place" => "top"]));
  359.             // line 118
  360.             echo "        ";
  361.             $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"falsefalsefalse118), "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"falsefalsefalse118), "type" => 1"place" => "bottom"]));
  362.             // line 119
  363.             echo "    ";
  364.         }
  365.         // line 120
  366.         echo "
  367. ";
  368.         
  369.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  370.         
  371.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  372.         
  373.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  374.     }
  375.     public function getTemplateName()
  376.     {
  377.         return "@Web/Publication/show.html.twig";
  378.     }
  379.     public function isTraitable()
  380.     {
  381.         return false;
  382.     }
  383.     public function getDebugInfo()
  384.     {
  385.         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,);
  386.     }
  387.     public function getSourceContext()
  388.     {
  389.         return new Source("{% extends '@Web/layout.html.twig' %}
  390. {% block title %}
  391. \t{{ blog.metaTitle | raw  }}
  392. {% endblock %}
  393. {% block meta %}
  394. \t{% if blog.metaDescription %}
  395.         <meta name=\"description\" content=\"{{ blog.metaDescription | raw }}\" />
  396. \t{% endif %}
  397. \t{% if blog.metaKeywords %}
  398.         <meta name=\"keywords\" content=\"{{ blog.metaKeywords | raw }}\" />
  399. \t{% endif %}
  400. \t{% if blog.noindex %}
  401. \t\t<meta name=\"robots\" content=\"noindex, nofollow\" />
  402. \t{% endif %}
  403.     <meta property=\"og:type\" content=\"website\" />
  404.     <meta property=\"og:title\" content=\"{{ blog.metaTitle | raw }}\" />
  405.     <meta property=\"og:description\" content=\"{{ blog.metaDescription | raw }}\" />
  406.     <meta property=\"og:locale\" content=\"{{ te.locale.getCurLocaleISO() }}\" />
  407.     <meta property=\"og:url\" content=\"{{ te.request.uri }}\" />
  408.     <meta property=\"og:image\" content=\"{{ asset( blog.preview ) }}\" />
  409.     <meta property=\"og:image:width\" content=\"320\" />
  410.     <meta property=\"og:image:height\" content=\"216\" />
  411.     <meta property=\"og:image:type\" content=\"image/jpeg\" />
  412.     <meta property=\"og:site_name\" content=\"{{ siteName }}\" />
  413.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=yes\" />
  414. {% endblock %}
  415. {% block stylesheets %}
  416.     {{ parent() }}
  417.     <link rel=\"stylesheet\" href=\"{{ asset('_css/publication.min.css') }}\" />
  418.  {% endblock %}
  419. {% block javascripts %}
  420.     {{ parent() }}
  421.     {% if te.checkIsDev %}
  422.         <script src=\"{{ asset('_js/publication.js') }}\"></script>
  423.     {% else %}
  424.         <script src=\"{{ asset('_js/publication.min.js') }}\"></script>
  425.     {% endif %}
  426. {% endblock %}
  427. {% block content %}
  428.     <a href=\"{{ path('app_publications' ) }}\" title=\"All blogs\" class=\"all-blogs\">
  429.         {% include '@Web/SVGIconsCode/arrow.html.twig' %}
  430.         <span>
  431.             {{ 'blog_title_all_blogs' | trans }}
  432.         </span>
  433.     </a>
  434.     <div class=\"publication-single\">
  435.         {% if blog.editLink %}
  436.             [ <a href=\"{{ blog.editLink }}\" target=\"_blank\" rel=\"noopener\">edit</a> ]
  437.         {% endif %}
  438.         {% if not blog.showSite %}
  439.             <h1 style=\"border: 1px solid #f00; padding: 20px;\">Внимание. Страница отображется только для админов, посетителям она не видна.</h1>
  440.         {% endif %}
  441. \t\t<div class=\"header-and-comment-button-wrapper\">
  442. \t        <h1>
  443. \t        \t{{ blog.title | raw }}
  444. \t        \t<span class=\"date\">{{ blog.publishDate | date('d.m.y') }}</span>
  445.                 {# {% зачем-то временно отключаем комменты для выставок }% #}
  446.                 {% if not blog.isExhibition %}
  447.                 <br />
  448.                     <span
  449.                         class=\"top-header-button heading-button first-of-type js-call-popup-button\"
  450.                         data-target-id=\"comments-block\"
  451.                     >
  452.                         {{ 'comment_add_question' | trans }}
  453.                     </span>
  454.                 {% endif %}
  455. \t\t\t\t<span
  456.                     class=\"top-header-button heading-button js-call-popup-button\"
  457. \t\t\t\t\tdata-target-id=\"subscribe-block\"
  458. \t\t\t\t>
  459. \t\t\t\t\t{{ 'subscribe' | trans }}
  460. \t\t\t\t</span>
  461. \t        </h1>
  462. \t\t</div>
  463.         {# для соц сетей (неактивные, скрытые) #}
  464.         <div class=\"info-block-public\">
  465.             <div id=\"trace\" class=\"trace\">
  466.                 <div id=\"socialLinkBox\" class=\"social-link-box\">
  467.                     <div id=\"arrow\" class=\"arrow\"></div>
  468.                     <div class=\"social-link social-icons-list\">
  469.                         {% include '@Web/Common/social-block.html.twig' with {'social': social} %}
  470.                     </div>
  471.                 </div>
  472.             </div>
  473.         </div>
  474.         <div class=\"body-content {% if blog.isExhibition %}exhibition{% endif %}\">
  475.             <div class=\"publication-content clearfix\">
  476.                 {# <p> для того, вдруг статический контент не будет иметь <p> #}
  477.                 <p>{{ blog.body | convert_text | raw }}</p>
  478.             </div>
  479.         </div>
  480.         {% if blog.isExhibition %}
  481.             {% include '@Web/Publication/exh_filters.html.twig' with { 'exh': blog } %}
  482.         {% endif %}
  483.     </div>
  484.     {% if blog.isExhibition %}
  485.         {% include '@Web/Publication/exh-content.html.twig' with { 'exh': blog } %}
  486.     {% endif %}
  487.     {% if not blog.isExhibition %}
  488.         {% include '@Web/Comment/comment-tab.html.twig' with {'unid': blog.unid, 'entity': blog.id, 'type': 1, 'place': 'top'} %}
  489.         {% include '@Web/Comment/comment-tab.html.twig' with {'unid': blog.unid, 'entity': blog.id, 'type': 1, 'place': 'bottom'} %}
  490.     {% endif %}
  491. {% endblock %}
  492. ""@Web/Publication/show.html.twig""/var/www/dev5.tile.expert/src/WebBundle/Resources/views/Publication/show.html.twig");
  493.     }
  494. }