<?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/helper/areablock.html.twig */
class __TwigTemplate_a03b23c40565192c00033ecfedbcc8adfb0e0ad1cebbcc9d3b135d68be4f6ff4 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/helper/areablock.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/helper/areablock.html.twig"));
// line 1
$context["block_name"] = (((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 1, $this->source); })())) ? ((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 1, $this->source); })())) : ("default"));
// line 2
$context["block_type"] = (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 2, $this->source); })())) ? ((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 2, $this->source); })())) : (null));
// line 3
$context["block_config"] = $this->extensions['ToolboxBundle\Twig\Extension\AreaBlockConfigExtension']->getAreaBlockConfiguration($context, (isset($context["block_type"]) || array_key_exists("block_type", $context) ? $context["block_type"] : (function () { throw new RuntimeError('Variable "block_type" does not exist.', 3, $this->source); })()));
// line 4
$context["editmode"] = ((array_key_exists("editmode", $context)) ? ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) : (null));
// line 5
echo "
";
// line 6
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["block_config"]) || array_key_exists("block_config", $context) ? $context["block_config"] : (function () { throw new RuntimeError('Variable "block_config" does not exist.', 6, $this->source); })()), "allowed", [], "any", false, false, false, 6)) > 0)) {
// line 7
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", ("c" . (isset($context["block_name"]) || array_key_exists("block_name", $context) ? $context["block_name"] : (function () { throw new RuntimeError('Variable "block_name" does not exist.', 7, $this->source); })())), (isset($context["block_config"]) || array_key_exists("block_config", $context) ? $context["block_config"] : (function () { throw new RuntimeError('Variable "block_config" does not exist.', 7, $this->source); })()));
echo "
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@Toolbox/helper/areablock.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 56 => 7, 54 => 6, 51 => 5, 49 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set block_name = name ? name : 'default' %}
{% set block_type = type ? type : null %}
{% set block_config = toolbox_areablock_config(block_type) %}
{% set editmode = editmode is defined ? editmode : null %}
{% if block_config.allowed|length > 0 %}
{{ pimcore_areablock('c' ~ block_name, block_config) }}
{% endif %}", "@Toolbox/helper/areablock.html.twig", "/home/robotics/robotics.digitalwandler-staging.com/vendor/dachcom-digital/toolbox/src/ToolboxBundle/Resources/views/helper/areablock.html.twig");
}
}