var/cache/dev/twig/4a/4a9892cf4ecb9a486266ba84cdfaec2e.php line 84

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* areas/apk-snippet/view.html.twig */
  14. class __TwigTemplate_4f1c993e87875e4cb8d3f97c9bfb0e86 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/apk-snippet/view.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/apk-snippet/view.html.twig"));
  35.         // line 1
  36.         echo "
  37. ";
  38.         // line 2
  39.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'2$this->source); })())) {
  40.             // line 3
  41.             echo "<div class=\"uk-container apk-container-1200 uk-margin-medium\">
  42.     <h2 class=\"uk-h2\">Block lié à un snippet</h2>
  43.     <div class=\"uk-alert-primary\" uk-alert>
  44.         
  45.         <div>Espacement en haut du block</div>
  46.         ";
  47.             // line 8
  48.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"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" => ""]);
  49.             // line 17
  50.             echo "
  51.         <div>Espacement en bas du block</div>
  52.         ";
  53.             // line 20
  54.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"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" => ""]);
  55.             // line 29
  56.             echo "
  57.     </div>
  58.     ";
  59.             // line 32
  60.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"snippet""snippet");
  61.             echo "    
  62. </div>
  63. ";
  64.         } else {
  65.             // line 35
  66.             echo "<div class=\"";
  67.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""margin-top");
  68.             echo " ";
  69.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""margin-bottom");
  70.             echo "\">
  71.     ";
  72.             // line 36
  73.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"snippet""snippet");
  74.             echo "
  75. </div>
  76.     
  77. ";
  78.         }
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.     }
  84.     public function getTemplateName()
  85.     {
  86.         return "areas/apk-snippet/view.html.twig";
  87.     }
  88.     public function isTraitable()
  89.     {
  90.         return false;
  91.     }
  92.     public function getDebugInfo()
  93.     {
  94.         return array (  84 => 36,  77 => 35,  71 => 32,  66 => 29,  64 => 20,  59 => 17,  57 => 8,  50 => 3,  48 => 2,  45 => 1,);
  95.     }
  96.     public function getSourceContext()
  97.     {
  98.         return new Source("
  99. {% if editmode %}
  100. <div class=\"uk-container apk-container-1200 uk-margin-medium\">
  101.     <h2 class=\"uk-h2\">Block lié à un snippet</h2>
  102.     <div class=\"uk-alert-primary\" uk-alert>
  103.         
  104.         <div>Espacement en haut du block</div>
  105.         {{ pimcore_select(\"margin-top\", {
  106.             \"store\" : [
  107.                 ['', 'Aucun'],
  108.                 ['uk-margin-small-top', 'Petit'],
  109.                 ['uk-margin-medium-top', 'Moyen'],
  110.                 ['uk-margin-large-top', 'Grand'],
  111.                 ['uk-margin-xlarge-top', 'Très grand'],
  112.             ],
  113.             \"defaultValue\" : \"\"
  114.         }) }}
  115.         <div>Espacement en bas du block</div>
  116.         {{ pimcore_select(\"margin-bottom\", {
  117.             \"store\" : [
  118.                 ['', 'Aucun'],
  119.                 ['uk-margin-small-bottom', 'Petit'],
  120.                 ['uk-margin-medium-bottom', 'Moyen'],
  121.                 ['uk-margin-large-bottom', 'Grand'],
  122.                 ['uk-margin-xlarge-bottom', 'Très grand'],
  123.             ],
  124.             \"defaultValue\" : \"\"
  125.         }) }}
  126.     </div>
  127.     {{ pimcore_snippet('snippet') }}    
  128. </div>
  129. {% else %}
  130. <div class=\"{{ pimcore_select(\"margin-top\") }} {{ pimcore_select(\"margin-bottom\") }}\">
  131.     {{ pimcore_snippet('snippet') }}
  132. </div>
  133.     
  134. {% endif %}
  135. ""areas/apk-snippet/view.html.twig""/var/www/youinvestify.apik-pp.be/www/templates/areas/apk-snippet/view.html.twig");
  136.     }
  137.     
  138.     public function checkSecurity()
  139.     {
  140.         static $tags = array("if" => 2);
  141.         static $filters = array();
  142.         static $functions = array("pimcore_select" => 8"pimcore_snippet" => 32);
  143.         try {
  144.             $this->sandbox->checkSecurity(
  145.                 ['if'],
  146.                 [],
  147.                 ['pimcore_select''pimcore_snippet']
  148.             );
  149.         } catch (SecurityError $e) {
  150.             $e->setSourceContext($this->source);
  151.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  152.                 $e->setTemplateLine($tags[$e->getTagName()]);
  153.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  154.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  155.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  156.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  157.             }
  158.             throw $e;
  159.         }
  160.     }
  161. }