<?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;
/* @AleaAreabricks/areas/content-box-with-side-background-image-and-side-text/view.html.twig */
class __TwigTemplate_e55bf22cc8cc7919ca99c5164d3a3283 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", "@AleaAreabricks/areas/content-box-with-side-background-image-and-side-text/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", "@AleaAreabricks/areas/content-box-with-side-background-image-and-side-text/view.html.twig"));
// line 1
$context["widthFirstColumn"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "widthFirstColumn"), "getData", [], "method", false, false, true, 1);
// line 2
$context["widthSecondColumn"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "widthSecondColumn"), "getData", [], "method", false, false, true, 2);
// line 3
$context["maxWidth"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "numeric", "maxWidth"), "getData", [], "method", false, false, true, 3);
// line 4
$context["titleTextColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "titleTextColor"), "getData", [], "method", false, false, true, 4);
// line 5
$context["titleFontSize"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "titleFontSize"), "getData", [], "method", false, false, true, 5);
// line 6
$context["titleSemantic"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "titleSemantic"), "getData", [], "method", false, false, true, 6);
// line 7
$context["descriptionTextColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "descriptionTextColor"), "getData", [], "method", false, false, true, 7);
// line 8
$context["descriptionFontSize"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "descriptionFontSize"), "getData", [], "method", false, false, true, 8);
// line 9
$context["linkTextColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "linkTextColor"), "getData", [], "method", false, false, true, 9);
// line 10
$context["linkFontSize"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "linkFontSize"), "getData", [], "method", false, false, true, 10);
// line 11
$context["backgroundColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "backgroundColor"), "getData", [], "method", false, false, true, 11);
// line 12
$context["disposition"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "disposition"), "getData", [], "method", false, false, true, 12);
// line 13
$context["offset"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "offset"), "getData", [], "method", false, false, true, 13);
// line 14
$context["imageType"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "imageType"), "getData", [], "method", false, false, true, 14);
// line 15
$context["imageAlignment"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "imageAlignment"), "getData", [], "method", false, false, true, 15);
// line 16
$context["imageDisposition"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "imageDisposition"), "getData", [], "method", false, false, true, 16);
// line 17
$context["textAlignment"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "textAlignment"), "getData", [], "method", false, false, true, 17);
// line 18
$context["textPosition"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "textPosition"), "getData", [], "method", false, false, true, 18);
// line 19
$context["fullWidthImage"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "fullWidthImage"), "getData", [], "method", false, false, true, 19);
// line 20
$context["showNavigation"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "showNavigation"), "getData", [], "method", false, false, true, 20);
// line 21
echo "
";
// line 24
$context["pm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pm"), "getData", [], "method", false, false, true, 24);
echo " ";
// line 25
$context["psm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "psm"), "getData", [], "method", false, false, true, 25);
echo " ";
// line 26
$context["ptm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptm"), "getData", [], "method", false, false, true, 26);
echo " ";
// line 27
$context["pem"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pem"), "getData", [], "method", false, false, true, 27);
echo " ";
// line 28
$context["pbm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbm"), "getData", [], "method", false, false, true, 28);
echo " ";
// line 30
$context["pd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pd"), "getData", [], "method", false, false, true, 30);
// line 31
$context["psd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "psd"), "getData", [], "method", false, false, true, 31);
// line 32
$context["ptd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptd"), "getData", [], "method", false, false, true, 32);
// line 33
$context["ped"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ped"), "getData", [], "method", false, false, true, 33);
// line 34
$context["pbd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbd"), "getData", [], "method", false, false, true, 34);
// line 35
echo "
<style>
@media (max-width:768px){
.textcontent { max-width:none; }
}
</style>
<div class=\"block-side-image-text ";
// line 42
if (((isset($context["offset"]) || array_key_exists("offset", $context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.', 42, $this->source); })()) != 0)) {
echo " offset-md-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["offset"]) || array_key_exists("offset", $context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.', 42, $this->source); })()), 42, $this->source), "html", null, true);
echo " ";
}
echo "\">
<div class=\"d-block d-md-flex ";
// line 43
if ((isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 43, $this->source); })())) {
echo " bg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 43, $this->source); })()), 43, $this->source), "html", null, true);
echo " ";
}
echo " inner ";
if (((isset($context["disposition"]) || array_key_exists("disposition", $context) ? $context["disposition"] : (function () { throw new RuntimeError('Variable "disposition" does not exist.', 43, $this->source); })()) == "textImage")) {
echo " flex-row-reverse ";
}
echo "\">
<div class=\"";
// line 44
if ((((array_key_exists("imageDisposition", $context)) ? (_twig_default_filter((isset($context["imageDisposition"]) || array_key_exists("imageDisposition", $context) ? $context["imageDisposition"] : (function () { throw new RuntimeError('Variable "imageDisposition" does not exist.', 44, $this->source); })()), "row")) : ("row")) == "carousel")) {
echo " swiper swiper-slider ";
} elseif ((((array_key_exists("imageDisposition", $context)) ? (_twig_default_filter((isset($context["imageDisposition"]) || array_key_exists("imageDisposition", $context) ? $context["imageDisposition"] : (function () { throw new RuntimeError('Variable "imageDisposition" does not exist.', 44, $this->source); })()), "row")) : ("row")) == "column")) {
echo " swiper vertical-swiper ";
} else {
}
echo " p-0 m-0 ";
if (((isset($context["imageType"]) || array_key_exists("imageType", $context) ? $context["imageType"] : (function () { throw new RuntimeError('Variable "imageType" does not exist.', 44, $this->source); })()) == "background")) {
echo " col-md-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["widthFirstColumn"]) || array_key_exists("widthFirstColumn", $context) ? $context["widthFirstColumn"] : (function () { throw new RuntimeError('Variable "widthFirstColumn" does not exist.', 44, $this->source); })()), 44, $this->source), "html", null, true);
echo " ";
} else {
echo " col-12 ";
if (((isset($context["widthFirstColumn"]) || array_key_exists("widthFirstColumn", $context) ? $context["widthFirstColumn"] : (function () { throw new RuntimeError('Variable "widthFirstColumn" does not exist.', 44, $this->source); })()) != 0)) {
echo " col-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["widthFirstColumn"]) || array_key_exists("widthFirstColumn", $context) ? $context["widthFirstColumn"] : (function () { throw new RuntimeError('Variable "widthFirstColumn" does not exist.', 44, $this->source); })()), 44, $this->source), "html", null, true);
echo " ";
}
echo " p-0 m-0 ";
if (((isset($context["imageAlignment"]) || array_key_exists("imageAlignment", $context) ? $context["imageAlignment"] : (function () { throw new RuntimeError('Variable "imageAlignment" does not exist.', 44, $this->source); })()) == "right")) {
echo " text-end pe-40 ";
}
echo " ";
if (((isset($context["imageAlignment"]) || array_key_exists("imageAlignment", $context) ? $context["imageAlignment"] : (function () { throw new RuntimeError('Variable "imageAlignment" does not exist.', 44, $this->source); })()) == "left")) {
echo " text-start ";
}
echo " ";
if (((isset($context["imageAlignment"]) || array_key_exists("imageAlignment", $context) ? $context["imageAlignment"] : (function () { throw new RuntimeError('Variable "imageAlignment" does not exist.', 44, $this->source); })()) == "center")) {
echo " text-center ";
}
echo " ";
}
echo "\">
";
// line 45
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 45, $this->source); })())) {
// line 46
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "imageBlock"), "iterator", [], "any", false, false, true, 46));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 47
echo " <div class=\"col-md-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["widthFirstColumn"]) || array_key_exists("widthFirstColumn", $context) ? $context["widthFirstColumn"] : (function () { throw new RuntimeError('Variable "widthFirstColumn" does not exist.', 47, $this->source); })()), 47, $this->source), "html", null, true);
echo "\">
";
// line 48
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image");
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo " ";
} else {
// line 52
echo " <div class=\"swiper-wrapper\">
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "imageBlock"), "iterator", [], "any", false, false, true, 53));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 54
echo " ";
if (((isset($context["imageType"]) || array_key_exists("imageType", $context) ? $context["imageType"] : (function () { throw new RuntimeError('Variable "imageType" does not exist.', 54, $this->source); })()) == "background")) {
// line 55
echo " <div class=\"swiper-slide image background position-relative\" >
";
// line 56
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image"), "thumbnail", [0 => "content_box_side_image"], "method", false, false, true, 56), "html", [0 => ["pictureAttributes" => ["class" => "w-100 h-100 d-block"], "imgAttributes" => ["class" => "w-100 h-100 object-fit-cover"]]], "method", false, false, true, 56), 56, $this->source);
// line 63
echo "
</div>
";
} else {
// line 66
echo " <div class=\"swiper-slide image\">
";
// line 68
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image"), "thumbnail", [0 => "content_box_side_image"], "method", false, false, true, 68), "html", [0 => ["pictureAttributes" => ["class" => ""], "imgAttributes" => ["class" => (( // line 73
(isset($context["fullWidthImage"]) || array_key_exists("fullWidthImage", $context) ? $context["fullWidthImage"] : (function () { throw new RuntimeError('Variable "fullWidthImage" does not exist.', 73, $this->source); })())) ? ("w-100 h-auto") : (" w-100 w-lg-auto h-auto"))]]], "method", false, false, true, 68), 68, $this->source);
// line 75
echo "
</div>
";
}
// line 79
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 80
echo " </div>
";
// line 81
if ((isset($context["showNavigation"]) || array_key_exists("showNavigation", $context) ? $context["showNavigation"] : (function () { throw new RuntimeError('Variable "showNavigation" does not exist.', 81, $this->source); })())) {
// line 82
echo " <div class=\"swiper-pagination\"></div>
";
}
// line 84
echo " </div>
";
}
// line 86
echo " <div class=\"content col-12 col-md-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["widthSecondColumn"]) || array_key_exists("widthSecondColumn", $context) ? $context["widthSecondColumn"] : (function () { throw new RuntimeError('Variable "widthSecondColumn" does not exist.', 86, $this->source); })()), 86, $this->source), "html", null, true);
echo " d-flex flex-column text-";
echo twig_escape_filter($this->env, ((array_key_exists("textAlignment", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["textAlignment"]) || array_key_exists("textAlignment", $context) ? $context["textAlignment"] : (function () { throw new RuntimeError('Variable "textAlignment" does not exist.', 86, $this->source); })()), 86, $this->source), "left")) : ("left")), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("textPosition", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["textPosition"]) || array_key_exists("textPosition", $context) ? $context["textPosition"] : (function () { throw new RuntimeError('Variable "textPosition" does not exist.', 86, $this->source); })()), 86, $this->source), "align-items-start justify-content-center")) : ("align-items-start justify-content-center")), "html", null, true);
echo "\">
<div class=\"pb-30 pb-lg-0 pt-20 py-lg-30 px-0 p-lg-50 ";
// line 87
echo ((((((array_key_exists("imageDisposition", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["imageDisposition"]) || array_key_exists("imageDisposition", $context) ? $context["imageDisposition"] : (function () { throw new RuntimeError('Variable "imageDisposition" does not exist.', 87, $this->source); })()), 87, $this->source), "row")) : ("row")) == "carousel") || (((array_key_exists("imageDisposition", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["imageDisposition"]) || array_key_exists("imageDisposition", $context) ? $context["imageDisposition"] : (function () { throw new RuntimeError('Variable "imageDisposition" does not exist.', 87, $this->source); })()), 87, $this->source), "row")) : ("row")) == "row"))) ? ("") : ("position-sticky sticky-top"));
echo "\">
";
// line 88
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "cardBlock", ["limit" => 6]), "iterator", [], "any", false, false, true, 88));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 89
echo " <div class=\"textcontent
";
// line 90
if (((isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 90, $this->source); })()) && ((isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 90, $this->source); })()) != ""))) {
echo " p-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 90, $this->source); })()), 90, $this->source), "html", null, true);
echo " ";
}
// line 91
echo " ";
if (((isset($context["pd"]) || array_key_exists("pd", $context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.', 91, $this->source); })()) && ((isset($context["pd"]) || array_key_exists("pd", $context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.', 91, $this->source); })()) != ""))) {
echo " p-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pd"]) || array_key_exists("pd", $context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.', 91, $this->source); })()), 91, $this->source), "html", null, true);
echo " ";
}
// line 92
echo " ";
if (((isset($context["psm"]) || array_key_exists("psm", $context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.', 92, $this->source); })()) && ((isset($context["psm"]) || array_key_exists("psm", $context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.', 92, $this->source); })()) != ""))) {
echo " ps-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["psm"]) || array_key_exists("psm", $context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.', 92, $this->source); })()), 92, $this->source), "html", null, true);
echo " ";
}
// line 93
echo " ";
if (((isset($context["psd"]) || array_key_exists("psd", $context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.', 93, $this->source); })()) && ((isset($context["psd"]) || array_key_exists("psd", $context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.', 93, $this->source); })()) != ""))) {
echo " ps-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["psd"]) || array_key_exists("psd", $context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.', 93, $this->source); })()), 93, $this->source), "html", null, true);
echo " ";
}
// line 94
echo " ";
if (((isset($context["ptm"]) || array_key_exists("ptm", $context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.', 94, $this->source); })()) && ((isset($context["ptm"]) || array_key_exists("ptm", $context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.', 94, $this->source); })()) != ""))) {
echo " pt-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ptm"]) || array_key_exists("ptm", $context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.', 94, $this->source); })()), 94, $this->source), "html", null, true);
echo " ";
}
// line 95
echo " ";
if (((isset($context["ptd"]) || array_key_exists("ptd", $context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.', 95, $this->source); })()) && ((isset($context["ptd"]) || array_key_exists("ptd", $context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.', 95, $this->source); })()) != ""))) {
echo " pt-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ptd"]) || array_key_exists("ptd", $context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.', 95, $this->source); })()), 95, $this->source), "html", null, true);
echo " ";
}
// line 96
echo " ";
if (((isset($context["pem"]) || array_key_exists("pem", $context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.', 96, $this->source); })()) && ((isset($context["pem"]) || array_key_exists("pem", $context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.', 96, $this->source); })()) != ""))) {
echo " pe-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pem"]) || array_key_exists("pem", $context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.', 96, $this->source); })()), 96, $this->source), "html", null, true);
echo " ";
}
// line 97
echo " ";
if (((isset($context["ped"]) || array_key_exists("ped", $context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.', 97, $this->source); })()) && ((isset($context["ped"]) || array_key_exists("ped", $context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.', 97, $this->source); })()) != ""))) {
echo " pe-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ped"]) || array_key_exists("ped", $context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.', 97, $this->source); })()), 97, $this->source), "html", null, true);
echo " ";
}
// line 98
echo " ";
if (((isset($context["pbm"]) || array_key_exists("pbm", $context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.', 98, $this->source); })()) && ((isset($context["pbm"]) || array_key_exists("pbm", $context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.', 98, $this->source); })()) != ""))) {
echo " pb-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pbm"]) || array_key_exists("pbm", $context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.', 98, $this->source); })()), 98, $this->source), "html", null, true);
echo " ";
}
// line 99
echo " ";
if (((isset($context["pbd"]) || array_key_exists("pbd", $context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.', 99, $this->source); })()) && ((isset($context["pbd"]) || array_key_exists("pbd", $context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.', 99, $this->source); })()) != ""))) {
echo " pb-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pbd"]) || array_key_exists("pbd", $context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.', 99, $this->source); })()), 99, $this->source), "html", null, true);
}
// line 100
echo " \" ";
if ((isset($context["maxWidth"]) || array_key_exists("maxWidth", $context) ? $context["maxWidth"] : (function () { throw new RuntimeError('Variable "maxWidth" does not exist.', 100, $this->source); })())) {
echo " style=\"with:100%; max-width:";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["maxWidth"]) || array_key_exists("maxWidth", $context) ? $context["maxWidth"] : (function () { throw new RuntimeError('Variable "maxWidth" does not exist.', 100, $this->source); })()), 100, $this->source), "html", null, true);
echo "px;\"";
}
echo ">
<";
// line 101
echo twig_escape_filter($this->env, ((array_key_exists("titleSemantic", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["titleSemantic"]) || array_key_exists("titleSemantic", $context) ? $context["titleSemantic"] : (function () { throw new RuntimeError('Variable "titleSemantic" does not exist.', 101, $this->source); })()), 101, $this->source), "h2")) : ("h2")), "html", null, true);
echo " class=\"text-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["titleTextColor"]) || array_key_exists("titleTextColor", $context) ? $context["titleTextColor"] : (function () { throw new RuntimeError('Variable "titleTextColor" does not exist.', 101, $this->source); })()), 101, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["titleFontSize"]) || array_key_exists("titleFontSize", $context) ? $context["titleFontSize"] : (function () { throw new RuntimeError('Variable "titleFontSize" does not exist.', 101, $this->source); })()), 101, $this->source), "html", null, true);
echo " \">
";
// line 102
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["width" => "100%", "placeholder" => "Titolo"]);
// line 105
echo "
</";
// line 106
echo twig_escape_filter($this->env, ((array_key_exists("titleSemantic", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["titleSemantic"]) || array_key_exists("titleSemantic", $context) ? $context["titleSemantic"] : (function () { throw new RuntimeError('Variable "titleSemantic" does not exist.', 106, $this->source); })()), 106, $this->source), "h2")) : ("h2")), "html", null, true);
echo ">
<div class=\"text-";
// line 107
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["descriptionTextColor"]) || array_key_exists("descriptionTextColor", $context) ? $context["descriptionTextColor"] : (function () { throw new RuntimeError('Variable "descriptionTextColor" does not exist.', 107, $this->source); })()), 107, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["descriptionFontSize"]) || array_key_exists("descriptionFontSize", $context) ? $context["descriptionFontSize"] : (function () { throw new RuntimeError('Variable "descriptionFontSize" does not exist.', 107, $this->source); })()), 107, $this->source), "html", null, true);
echo "\">
";
// line 108
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "description", ["width" => "100%", "placeholder" => "Descrizione"]);
// line 111
echo "
</div>
";
// line 113
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 113, $this->source); })())) {
// line 114
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
echo "
";
} else {
// line 116
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 117
echo " <a href=\"";
((twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 117, $this->source); })()), "getHref", [], "method", false, false, true, 117)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 117, $this->source); })()), "getHref", [], "method", false, false, true, 117), "html", null, true))) : (print ("#")));
echo "\" class=\"link text-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["linkTextColor"]) || array_key_exists("linkTextColor", $context) ? $context["linkTextColor"] : (function () { throw new RuntimeError('Variable "linkTextColor" does not exist.', 117, $this->source); })()), 117, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["linkFontSize"]) || array_key_exists("linkFontSize", $context) ? $context["linkFontSize"] : (function () { throw new RuntimeError('Variable "linkFontSize" does not exist.', 117, $this->source); })()), 117, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 117, $this->source); })()), "getText", [], "method", false, false, true, 117), 117, $this->source), "html", null, true);
echo "</a>
";
}
// line 119
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 121
echo " </div>
</div>
</div>
</div>
";
// line 127
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => (isset($context["swiper_js"]) || array_key_exists("swiper_js", $context) ? $context["swiper_js"] : (function () { throw new RuntimeError('Variable "swiper_js" does not exist.', 127, $this->source); })())], "method", false, false, true, 127);
echo "\t
<script>
document.addEventListener(\"DOMContentLoaded\", (event) => {
var thumbsSwiper = new Swiper('.block-side-image-text .swiper-slider', {
slidesPerView: '1',
spaceBetween: 10,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
});
var thumbsSwiperVert = new Swiper('.block-side-image-text .vertical-swiper', {
slidesPerView: '1',
spaceBetween: 0,
direction: 'horizontal',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
768: {
slidesPerView: '40',
spaceBetween: 40,
direction: 'vertical',
}
}
});
});
</script>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@AleaAreabricks/areas/content-box-with-side-background-image-and-side-text/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 417 => 127, 410 => 121, 403 => 119, 391 => 117, 388 => 116, 382 => 114, 380 => 113, 376 => 111, 374 => 108, 368 => 107, 364 => 106, 361 => 105, 359 => 102, 351 => 101, 342 => 100, 336 => 99, 329 => 98, 322 => 97, 315 => 96, 308 => 95, 301 => 94, 294 => 93, 287 => 92, 280 => 91, 274 => 90, 271 => 89, 267 => 88, 263 => 87, 254 => 86, 250 => 84, 246 => 82, 244 => 81, 241 => 80, 235 => 79, 229 => 75, 227 => 73, 225 => 68, 222 => 66, 217 => 63, 215 => 56, 212 => 55, 209 => 54, 205 => 53, 202 => 52, 199 => 51, 190 => 48, 185 => 47, 180 => 46, 178 => 45, 143 => 44, 131 => 43, 123 => 42, 114 => 35, 112 => 34, 110 => 33, 108 => 32, 106 => 31, 104 => 30, 101 => 28, 98 => 27, 95 => 26, 92 => 25, 89 => 24, 85 => 21, 83 => 20, 81 => 19, 79 => 18, 77 => 17, 75 => 16, 73 => 15, 71 => 14, 69 => 13, 67 => 12, 65 => 11, 63 => 10, 61 => 9, 59 => 8, 57 => 7, 55 => 6, 53 => 5, 51 => 4, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set widthFirstColumn = pimcore_select('widthFirstColumn').getData() %}
{% set widthSecondColumn = pimcore_select('widthSecondColumn').getData() %}
{% set maxWidth = pimcore_numeric('maxWidth').getData() %}
{% set titleTextColor = pimcore_select('titleTextColor').getData() %}
{% set titleFontSize = pimcore_select('titleFontSize').getData() %}
{% set titleSemantic = pimcore_select('titleSemantic').getData() %}
{% set descriptionTextColor = pimcore_select('descriptionTextColor').getData() %}
{% set descriptionFontSize = pimcore_select('descriptionFontSize').getData() %}
{% set linkTextColor = pimcore_select('linkTextColor').getData() %}
{% set linkFontSize = pimcore_select('linkFontSize').getData() %}
{% set backgroundColor = pimcore_select('backgroundColor').getData() %}
{% set disposition = pimcore_select('disposition').getData() %}
{% set offset = pimcore_select('offset').getData() %}
{% set imageType = pimcore_select('imageType').getData() %}
{% set imageAlignment = pimcore_select('imageAlignment').getData() %}
{% set imageDisposition = pimcore_select('imageDisposition').getData() %}
{% set textAlignment = pimcore_select('textAlignment').getData() %}
{% set textPosition = pimcore_select('textPosition').getData() %}
{% set fullWidthImage = pimcore_checkbox('fullWidthImage').getData() %}
{% set showNavigation = pimcore_checkbox('showNavigation').getData() %}
{# mobile - padding #}
{% set pm = pimcore_select('pm').getData() %} {# all 4 sides #}
{% set psm = pimcore_select('psm').getData() %} {# left #}
{% set ptm = pimcore_select('ptm').getData() %} {# top #}
{% set pem = pimcore_select('pem').getData() %} {# right #}
{% set pbm = pimcore_select('pbm').getData() %} {# bottom #}
{# desktop - padding #}
{% set pd = pimcore_select('pd').getData() %}
{% set psd = pimcore_select('psd').getData() %}
{% set ptd = pimcore_select('ptd').getData() %}
{% set ped = pimcore_select('ped').getData() %}
{% set pbd = pimcore_select('pbd').getData() %}
<style>
@media (max-width:768px){
.textcontent { max-width:none; }
}
</style>
<div class=\"block-side-image-text {% if offset != 0 %} offset-md-{{ offset }} {% endif %}\">
<div class=\"d-block d-md-flex {% if backgroundColor %} bg-{{ backgroundColor }} {% endif %} inner {% if disposition == 'textImage' %} flex-row-reverse {% endif %}\">
<div class=\"{% if imageDisposition|default('row') == 'carousel' %} swiper swiper-slider {% elseif imageDisposition|default('row') == 'column' %} swiper vertical-swiper {% else %}{% endif %} p-0 m-0 {% if imageType == 'background' %} col-md-{{ widthFirstColumn }} {% else %} col-12 {% if widthFirstColumn != 0 %} col-lg-{{ widthFirstColumn }} {% endif %} p-0 m-0 {% if imageAlignment == 'right' %} text-end pe-40 {% endif %} {% if imageAlignment == 'left' %} text-start {% endif %} {% if imageAlignment == 'center' %} text-center {% endif %} {% endif %}\">
{% if editmode %}
{% for i in pimcore_block('imageBlock').iterator %}
<div class=\"col-md-{{ widthFirstColumn }}\">
{{ pimcore_image(\"image\") }}
</div>
{% endfor %}
{% else %}
<div class=\"swiper-wrapper\">
{% for i in pimcore_block('imageBlock').iterator %}
{% if imageType == 'background' %}
<div class=\"swiper-slide image background position-relative\" >
{{ pimcore_image(\"image\").thumbnail('content_box_side_image').html({
'pictureAttributes': {
'class': 'w-100 h-100 d-block'
},
'imgAttributes': {
'class': 'w-100 h-100 object-fit-cover'
}
}) | raw }}
</div>
{% else %}
<div class=\"swiper-slide image\">
{#<img src=\"{{ pimcore_image(\"image\").getSrc() }}\" alt=\"\" {% if fullWidthImage %} class=\"w-100\" {% endif %} />#}
{{ pimcore_image(\"image\").thumbnail('content_box_side_image').html({
'pictureAttributes': {
'class': ''
},
'imgAttributes': {
'class': fullWidthImage? 'w-100 h-auto' : ' w-100 w-lg-auto h-auto'
}
}) | raw }}
</div>
{% endif %}
{% endfor %}
</div>
{% if showNavigation %}
<div class=\"swiper-pagination\"></div>
{% endif %}
</div>
{% endif %}
<div class=\"content col-12 col-md-{{ widthSecondColumn }} d-flex flex-column text-{{textAlignment|default('left')}} {{textPosition|default('align-items-start justify-content-center')}}\">
<div class=\"pb-30 pb-lg-0 pt-20 py-lg-30 px-0 p-lg-50 {{ imageDisposition|default('row') == 'carousel' or imageDisposition|default('row') == 'row' ? '' : 'position-sticky sticky-top' }}\">
{% for i in pimcore_block('cardBlock', {'limit': 6}).iterator %}
<div class=\"textcontent
{% if pm and pm != '' %} p-{{pm}} {% endif %}
{% if pd and pd != '' %} p-{{pd}} {% endif %}
{% if psm and psm != '' %} ps-{{psm}} {% endif %}
{% if psd and psd != '' %} ps-lg-{{psd}} {% endif %}
{% if ptm and ptm != '' %} pt-{{ptm}} {% endif %}
{% if ptd and ptd != '' %} pt-lg-{{ptd}} {% endif %}
{% if pem and pem != '' %} pe-{{pem}} {% endif %}
{% if ped and ped != '' %} pe-lg-{{ped}} {% endif %}
{% if pbm and pbm != '' %} pb-{{pbm}} {% endif %}
{% if pbd and pbd != '' %} pb-lg-{{pbd}}{% endif %}
\" {% if maxWidth %} style=\"with:100%; max-width:{{maxWidth}}px;\"{% endif %}>
<{{ titleSemantic|default('h2') }} class=\"text-{{ titleTextColor }} {{ titleFontSize }} \">
{{ pimcore_input(\"title\",{
\"width\": '100%',
\"placeholder\": \"Titolo\"
}) }}
</{{ titleSemantic|default('h2') }}>
<div class=\"text-{{ descriptionTextColor }} {{ descriptionFontSize }}\">
{{ pimcore_wysiwyg(\"description\",{
\"width\": '100%',
\"placeholder\": \"Descrizione\"
}) }}
</div>
{% if editmode %}
{{ pimcore_link('link') }}
{% else %}
{% set link = pimcore_link('link') %}
<a href=\"{{ link.getHref() ?: '#' }}\" class=\"link text-{{ linkTextColor }} {{ linkFontSize }}\">{{ link.getText() }}</a>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{# swiper slider js #}
{% do pimcore_head_script().appendFile(swiper_js) %}\t
<script>
document.addEventListener(\"DOMContentLoaded\", (event) => {
var thumbsSwiper = new Swiper('.block-side-image-text .swiper-slider', {
slidesPerView: '1',
spaceBetween: 10,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
});
var thumbsSwiperVert = new Swiper('.block-side-image-text .vertical-swiper', {
slidesPerView: '1',
spaceBetween: 0,
direction: 'horizontal',
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
768: {
slidesPerView: '40',
spaceBetween: 40,
direction: 'vertical',
}
}
});
});
</script>", "@AleaAreabricks/areas/content-box-with-side-background-image-and-side-text/view.html.twig", "/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/content-box-with-side-background-image-and-side-text/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 42, "for" => 46, "do" => 127);
static $filters = array("escape" => 42, "default" => 44, "raw" => 63);
static $functions = array("pimcore_select" => 1, "pimcore_numeric" => 3, "pimcore_checkbox" => 19, "pimcore_block" => 46, "pimcore_image" => 48, "pimcore_input" => 102, "pimcore_wysiwyg" => 108, "pimcore_link" => 114, "pimcore_head_script" => 127);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'do'],
['escape', 'default', 'raw'],
['pimcore_select', 'pimcore_numeric', 'pimcore_checkbox', 'pimcore_block', 'pimcore_image', 'pimcore_input', 'pimcore_wysiwyg', 'pimcore_link', 'pimcore_head_script']
);
} 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;
}
}
}