var/cache/dev/twig/68/6867df3552771bf6fa4aec13ba67ba7f.php line 54

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. /* default/newsdetails.html.twig */
  14. class __TwigTemplate_7e25bd2d85afb789e39411c2f044162e extends 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.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 3
  31.         return $this->loadTemplate((isset($context["_layout"]) || array_key_exists("_layout"$context) ? $context["_layout"] : (function () { throw new RuntimeError('Variable "_layout" does not exist.'3$this->source); })()), "default/newsdetails.html.twig"3);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/newsdetails.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/newsdetails.html.twig"));
  40.         // line 1
  41.         $context["clubPage"] = $this->env->getFunction('is_clubsite')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })()), 1$this->source), $this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'1$this->source); })()), 1$this->source));
  42.         // line 2
  43.         $context["_layout"] = (((isset($context["clubPage"]) || array_key_exists("clubPage"$context) ? $context["clubPage"] : (function () { throw new RuntimeError('Variable "clubPage" does not exist.'2$this->source); })())) ? ("seikoclub/layout.html.twig") : ("@CoreShopFrontend/layout.html.twig"));
  44.         // line 3
  45.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 5
  52.     public function block_content($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  59.         // line 6
  60.         echo "    <section id=\"newsHeader\">
  61.         <div class=\"container\">
  62.             <div class=\"row\">
  63.                 <div
  64.                     class=\"col-12 bg mc text-center\"";
  65.         // line 10
  66.         if (twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'10$this->source); })()), "headCoverImage", [], "any"falsefalsetrue10)) {
  67.             echo " style=\"background: url('";
  68.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'10$this->source); })()), "headCoverImage", [], "any"falsefalsetrue10), "getFullPath", [], "method"falsefalsetrue10), 10$this->source), "html"nulltrue);
  69.             echo "')\"";
  70.         }
  71.         echo ">
  72.                     <div>
  73.                         ";
  74.         // line 12
  75.         if (twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'12$this->source); })()), "getDate", [], "method"falsefalsetrue12)) {
  76.             // line 13
  77.             echo "                            <p class=\"date\">";
  78.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'13$this->source); })()), "getDate", [], "method"falsefalsetrue13), "format", [(isset($context["app_date_format"]) || array_key_exists("app_date_format"$context) ? $context["app_date_format"] : (function () { throw new RuntimeError('Variable "app_date_format" does not exist.'13$this->source); })())], "method"falsefalsetrue13), 13$this->source), "html"nulltrue);
  79.             echo "</p>
  80.                         ";
  81.         }
  82.         // line 15
  83.         echo "                        <h1>";
  84.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'15$this->source); })()), "getTitle", [], "method"falsefalsetrue15), 15$this->source));
  85.         echo "</h1>
  86.                     </div>
  87.                 </div>
  88.             </div>
  89.         </div>
  90.     </section>
  91.     <section id=\"staticPage\">
  92.         <div class=\"container\">
  93.             <div class=\"row\">
  94.                 <div class=\"d-none d-md-block col-md-2 sidebar\">
  95.                     <div class=\"socialDiv text-center\">
  96.                         <div class=\"share w-100\">
  97.                             <p>MEGOSZTÁS</p>
  98.                             <hr>
  99.                             <ul>
  100.                                 <li><a href=\"https://www.facebook.com/sharer/sharer.php?u=";
  101.         // line 30
  102.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "request", [], "any"falsefalsetrue30), "uri", [], "any"falsefalsetrue30), 30$this->source), "html"nulltrue);
  103.         echo "\"
  104.                                        title=\"Megosztás Facebookon\" target=\"_blank\"><i
  105.                                             class=\"fab fa-facebook-f\"></i></a></li>
  106.                                 <li>
  107.                                     <a href=\"mailto:?subject=";
  108.         // line 34
  109.         echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("default_title"), "html"nulltrue);
  110.         echo " - ";
  111.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'34$this->source); })()), "title", [], "any"falsefalsetrue34), 34$this->source), "html"nulltrue);
  112.         echo "&body=";
  113.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'34$this->source); })()), "request", [], "any"falsefalsetrue34), "uri", [], "any"falsefalsetrue34), 34$this->source), "html"nulltrue);
  114.         echo "\"
  115.                                        title=\"\" target=\"\"><i class=\"fas fa-envelope\"></i></a></li>
  116.                             </ul>
  117.                         </div>
  118.                         <a href=\"";
  119.         // line 38
  120.         echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["object" => twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'38$this->source); })()), "category", [], "any"falsefalsetrue38)]), "html"nulltrue);
  121.         echo "\" class=\"btn btn-primary w-100\">VISSZA</a>
  122.                     </div>
  123.                     ";
  124.         // line 40
  125.         if (twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'40$this->source); })()), "oldid", [], "any"falsefalsetrue40)) {
  126.             // line 41
  127.             echo "                        <div class=\"socialDiv pt-5\">
  128.                             <div class=\"share w-100\">
  129.                                 <p class=\"text-center\">ARCHIV ANYAG</p>
  130.                                 <hr>
  131.                                 <p>Az itt látható anyag archív írás, ezért előfordulhat, hogy a benne található képek,
  132.                                     tartalmi beágyazások az új cikkektől eltérően jelennek meg!</p>
  133.                             </div>
  134.                         </div>
  135.                     ";
  136.         }
  137.         // line 50
  138.         echo "                </div>
  139.                 <div class=\"col-12 col-md-8 content\">
  140.                     ";
  141.         // line 52
  142.         $context['_parent'] = $context;
  143.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'52$this->source); })()), "getContent", [], "method"falsefalsetrue52));
  144.         $context['loop'] = [
  145.           'parent' => $context['_parent'],
  146.           'index0' => 0,
  147.           'index'  => 1,
  148.           'first'  => true,
  149.         ];
  150.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  151.             $length count($context['_seq']);
  152.             $context['loop']['revindex0'] = $length 1;
  153.             $context['loop']['revindex'] = $length;
  154.             $context['loop']['length'] = $length;
  155.             $context['loop']['last'] = === $length;
  156.         }
  157.         foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  158.             // line 53
  159.             echo "                        ";
  160.             echo twig_include($this->env$context, [(("default/news/" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["content"], "type", [], "any"falsefalsetrue53), 53$this->source)) . ".html.twig"), "default/news/missing.html.twig"], ["content" => $context["content"]]);
  161.             echo "
  162.                     ";
  163.             ++$context['loop']['index0'];
  164.             ++$context['loop']['index'];
  165.             $context['loop']['first'] = false;
  166.             if (isset($context['loop']['length'])) {
  167.                 --$context['loop']['revindex0'];
  168.                 --$context['loop']['revindex'];
  169.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  170.             }
  171.         }
  172.         $_parent $context['_parent'];
  173.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  174.         $context array_intersect_key($context$_parent) + $_parent;
  175.         // line 55
  176.         echo "                </div>
  177.             </div>
  178.         </div>
  179.     </section>
  180.     ";
  181.         // line 60
  182.         if ( !twig_test_empty((isset($context["moreNews"]) || array_key_exists("moreNews"$context) ? $context["moreNews"] : (function () { throw new RuntimeError('Variable "moreNews" does not exist.'60$this->source); })()))) {
  183.             // line 61
  184.             echo "        <div class=\"container similar-products\">
  185.             <div class=\"row\">
  186.                 <div class=\"col-12 text-center\">
  187.                     <h3>TOVÁBBI CIKKEK</h3>
  188.                 </div>
  189.             </div>
  190.             <div class=\"row\">
  191.                 ";
  192.             // line 68
  193.             $context['_parent'] = $context;
  194.             $context['_seq'] = twig_ensure_traversable((isset($context["moreNews"]) || array_key_exists("moreNews"$context) ? $context["moreNews"] : (function () { throw new RuntimeError('Variable "moreNews" does not exist.'68$this->source); })()));
  195.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  196.                 // line 69
  197.                 echo "                    ";
  198.                 $this->loadTemplate("default/newslistitem.html.twig""default/newsdetails.html.twig"69)->display(twig_to_array(["news" => $context["item"]]));
  199.                 // line 70
  200.                 echo "                ";
  201.             }
  202.             $_parent $context['_parent'];
  203.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  204.             $context array_intersect_key($context$_parent) + $_parent;
  205.             // line 71
  206.             echo "            </div>
  207.         </div>
  208.     ";
  209.         }
  210.         // line 74
  211.         echo "
  212. ";
  213.         
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215.         
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  217.     }
  218.     public function getTemplateName()
  219.     {
  220.         return "default/newsdetails.html.twig";
  221.     }
  222.     public function isTraitable()
  223.     {
  224.         return false;
  225.     }
  226.     public function getDebugInfo()
  227.     {
  228.         return array (  226 => 74,  221 => 71,  215 => 70,  212 => 69,  208 => 68,  199 => 61,  197 => 60,  190 => 55,  173 => 53,  156 => 52,  152 => 50,  141 => 41,  139 => 40,  134 => 38,  123 => 34,  116 => 30,  97 => 15,  91 => 13,  89 => 12,  80 => 10,  74 => 6,  64 => 5,  54 => 3,  52 => 2,  50 => 1,  37 => 3,);
  229.     }
  230.     public function getSourceContext()
  231.     {
  232.         return new Source("{% set clubPage = is_clubsite(editmode, document) %}
  233. {% set _layout = clubPage ? 'seikoclub/layout.html.twig' : '@CoreShopFrontend/layout.html.twig' %}
  234. {% extends _layout %}
  235. {% block content %}
  236.     <section id=\"newsHeader\">
  237.         <div class=\"container\">
  238.             <div class=\"row\">
  239.                 <div
  240.                     class=\"col-12 bg mc text-center\"{% if news.headCoverImage %} style=\"background: url('{{ news.headCoverImage.getFullPath() }}')\"{% endif %}>
  241.                     <div>
  242.                         {% if news.getDate() %}
  243.                             <p class=\"date\">{{ news.getDate().format(app_date_format) }}</p>
  244.                         {% endif %}
  245.                         <h1>{{ news.getTitle() | escape }}</h1>
  246.                     </div>
  247.                 </div>
  248.             </div>
  249.         </div>
  250.     </section>
  251.     <section id=\"staticPage\">
  252.         <div class=\"container\">
  253.             <div class=\"row\">
  254.                 <div class=\"d-none d-md-block col-md-2 sidebar\">
  255.                     <div class=\"socialDiv text-center\">
  256.                         <div class=\"share w-100\">
  257.                             <p>MEGOSZTÁS</p>
  258.                             <hr>
  259.                             <ul>
  260.                                 <li><a href=\"https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}\"
  261.                                        title=\"Megosztás Facebookon\" target=\"_blank\"><i
  262.                                             class=\"fab fa-facebook-f\"></i></a></li>
  263.                                 <li>
  264.                                     <a href=\"mailto:?subject={{ pimcore_website_config('default_title') }} - {{ news.title }}&body={{ app.request.uri }}\"
  265.                                        title=\"\" target=\"\"><i class=\"fas fa-envelope\"></i></a></li>
  266.                             </ul>
  267.                         </div>
  268.                         <a href=\"{{ pimcore_url({'object': news.category}) }}\" class=\"btn btn-primary w-100\">VISSZA</a>
  269.                     </div>
  270.                     {% if news.oldid %}
  271.                         <div class=\"socialDiv pt-5\">
  272.                             <div class=\"share w-100\">
  273.                                 <p class=\"text-center\">ARCHIV ANYAG</p>
  274.                                 <hr>
  275.                                 <p>Az itt látható anyag archív írás, ezért előfordulhat, hogy a benne található képek,
  276.                                     tartalmi beágyazások az új cikkektől eltérően jelennek meg!</p>
  277.                             </div>
  278.                         </div>
  279.                     {% endif %}
  280.                 </div>
  281.                 <div class=\"col-12 col-md-8 content\">
  282.                     {% for content in news.getContent() %}
  283.                         {{ include(['default/news/' ~ content.type ~ '.html.twig', 'default/news/missing.html.twig'], {content: content}) }}
  284.                     {% endfor %}
  285.                 </div>
  286.             </div>
  287.         </div>
  288.     </section>
  289.     {% if not moreNews is empty %}
  290.         <div class=\"container similar-products\">
  291.             <div class=\"row\">
  292.                 <div class=\"col-12 text-center\">
  293.                     <h3>TOVÁBBI CIKKEK</h3>
  294.                 </div>
  295.             </div>
  296.             <div class=\"row\">
  297.                 {% for item in moreNews %}
  298.                     {% include 'default/newslistitem.html.twig' with {news: item} only %}
  299.                 {% endfor %}
  300.             </div>
  301.         </div>
  302.     {% endif %}
  303. {% endblock %}""default/newsdetails.html.twig""/home/zoltan/public_html/boutique-v2/templates/default/newsdetails.html.twig");
  304.     }
  305.     
  306.     public function checkSecurity()
  307.     {
  308.         static $tags = array("set" => 1"if" => 10"for" => 52"include" => 69);
  309.         static $filters = array("escape" => 10);
  310.         static $functions = array("is_clubsite" => 1"pimcore_website_config" => 34"pimcore_url" => 38"include" => 53);
  311.         try {
  312.             $this->sandbox->checkSecurity(
  313.                 ['set''if''for''include'],
  314.                 ['escape'],
  315.                 ['is_clubsite''pimcore_website_config''pimcore_url''include']
  316.             );
  317.         } catch (SecurityError $e) {
  318.             $e->setSourceContext($this->source);
  319.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  320.                 $e->setTemplateLine($tags[$e->getTagName()]);
  321.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  322.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  323.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  324.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  325.             }
  326.             throw $e;
  327.         }
  328.     }
  329. }