var/cache/dev/twig/d9/d95f36df3c295466f6a96028551bf954.php line 38

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