0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
giga
/
cache
/
8f
/
[
Home
]
File: 8fe80f83e2b5488e852513e4b0deccaa507abccf4717354c50bbeb4e0abb1766.php
<?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; /* menuboard-designer-form-edit-step2.twig */ class __TwigTemplate_17b2d1f839a0d80c7f9d2fa6a3dbf99496bf36d9dc67d85685c6b2f4899810f7 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'formTitle' => [$this, 'block_formTitle'], 'formHtml' => [$this, 'block_formHtml'], ]; } protected function doGetParent(array $context) { // line 23 return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 24 $macros["forms"] = $this->macros["forms"] = $this->loadTemplate("forms.twig", "menuboard-designer-form-edit-step2.twig", 24)->unwrap(); // line 23 $this->parent = $this->loadTemplate("form-base.twig", "menuboard-designer-form-edit-step2.twig", 23); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 26 public function block_formTitle($context, array $blocks = []) { $macros = $this->macros; // line 27 echo " "; echo __("Select your Menu Board"); } // line 30 public function block_formHtml($context, array $blocks = []) { $macros = $this->macros; // line 31 echo " <div class=\"row\"> <div class=\"col-md-12\"> <form id=\"menuBoardEditFormStep2\" class=\"XiboForm form-horizontal pt-4\" data-form-step=\"2\" method=\"put\" action=\""; // line 33 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("module.widget.edit", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "widget", [], "any", false, false, false, 33), "widgetId", [], "any", false, false, false, 33)]), "html", null, true); echo "\" data-next-form-url=\""; // line 34 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("module.widget.edit.form", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "widget", [], "any", false, false, false, 34), "widgetId", [], "any", false, false, false, 34)]), "html", null, true); echo "?step=3\"> "; // line 36 ob_start(function () { return ''; }); echo __("Below you can add Categories to the menu structure - drag and drop to add them to the empty spaces."); $context["message"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 37 echo " "; echo twig_call_macro($macros["forms"], "macro_message", [($context["message"] ?? null)], 37, $context, $this->getSourceContext()); echo " <div id=\"zonesContainer\"> <div class=\"row\"> <div class=\"col-md-12\"> <div class=\"text-info mb-1\">"; // line 42 echo __("Menu Structure"); echo "</div> "; // line 43 $context["gridTemplate"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "getExtra", [], "method", false, false, false, 43), "gridTemplate", [], "any", false, false, false, 43); // line 44 echo " "; $context["flexTemplate"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "getExtra", [], "method", false, false, false, 44), "flexTemplate", [], "any", false, false, false, 44); // line 45 echo " "; $context["flexTemplateSize"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "getExtra", [], "method", false, false, false, 45), "flexTemplateSize", [], "any", false, false, false, 45); // line 46 echo " <div class=\"structure\" style=\""; // line 47 if (($context["gridTemplate"] ?? null)) { echo "grid-template: "; echo twig_escape_filter($this->env, ($context["gridTemplate"] ?? null), "html", null, true); echo ";"; } echo twig_escape_filter($this->env, ($context["flexTemplate"] ?? null), "html", null, true); echo "\"> "; // line 48 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "getOption", [0 => "templateZones", 1 => 1], "method", false, false, false, 48))); foreach ($context['_seq'] as $context["_key"] => $context["i"]) { // line 49 echo " <div class=\"connectedlist\" style=\""; if (($context["gridTemplate"] ?? null)) { echo "grid-area: z"; echo twig_escape_filter($this->env, $context["i"], "html", null, true); } if (($context["flexTemplateSize"] ?? null)) { echo "flex: "; echo twig_escape_filter($this->env, (($__internal_compile_0 = ($context["flexTemplateSize"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[$context["i"]] ?? null) : null), "html", null, true); } echo "\";> <ul id=\"categoriesAssigned_"; // line 50 echo twig_escape_filter($this->env, $context["i"], "html", null, true); echo "\" class=\"connectedSortable2 single\"> "; // line 52 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "menuBoardCategoriesSelectedAssigned", [0 => $context["i"]], "method", false, false, false, 52)); foreach ($context['_seq'] as $context["_key"] => $context["category"]) { // line 53 echo " <li id=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "menuCategoryId", [], "any", false, false, false, 53), "html", null, true); echo "\" class=\"li-sortable\">"; // line 54 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 54), "html", null, true); echo "</li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 56 echo " </ul> </div> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 59 echo " </div> </div> <div class=\"col-md-12\"> <div class=\"text-info mb-1\">"; // line 62 echo __("Unassigned Categories"); echo "</div> <div class=\"connectedlist categoriesNotAssigned\"> <ul id=\"categoriesNotAssigned\" class=\"connectedSortable2\"> "; // line 66 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["module"] ?? null), "menuBoardCategoriesSelectedNotAssigned", [], "method", false, false, false, 66)); foreach ($context['_seq'] as $context["_key"] => $context["category"]) { // line 67 echo " <li id=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "menuCategoryId", [], "any", false, false, false, 67), "html", null, true); echo "\" class=\"li-sortable\">"; // line 68 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 68), "html", null, true); echo "</li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 70 echo " </ul> </div> </div> </div> </div> <input type=\"hidden\" name=\"step\" value=\"2\" /> </form> </div> </div> "; } public function getTemplateName() { return "menuboard-designer-form-edit-step2.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 188 => 70, 180 => 68, 175 => 67, 171 => 66, 164 => 62, 159 => 59, 151 => 56, 143 => 54, 138 => 53, 134 => 52, 129 => 50, 117 => 49, 113 => 48, 104 => 47, 101 => 46, 98 => 45, 95 => 44, 93 => 43, 89 => 42, 80 => 37, 76 => 36, 71 => 34, 67 => 33, 63 => 31, 59 => 30, 54 => 27, 50 => 26, 45 => 23, 43 => 24, 36 => 23,); } public function getSourceContext() { return new Source("", "menuboard-designer-form-edit-step2.twig", "/home/mgatv524/public_html/giga/modules/menuboard-designer-form-edit-step2.twig"); } }