Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
system
/
storage
/
cache
/
e4
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* extension/module/ocmegamenu/top_item_form.twig */ class __TwigTemplate_e0814b91fa51f16c2dd763d8b439b9f0029217abece414b5dbdf1b75931fc3b9 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<a class=\"a-close\" onclick=\"ocmegamenu.closeForm()\"><i class=\"fa fa-close\" aria-hidden=\"true\"></i></a> <input type=\"hidden\" id=\"input-append-categories-link\" value=\""; // line 2 echo (isset($context["append_categories_link"]) ? $context["append_categories_link"] : null); echo "\" /> <div class=\"frm-container\"> <div class=\"frm-heading\"> <h4 class=\"frm-title\">"; // line 5 echo (isset($context["text_item_form"]) ? $context["text_item_form"] : null); echo "</h4> </div> <div class=\"frm-body\"> <div class=\"frm-button\"> <button type=\"button\" class=\"btn btn-primary btn-submit\" onclick=\"ocmegamenu.submitTopItemForm("; // line 9 echo (isset($context["menu_id"]) ? $context["menu_id"] : null); echo ")\" title=\""; echo (isset($context["button_save"]) ? $context["button_save"] : null); echo "\"><i class=\"fa fa-save\"></i> Save</button> </div> <div class=\"col-md-2 frm-left\"> <ul class=\"frm-list\"> <li class=\"active\"><a href=\"#tab-general\" data-toggle=\"tab\">"; // line 13 echo (isset($context["text_general_setting"]) ? $context["text_general_setting"] : null); echo "</a></li> <li><a href=\"#tab-content\" data-toggle=\"tab\">"; // line 14 echo (isset($context["text_content_setting"]) ? $context["text_content_setting"] : null); echo "</a></li> </ul> </div> <div class=\"col-md-10 frm-right\"> "; // line 18 if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) { // line 19 echo " <div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> "; echo (isset($context["error_warning"]) ? $context["error_warning"] : null); echo " <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button> </div> "; } // line 23 echo " <form action=\""; echo (isset($context["action"]) ? $context["action"] : null); echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-menu-item\" class=\"form-horizontal\"> <div class=\"tab-content\"> <!-- General Settings --> <div id=\"tab-general\" class=\"tab-pane active\"> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-item-name\">"; // line 28 echo (isset($context["entry_item_name"]) ? $context["entry_item_name"] : null); echo "</label> <div class=\"col-sm-6\"> <input type=\"text\" id=\"input-item-name\" class=\"form-control\" value=\""; // line 30 echo (isset($context["name"]) ? $context["name"] : null); echo "\" name=\"name\" /> "; // line 31 if ((isset($context["error_name"]) ? $context["error_name"] : null)) { // line 32 echo " <div class=\"text-danger\">"; echo (isset($context["error_name"]) ? $context["error_name"] : null); echo "</div> "; } // line 34 echo " </div> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-status\">"; // line 37 echo (isset($context["entry_status"]) ? $context["entry_status"] : null); echo "</label> <div class=\"col-sm-4\"> <select name=\"status\" id=\"input-status\" class=\"form-control\"> "; // line 40 if ((isset($context["status"]) ? $context["status"] : null)) { // line 41 echo " <option value=\"1\" selected=\"selected\">"; echo (isset($context["text_enabled"]) ? $context["text_enabled"] : null); echo "</option> <option value=\"0\">"; // line 42 echo (isset($context["text_disabled"]) ? $context["text_disabled"] : null); echo "</option> "; } else { // line 44 echo " <option value=\"1\">"; echo (isset($context["text_enabled"]) ? $context["text_enabled"] : null); echo "</option> <option value=\"0\" selected=\"selected\">"; // line 45 echo (isset($context["text_disabled"]) ? $context["text_disabled"] : null); echo "</option> "; } // line 47 echo " </select> </div> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-title\">"; // line 51 echo (isset($context["entry_title"]) ? $context["entry_title"] : null); echo "</label> <div class=\"col-sm-6\"> "; // line 53 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 54 echo " <div class=\"input-group\"> <span class=\"input-group-addon\"><img src=\"language/"; // line 55 echo $this->getAttribute($context["language"], "code", array()); echo "/"; echo $this->getAttribute($context["language"], "code", array()); echo ".png\" title=\""; echo $this->getAttribute($context["language"], "name", array()); echo "\" /> "; echo $this->getAttribute($context["language"], "name", array()); echo "</span> <input type=\"text\" name=\"title["; // line 56 echo $this->getAttribute($context["language"], "language_id", array()); echo "]\" value=\""; echo (($this->getAttribute((isset($context["title"]) ? $context["title"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array")) ? ($this->getAttribute((isset($context["title"]) ? $context["title"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array")) : ("")); echo "\" placeholder=\"\" id=\"input-title"; echo $this->getAttribute($context["language"], "language_id", array()); echo "\" class=\"form-control\" /> </div> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 59 echo " </div> <div class=\"col-sm-1\"></div> <div class=\"col-sm-3\"> <div class=\"checkbox\"> <input type=\"checkbox\" name=\"disable_title\" value=\""; // line 63 echo (isset($context["disable_title"]) ? $context["disable_title"] : null); echo "\" "; if ((isset($context["disable_title"]) ? $context["disable_title"] : null)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_hide_title"]) ? $context["text_hide_title"] : null); echo " </div> </div> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-link\">"; // line 68 echo (isset($context["entry_link"]) ? $context["entry_link"] : null); echo "</label> <div class=\"col-sm-6\"> <input type=\"text\" id=\"input-link\" name=\"link\" value=\""; // line 70 echo (isset($context["link"]) ? $context["link"] : null); echo "\" class=\"form-control\" /> <div class=\"frm-info\"> <i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i> <span>"; // line 72 echo (isset($context["text_link_info"]) ? $context["text_link_info"] : null); echo "</span> </div> </div> <div class=\"col-sm-1\"></div> <div class=\"col-sm-3\"> <div class=\"checkbox\"> <input type=\"checkbox\" name=\"disable_link\" value=\""; // line 78 echo (isset($context["disable_link"]) ? $context["disable_link"] : null); echo "\" "; if ((isset($context["disable_link"]) ? $context["disable_link"] : null)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_disable_link"]) ? $context["text_disable_link"] : null); echo " </div> </div> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-sub-menu-type\">"; // line 83 echo (isset($context["entry_sub_menu_type"]) ? $context["entry_sub_menu_type"] : null); echo "</label> <div class=\"col-sm-4\"> <select name=\"sub_menu_type\" id=\"input-sub-menu-type\" class=\"form-control\"> <option value=\"mega\" "; // line 86 if (((isset($context["sub_menu_type"]) ? $context["sub_menu_type"] : null) == "mega")) { echo " selected=\"selected\" "; } echo ">"; echo (isset($context["text_megamenu"]) ? $context["text_megamenu"] : null); echo "</option> <option value=\"flyout\" "; // line 87 if (((isset($context["sub_menu_type"]) ? $context["sub_menu_type"] : null) == "flyout")) { echo " selected=\"selected\" "; } echo ">"; echo (isset($context["text_flyoutmenu"]) ? $context["text_flyoutmenu"] : null); echo "</option> </select> </div> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-position\">"; // line 92 echo (isset($context["entry_position"]) ? $context["entry_position"] : null); echo "</label> <div class=\"col-sm-4\"> <input type=\"text\" id=\"input-position\" name=\"position\" value=\""; // line 94 echo (isset($context["position"]) ? $context["position"] : null); echo "\" class=\"form-control\" /> </div> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-item-align\">"; // line 98 echo (isset($context["entry_item_align"]) ? $context["entry_item_align"] : null); echo "</label> <div class=\"col-sm-4\"> <select name=\"item_align\" id=\"input-item-align\" class=\"form-control\"> <option value=\"left\" "; // line 101 if (((isset($context["item_align"]) ? $context["item_align"] : null) == "left")) { echo " selected=\"selected\" "; } echo ">"; echo (isset($context["text_left"]) ? $context["text_left"] : null); echo "</option> <option value=\"right\" "; // line 102 if (((isset($context["item_align"]) ? $context["item_align"] : null) == "right")) { echo " selected=\"selected\" "; } echo ">"; echo (isset($context["text_right"]) ? $context["text_right"] : null); echo "</option> </select> </div> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-icon\">"; // line 107 echo (isset($context["entry_icon"]) ? $context["entry_icon"] : null); echo "</label> <div class=\"col-sm-6\"> <a href=\"\" id=\"thumb-image\" data-toggle=\"image\" class=\"img-thumbnail\"><img src=\""; // line 109 echo (isset($context["thumb"]) ? $context["thumb"] : null); echo "\" alt=\"\" title=\"\" data-placeholder=\""; echo (isset($context["placeholder"]) ? $context["placeholder"] : null); echo "\" /></a> <input type=\"hidden\" name=\"icon\" value=\""; // line 110 echo (isset($context["icon"]) ? $context["icon"] : null); echo "\" id=\"input-image\" /> </div> </div> </div> <!-- Content Settings --> <div id=\"tab-content\" class=\"tab-pane\"> <div class=\"frm-info\"> <i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i> <span>"; // line 118 echo (isset($context["text_megamenu_info"]) ? $context["text_megamenu_info"] : null); echo "</span> </div> <div class=\"frm-group\"> <label class=\"frm-label col-sm-2\" for=\"input-sub-menu-content-type\">"; // line 121 echo (isset($context["entry_sub_menu_content_type"]) ? $context["entry_sub_menu_content_type"] : null); echo "</label> <div class=\"col-sm-4\"> <select name=\"sub_menu_content_type\" id=\"input-sub-menu-content-type\" class=\"form-control\"> <option value=\"widget\" "; // line 124 if (((isset($context["sub_menu_content_type"]) ? $context["sub_menu_content_type"] : null) == "widget")) { echo " selected=\"selected\" "; } echo ">"; echo (isset($context["text_widget"]) ? $context["text_widget"] : null); echo "</option> <option value=\"category\" "; // line 125 if (((isset($context["sub_menu_content_type"]) ? $context["sub_menu_content_type"] : null) == "category")) { echo " selected=\"selected\" "; } echo ">"; echo (isset($context["text_category"]) ? $context["text_category"] : null); echo "</option> <option value=\"children\" "; // line 126 if (((isset($context["sub_menu_content_type"]) ? $context["sub_menu_content_type"] : null) == "children")) { echo " selected=\"selected\" "; } echo ">"; echo (isset($context["text_children"]) ? $context["text_children"] : null); echo "</option> </select> </div> <div class=\"col-sm-6\"> <div class=\"frm-info\"> <i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i> <span>"; // line 131 echo (isset($context["text_sub_menu_info"]) ? $context["text_sub_menu_info"] : null); echo "</span> </div> </div> </div> <div class=\"frm-group frm-group-content frm-group-category\"> <label class=\"frm-label col-sm-2\" for=\"input-sub-menu-category\">"; // line 136 echo (isset($context["text_choose_top_category"]) ? $context["text_choose_top_category"] : null); echo "</label> <div class=\"col-sm-4 frm-group-category\"> <select name=\"category_id\" id=\"input-sub-menu-category\" class=\"form-control\"> "; // line 139 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) ? $context["categories"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["category"]) { // line 140 echo " <option value=\""; echo $this->getAttribute($context["category"], "category_id", array()); echo "\" "; if (((isset($context["category_id"]) ? $context["category_id"] : null) == $this->getAttribute($context["category"], "category_id", array()))) { echo " selected=\"selected\" "; } echo ">"; echo $this->getAttribute($context["category"], "name", array()); echo "</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 142 echo " </select> </div> <div class=\"col-sm-2 frm-group-category\"> <button type=\"button\" class=\"btn btn-primary btn-widget\" onclick=\"ocmegamenu.addCategoryWidget()\"><i class=\"fa fa-plus\"></i> "; // line 145 echo (isset($context["text_add_widget"]) ? $context["text_add_widget"] : null); echo "</button> <img class=\"frm-loader-img\" src=\""; // line 146 echo (isset($context["loader_image"]) ? $context["loader_image"] : null); echo "\" alt=\"loader_image\" /> </div> </div> <div class=\"frm-group frm-group-content frm-group-widget\"> <label class=\"frm-label col-sm-2\">"; // line 150 echo (isset($context["entry_megamenu_editor"]) ? $context["entry_megamenu_editor"] : null); echo "</label> <div class=\"col-sm-4\"> <select id=\"widget-type\" class=\"form-control\"> <option value=\"category\">"; // line 153 echo (isset($context["text_category"]) ? $context["text_category"] : null); echo "</option> <option value=\"product\">"; // line 154 echo (isset($context["text_product"]) ? $context["text_product"] : null); echo "</option> <option value=\"html\">"; // line 155 echo (isset($context["text_html"]) ? $context["text_html"] : null); echo "</option> <<option value=\"link\">"; // line 156 echo (isset($context["text_link"]) ? $context["text_link"] : null); echo "</option> </select> </div> <div class=\"col-sm-4\"> <select id=\"widget-cols\" class=\"form-control\"> <option value=\"2\">"; // line 161 echo ((1 . " ") . (isset($context["text_column"]) ? $context["text_column"] : null)); echo "</option> <option value=\"4\">"; // line 162 echo ((2 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"6\">"; // line 163 echo ((3 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"8\">"; // line 164 echo ((4 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"10\">"; // line 165 echo ((5 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"12\">"; // line 166 echo ((6 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> </select> </div> <div class=\"col-sm-2\"> <button type=\"button\" class=\"btn btn-primary btn-widget\" onclick=\"ocmegamenu.addWidget()\"><i class=\"fa fa-plus\"></i> "; // line 170 echo (isset($context["text_add_widget"]) ? $context["text_add_widget"] : null); echo "</button> <img class=\"frm-loader-img\" src=\""; // line 171 echo (isset($context["loader_image"]) ? $context["loader_image"] : null); echo "\" alt=\"loader_image\" /> </div> </div> <div class=\"frm-group frm-group-content frm-group-children\"> <label class=\"frm-label col-sm-2\" for=\"input-cols\">"; // line 176 echo (isset($context["entry_number_cols"]) ? $context["entry_number_cols"] : null); echo "</label> <div class=\"col-sm-4\"> <select id=\"input-cols\" name=\"sub_menu_content_columns\" class=\"form-control\"> <option value=\"1\" "; // line 179 if (((isset($context["sub_menu_content_columns"]) ? $context["sub_menu_content_columns"] : null) == 1)) { echo " selected=\"selected\" "; } echo ">"; echo ((1 . " ") . (isset($context["text_column"]) ? $context["text_column"] : null)); echo "</option> <option value=\"2\" "; // line 180 if (((isset($context["sub_menu_content_columns"]) ? $context["sub_menu_content_columns"] : null) == 2)) { echo " selected=\"selected\" "; } echo ">"; echo ((2 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"3\" "; // line 181 if (((isset($context["sub_menu_content_columns"]) ? $context["sub_menu_content_columns"] : null) == 3)) { echo " selected=\"selected\" "; } echo ">"; echo ((3 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"4\" "; // line 182 if (((isset($context["sub_menu_content_columns"]) ? $context["sub_menu_content_columns"] : null) == 4)) { echo " selected=\"selected\" "; } echo ">"; echo ((4 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"5\" "; // line 183 if (((isset($context["sub_menu_content_columns"]) ? $context["sub_menu_content_columns"] : null) == 5)) { echo " selected=\"selected\" "; } echo ">"; echo ((5 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> <option value=\"6\" "; // line 184 if (((isset($context["sub_menu_content_columns"]) ? $context["sub_menu_content_columns"] : null) == 6)) { echo " selected=\"selected\" "; } echo ">"; echo ((6 . " ") . (isset($context["text_columns"]) ? $context["text_columns"] : null)); echo "</option> </select> </div> </div> <!-- Widget Type Container --> <div class=\"widget-container widget-sortable\" id=\"widget-type-widget-container\"> "; // line 190 if ((isset($context["widget"]) ? $context["widget"] : null)) { // line 191 echo " "; if ($this->getAttribute((isset($context["widget"]) ? $context["widget"] : null), "widget", array())) { // line 192 echo " "; $context["i"] = 0; // line 193 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["widget"]) ? $context["widget"] : null), "widget", array())); foreach ($context['_seq'] as $context["_key"] => $context["w"]) { // line 194 echo " <div class=\"widget-block col-sm-"; echo $this->getAttribute($context["w"], "cols", array()); echo "\"> <div class=\"widget-content\"> <div class=\"widget-resize-action\"> <a class=\"a-resize-minus a-left\" onclick=\"ocmegamenu.decreaseColumn(\$(this))\"><i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i></a> <a class=\"a-resize-plus a-left\" onclick=\"ocmegamenu.increaseColumn(\$(this))\"><i class=\"fa fa-chevron-right\" aria-hidden=\"true\"></i></a> <a class=\"a-delete a-right\" onclick=\"ocmegamenu.deleteWidget(\$(this))\"><i class=\"fa fa-times-circle\" aria-hidden=\"true\"></i></a> <a class=\"a-config a-right\" onclick=\"ocmegamenu.showWidgetConfiguration(\$(this))\"><i class=\"fa fa-cogs\" aria-hidden=\"true\"></i></a> </div> <div class=\"widget-name-container\"> "; // line 203 if ((($this->getAttribute($context["w"], "type", array()) == "category") || ($this->getAttribute($context["w"], "type", array()) == "product"))) { // line 204 echo " <i class=\"fa fa-star\" aria-hidden=\"true\"></i><span class=\"name\">"; echo (($this->getAttribute($context["w"], "name", array())) ? ($this->getAttribute($context["w"], "name", array())) : ("...")); echo "</span> "; } // line 206 echo " "; // line 207 if ((($this->getAttribute($context["w"], "type", array()) == "html") || ($this->getAttribute($context["w"], "type", array()) == "link"))) { // line 208 echo " <i class=\"fa fa-star\" aria-hidden=\"true\"></i><span class=\"name\">"; echo (($this->getAttribute($this->getAttribute($context["w"], "name", array()), (isset($context["lang_id"]) ? $context["lang_id"] : null), array(), "array")) ? ($this->getAttribute($this->getAttribute($context["w"], "name", array()), (isset($context["lang_id"]) ? $context["lang_id"] : null), array(), "array")) : ("...")); echo "</span> "; } // line 210 echo " </div> </div> "; // line 213 if (($this->getAttribute($context["w"], "type", array()) == "category")) { // line 214 echo " <div class=\"widget-configuration\"> <div class=\"option\"><input type=\"text\" class=\"w-category\" placeholder=\""; // line 215 echo (isset($context["text_choose_category"]) ? $context["text_choose_category"] : null); echo "\" /></div> <div class=\"option\"><input type=\"checkbox\" class=\"show-image\" "; // line 216 if (($this->getAttribute($context["w"], "show_image", array()) == 1)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_show_image"]) ? $context["text_show_image"] : null); echo "</div> <div class=\"option\"><input type=\"checkbox\" class=\"show-child\" "; // line 217 if (($this->getAttribute($context["w"], "show_child", array()) == 1)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_show_child"]) ? $context["text_show_child"] : null); echo "</div> </div> <input type=\"hidden\" class=\"widget-name\" value=\""; // line 219 echo $this->getAttribute($context["w"], "name", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][name]\" /> <input type=\"hidden\" class=\"widget-category-id\" value=\""; // line 220 echo $this->getAttribute($context["w"], "category_id", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][category_id]\" /> <input type=\"hidden\" class=\"widget-show-image\" value=\""; // line 221 echo $this->getAttribute($context["w"], "show_image", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][show_image]\" /> <input type=\"hidden\" class=\"widget-show-child\" value=\""; // line 222 echo $this->getAttribute($context["w"], "show_child", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][show_child]\" /> "; } // line 224 echo " "; // line 225 if (($this->getAttribute($context["w"], "type", array()) == "product")) { // line 226 echo " <div class=\"widget-configuration\"> <div class=\"option\"><input type=\"text\" class=\"w-product\" placeholder=\""; // line 227 echo (isset($context["text_choose_product"]) ? $context["text_choose_product"] : null); echo "\" /></div> <div class=\"option\"><input type=\"checkbox\" class=\"show-image\" "; // line 228 if (($this->getAttribute($context["w"], "show_image", array()) == 1)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_show_image"]) ? $context["text_show_image"] : null); echo "</div> </div> <input type=\"hidden\" class=\"widget-name\" value=\""; // line 230 echo $this->getAttribute($context["w"], "name", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][name]\" /> <input type=\"hidden\" class=\"widget-product-id\" value=\""; // line 231 echo $this->getAttribute($context["w"], "product_id", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][product_id]\" /> <input type=\"hidden\" class=\"widget-show-image\" value=\""; // line 232 echo $this->getAttribute($context["w"], "show_image", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][show_image]\" /> "; } // line 234 echo " "; // line 235 if (($this->getAttribute($context["w"], "type", array()) == "html")) { // line 236 echo " <div class=\"widget-configuration\"> <ul class=\"nav nav-tabs ul-widget-lang\" id=\"ul-widget-html-"; // line 237 echo (isset($context["i"]) ? $context["i"] : null); echo "\"> "; // line 238 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 239 echo " <li><a href=\"#widget-html-language"; echo $this->getAttribute($context["language"], "language_id", array()); echo "-"; echo (isset($context["i"]) ? $context["i"] : null); echo "\" data-toggle=\"tab\"><img src=\"language/"; echo $this->getAttribute($context["language"], "code", array()); echo "/"; echo $this->getAttribute($context["language"], "code", array()); echo ".png\" title=\""; echo $this->getAttribute($context["language"], "name", array()); echo "\" /> "; echo $this->getAttribute($context["language"], "name", array()); echo "</a></li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 241 echo " </ul> <div class=\"tab-content\" id=\"tab-widget-html-"; // line 242 echo (isset($context["i"]) ? $context["i"] : null); echo "\"> "; // line 243 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 244 echo " <div class=\"tab-pane\" id=\"widget-html-language"; echo $this->getAttribute($context["language"], "language_id", array()); echo "-"; echo (isset($context["i"]) ? $context["i"] : null); echo "\"> <div class=\"option\"><input type=\"text\" name=\"widget[widget]["; // line 245 echo (isset($context["i"]) ? $context["i"] : null); echo "][name]["; echo $this->getAttribute($context["language"], "language_id", array()); echo "]\" value=\""; echo $this->getAttribute($this->getAttribute($context["w"], "name", array()), $this->getAttribute($context["language"], "language_id", array()), array(), "array"); echo "\" placeholder=\""; echo (isset($context["text_title"]) ? $context["text_title"] : null); echo "\" /></div> <div class=\"option\"> <textarea data-toggle=\"summernote\" rows=\"10\" class=\"w-html-content\" name=\"widget[widget]["; // line 247 echo (isset($context["i"]) ? $context["i"] : null); echo "][content]["; echo $this->getAttribute($context["language"], "language_id", array()); echo "]\" placeholder=\""; echo (isset($context["text_html"]) ? $context["text_html"] : null); echo "\">"; echo $this->getAttribute($this->getAttribute($context["w"], "content", array()), $this->getAttribute($context["language"], "language_id", array()), array(), "array"); echo "</textarea> </div> </div> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 251 echo " </div> <div class=\"option\"><input type=\"checkbox\" class=\"show-title\" "; // line 252 if (($this->getAttribute($context["w"], "show_title", array()) == 0)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_hide_title"]) ? $context["text_hide_title"] : null); echo "</div> </div> <input type=\"hidden\" class=\"widget-show-title\" value=\""; // line 254 echo (($this->getAttribute($context["w"], "show_title", array())) ? ($this->getAttribute($context["w"], "show_title", array())) : (0)); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][show_title]\" /> "; } // line 256 echo " "; // line 257 if (($this->getAttribute($context["w"], "type", array()) == "link")) { // line 258 echo " <div class=\"widget-configuration\"> <ul class=\"nav nav-tabs ul-widget-lang\" id=\"ul-widget-link-"; // line 259 echo (isset($context["i"]) ? $context["i"] : null); echo "\"> "; // line 260 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 261 echo " <li><a href=\"#widget-link-language"; echo $this->getAttribute($context["language"], "language_id", array()); echo "-"; echo (isset($context["i"]) ? $context["i"] : null); echo "\" data-toggle=\"tab\"><img src=\"language/"; echo $this->getAttribute($context["language"], "code", array()); echo "/"; echo $this->getAttribute($context["language"], "code", array()); echo ".png\" title=\""; echo $this->getAttribute($context["language"], "name", array()); echo "\" /> "; echo $this->getAttribute($context["language"], "name", array()); echo "</a></li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 263 echo " </ul> <div class=\"tab-content\" id=\"tab-widget-link-"; // line 264 echo (isset($context["i"]) ? $context["i"] : null); echo "\"> "; // line 265 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["language"]) { // line 266 echo " <div class=\"tab-pane\" id=\"widget-link-language"; echo $this->getAttribute($context["language"], "language_id", array()); echo "-"; echo (isset($context["i"]) ? $context["i"] : null); echo "\"> <div class=\"option\"><input type=\"text\" name=\"widget[widget]["; // line 267 echo (isset($context["i"]) ? $context["i"] : null); echo "][name]["; echo $this->getAttribute($context["language"], "language_id", array()); echo "]\" value=\""; echo $this->getAttribute($this->getAttribute($context["w"], "name", array()), $this->getAttribute($context["language"], "language_id", array()), array(), "array"); echo "\" placeholder=\""; echo (isset($context["text_title"]) ? $context["text_title"] : null); echo "\" /></div> </div> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 270 echo " </div> <div class=\"option\"><input type=\"text\" name=\"widget[widget]["; // line 271 echo (isset($context["i"]) ? $context["i"] : null); echo "][link]\" value=\""; echo $this->getAttribute($context["w"], "link", array()); echo "\" placeholder=\""; echo (isset($context["text_link"]) ? $context["text_link"] : null); echo "\" /></div> </div> "; } // line 274 echo " <input type=\"hidden\" class=\"widget-type\" value=\""; // line 275 echo $this->getAttribute($context["w"], "type", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][type]\" /> <input type=\"hidden\" class=\"widget-cols\" value=\""; // line 276 echo $this->getAttribute($context["w"], "cols", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][cols]\" /> <input type=\"hidden\" class=\"widget-position\" value=\""; // line 277 echo $this->getAttribute($context["w"], "position", array()); echo "\" name=\"widget[widget]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][position]\" /> </div> "; // line 279 $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1); // line 280 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['w'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 281 echo " "; } else { // line 282 echo " <p class=\"p-widget-items\">"; echo (isset($context["text_no_children_items"]) ? $context["text_no_children_items"] : null); echo "</p> "; } // line 284 echo " "; } else { // line 285 echo " <p class=\"p-widget-items\">"; echo (isset($context["text_no_children_items"]) ? $context["text_no_children_items"] : null); echo "</p> "; } // line 287 echo " </div> <!-- Category Type Container --> <div class=\"widget-container widget-sortable\" id=\"widget-type-category-container\"> "; // line 291 if ((isset($context["widget"]) ? $context["widget"] : null)) { // line 292 echo " "; if ($this->getAttribute((isset($context["widget"]) ? $context["widget"] : null), "category", array())) { // line 293 echo " "; $context["i"] = 0; // line 294 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["widget"]) ? $context["widget"] : null), "category", array())); foreach ($context['_seq'] as $context["_key"] => $context["w"]) { // line 295 echo " <div class=\"widget-block col-sm-"; echo $this->getAttribute($context["w"], "cols", array()); echo "\"> <div class=\"widget-content\"> <div class=\"widget-resize-action\"> <a class=\"a-resize-minus a-left\" onclick=\"ocmegamenu.decreaseColumn(\$(this))\"><i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i></a> <a class=\"a-resize-plus a-left\" onclick=\"ocmegamenu.increaseColumn(\$(this))\"><i class=\"fa fa-chevron-right\" aria-hidden=\"true\"></i></a> <a class=\"a-delete a-right\" onclick=\"ocmegamenu.deleteWidget(\$(this))\"><i class=\"fa fa-times-circle\" aria-hidden=\"true\"></i></a> <a class=\"a-config a-right\" onclick=\"ocmegamenu.showWidgetConfiguration(\$(this))\"><i class=\"fa fa-cogs\" aria-hidden=\"true\"></i></a> </div> <div class=\"widget-name-container\"> <i class=\"fa fa-star\" aria-hidden=\"true\"></i><span class=\"name\">"; // line 304 echo (($this->getAttribute($context["w"], "name", array())) ? ($this->getAttribute($context["w"], "name", array())) : ("...")); echo "</span> </div> </div> <div class=\"widget-configuration\"> <div class=\"option\"><input type=\"text\" class=\"w-category\" placeholder=\""; // line 309 echo (isset($context["text_choose_category"]) ? $context["text_choose_category"] : null); echo "\" /></div> <div class=\"option\"><input type=\"checkbox\" class=\"show-image\" "; // line 310 if (($this->getAttribute($context["w"], "show_image", array()) == 1)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_show_image"]) ? $context["text_show_image"] : null); echo "</div> <div class=\"option\"><input type=\"checkbox\" class=\"show-child\" "; // line 311 if (($this->getAttribute($context["w"], "show_child", array()) == 1)) { echo " checked=\"checked\" "; } echo " /> "; echo (isset($context["text_show_child"]) ? $context["text_show_child"] : null); echo "</div> </div> <input type=\"hidden\" class=\"widget-name\" value=\""; // line 314 echo $this->getAttribute($context["w"], "name", array()); echo "\" name=\"widget[category]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][name]\" /> <input type=\"hidden\" class=\"widget-type\" value=\""; // line 315 echo $this->getAttribute($context["w"], "type", array()); echo "\" name=\"widget[category]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][type]\" /> <input type=\"hidden\" class=\"widget-cols\" value=\""; // line 316 echo $this->getAttribute($context["w"], "cols", array()); echo "\" name=\"widget[category]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][cols]\" /> <input type=\"hidden\" class=\"widget-position\" value=\""; // line 317 echo $this->getAttribute($context["w"], "position", array()); echo "\" name=\"widget[category]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][position]\" /> <input type=\"hidden\" class=\"widget-category-id\" value=\""; // line 318 echo $this->getAttribute($context["w"], "category_id", array()); echo "\" name=\"widget[category]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][category_id]\" /> <input type=\"hidden\" class=\"widget-show-image\" value=\""; // line 319 echo $this->getAttribute($context["w"], "show_image", array()); echo "\" name=\"widget[category]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][show_image]\" /> <input type=\"hidden\" class=\"widget-show-child\" value=\""; // line 320 echo $this->getAttribute($context["w"], "show_child", array()); echo "\" name=\"widget[category]["; echo (isset($context["i"]) ? $context["i"] : null); echo "][show_child]\" /> </div> "; // line 322 $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1); // line 323 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['w'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 324 echo " "; } else { // line 325 echo " <p class=\"p-widget-items\">"; echo (isset($context["text_no_children_items"]) ? $context["text_no_children_items"] : null); echo "</p> "; } // line 327 echo " "; } else { // line 328 echo " <p class=\"p-widget-items\">"; echo (isset($context["text_no_children_items"]) ? $context["text_no_children_items"] : null); echo "</p> "; } // line 330 echo " </div> <input type=\"hidden\" name=\"category_id\" id=\"input-category-id\" value=\""; // line 332 echo (isset($context["category_id"]) ? $context["category_id"] : null); echo "\" /> <input type=\"hidden\" name=\"has_child\" id=\"input-has-child\" value=\""; // line 333 echo (isset($context["has_child"]) ? $context["has_child"] : null); echo "\" /> </div> </div> </form> </div> </div> </div> <script type=\"text/javascript\" src=\"view/javascript/summernote/summernote.js\"></script> <link href=\"view/javascript/summernote/summernote.css\" rel=\"stylesheet\" /> <script type=\"text/javascript\" src=\"view/javascript/summernote/summernote-image-attributes.js\"></script> <script type=\"text/javascript\"> ocmegamenu.initSortMenuItem(); ocmegamenu.chooseCategory(); ocmegamenu.chooseProduct(); ocmegamenu.checkBoxClick(); ocmegamenu.initSummerNote(); </script> <script type=\"text/javascript\"> var sub_menu_content_type_selection = \$('#input-sub-menu-content-type'); var sub_menu_content_type = sub_menu_content_type_selection.val(); \$('.widget-container').hide(); \$('#widget-type-'+ sub_menu_content_type +'-container').show(); \$('.frm-group-content').hide(); \$('.frm-group-' + sub_menu_content_type).show(); sub_menu_content_type_selection.change(function () { var sub_menu_content_type = \$(this).val(); \$('.frm-group-content').hide(); \$('.frm-group-' + sub_menu_content_type).show(); \$('.widget-container').hide(); \$('#widget-type-'+ sub_menu_content_type +'-container').show(); }); \$('.ul-widget-lang').each(function () { \$(this).find('a:first').tab('show'); }); </script>"; } public function getTemplateName() { return "extension/module/ocmegamenu/top_item_form.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 1025 => 333, 1021 => 332, 1017 => 330, 1011 => 328, 1008 => 327, 1002 => 325, 999 => 324, 993 => 323, 991 => 322, 984 => 320, 978 => 319, 972 => 318, 966 => 317, 960 => 316, 954 => 315, 948 => 314, 938 => 311, 930 => 310, 926 => 309, 918 => 304, 905 => 295, 900 => 294, 897 => 293, 894 => 292, 892 => 291, 886 => 287, 880 => 285, 877 => 284, 871 => 282, 868 => 281, 862 => 280, 860 => 279, 853 => 277, 847 => 276, 841 => 275, 838 => 274, 828 => 271, 825 => 270, 810 => 267, 803 => 266, 799 => 265, 795 => 264, 792 => 263, 773 => 261, 769 => 260, 765 => 259, 762 => 258, 760 => 257, 757 => 256, 750 => 254, 741 => 252, 738 => 251, 722 => 247, 711 => 245, 704 => 244, 700 => 243, 696 => 242, 693 => 241, 674 => 239, 670 => 238, 666 => 237, 663 => 236, 661 => 235, 658 => 234, 651 => 232, 645 => 231, 639 => 230, 630 => 228, 626 => 227, 623 => 226, 621 => 225, 618 => 224, 611 => 222, 605 => 221, 599 => 220, 593 => 219, 584 => 217, 576 => 216, 572 => 215, 569 => 214, 567 => 213, 562 => 210, 556 => 208, 554 => 207, 551 => 206, 545 => 204, 543 => 203, 530 => 194, 525 => 193, 522 => 192, 519 => 191, 517 => 190, 504 => 184, 496 => 183, 488 => 182, 480 => 181, 472 => 180, 464 => 179, 458 => 176, 450 => 171, 446 => 170, 439 => 166, 435 => 165, 431 => 164, 427 => 163, 423 => 162, 419 => 161, 411 => 156, 407 => 155, 403 => 154, 399 => 153, 393 => 150, 386 => 146, 382 => 145, 377 => 142, 362 => 140, 358 => 139, 352 => 136, 344 => 131, 332 => 126, 324 => 125, 316 => 124, 310 => 121, 304 => 118, 293 => 110, 287 => 109, 282 => 107, 270 => 102, 262 => 101, 256 => 98, 249 => 94, 244 => 92, 232 => 87, 224 => 86, 218 => 83, 204 => 78, 195 => 72, 190 => 70, 185 => 68, 171 => 63, 165 => 59, 152 => 56, 142 => 55, 139 => 54, 135 => 53, 130 => 51, 124 => 47, 119 => 45, 114 => 44, 109 => 42, 104 => 41, 102 => 40, 96 => 37, 91 => 34, 85 => 32, 83 => 31, 79 => 30, 74 => 28, 65 => 23, 57 => 19, 55 => 18, 48 => 14, 44 => 13, 35 => 9, 28 => 5, 22 => 2, 19 => 1,); } } /* <a class="a-close" onclick="ocmegamenu.closeForm()"><i class="fa fa-close" aria-hidden="true"></i></a>*/ /* <input type="hidden" id="input-append-categories-link" value="{{ append_categories_link }}" />*/ /* <div class="frm-container">*/ /* <div class="frm-heading">*/ /* <h4 class="frm-title">{{ text_item_form }}</h4>*/ /* </div>*/ /* <div class="frm-body">*/ /* <div class="frm-button">*/ /* <button type="button" class="btn btn-primary btn-submit" onclick="ocmegamenu.submitTopItemForm({{ menu_id }})" title="{{ button_save }}"><i class="fa fa-save"></i> Save</button>*/ /* </div>*/ /* <div class="col-md-2 frm-left">*/ /* <ul class="frm-list">*/ /* <li class="active"><a href="#tab-general" data-toggle="tab">{{ text_general_setting }}</a></li>*/ /* <li><a href="#tab-content" data-toggle="tab">{{ text_content_setting }}</a></li>*/ /* </ul>*/ /* </div>*/ /* <div class="col-md-10 frm-right">*/ /* {% if error_warning %}*/ /* <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}*/ /* <button type="button" class="close" data-dismiss="alert">×</button>*/ /* </div>*/ /* {% endif %}*/ /* <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-menu-item" class="form-horizontal">*/ /* <div class="tab-content">*/ /* <!-- General Settings -->*/ /* <div id="tab-general" class="tab-pane active">*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-item-name">{{ entry_item_name }}</label>*/ /* <div class="col-sm-6">*/ /* <input type="text" id="input-item-name" class="form-control" value="{{ name }}" name="name" />*/ /* {% if error_name %}*/ /* <div class="text-danger">{{ error_name }}</div>*/ /* {% endif %}*/ /* </div>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-status">{{ entry_status }}</label>*/ /* <div class="col-sm-4">*/ /* <select name="status" id="input-status" class="form-control">*/ /* {% if status %}*/ /* <option value="1" selected="selected">{{ text_enabled }}</option>*/ /* <option value="0">{{ text_disabled }}</option>*/ /* {% else %}*/ /* <option value="1">{{ text_enabled }}</option>*/ /* <option value="0" selected="selected">{{ text_disabled }}</option>*/ /* {% endif %}*/ /* </select>*/ /* </div>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-title">{{ entry_title }}</label>*/ /* <div class="col-sm-6">*/ /* {% for language in languages %}*/ /* <div class="input-group">*/ /* <span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /> {{ language.name }}</span>*/ /* <input type="text" name="title[{{ language.language_id }}]" value="{{ title[language.language_id] ? title[language.language_id] : '' }}" placeholder="" id="input-title{{ language.language_id }}" class="form-control" />*/ /* </div>*/ /* {% endfor %}*/ /* </div>*/ /* <div class="col-sm-1"></div>*/ /* <div class="col-sm-3">*/ /* <div class="checkbox">*/ /* <input type="checkbox" name="disable_title" value="{{ disable_title }}" {% if disable_title %} checked="checked" {% endif %} /> {{ text_hide_title }}*/ /* </div>*/ /* </div>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-link">{{ entry_link }}</label>*/ /* <div class="col-sm-6">*/ /* <input type="text" id="input-link" name="link" value="{{ link }}" class="form-control" />*/ /* <div class="frm-info">*/ /* <i class="fa fa-info-circle" aria-hidden="true"></i> <span>{{ text_link_info }}</span>*/ /* </div>*/ /* </div>*/ /* <div class="col-sm-1"></div>*/ /* <div class="col-sm-3">*/ /* <div class="checkbox">*/ /* <input type="checkbox" name="disable_link" value="{{ disable_link }}" {% if disable_link %} checked="checked" {% endif %} /> {{ text_disable_link }}*/ /* </div>*/ /* </div>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-sub-menu-type">{{ entry_sub_menu_type }}</label>*/ /* <div class="col-sm-4">*/ /* <select name="sub_menu_type" id="input-sub-menu-type" class="form-control">*/ /* <option value="mega" {% if sub_menu_type == 'mega' %} selected="selected" {% endif %}>{{ text_megamenu }}</option>*/ /* <option value="flyout" {% if sub_menu_type == 'flyout' %} selected="selected" {% endif %}>{{ text_flyoutmenu }}</option>*/ /* </select>*/ /* </div>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-position">{{ entry_position }}</label>*/ /* <div class="col-sm-4">*/ /* <input type="text" id="input-position" name="position" value="{{ position }}" class="form-control" />*/ /* </div>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-item-align">{{ entry_item_align }}</label>*/ /* <div class="col-sm-4">*/ /* <select name="item_align" id="input-item-align" class="form-control">*/ /* <option value="left" {% if item_align == 'left' %} selected="selected" {% endif %}>{{ text_left }}</option>*/ /* <option value="right" {% if item_align == 'right' %} selected="selected" {% endif %}>{{ text_right }}</option>*/ /* </select>*/ /* </div>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-icon">{{ entry_icon }}</label>*/ /* <div class="col-sm-6">*/ /* <a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="{{ thumb }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a>*/ /* <input type="hidden" name="icon" value="{{ icon }}" id="input-image" />*/ /* </div>*/ /* </div>*/ /* </div>*/ /* */ /* <!-- Content Settings -->*/ /* <div id="tab-content" class="tab-pane">*/ /* <div class="frm-info">*/ /* <i class="fa fa-info-circle" aria-hidden="true"></i> <span>{{ text_megamenu_info }}</span>*/ /* </div>*/ /* <div class="frm-group">*/ /* <label class="frm-label col-sm-2" for="input-sub-menu-content-type">{{ entry_sub_menu_content_type }}</label>*/ /* <div class="col-sm-4">*/ /* <select name="sub_menu_content_type" id="input-sub-menu-content-type" class="form-control">*/ /* <option value="widget" {% if sub_menu_content_type == 'widget' %} selected="selected" {% endif %}>{{ text_widget }}</option>*/ /* <option value="category" {% if sub_menu_content_type == 'category' %} selected="selected" {% endif %}>{{ text_category }}</option>*/ /* <option value="children" {% if sub_menu_content_type == 'children' %} selected="selected" {% endif %}>{{ text_children }}</option>*/ /* </select>*/ /* </div>*/ /* <div class="col-sm-6">*/ /* <div class="frm-info">*/ /* <i class="fa fa-info-circle" aria-hidden="true"></i> <span>{{ text_sub_menu_info }}</span>*/ /* </div>*/ /* </div>*/ /* </div>*/ /* <div class="frm-group frm-group-content frm-group-category">*/ /* <label class="frm-label col-sm-2" for="input-sub-menu-category">{{ text_choose_top_category }}</label>*/ /* <div class="col-sm-4 frm-group-category">*/ /* <select name="category_id" id="input-sub-menu-category" class="form-control">*/ /* {% for category in categories %}*/ /* <option value="{{ category.category_id }}" {% if category_id == category.category_id %} selected="selected" {% endif %}>{{ category.name }}</option>*/ /* {% endfor %}*/ /* </select>*/ /* </div>*/ /* <div class="col-sm-2 frm-group-category">*/ /* <button type="button" class="btn btn-primary btn-widget" onclick="ocmegamenu.addCategoryWidget()"><i class="fa fa-plus"></i> {{ text_add_widget }}</button>*/ /* <img class="frm-loader-img" src="{{ loader_image }}" alt="loader_image" />*/ /* </div>*/ /* </div>*/ /* <div class="frm-group frm-group-content frm-group-widget">*/ /* <label class="frm-label col-sm-2">{{ entry_megamenu_editor }}</label>*/ /* <div class="col-sm-4">*/ /* <select id="widget-type" class="form-control">*/ /* <option value="category">{{ text_category }}</option>*/ /* <option value="product">{{ text_product }}</option>*/ /* <option value="html">{{ text_html }}</option>*/ /* <<option value="link">{{ text_link }}</option>*/ /* </select>*/ /* </div>*/ /* <div class="col-sm-4">*/ /* <select id="widget-cols" class="form-control">*/ /* <option value="2">{{ 1 ~ " " ~ text_column }}</option>*/ /* <option value="4">{{ 2 ~ " " ~ text_columns }}</option>*/ /* <option value="6">{{ 3 ~ " " ~ text_columns }}</option>*/ /* <option value="8">{{ 4 ~ " " ~ text_columns }}</option>*/ /* <option value="10">{{ 5 ~ " " ~ text_columns }}</option>*/ /* <option value="12">{{ 6 ~ " " ~ text_columns }}</option>*/ /* </select>*/ /* </div>*/ /* <div class="col-sm-2">*/ /* <button type="button" class="btn btn-primary btn-widget" onclick="ocmegamenu.addWidget()"><i class="fa fa-plus"></i> {{ text_add_widget }}</button>*/ /* <img class="frm-loader-img" src="{{ loader_image }}" alt="loader_image" />*/ /* </div>*/ /* </div>*/ /* */ /* <div class="frm-group frm-group-content frm-group-children">*/ /* <label class="frm-label col-sm-2" for="input-cols">{{ entry_number_cols }}</label>*/ /* <div class="col-sm-4">*/ /* <select id="input-cols" name="sub_menu_content_columns" class="form-control">*/ /* <option value="1" {% if sub_menu_content_columns == 1 %} selected="selected" {% endif %}>{{ 1 ~ " " ~ text_column }}</option>*/ /* <option value="2" {% if sub_menu_content_columns == 2 %} selected="selected" {% endif %}>{{ 2 ~ " " ~ text_columns }}</option>*/ /* <option value="3" {% if sub_menu_content_columns == 3 %} selected="selected" {% endif %}>{{ 3 ~ " " ~ text_columns }}</option>*/ /* <option value="4" {% if sub_menu_content_columns == 4 %} selected="selected" {% endif %}>{{ 4 ~ " " ~ text_columns }}</option>*/ /* <option value="5" {% if sub_menu_content_columns == 5 %} selected="selected" {% endif %}>{{ 5 ~ " " ~ text_columns }}</option>*/ /* <option value="6" {% if sub_menu_content_columns == 6 %} selected="selected" {% endif %}>{{ 6 ~ " " ~ text_columns }}</option>*/ /* </select>*/ /* </div>*/ /* </div>*/ /* <!-- Widget Type Container -->*/ /* <div class="widget-container widget-sortable" id="widget-type-widget-container">*/ /* {% if widget %}*/ /* {% if widget.widget %}*/ /* {% set i = 0 %}*/ /* {% for w in widget.widget %}*/ /* <div class="widget-block col-sm-{{ w.cols }}">*/ /* <div class="widget-content">*/ /* <div class="widget-resize-action">*/ /* <a class="a-resize-minus a-left" onclick="ocmegamenu.decreaseColumn($(this))"><i class="fa fa-chevron-left" aria-hidden="true"></i></a>*/ /* <a class="a-resize-plus a-left" onclick="ocmegamenu.increaseColumn($(this))"><i class="fa fa-chevron-right" aria-hidden="true"></i></a>*/ /* <a class="a-delete a-right" onclick="ocmegamenu.deleteWidget($(this))"><i class="fa fa-times-circle" aria-hidden="true"></i></a>*/ /* <a class="a-config a-right" onclick="ocmegamenu.showWidgetConfiguration($(this))"><i class="fa fa-cogs" aria-hidden="true"></i></a>*/ /* </div>*/ /* <div class="widget-name-container">*/ /* {% if w.type == 'category' or w.type == 'product' %}*/ /* <i class="fa fa-star" aria-hidden="true"></i><span class="name">{{ w.name ? w.name : '...' }}</span>*/ /* {% endif %}*/ /* */ /* {% if w.type == 'html' or w.type == 'link' %}*/ /* <i class="fa fa-star" aria-hidden="true"></i><span class="name">{{ w.name[lang_id] ? w.name[lang_id] : '...' }}</span>*/ /* {% endif %}*/ /* </div>*/ /* </div>*/ /* */ /* {% if w.type == 'category' %}*/ /* <div class="widget-configuration">*/ /* <div class="option"><input type="text" class="w-category" placeholder="{{ text_choose_category }}" /></div>*/ /* <div class="option"><input type="checkbox" class="show-image" {% if w.show_image == 1 %} checked="checked" {% endif %} /> {{ text_show_image }}</div>*/ /* <div class="option"><input type="checkbox" class="show-child" {% if w.show_child == 1 %} checked="checked" {% endif %} /> {{ text_show_child }}</div>*/ /* </div>*/ /* <input type="hidden" class="widget-name" value="{{ w.name }}" name="widget[widget][{{ i }}][name]" />*/ /* <input type="hidden" class="widget-category-id" value="{{ w.category_id }}" name="widget[widget][{{ i }}][category_id]" />*/ /* <input type="hidden" class="widget-show-image" value="{{ w.show_image }}" name="widget[widget][{{ i }}][show_image]" />*/ /* <input type="hidden" class="widget-show-child" value="{{ w.show_child }}" name="widget[widget][{{ i }}][show_child]" />*/ /* {% endif %}*/ /* */ /* {% if w.type == 'product' %}*/ /* <div class="widget-configuration">*/ /* <div class="option"><input type="text" class="w-product" placeholder="{{ text_choose_product }}" /></div>*/ /* <div class="option"><input type="checkbox" class="show-image" {% if w.show_image == 1 %} checked="checked" {% endif %} /> {{ text_show_image }}</div>*/ /* </div>*/ /* <input type="hidden" class="widget-name" value="{{ w.name }}" name="widget[widget][{{ i }}][name]" />*/ /* <input type="hidden" class="widget-product-id" value="{{ w.product_id }}" name="widget[widget][{{ i }}][product_id]" />*/ /* <input type="hidden" class="widget-show-image" value="{{ w.show_image }}" name="widget[widget][{{ i }}][show_image]" />*/ /* {% endif %}*/ /* */ /* {% if w.type == 'html' %}*/ /* <div class="widget-configuration">*/ /* <ul class="nav nav-tabs ul-widget-lang" id="ul-widget-html-{{ i }}">*/ /* {% for language in languages %}*/ /* <li><a href="#widget-html-language{{ language.language_id }}-{{ i }}" data-toggle="tab"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /> {{ language.name }}</a></li>*/ /* {% endfor %}*/ /* </ul>*/ /* <div class="tab-content" id="tab-widget-html-{{ i }}">*/ /* {% for language in languages %}*/ /* <div class="tab-pane" id="widget-html-language{{ language.language_id }}-{{ i }}">*/ /* <div class="option"><input type="text" name="widget[widget][{{ i }}][name][{{ language.language_id }}]" value="{{ w.name[language.language_id] }}" placeholder="{{ text_title }}" /></div>*/ /* <div class="option">*/ /* <textarea data-toggle="summernote" rows="10" class="w-html-content" name="widget[widget][{{ i }}][content][{{ language.language_id }}]" placeholder="{{ text_html }}">{{ w.content[language.language_id] }}</textarea>*/ /* </div>*/ /* </div>*/ /* {% endfor %}*/ /* </div>*/ /* <div class="option"><input type="checkbox" class="show-title" {% if w.show_title == 0 %} checked="checked" {% endif %} /> {{ text_hide_title }}</div>*/ /* </div>*/ /* <input type="hidden" class="widget-show-title" value="{{ w.show_title ? w.show_title : 0}}" name="widget[widget][{{ i }}][show_title]" />*/ /* {% endif %}*/ /* */ /* {% if w.type == 'link' %}*/ /* <div class="widget-configuration">*/ /* <ul class="nav nav-tabs ul-widget-lang" id="ul-widget-link-{{ i }}">*/ /* {% for language in languages %}*/ /* <li><a href="#widget-link-language{{ language.language_id }}-{{ i }}" data-toggle="tab"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /> {{ language.name }}</a></li>*/ /* {% endfor %}*/ /* </ul>*/ /* <div class="tab-content" id="tab-widget-link-{{ i }}">*/ /* {% for language in languages %}*/ /* <div class="tab-pane" id="widget-link-language{{ language.language_id }}-{{ i }}">*/ /* <div class="option"><input type="text" name="widget[widget][{{ i }}][name][{{ language.language_id }}]" value="{{ w.name[language.language_id] }}" placeholder="{{ text_title }}" /></div>*/ /* </div>*/ /* {% endfor %}*/ /* </div>*/ /* <div class="option"><input type="text" name="widget[widget][{{ i }}][link]" value="{{ w.link }}" placeholder="{{ text_link }}" /></div>*/ /* </div>*/ /* {% endif %}*/ /* */ /* <input type="hidden" class="widget-type" value="{{ w.type }}" name="widget[widget][{{ i }}][type]" />*/ /* <input type="hidden" class="widget-cols" value="{{ w.cols }}" name="widget[widget][{{ i }}][cols]" />*/ /* <input type="hidden" class="widget-position" value="{{ w.position }}" name="widget[widget][{{ i }}][position]" />*/ /* </div>*/ /* {% set i = i + 1 %}*/ /* {% endfor %}*/ /* {% else %}*/ /* <p class="p-widget-items">{{ text_no_children_items }}</p>*/ /* {% endif %}*/ /* {% else %}*/ /* <p class="p-widget-items">{{ text_no_children_items }}</p>*/ /* {% endif %}*/ /* </div>*/ /* */ /* <!-- Category Type Container -->*/ /* <div class="widget-container widget-sortable" id="widget-type-category-container">*/ /* {% if widget %}*/ /* {% if widget.category %}*/ /* {% set i = 0 %}*/ /* {% for w in widget.category %}*/ /* <div class="widget-block col-sm-{{ w.cols }}">*/ /* <div class="widget-content">*/ /* <div class="widget-resize-action">*/ /* <a class="a-resize-minus a-left" onclick="ocmegamenu.decreaseColumn($(this))"><i class="fa fa-chevron-left" aria-hidden="true"></i></a>*/ /* <a class="a-resize-plus a-left" onclick="ocmegamenu.increaseColumn($(this))"><i class="fa fa-chevron-right" aria-hidden="true"></i></a>*/ /* <a class="a-delete a-right" onclick="ocmegamenu.deleteWidget($(this))"><i class="fa fa-times-circle" aria-hidden="true"></i></a>*/ /* <a class="a-config a-right" onclick="ocmegamenu.showWidgetConfiguration($(this))"><i class="fa fa-cogs" aria-hidden="true"></i></a>*/ /* </div>*/ /* <div class="widget-name-container">*/ /* <i class="fa fa-star" aria-hidden="true"></i><span class="name">{{ w.name ? w.name : '...' }}</span>*/ /* </div>*/ /* </div>*/ /* */ /* <div class="widget-configuration">*/ /* <div class="option"><input type="text" class="w-category" placeholder="{{ text_choose_category }}" /></div>*/ /* <div class="option"><input type="checkbox" class="show-image" {% if w.show_image == 1 %} checked="checked" {% endif %} /> {{ text_show_image }}</div>*/ /* <div class="option"><input type="checkbox" class="show-child" {% if w.show_child == 1 %} checked="checked" {% endif %} /> {{ text_show_child }}</div>*/ /* </div>*/ /* */ /* <input type="hidden" class="widget-name" value="{{ w.name }}" name="widget[category][{{ i }}][name]" />*/ /* <input type="hidden" class="widget-type" value="{{ w.type }}" name="widget[category][{{ i }}][type]" />*/ /* <input type="hidden" class="widget-cols" value="{{ w.cols }}" name="widget[category][{{ i }}][cols]" />*/ /* <input type="hidden" class="widget-position" value="{{ w.position }}" name="widget[category][{{ i }}][position]" />*/ /* <input type="hidden" class="widget-category-id" value="{{ w.category_id }}" name="widget[category][{{ i }}][category_id]" />*/ /* <input type="hidden" class="widget-show-image" value="{{ w.show_image }}" name="widget[category][{{ i }}][show_image]" />*/ /* <input type="hidden" class="widget-show-child" value="{{ w.show_child }}" name="widget[category][{{ i }}][show_child]" />*/ /* </div>*/ /* {% set i = i + 1 %}*/ /* {% endfor %}*/ /* {% else %}*/ /* <p class="p-widget-items">{{ text_no_children_items }}</p>*/ /* {% endif %}*/ /* {% else %}*/ /* <p class="p-widget-items">{{ text_no_children_items }}</p>*/ /* {% endif %}*/ /* </div>*/ /* */ /* <input type="hidden" name="category_id" id="input-category-id" value="{{ category_id }}" />*/ /* <input type="hidden" name="has_child" id="input-has-child" value="{{ has_child }}" />*/ /* </div>*/ /* </div>*/ /* </form>*/ /* </div>*/ /* </div>*/ /* </div>*/ /* */ /* <script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>*/ /* <link href="view/javascript/summernote/summernote.css" rel="stylesheet" />*/ /* <script type="text/javascript" src="view/javascript/summernote/summernote-image-attributes.js"></script>*/ /* <script type="text/javascript">*/ /* ocmegamenu.initSortMenuItem();*/ /* ocmegamenu.chooseCategory();*/ /* ocmegamenu.chooseProduct();*/ /* ocmegamenu.checkBoxClick();*/ /* ocmegamenu.initSummerNote();*/ /* </script>*/ /* */ /* <script type="text/javascript">*/ /* var sub_menu_content_type_selection = $('#input-sub-menu-content-type');*/ /* var sub_menu_content_type = sub_menu_content_type_selection.val();*/ /* */ /* $('.widget-container').hide();*/ /* $('#widget-type-'+ sub_menu_content_type +'-container').show();*/ /* */ /* $('.frm-group-content').hide();*/ /* $('.frm-group-' + sub_menu_content_type).show();*/ /* */ /* sub_menu_content_type_selection.change(function () {*/ /* var sub_menu_content_type = $(this).val();*/ /* */ /* $('.frm-group-content').hide();*/ /* $('.frm-group-' + sub_menu_content_type).show();*/ /* */ /* $('.widget-container').hide();*/ /* $('#widget-type-'+ sub_menu_content_type +'-container').show();*/ /* });*/ /* */ /* $('.ul-widget-lang').each(function () {*/ /* $(this).find('a:first').tab('show');*/ /* });*/ /* </script>*/