<?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;
/* @Toolbox/toolbox/tailwind/container/view.html.twig */
class __TwigTemplate_dc6d46c171c12d92d6f3e38dbf1df5ad3c13c258179a4e78104ccdbdf627f7df extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Toolbox/toolbox/tailwind/container/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Toolbox/toolbox/tailwind/container/view.html.twig"));
// line 1
$context["containerWidth"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "container_width"), "data", [], "any", false, false, false, 1);
// line 2
$context["backgroundImage"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "background_image");
// line 3
$context["fullWidthBackground"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "full_width_background"), "isChecked", [], "method", false, false, false, 3);
// line 4
$context["backgroundImagePosition"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "background_image_position");
// line 5
$context["backgroundImageSize"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "background_image_size");
// line 6
$context["backgroundImageRepeat"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "background_repeat");
// line 7
echo "
";
// line 9
if (( !(null === (isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 9, $this->source); })())) && !(isset($context["fullWidthBackground"]) || array_key_exists("fullWidthBackground", $context) ? $context["fullWidthBackground"] : (function () { throw new RuntimeError('Variable "fullWidthBackground" does not exist.', 9, $this->source); })()))) {
// line 10
echo " ";
$context["containerClass"] = (((isset($context["containerClass"]) || array_key_exists("containerClass", $context) ? $context["containerClass"] : (function () { throw new RuntimeError('Variable "containerClass" does not exist.', 10, $this->source); })()) . " container-bg-img bg-img-") . twig_get_attribute($this->env, $this->source, (isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 10, $this->source); })()), "getId", [], "method", false, false, false, 10));
}
// line 12
echo "
";
// line 14
$this->loadTemplate("digitalwandler//Components/bgImgCss.html.twig", "@Toolbox/toolbox/tailwind/container/view.html.twig", 14)->display(twig_array_merge($context, ["bgImg" => (isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 14, $this->source); })()), "bgImgPos" => (isset($context["backgroundImagePosition"]) || array_key_exists("backgroundImagePosition", $context) ? $context["backgroundImagePosition"] : (function () { throw new RuntimeError('Variable "backgroundImagePosition" does not exist.', 14, $this->source); })()), "bgImgSize" => (isset($context["backgroundImageSize"]) || array_key_exists("backgroundImageSize", $context) ? $context["backgroundImageSize"] : (function () { throw new RuntimeError('Variable "backgroundImageSize" does not exist.', 14, $this->source); })()), "bgImgRepeat" => (isset($context["backgroundImageRepeat"]) || array_key_exists("backgroundImageRepeat", $context) ? $context["backgroundImageRepeat"] : (function () { throw new RuntimeError('Variable "backgroundImageRepeat" does not exist.', 14, $this->source); })())]));
// line 15
echo "
";
// line 16
if (((isset($context["fullWidthBackground"]) || array_key_exists("fullWidthBackground", $context) ? $context["fullWidthBackground"] : (function () { throw new RuntimeError('Variable "fullWidthBackground" does not exist.', 16, $this->source); })()) && !(null === (isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 16, $this->source); })())))) {
// line 17
echo " ";
// line 18
echo "<div class=\"container-fluid container-with-background-image bg-img-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 18, $this->source); })()), "getId", [], "method", false, false, false, 18), "html", null, true);
echo "\">
";
}
// line 20
echo "
<div class=\"";
// line 21
echo twig_escape_filter($this->env, (isset($context["containerClass"]) || array_key_exists("containerClass", $context) ? $context["containerClass"] : (function () { throw new RuntimeError('Variable "containerClass" does not exist.', 21, $this->source); })()), "html", null, true);
echo " mx-auto ";
((twig_length_filter($this->env, (isset($context["containerWidth"]) || array_key_exists("containerWidth", $context) ? $context["containerWidth"] : (function () { throw new RuntimeError('Variable "containerWidth" does not exist.', 21, $this->source); })()))) ? (print (twig_escape_filter($this->env, (isset($context["containerWidth"]) || array_key_exists("containerWidth", $context) ? $context["containerWidth"] : (function () { throw new RuntimeError('Variable "containerWidth" does not exist.', 21, $this->source); })()), "html", null, true))) : (print ("px-4")));
echo "\">
<div class=\"container-inner\">
";
// line 23
$this->loadTemplate("@Toolbox/helper/areablock.html.twig", "@Toolbox/toolbox/tailwind/container/view.html.twig", 23)->display(twig_array_merge($context, ["name" => "container-block", "type" => "container"]));
// line 24
echo " </div>
</div>
";
// line 27
if (((isset($context["fullWidthBackground"]) || array_key_exists("fullWidthBackground", $context) ? $context["fullWidthBackground"] : (function () { throw new RuntimeError('Variable "fullWidthBackground" does not exist.', 27, $this->source); })()) && (isset($context["backgroundImage"]) || array_key_exists("backgroundImage", $context) ? $context["backgroundImage"] : (function () { throw new RuntimeError('Variable "backgroundImage" does not exist.', 27, $this->source); })()))) {
// line 28
echo "</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@Toolbox/toolbox/tailwind/container/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 102 => 28, 100 => 27, 95 => 24, 93 => 23, 86 => 21, 83 => 20, 77 => 18, 75 => 17, 73 => 16, 70 => 15, 68 => 14, 65 => 12, 61 => 10, 59 => 9, 55 => 7, 53 => 6, 51 => 5, 49 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set containerWidth = pimcore_select('container_width').data %}
{% set backgroundImage = pimcore_image('background_image') %}
{% set fullWidthBackground = pimcore_checkbox('full_width_background').isChecked() %}
{% set backgroundImagePosition = pimcore_select('background_image_position') %}
{% set backgroundImageSize = pimcore_select('background_image_size') %}
{% set backgroundImageRepeat = pimcore_select('background_repeat') %}
{% if backgroundImage is not null and not fullWidthBackground %}
{% set containerClass = containerClass ~ \" container-bg-img bg-img-\" ~ backgroundImage.getId() %}
{% endif %}
{# Adds CSS for responsive background image css. The CSS class is .bg-img-[imageId] #}
{% include 'digitalwandler//Components/bgImgCss.html.twig' with {'bgImg': backgroundImage, 'bgImgPos': backgroundImagePosition, 'bgImgSize': backgroundImageSize, 'bgImgRepeat': backgroundImageRepeat } %}
{% if fullWidthBackground and backgroundImage is not null %}
{# Renders a container around the container to allow for a full-width-background but a normal container #}
<div class=\"container-fluid container-with-background-image bg-img-{{backgroundImage.getId() }}\">
{% endif %}
<div class=\"{{ containerClass }} mx-auto {{ (containerWidth|length) ? containerWidth : 'px-4' }}\">
<div class=\"container-inner\">
{% include '@Toolbox/helper/areablock.html.twig' with {'name': 'container-block', 'type' : 'container'} %}
</div>
</div>
{% if fullWidthBackground and backgroundImage %}
</div>
{% endif %}", "@Toolbox/toolbox/tailwind/container/view.html.twig", "/home/robotics/robotics.digitalwandler-staging.com/templates/bundles/ToolboxBundle/toolbox/tailwind/container/view.html.twig");
}
}