<?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;
/* areas/article/view.html.twig */
class __TwigTemplate_46add52bbf71427ba8a9aa5783d4a8ff extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "areas/article/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/article/view.html.twig"));
// line 1
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })())) {
// line 2
echo " <style>
.article-edit-box,
.editor-checkbox label {
color: #fff;
}
</style>
<div class=\"main-article-area\">
";
// line 9
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Cím", "class" => "article-edit-title"]);
// line 12
echo "
<div style=\"display: flex; align-items: center; margin-bottom: 25px\">
<label class=\"pimcore-edit-label\">Cím igazítása: </label>
";
// line 15
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "title_align", ["store" => [["left", "Balra"], ["center", "Középre"]], "defaultValue" => "left"]);
// line 21
echo "
</div>
<div style=\"display: flex; align-items: center; margin-bottom: 25px\">
<label class=\"pimcore-edit-label\">Cím utáni távolság: </label>
";
// line 25
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "title_padding", ["store" => [["small", "Kicsi"], ["medium", "Közepes"], ["big", "Nagy"]], "defaultValue" => "small"]);
// line 32
echo "
</div>
<div class=\"article-area-checkbox-container\">
";
// line 36
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "contentEmbed", ["reload" => true, "class" => "editor-checkbox", "label" => "Beágyazott tartalom "]);
// line 40
echo "
<span title=\"A jelölőnégyzet használatával a szerkesztő tartalma elveszik.\">ℹ️</span>
</div>
";
// line 43
if (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "contentEmbed"), "isChecked", [], "method", false, false, true, 43)) {
// line 44
echo " <div class=\"article-area-embed-container\">
";
// line 45
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "embedContent", ["height" => "200", "placeholder" => "Beágyazott tartalom", "class" => "article-edit-box"]);
// line 49
echo "
</div>
";
} else {
// line 52
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "content", ["height" => 200, "placeholder" => "Szöveg", "class" => "article-edit-box"]);
// line 56
echo "
";
}
// line 58
echo "
<div class=\"article-images-container\">
<h3>Képek</h3>
";
// line 61
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "article-images-top"), "iterator", [], "any", false, false, true, 61));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 62
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "article-image-top", ["class" => "w-max-100-percent"]);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 64
echo "
</div>
<div>
<h3>Apple link</h3>
";
// line 69
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "dld_apple");
echo "
<h3>Google link</h3>
";
// line 72
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "dld_google");
echo "
</div>
";
// line 75
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "contentFooter", ["height" => 200, "placeholder" => "Szöveg", "class" => "article-edit-box"]);
// line 79
echo "
</div>
<div class=\"article-images\" style=\"background-color: #fff !important;\">
<h3>KÉPEK</h3>
";
// line 85
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "article-images"), "iterator", [], "any", false, false, true, 85));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 86
echo " <p>Link:<br>";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["required" => "linkonly"]);
echo "</p>
<p>Kép:<br>";
// line 87
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["required" => true]);
echo "</p>
<hr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 90
echo " </div>
";
} else {
// line 92
echo " ";
$context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title");
// line 93
echo " ";
$context["content"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "content");
// line 94
echo " ";
$context["contentFooter"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "contentFooter");
// line 95
echo " ";
$context["titleAlign"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "title_align");
// line 96
echo " ";
$context["titlePadding"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "title_padding");
// line 97
echo "
<div class=\"main-article-area\">
";
// line 99
if (((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 99, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 99, $this->source); })()), "getText", [], "method", false, false, true, 99))) {
// line 100
echo " ";
$context["align"] = "left";
// line 101
echo " ";
$context["padding"] = "small";
// line 102
echo "
";
// line 103
if (((isset($context["titleAlign"]) || array_key_exists("titleAlign", $context) ? $context["titleAlign"] : (function () { throw new RuntimeError('Variable "titleAlign" does not exist.', 103, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["titleAlign"]) || array_key_exists("titleAlign", $context) ? $context["titleAlign"] : (function () { throw new RuntimeError('Variable "titleAlign" does not exist.', 103, $this->source); })()), "getData", [], "method", false, false, true, 103))) {
// line 104
echo " ";
$context["align"] = twig_get_attribute($this->env, $this->source, (isset($context["titleAlign"]) || array_key_exists("titleAlign", $context) ? $context["titleAlign"] : (function () { throw new RuntimeError('Variable "titleAlign" does not exist.', 104, $this->source); })()), "getData", [], "method", false, false, true, 104);
// line 105
echo " ";
}
// line 106
echo "
";
// line 107
if (((isset($context["titlePadding"]) || array_key_exists("titlePadding", $context) ? $context["titlePadding"] : (function () { throw new RuntimeError('Variable "titlePadding" does not exist.', 107, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["titlePadding"]) || array_key_exists("titlePadding", $context) ? $context["titlePadding"] : (function () { throw new RuntimeError('Variable "titlePadding" does not exist.', 107, $this->source); })()), "getData", [], "method", false, false, true, 107))) {
// line 108
echo " ";
$context["padding"] = twig_get_attribute($this->env, $this->source, (isset($context["titlePadding"]) || array_key_exists("titlePadding", $context) ? $context["titlePadding"] : (function () { throw new RuntimeError('Variable "titlePadding" does not exist.', 108, $this->source); })()), "getData", [], "method", false, false, true, 108);
// line 109
echo " ";
}
// line 110
echo "
<h1 class=\"title-padding-";
// line 111
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["padding"]) || array_key_exists("padding", $context) ? $context["padding"] : (function () { throw new RuntimeError('Variable "padding" does not exist.', 111, $this->source); })()), 111, $this->source), "html", null, true);
echo "\" style=\"text-align: ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["align"]) || array_key_exists("align", $context) ? $context["align"] : (function () { throw new RuntimeError('Variable "align" does not exist.', 111, $this->source); })()), 111, $this->source), "html", null, true);
echo "\">";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 111, $this->source); })()), "render", [], "method", false, false, true, 111), 111, $this->source);
echo "</h1>
";
}
// line 113
echo "
";
// line 114
if (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "contentEmbed"), "isChecked", [], "method", false, false, true, 114)) {
// line 115
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "embedContent", ["htmlspecialchars" => false]);
// line 117
echo "
";
} else {
// line 119
echo " ";
if (((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 119, $this->source); })()) && !twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 119, $this->source); })()), "isEmpty", [], "method", false, false, true, 119))) {
// line 120
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 120, $this->source); })()), "render", [], "method", false, false, true, 120), 120, $this->source);
echo "
";
}
// line 122
echo " ";
}
// line 123
echo "
";
// line 124
$context["articleImagesTop"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "article-images-top");
// line 125
echo " ";
if (((isset($context["articleImagesTop"]) || array_key_exists("articleImagesTop", $context) ? $context["articleImagesTop"] : (function () { throw new RuntimeError('Variable "articleImagesTop" does not exist.', 125, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["articleImagesTop"]) || array_key_exists("articleImagesTop", $context) ? $context["articleImagesTop"] : (function () { throw new RuntimeError('Variable "articleImagesTop" does not exist.', 125, $this->source); })()), "getCount", [], "method", false, false, true, 125))) {
// line 126
echo " <div class=\"justify-content-center\">
";
// line 127
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["articleImagesTop"]) || array_key_exists("articleImagesTop", $context) ? $context["articleImagesTop"] : (function () { throw new RuntimeError('Variable "articleImagesTop" does not exist.', 127, $this->source); })()), "iterator", [], "any", false, false, true, 127));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 128
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "article-image-top");
// line 129
echo " ";
if (((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 129, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 129, $this->source); })()), "getImage", [], "method", false, false, true, 129))) {
// line 130
echo " <div class=\"col d-flex justify-content-center m-3\">
";
// line 131
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 131, $this->source); })()), "getImage", [], "method", false, false, true, 131), "getThumbnail", ["seiko_srticle_top"], "method", false, false, true, 131), "getHtml", [], "method", false, false, true, 131), 131, $this->source);
echo "
</div>
";
}
// line 134
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 135
echo " </div>
";
}
// line 137
echo "
";
// line 138
if (( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "dld_apple"), "isEmpty", [], "method", false, false, true, 138) && !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "dld_google"), "isEmpty", [], "method", false, false, true, 138))) {
// line 139
echo "
<div class=\"store-button-container\">
<div class=\"store-button-wrapper\">
<div class=\"store-button\">
";
// line 143
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "dld_apple", ["textPrefix" => "<img src=\"/themes/frontend/images/apple-logo.png\" alt=\"\">"]);
// line 145
echo "
</div>
<div class=\"store-button\">
";
// line 148
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "dld_google", ["textPrefix" => "<img src=\"/themes/frontend/images/google-play.png\" alt=\"\">"]);
// line 150
echo "
</div>
</div>
</div>
";
}
// line 156
echo "
";
// line 157
if (((isset($context["contentFooter"]) || array_key_exists("contentFooter", $context) ? $context["contentFooter"] : (function () { throw new RuntimeError('Variable "contentFooter" does not exist.', 157, $this->source); })()) && !twig_get_attribute($this->env, $this->source, (isset($context["contentFooter"]) || array_key_exists("contentFooter", $context) ? $context["contentFooter"] : (function () { throw new RuntimeError('Variable "contentFooter" does not exist.', 157, $this->source); })()), "isEmpty", [], "method", false, false, true, 157))) {
// line 158
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["contentFooter"]) || array_key_exists("contentFooter", $context) ? $context["contentFooter"] : (function () { throw new RuntimeError('Variable "contentFooter" does not exist.', 158, $this->source); })()), "render", [], "method", false, false, true, 158), 158, $this->source);
echo "
";
}
// line 160
echo "
</div>
";
// line 163
$context["articleImages"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "article-images");
// line 164
echo "
";
// line 165
if (((isset($context["articleImages"]) || array_key_exists("articleImages", $context) ? $context["articleImages"] : (function () { throw new RuntimeError('Variable "articleImages" does not exist.', 165, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["articleImages"]) || array_key_exists("articleImages", $context) ? $context["articleImages"] : (function () { throw new RuntimeError('Variable "articleImages" does not exist.', 165, $this->source); })()), "getCount", [], "method", false, false, true, 165))) {
// line 166
echo " <div class=\"row article-images justify-content-center\">
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["articleImages"]) || array_key_exists("articleImages", $context) ? $context["articleImages"] : (function () { throw new RuntimeError('Variable "articleImages" does not exist.', 167, $this->source); })()), "iterator", [], "any", false, false, true, 167));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 168
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image");
// line 169
echo " ";
if (((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 169, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 169, $this->source); })()), "getImage", [], "method", false, false, true, 169))) {
// line 170
echo " <div class=\"col d-flex justify-content-center m-3\">
";
// line 171
if (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link"), "isEmpty", [], "method", false, false, true, 171)) {
// line 172
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 172, $this->source); })()), "getImage", [], "method", false, false, true, 172), "getThumbnail", ["seiko_article"], "method", false, false, true, 172), "getHtml", [], "method", false, false, true, 172), 172, $this->source);
echo "
";
} else {
// line 174
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link", ["noText" => true, "textPrefix" => $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 176
(isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 176, $this->source); })()), "getImage", [], "method", false, false, true, 176), "getThumbnail", ["seiko_article"], "method", false, false, true, 176), "getHtml", [], "method", false, false, true, 176), 176, $this->source)]);
// line 177
echo "
";
}
// line 179
echo " </div>
";
}
// line 181
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 182
echo " </div>
";
}
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/article/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 392 => 182, 386 => 181, 382 => 179, 378 => 177, 376 => 176, 374 => 174, 368 => 172, 366 => 171, 363 => 170, 360 => 169, 357 => 168, 353 => 167, 350 => 166, 348 => 165, 345 => 164, 343 => 163, 338 => 160, 332 => 158, 330 => 157, 327 => 156, 319 => 150, 317 => 148, 312 => 145, 310 => 143, 304 => 139, 302 => 138, 299 => 137, 295 => 135, 289 => 134, 283 => 131, 280 => 130, 277 => 129, 274 => 128, 270 => 127, 267 => 126, 264 => 125, 262 => 124, 259 => 123, 256 => 122, 250 => 120, 247 => 119, 243 => 117, 240 => 115, 238 => 114, 235 => 113, 226 => 111, 223 => 110, 220 => 109, 217 => 108, 215 => 107, 212 => 106, 209 => 105, 206 => 104, 204 => 103, 201 => 102, 198 => 101, 195 => 100, 193 => 99, 189 => 97, 186 => 96, 183 => 95, 180 => 94, 177 => 93, 174 => 92, 170 => 90, 161 => 87, 156 => 86, 152 => 85, 144 => 79, 142 => 75, 136 => 72, 130 => 69, 123 => 64, 114 => 62, 110 => 61, 105 => 58, 101 => 56, 98 => 52, 93 => 49, 91 => 45, 88 => 44, 86 => 43, 81 => 40, 79 => 36, 73 => 32, 71 => 25, 65 => 21, 63 => 15, 58 => 12, 56 => 9, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if editmode %}
<style>
.article-edit-box,
.editor-checkbox label {
color: #fff;
}
</style>
<div class=\"main-article-area\">
{{ pimcore_input(\"title\", {
\"placeholder\": 'Cím',
\"class\": \"article-edit-title\"
}) }}
<div style=\"display: flex; align-items: center; margin-bottom: 25px\">
<label class=\"pimcore-edit-label\">Cím igazítása: </label>
{{ pimcore_select(\"title_align\", {
\"store\": [
[\"left\", \"Balra\"],
[\"center\", \"Középre\"],
],
\"defaultValue\" : \"left\"
}) }}
</div>
<div style=\"display: flex; align-items: center; margin-bottom: 25px\">
<label class=\"pimcore-edit-label\">Cím utáni távolság: </label>
{{ pimcore_select(\"title_padding\", {
\"store\": [
[\"small\", \"Kicsi\"],
[\"medium\", \"Közepes\"],
[\"big\", \"Nagy\"],
],
\"defaultValue\" : \"small\"
}) }}
</div>
<div class=\"article-area-checkbox-container\">
{{ pimcore_checkbox('contentEmbed', {
'reload': true,
'class': 'editor-checkbox',
'label': 'Beágyazott tartalom '
}) }}
<span title=\"A jelölőnégyzet használatával a szerkesztő tartalma elveszik.\">ℹ️</span>
</div>
{% if pimcore_checkbox('contentEmbed').isChecked() %}
<div class=\"article-area-embed-container\">
{{ pimcore_textarea('embedContent', {
\"height\": \"200\",
\"placeholder\": \"Beágyazott tartalom\",
\"class\": \"article-edit-box\"
}) }}
</div>
{% else %}
{{ pimcore_wysiwyg(\"content\", {
\"height\": 200,
\"placeholder\": \"Szöveg\",
\"class\": \"article-edit-box\"
}) }}
{% endif %}
<div class=\"article-images-container\">
<h3>Képek</h3>
{% for i in pimcore_block('article-images-top').iterator %}
{{ pimcore_image(\"article-image-top\", { \"class\": \"w-max-100-percent\" }) }}
{% endfor %}
</div>
<div>
<h3>Apple link</h3>
{{ pimcore_link('dld_apple') }}
<h3>Google link</h3>
{{ pimcore_link('dld_google') }}
</div>
{{ pimcore_wysiwyg(\"contentFooter\", {
\"height\": 200,
\"placeholder\": \"Szöveg\",
\"class\": \"article-edit-box\"
}) }}
</div>
<div class=\"article-images\" style=\"background-color: #fff !important;\">
<h3>KÉPEK</h3>
{% for i in pimcore_block('article-images').iterator %}
<p>Link:<br>{{ pimcore_link('link', {'required': 'linkonly'}) }}</p>
<p>Kép:<br>{{ pimcore_image('image', {'required': true}) }}</p>
<hr>
{% endfor %}
</div>
{% else %}
{% set title = pimcore_input(\"title\") %}
{% set content = pimcore_wysiwyg(\"content\") %}
{% set contentFooter = pimcore_wysiwyg(\"contentFooter\") %}
{% set titleAlign = pimcore_select('title_align') %}
{% set titlePadding = pimcore_select('title_padding') %}
<div class=\"main-article-area\">
{% if title and title.getText() %}
{% set align = 'left' %}
{% set padding = 'small' %}
{% if titleAlign and titleAlign.getData() %}
{% set align = titleAlign.getData() %}
{% endif %}
{% if titlePadding and titlePadding.getData() %}
{% set padding = titlePadding.getData() %}
{% endif %}
<h1 class=\"title-padding-{{ padding }}\" style=\"text-align: {{ align }}\">{{ title.render() | raw }}</h1>
{% endif %}
{% if pimcore_checkbox('contentEmbed').isChecked() %}
{{ pimcore_textarea('embedContent', {
\"htmlspecialchars\": false
}) }}
{% else %}
{% if content and not content.isEmpty() %}
{{ content.render() | raw }}
{% endif %}
{% endif %}
{% set articleImagesTop = pimcore_block('article-images-top') %}
{% if articleImagesTop and articleImagesTop.getCount() %}
<div class=\"justify-content-center\">
{% for i in articleImagesTop.iterator %}
{% set image = pimcore_image('article-image-top') %}
{% if image and image.getImage() %}
<div class=\"col d-flex justify-content-center m-3\">
{{ image.getImage().getThumbnail('seiko_srticle_top').getHtml() | raw }}
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if not pimcore_link('dld_apple').isEmpty() and not pimcore_link('dld_google').isEmpty() %}
<div class=\"store-button-container\">
<div class=\"store-button-wrapper\">
<div class=\"store-button\">
{{ pimcore_link('dld_apple', {
'textPrefix': '<img src=\"/themes/frontend/images/apple-logo.png\" alt=\"\">'
}) }}
</div>
<div class=\"store-button\">
{{ pimcore_link('dld_google', {
'textPrefix': '<img src=\"/themes/frontend/images/google-play.png\" alt=\"\">'
}) }}
</div>
</div>
</div>
{% endif %}
{% if contentFooter and not contentFooter.isEmpty() %}
{{ contentFooter.render() | raw }}
{% endif %}
</div>
{% set articleImages = pimcore_block('article-images') %}
{% if articleImages and articleImages.getCount() %}
<div class=\"row article-images justify-content-center\">
{% for i in articleImages.iterator %}
{% set image = pimcore_image('image') %}
{% if image and image.getImage() %}
<div class=\"col d-flex justify-content-center m-3\">
{% if pimcore_link('link').isEmpty() %}
{{ image.getImage().getThumbnail('seiko_article').getHtml() | raw }}
{% else %}
{{ pimcore_link('link', {
'noText': true,
'textPrefix': image.getImage().getThumbnail('seiko_article').getHtml() | raw
}) }}
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endif %}", "areas/article/view.html.twig", "/home/zoltan/public_html/boutique-v2/templates/areas/article/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "for" => 61, "set" => 92);
static $filters = array("escape" => 111, "raw" => 111);
static $functions = array("pimcore_input" => 9, "pimcore_select" => 15, "pimcore_checkbox" => 36, "pimcore_textarea" => 45, "pimcore_wysiwyg" => 52, "pimcore_block" => 61, "pimcore_image" => 62, "pimcore_link" => 69);
try {
$this->sandbox->checkSecurity(
['if', 'for', 'set'],
['escape', 'raw'],
['pimcore_input', 'pimcore_select', 'pimcore_checkbox', 'pimcore_textarea', 'pimcore_wysiwyg', 'pimcore_block', 'pimcore_image', 'pimcore_link']
);
} 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;
}
}
}