<?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/apk-snippet/view.html.twig */
class __TwigTemplate_4f1c993e87875e4cb8d3f97c9bfb0e86 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/apk-snippet/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/apk-snippet/view.html.twig"));
// line 1
echo "
";
// line 2
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 2, $this->source); })())) {
// line 3
echo "<div class=\"uk-container apk-container-1200 uk-margin-medium\">
<h2 class=\"uk-h2\">Block lié à un snippet</h2>
<div class=\"uk-alert-primary\" uk-alert>
<div>Espacement en haut du block</div>
";
// line 8
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "margin-top", ["store" => [0 => [0 => "", 1 => "Aucun"], 1 => [0 => "uk-margin-small-top", 1 => "Petit"], 2 => [0 => "uk-margin-medium-top", 1 => "Moyen"], 3 => [0 => "uk-margin-large-top", 1 => "Grand"], 4 => [0 => "uk-margin-xlarge-top", 1 => "Très grand"]], "defaultValue" => ""]);
// line 17
echo "
<div>Espacement en bas du block</div>
";
// line 20
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "margin-bottom", ["store" => [0 => [0 => "", 1 => "Aucun"], 1 => [0 => "uk-margin-small-bottom", 1 => "Petit"], 2 => [0 => "uk-margin-medium-bottom", 1 => "Moyen"], 3 => [0 => "uk-margin-large-bottom", 1 => "Grand"], 4 => [0 => "uk-margin-xlarge-bottom", 1 => "Très grand"]], "defaultValue" => ""]);
// line 29
echo "
</div>
";
// line 32
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "snippet", "snippet");
echo "
</div>
";
} else {
// line 35
echo "<div class=\"";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "margin-top");
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "margin-bottom");
echo "\">
";
// line 36
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "snippet", "snippet");
echo "
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/apk-snippet/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 84 => 36, 77 => 35, 71 => 32, 66 => 29, 64 => 20, 59 => 17, 57 => 8, 50 => 3, 48 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("
{% if editmode %}
<div class=\"uk-container apk-container-1200 uk-margin-medium\">
<h2 class=\"uk-h2\">Block lié à un snippet</h2>
<div class=\"uk-alert-primary\" uk-alert>
<div>Espacement en haut du block</div>
{{ pimcore_select(\"margin-top\", {
\"store\" : [
['', 'Aucun'],
['uk-margin-small-top', 'Petit'],
['uk-margin-medium-top', 'Moyen'],
['uk-margin-large-top', 'Grand'],
['uk-margin-xlarge-top', 'Très grand'],
],
\"defaultValue\" : \"\"
}) }}
<div>Espacement en bas du block</div>
{{ pimcore_select(\"margin-bottom\", {
\"store\" : [
['', 'Aucun'],
['uk-margin-small-bottom', 'Petit'],
['uk-margin-medium-bottom', 'Moyen'],
['uk-margin-large-bottom', 'Grand'],
['uk-margin-xlarge-bottom', 'Très grand'],
],
\"defaultValue\" : \"\"
}) }}
</div>
{{ pimcore_snippet('snippet') }}
</div>
{% else %}
<div class=\"{{ pimcore_select(\"margin-top\") }} {{ pimcore_select(\"margin-bottom\") }}\">
{{ pimcore_snippet('snippet') }}
</div>
{% endif %}
", "areas/apk-snippet/view.html.twig", "/var/www/youinvestify.apik-pp.be/www/templates/areas/apk-snippet/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 2);
static $filters = array();
static $functions = array("pimcore_select" => 8, "pimcore_snippet" => 32);
try {
$this->sandbox->checkSecurity(
['if'],
[],
['pimcore_select', 'pimcore_snippet']
);
} 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;
}
}
}