// Make more Options if (allowed_extension_more($page_type)) { foreach (get_extension_more($page_type) as $key => $value) { if (is_array($value)) { $caption = isset($value["caption"]) ? $value["caption"] : ""; $type = isset($value["type"]) ? $value["type"] : ""; } else { $caption = $key; $type = $value; } if ($type == "text") { mk_htext("data[extension_more][{$key}]", _l($caption, $this), isset($data['extension_more'][$key]) ? $data['extension_more'][$key] : ''); } elseif ($type == "num") { mk_hnumber("data[extension_more][{$key}]", _l($caption, $this), isset($data['extension_more'][$key]) ? $data['extension_more'][$key] : ''); } elseif ($type == "url") { mk_hurl("data[extension_more][{$key}]", _l($caption, $this), isset($data['extension_more'][$key]) ? $data['extension_more'][$key] : ''); } elseif ($type == "textarea") { mk_htextarea("data[extension_more][{$key}]", _l($caption, $this), isset($data['extension_more'][$key]) ? $data['extension_more'][$key] : ''); } elseif ($type == "check") { mk_hcheckbox("data[extension_more][{$key}]", _l($caption, $this), isset($data['extension_more'][$key]) && $data['extension_more'][$key] == 1 ? 1 : 0); } } } mk_hcheckbox("data[public]", _l('public', $this), isset($data['public']) && $data['public'] == 1 ? 1 : null); mk_hcheckbox("data[status]", _l('status', $this), isset($data['status']) && $data['status'] == 1 ? 1 : null); mk_hsubmit(_l('Submit', $this), $base_url . $page . "s" . (isset($data_type) ? "/" . $data_type : '') . (isset($relation_id) ? "/" . $relation_id : ""), _l('Cancel', $this)); mk_hidden("data[relation_id]", isset($relation_id) ? $relation_id : 0); mk_hidden("data[data_type]", isset($data_type) ? $data_type : ''); mk_closeform(); ?> </div>
// Make more Options if (allowed_page_more($page_type[$data["page_type"]])) { foreach (get_page_more($page_type[$data["page_type"]]) as $key => $value) { if (is_array($value)) { $caption = isset($value["caption"]) ? $value["caption"] : ""; $type = isset($value["type"]) ? $value["type"] : ""; } else { $caption = $key; $type = $value; } if ($type == "text") { mk_htext("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : ''); } elseif ($type == "num") { mk_hnumber("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : ''); } elseif ($type == "url") { mk_hurl("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : ''); } elseif ($type == "textarea") { mk_htextarea("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : ''); } elseif ($type == "check") { mk_hcheckbox("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? 1 : 0); } } } mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this)); mk_closeform(); ?> </div> </div> </section> </div> </div>
<div class="col-lg-6 col-md-6"> <section class="panel"> <div class="panel-heading"><?php echo _l("Insert New Item", $this); ?> </div> <div class="panel-body"> <?php mk_hpostform($base_url . $page . "_manipulate" . (isset($data['menu_id']) ? "/" . $data['menu_id'] : "")); mk_hselect_faicon("data[menu_icon]", _l('Icon', $this), $faicons, isset($data['menu_icon']) ? $data['menu_icon'] : null, null, 'style="width:200px"'); mk_htext("data[menu_name]", _l('menu Name', $this), isset($data['menu_name']) ? $data['menu_name'] : ''); foreach ($languages as $item) { mk_htext("data[titles][" . $item["language_id"] . "]", _l('menu name', $this) . " (" . $item["language_name"] . ")", isset($titles[$item["language_id"]]) ? $titles[$item["language_id"]]["title_caption"] : ""); } mk_hselect("data[page_id]", _l('Type', $this), $pages, "page_id", "page_name", isset($data['page_id']) ? $data['page_id'] : null, "<--" . _l("use link", $this) . "-->"); mk_hurl("data[menu_url]", _l('URL', $this), isset($data['menu_url']) ? $data['menu_url'] : '', "style='direction:ltr'"); mk_hnumber("data[menu_order]", _l('order', $this), isset($data['menu_order']) ? $data['menu_order'] : ''); mk_hcheckbox("data[public]", _l('public', $this), isset($data['public']) && $data['public'] == 1 ? 1 : null); mk_hsubmit(_l('Submit', $this), $base_url . "edit" . $page, _l('Cancel', $this)); mk_closeform(); ?> </div> </section> </div> <div class="col-lg-6 col-md-6"> <section class="panel"> <header class="panel-heading"> <?php echo _l("Items list", $this); ?> </header>