var/cache/dev/twig/f6/f64ac3e60f79ed248ee61ce5136cdabc.php line 50

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. /* content/editable_roundup.html.twig */
  14. class __TwigTemplate_25d445102d3dec121c70eecac3cc4d9b 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layouts/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/editable_roundup.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/editable_roundup.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout.html.twig""content/editable_roundup.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "
  57.     <div id=\"main-content\" class=\"main-content\" >
  58.         ";
  59.         // line 7
  60.         echo twig_include($this->env$context"includes/content-headline.html.twig");
  61.         echo "
  62.         <div class=\"lead\">
  63.             ";
  64.         // line 10
  65.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""lead");
  66.         echo "
  67.         </div>
  68.         ";
  69.         // line 13
  70.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'13$this->source); })())) {
  71.             // line 14
  72.             echo "            <style type=\"text/css\">
  73.                 .alert {
  74.                     margin-top: 60px;
  75.                 }
  76.             </style>
  77.             <div class=\"editable-roundup\">
  78.                 <div class=\"alert alert-secondary\">
  79.                     <h4>Checkbox</h4>
  80.                 </div>
  81.                 ";
  82.             // line 25
  83.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""myCheckbox");
  84.             echo "
  85.                 <div class=\"clearfix\"></div>
  86.                 <div class=\"alert alert-secondary\">
  87.                     <h4>Date</h4>
  88.                 </div>
  89.                 ";
  90.             // line 32
  91.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"date""myDate");
  92.             echo "
  93.                 <div class=\"alert alert-secondary\">
  94.                     <h4>Relation (Many-To-One)</h4>
  95.                 </div>
  96.                 ";
  97.             // line 37
  98.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""myRelation");
  99.             echo "
  100.                 <div class=\"alert alert-secondary\">
  101.                     <h4>Relation (Many-To-Many)</h4>
  102.                 </div>
  103.                 ";
  104.             // line 42
  105.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""myRelations");
  106.             echo "
  107.                 <div class=\"alert alert-secondary\">
  108.                     <h4>Image</h4>
  109.                 </div>
  110.                 ";
  111.             // line 47
  112.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""myImage");
  113.             echo "
  114.                 <div class=\"alert alert-secondary\">
  115.                     <h4>Input</h4>
  116.                 </div>
  117.                 ";
  118.             // line 52
  119.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""myInput");
  120.             echo "
  121.                 <div class=\"alert alert-secondary\">
  122.                     <h4>Link</h4>
  123.                 </div>
  124.                 ";
  125.             // line 57
  126.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""myLink");
  127.             echo "
  128.                 <div class=\"alert alert-secondary\">
  129.                     <h4>Multi-Select</h4>
  130.                 </div>
  131.                 ";
  132.             // line 62
  133.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"multiselect""myMultiselect", ["width" => 200"height" => 100"store" => [["cars""Cars"], ["motorcycles""Motorcycles"], ["accessories""Accessories"]]]);
  134.             // line 70
  135.             echo "
  136.                 <div class=\"alert alert-secondary\">
  137.                     <h4>Numeric</h4>
  138.                 </div>
  139.                 ";
  140.             // line 75
  141.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"numeric""myNumeric");
  142.             echo "
  143.                 <div class=\"alert alert-secondary\">
  144.                     <h4>Embed</h4>
  145.                 </div>
  146.                 ";
  147.             // line 80
  148.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"embed""myWidgets");
  149.             echo "
  150.                 <div class=\"alert alert-secondary\">
  151.                     <h4>Renderlet (drop an asset folder)</h4>
  152.                 </div>
  153.                 ";
  154.             // line 85
  155.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"renderlet""myRenderlet", ["controller" => "App\\Controller\\DefaultController::galleryRenderletAction"]);
  156.             // line 87
  157.             echo "
  158.                 <div class=\"alert alert-secondary\">
  159.                     <h4>Select</h4>
  160.                 </div>
  161.                 ";
  162.             // line 92
  163.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""mySelect", ["store" => [["one-month""One month"], ["three-months""Three months"], ["unlimited""Unlimited"]]]);
  164.             // line 98
  165.             echo "
  166.                 <div class=\"alert alert-secondary\">
  167.                     <h4>Snippet</h4>
  168.                     <p>drop a document snippet here</p>
  169.                 </div>
  170.                 ";
  171.             // line 104
  172.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"snippet""mySnippet");
  173.             echo "
  174.                 <div class=\"alert alert-secondary\">
  175.                     <h4>Table</h4>
  176.                     <p>of course you can create tables in the wysiwyg too</p>
  177.                 </div>
  178.                 ";
  179.             // line 110
  180.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"table""tableName", ["width" => 700"height" => 400"defaults" => ["cols" => 6"rows" => 10"data" => [["Value 1""Value 2""Value 3"], ["this""is""test"]]]]);
  181.             // line 121
  182.             echo "
  183.                 <div class=\"alert alert-secondary\">
  184.                     <h4>Textarea</h4>
  185.                 </div>
  186.                 ";
  187.             // line 126
  188.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""myTextarea");
  189.             echo "
  190.                 <div class=\"alert alert-secondary\">
  191.                     <h4>Video</h4>
  192.                 </div>
  193.                 ";
  194.             // line 131
  195.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""myVideo", ["attributes" => ["class" => "video-js vjs-default-skin vjs-big-play-centered""data-setup" => "{}"], "thumbnail" => "content""height" => 380]);
  196.             // line 138
  197.             echo "
  198.                 <div class=\"alert alert-secondary\">
  199.                     <h4>WYSIWYG</h4>
  200.                 </div>
  201.                 ";
  202.             // line 143
  203.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""myWysiwyg");
  204.             echo "
  205.                 <div class=\"alert alert-secondary\">
  206.                     <h4>PDF</h4>
  207.                 </div>
  208.                 ";
  209.             // line 148
  210.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"pdf""myPdf", ["width" => 640"height" => 100]);
  211.             echo "
  212.                 <div class=\"alert alert-secondary\">
  213.                     <h4>EDITABLE DIALOG BOX</h4>
  214.                     <p>Configured on the Image w. metadata brick class \"App\\Document\\Areabrick\\ImageMetadata\". Click on the edit button(pencil) for editable box:</p>
  215.                 </div>
  216.                 ";
  217.             // line 154
  218.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content", ["type" => "image-metadata"]);
  219.             echo "
  220.             </div>
  221.         ";
  222.         }
  223.         // line 158
  224.         echo "
  225.     </div>
  226. ";
  227.         
  228.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  229.         
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  231.     }
  232.     /**
  233.      * @codeCoverageIgnore
  234.      */
  235.     public function getTemplateName()
  236.     {
  237.         return "content/editable_roundup.html.twig";
  238.     }
  239.     /**
  240.      * @codeCoverageIgnore
  241.      */
  242.     public function isTraitable()
  243.     {
  244.         return false;
  245.     }
  246.     /**
  247.      * @codeCoverageIgnore
  248.      */
  249.     public function getDebugInfo()
  250.     {
  251.         return array (  263 => 158,  256 => 154,  247 => 148,  239 => 143,  232 => 138,  230 => 131,  222 => 126,  215 => 121,  213 => 110,  204 => 104,  196 => 98,  194 => 92,  187 => 87,  185 => 85,  177 => 80,  169 => 75,  162 => 70,  160 => 62,  152 => 57,  144 => 52,  136 => 47,  128 => 42,  120 => 37,  112 => 32,  102 => 25,  89 => 14,  87 => 13,  81 => 10,  75 => 7,  70 => 4,  60 => 3,  37 => 1,);
  252.     }
  253.     public function getSourceContext()
  254.     {
  255.         return new Source("{% extends 'layouts/layout.html.twig' %}
  256. {% block content %}
  257.     <div id=\"main-content\" class=\"main-content\" >
  258.         {{ include('includes/content-headline.html.twig') }}
  259.         <div class=\"lead\">
  260.             {{ pimcore_wysiwyg('lead') }}
  261.         </div>
  262.         {% if editmode %}
  263.             <style type=\"text/css\">
  264.                 .alert {
  265.                     margin-top: 60px;
  266.                 }
  267.             </style>
  268.             <div class=\"editable-roundup\">
  269.                 <div class=\"alert alert-secondary\">
  270.                     <h4>Checkbox</h4>
  271.                 </div>
  272.                 {{ pimcore_checkbox('myCheckbox') }}
  273.                 <div class=\"clearfix\"></div>
  274.                 <div class=\"alert alert-secondary\">
  275.                     <h4>Date</h4>
  276.                 </div>
  277.                 {{ pimcore_date('myDate') }}
  278.                 <div class=\"alert alert-secondary\">
  279.                     <h4>Relation (Many-To-One)</h4>
  280.                 </div>
  281.                 {{ pimcore_relation(\"myRelation\") }}
  282.                 <div class=\"alert alert-secondary\">
  283.                     <h4>Relation (Many-To-Many)</h4>
  284.                 </div>
  285.                 {{ pimcore_relations(\"myRelations\") }}
  286.                 <div class=\"alert alert-secondary\">
  287.                     <h4>Image</h4>
  288.                 </div>
  289.                 {{ pimcore_image('myImage') }}
  290.                 <div class=\"alert alert-secondary\">
  291.                     <h4>Input</h4>
  292.                 </div>
  293.                 {{ pimcore_input('myInput') }}
  294.                 <div class=\"alert alert-secondary\">
  295.                     <h4>Link</h4>
  296.                 </div>
  297.                 {{ pimcore_link('myLink') }}
  298.                 <div class=\"alert alert-secondary\">
  299.                     <h4>Multi-Select</h4>
  300.                 </div>
  301.                 {{ pimcore_multiselect('myMultiselect', {
  302.                     width: 200,
  303.                     height: 100,
  304.                     store: [
  305.                         [\"cars\", \"Cars\"],
  306.                         [\"motorcycles\", \"Motorcycles\"],
  307.                         [\"accessories\", \"Accessories\"]
  308.                     ]
  309.                 }) }}
  310.                 <div class=\"alert alert-secondary\">
  311.                     <h4>Numeric</h4>
  312.                 </div>
  313.                 {{ pimcore_numeric('myNumeric') }}
  314.                 <div class=\"alert alert-secondary\">
  315.                     <h4>Embed</h4>
  316.                 </div>
  317.                 {{ pimcore_embed(\"myWidgets\") }}
  318.                 <div class=\"alert alert-secondary\">
  319.                     <h4>Renderlet (drop an asset folder)</h4>
  320.                 </div>
  321.                 {{ pimcore_renderlet('myRenderlet', {
  322.                     controller: 'App\\\\Controller\\\\DefaultController::galleryRenderletAction'
  323.                 }) }}
  324.                 <div class=\"alert alert-secondary\">
  325.                     <h4>Select</h4>
  326.                 </div>
  327.                 {{ pimcore_select('mySelect', {
  328.                     store: [
  329.                         ['one-month', 'One month'],
  330.                         ['three-months', 'Three months'],
  331.                         ['unlimited', 'Unlimited']
  332.                     ]
  333.                 }) }}
  334.                 <div class=\"alert alert-secondary\">
  335.                     <h4>Snippet</h4>
  336.                     <p>drop a document snippet here</p>
  337.                 </div>
  338.                 {{ pimcore_snippet('mySnippet') }}
  339.                 <div class=\"alert alert-secondary\">
  340.                     <h4>Table</h4>
  341.                     <p>of course you can create tables in the wysiwyg too</p>
  342.                 </div>
  343.                 {{ pimcore_table('tableName', {
  344.                     width: 700,
  345.                     height: 400,
  346.                     defaults: {
  347.                         cols: 6,
  348.                         rows: 10,
  349.                         data: [
  350.                             [\"Value 1\", \"Value 2\", \"Value 3\"],
  351.                             [\"this\", \"is\", \"test\"]
  352.                         ]
  353.                     }
  354.                 }) }}
  355.                 <div class=\"alert alert-secondary\">
  356.                     <h4>Textarea</h4>
  357.                 </div>
  358.                 {{ pimcore_textarea('myTextarea') }}
  359.                 <div class=\"alert alert-secondary\">
  360.                     <h4>Video</h4>
  361.                 </div>
  362.                 {{ pimcore_video('myVideo', {
  363.                     attributes: {
  364.                         class: 'video-js vjs-default-skin vjs-big-play-centered',
  365.                         'data-setup': '{}'
  366.                     },
  367.                     thumbnail: 'content',
  368.                     height: 380
  369.                 }) }}
  370.                 <div class=\"alert alert-secondary\">
  371.                     <h4>WYSIWYG</h4>
  372.                 </div>
  373.                 {{ pimcore_wysiwyg('myWysiwyg') }}
  374.                 <div class=\"alert alert-secondary\">
  375.                     <h4>PDF</h4>
  376.                 </div>
  377.                 {{ pimcore_pdf(\"myPdf\", {\"width\": 640, height: 100}) }}
  378.                 <div class=\"alert alert-secondary\">
  379.                     <h4>EDITABLE DIALOG BOX</h4>
  380.                     <p>Configured on the Image w. metadata brick class \"App\\Document\\Areabrick\\ImageMetadata\". Click on the edit button(pencil) for editable box:</p>
  381.                 </div>
  382.                 {{ pimcore_area('content', { 'type' : 'image-metadata'}) }}
  383.             </div>
  384.         {% endif %}
  385.     </div>
  386. {% endblock %}
  387. ""content/editable_roundup.html.twig""/var/www/dev-10/templates/content/editable_roundup.html.twig");
  388.     }
  389.     
  390.     public function checkSecurity()
  391.     {
  392.         static $tags = array("if" => 13);
  393.         static $filters = array();
  394.         static $functions = array("include" => 7"pimcore_wysiwyg" => 10"pimcore_checkbox" => 25"pimcore_date" => 32"pimcore_relation" => 37"pimcore_relations" => 42"pimcore_image" => 47"pimcore_input" => 52"pimcore_link" => 57"pimcore_multiselect" => 62"pimcore_numeric" => 75"pimcore_embed" => 80"pimcore_renderlet" => 85"pimcore_select" => 92"pimcore_snippet" => 104"pimcore_table" => 110"pimcore_textarea" => 126"pimcore_video" => 131"pimcore_pdf" => 148"pimcore_area" => 154);
  395.         try {
  396.             $this->sandbox->checkSecurity(
  397.                 ['if'],
  398.                 [],
  399.                 ['include''pimcore_wysiwyg''pimcore_checkbox''pimcore_date''pimcore_relation''pimcore_relations''pimcore_image''pimcore_input''pimcore_link''pimcore_multiselect''pimcore_numeric''pimcore_embed''pimcore_renderlet''pimcore_select''pimcore_snippet''pimcore_table''pimcore_textarea''pimcore_video''pimcore_pdf''pimcore_area']
  400.             );
  401.         } catch (SecurityError $e) {
  402.             $e->setSourceContext($this->source);
  403.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  404.                 $e->setTemplateLine($tags[$e->getTagName()]);
  405.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  406.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  407.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  408.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  409.             }
  410.             throw $e;
  411.         }
  412.     }
  413. }