<?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;
/* default/newsdetails.html.twig */
class __TwigTemplate_7e25bd2d85afb789e39411c2f044162e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 3
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);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/newsdetails.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/newsdetails.html.twig"));
// line 1
$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));
// line 2
$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"));
// line 3
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo " <section id=\"newsHeader\">
<div class=\"container\">
<div class=\"row\">
<div
class=\"col-12 bg mc text-center\"";
// line 10
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", false, false, true, 10)) {
echo " style=\"background: url('";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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", false, false, true, 10), "getFullPath", [], "method", false, false, true, 10), 10, $this->source), "html", null, true);
echo "')\"";
}
echo ">
<div>
";
// line 12
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", false, false, true, 12)) {
// line 13
echo " <p class=\"date\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 13, $this->source); })()), "getDate", [], "method", false, false, true, 13), "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", false, false, true, 13), 13, $this->source), "html", null, true);
echo "</p>
";
}
// line 15
echo " <h1>";
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", false, false, true, 15), 15, $this->source));
echo "</h1>
</div>
</div>
</div>
</div>
</section>
<section id=\"staticPage\">
<div class=\"container\">
<div class=\"row\">
<div class=\"d-none d-md-block col-md-2 sidebar\">
<div class=\"socialDiv text-center\">
<div class=\"share w-100\">
<p>MEGOSZTÁS</p>
<hr>
<ul>
<li><a href=\"https://www.facebook.com/sharer/sharer.php?u=";
// line 30
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 30), "uri", [], "any", false, false, true, 30), 30, $this->source), "html", null, true);
echo "\"
title=\"Megosztás Facebookon\" target=\"_blank\"><i
class=\"fab fa-facebook-f\"></i></a></li>
<li>
<a href=\"mailto:?subject=";
// line 34
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("default_title"), "html", null, true);
echo " - ";
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", false, false, true, 34), 34, $this->source), "html", null, true);
echo "&body=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 34), "uri", [], "any", false, false, true, 34), 34, $this->source), "html", null, true);
echo "\"
title=\"\" target=\"\"><i class=\"fas fa-envelope\"></i></a></li>
</ul>
</div>
<a href=\"";
// line 38
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", false, false, true, 38)]), "html", null, true);
echo "\" class=\"btn btn-primary w-100\">VISSZA</a>
</div>
";
// line 40
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", false, false, true, 40)) {
// line 41
echo " <div class=\"socialDiv pt-5\">
<div class=\"share w-100\">
<p class=\"text-center\">ARCHIV ANYAG</p>
<hr>
<p>Az itt látható anyag archív írás, ezért előfordulhat, hogy a benne található képek,
tartalmi beágyazások az új cikkektől eltérően jelennek meg!</p>
</div>
</div>
";
}
// line 50
echo " </div>
<div class=\"col-12 col-md-8 content\">
";
// line 52
$context['_parent'] = $context;
$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", false, false, true, 52));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 53
echo " ";
echo twig_include($this->env, $context, [(("default/news/" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["content"], "type", [], "any", false, false, true, 53), 53, $this->source)) . ".html.twig"), "default/news/missing.html.twig"], ["content" => $context["content"]]);
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " </div>
</div>
</div>
</section>
";
// line 60
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); })()))) {
// line 61
echo " <div class=\"container similar-products\">
<div class=\"row\">
<div class=\"col-12 text-center\">
<h3>TOVÁBBI CIKKEK</h3>
</div>
</div>
<div class=\"row\">
";
// line 68
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 69
echo " ";
$this->loadTemplate("default/newslistitem.html.twig", "default/newsdetails.html.twig", 69)->display(twig_to_array(["news" => $context["item"]]));
// line 70
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " </div>
</div>
";
}
// line 74
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/newsdetails.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set clubPage = is_clubsite(editmode, document) %}
{% set _layout = clubPage ? 'seikoclub/layout.html.twig' : '@CoreShopFrontend/layout.html.twig' %}
{% extends _layout %}
{% block content %}
<section id=\"newsHeader\">
<div class=\"container\">
<div class=\"row\">
<div
class=\"col-12 bg mc text-center\"{% if news.headCoverImage %} style=\"background: url('{{ news.headCoverImage.getFullPath() }}')\"{% endif %}>
<div>
{% if news.getDate() %}
<p class=\"date\">{{ news.getDate().format(app_date_format) }}</p>
{% endif %}
<h1>{{ news.getTitle() | escape }}</h1>
</div>
</div>
</div>
</div>
</section>
<section id=\"staticPage\">
<div class=\"container\">
<div class=\"row\">
<div class=\"d-none d-md-block col-md-2 sidebar\">
<div class=\"socialDiv text-center\">
<div class=\"share w-100\">
<p>MEGOSZTÁS</p>
<hr>
<ul>
<li><a href=\"https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}\"
title=\"Megosztás Facebookon\" target=\"_blank\"><i
class=\"fab fa-facebook-f\"></i></a></li>
<li>
<a href=\"mailto:?subject={{ pimcore_website_config('default_title') }} - {{ news.title }}&body={{ app.request.uri }}\"
title=\"\" target=\"\"><i class=\"fas fa-envelope\"></i></a></li>
</ul>
</div>
<a href=\"{{ pimcore_url({'object': news.category}) }}\" class=\"btn btn-primary w-100\">VISSZA</a>
</div>
{% if news.oldid %}
<div class=\"socialDiv pt-5\">
<div class=\"share w-100\">
<p class=\"text-center\">ARCHIV ANYAG</p>
<hr>
<p>Az itt látható anyag archív írás, ezért előfordulhat, hogy a benne található képek,
tartalmi beágyazások az új cikkektől eltérően jelennek meg!</p>
</div>
</div>
{% endif %}
</div>
<div class=\"col-12 col-md-8 content\">
{% for content in news.getContent() %}
{{ include(['default/news/' ~ content.type ~ '.html.twig', 'default/news/missing.html.twig'], {content: content}) }}
{% endfor %}
</div>
</div>
</div>
</section>
{% if not moreNews is empty %}
<div class=\"container similar-products\">
<div class=\"row\">
<div class=\"col-12 text-center\">
<h3>TOVÁBBI CIKKEK</h3>
</div>
</div>
<div class=\"row\">
{% for item in moreNews %}
{% include 'default/newslistitem.html.twig' with {news: item} only %}
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}", "default/newsdetails.html.twig", "/home/zoltan/public_html/boutique-v2/templates/default/newsdetails.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 10, "for" => 52, "include" => 69);
static $filters = array("escape" => 10);
static $functions = array("is_clubsite" => 1, "pimcore_website_config" => 34, "pimcore_url" => 38, "include" => 53);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['escape'],
['is_clubsite', 'pimcore_website_config', 'pimcore_url', 'include']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}