@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | SELECT `data` |
66 | 66 | FROM `session` |
67 | 67 | WHERE session_id = '" . $this->db->escape($session_id) . "' |
68 | - AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
68 | + AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
69 | 69 | "); |
70 | 70 | |
71 | 71 | if ($query->num_rows) { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | expire = '" . $this->db->escape(date('Y-m-d H:i:s', time() + $this->expire)) . "' |
84 | 84 | FROM `session` |
85 | 85 | WHERE session_id = '" . $this->db->escape($session_id) . "' |
86 | - AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
86 | + AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
87 | 87 | "); |
88 | 88 | |
89 | 89 | return true; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function model($route) |
37 | 37 | { |
38 | 38 | // Sanitize the call |
39 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
39 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
40 | 40 | |
41 | 41 | if (!$this->registry->has('model_' . str_replace(array('/', '-', '.'), array('_', '', ''), $route))) { |
42 | 42 | $file = SR_APPLICATION . 'model/' . $route . '.php'; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | $this->registry->set( |
55 | - 'model_' . str_replace(array('/', '-', '.'), array('_', '', ''), (string) $route), |
|
55 | + 'model_' . str_replace(array('/', '-', '.'), array('_', '', ''), (string)$route), |
|
56 | 56 | $proxy |
57 | 57 | ); |
58 | 58 | } else { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | public function controller($route, $data = array()) |
65 | 65 | { |
66 | 66 | // Sanitize the call |
67 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
67 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
68 | 68 | |
69 | 69 | $output = null; |
70 | 70 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $output = null; |
82 | 82 | |
83 | 83 | // Sanitize the call |
84 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
84 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
85 | 85 | |
86 | 86 | if (!$output) { |
87 | 87 | $template = new \Sunrise\Engine\Library\Template( |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | public function library($route) |
119 | 119 | { |
120 | 120 | // Sanitize the call |
121 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
121 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
122 | 122 | |
123 | 123 | $file = $_SERVER['DOCUMENT_ROOT'] . '/engine/library/' . $route . '.php'; |
124 | 124 | $class = str_replace('/', '\\', $route); |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | |
152 | 152 | protected function callback($registry, $route) |
153 | 153 | { |
154 | - return function ($args) use ($registry, &$route) { |
|
154 | + return function($args) use ($registry, &$route) { |
|
155 | 155 | static $model = array(); |
156 | 156 | |
157 | 157 | $output = null; |
158 | 158 | |
159 | 159 | // Store the model object |
160 | 160 | if (!isset($model[$route])) { |
161 | - $file = SR_APPLICATION . 'model/' . substr($route, 0, strrpos($route, '/')) . '.php'; |
|
161 | + $file = SR_APPLICATION . 'model/' . substr($route, 0, strrpos($route, '/')) . '.php'; |
|
162 | 162 | $class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', substr($route, 0, strrpos($route, '/'))); |
163 | 163 | |
164 | 164 | if (is_file($file)) { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
22 | 22 | |
23 | 23 | // Site |
24 | -$_['app_url'] = '/administration/'; |
|
24 | +$_['app_url'] = '/administration/'; |
|
25 | 25 | |
26 | 26 | // Cache (file or redis) |
27 | 27 | $_['cache_type'] = 'file'; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
22 | 22 | |
23 | 23 | // Site |
24 | -$_['app_url'] = '/application/'; |
|
24 | +$_['app_url'] = '/application/'; |
|
25 | 25 | |
26 | 26 | // Cache ( file or redis) |
27 | 27 | $_['cache_type'] = 'redis'; |
@@ -272,7 +272,7 @@ |
||
272 | 272 | stream_socket_enable_crypto($handle, true, STREAM_CRYPTO_METHOD_TLS_CLIENT); |
273 | 273 | } |
274 | 274 | |
275 | - if (!empty($this->smtp_username) && !empty($this->smtp_password)) { |
|
275 | + if (!empty($this->smtp_username) && !empty($this->smtp_password)) { |
|
276 | 276 | fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . "\r\n"); |
277 | 277 | |
278 | 278 | $reply = ''; |
@@ -167,7 +167,7 @@ |
||
167 | 167 | |
168 | 168 | foreach ($languages as $language) { |
169 | 169 | if (empty($this->request->post['bank_transfer_bank' . $language['language_id']])) { |
170 | - $this->error['bank' . $language['language_id']] = $this->language->get('error_bank'); |
|
170 | + $this->error['bank' . $language['language_id']] = $this->language->get('error_bank'); |
|
171 | 171 | } |
172 | 172 | } |
173 | 173 |
@@ -89,41 +89,41 @@ |
||
89 | 89 | |
90 | 90 | $data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=shipping', true); |
91 | 91 | |
92 | - for ($i=1;$i<=12;$i++) { |
|
93 | - if (isset($this->request->post['xshipping_cost'.$i])) { |
|
94 | - $data['xshipping_cost'.$i] = $this->request->post['xshipping_cost'.$i]; |
|
92 | + for ($i = 1; $i <= 12; $i++) { |
|
93 | + if (isset($this->request->post['xshipping_cost' . $i])) { |
|
94 | + $data['xshipping_cost' . $i] = $this->request->post['xshipping_cost' . $i]; |
|
95 | 95 | } else { |
96 | - $data['xshipping_cost'.$i] = $this->config->get('xshipping_cost'.$i); |
|
96 | + $data['xshipping_cost' . $i] = $this->config->get('xshipping_cost' . $i); |
|
97 | 97 | } |
98 | 98 | |
99 | - if (isset($this->request->post['xshipping_name'.$i])) { |
|
100 | - $data['xshipping_name'.$i] = $this->request->post['xshipping_name'.$i]; |
|
99 | + if (isset($this->request->post['xshipping_name' . $i])) { |
|
100 | + $data['xshipping_name' . $i] = $this->request->post['xshipping_name' . $i]; |
|
101 | 101 | } else { |
102 | - $data['xshipping_name'.$i] = $this->config->get('xshipping_name'.$i); |
|
102 | + $data['xshipping_name' . $i] = $this->config->get('xshipping_name' . $i); |
|
103 | 103 | } |
104 | 104 | |
105 | - if (isset($this->request->post['xshipping_free'.$i])) { |
|
106 | - $data['xshipping_free'.$i] = $this->request->post['xshipping_free'.$i]; |
|
105 | + if (isset($this->request->post['xshipping_free' . $i])) { |
|
106 | + $data['xshipping_free' . $i] = $this->request->post['xshipping_free' . $i]; |
|
107 | 107 | } else { |
108 | - $data['xshipping_free'.$i] = $this->config->get('xshipping_free'.$i); |
|
108 | + $data['xshipping_free' . $i] = $this->config->get('xshipping_free' . $i); |
|
109 | 109 | } |
110 | 110 | |
111 | - if (isset($this->request->post['xshipping_geo_zone_id'.$i])) { |
|
112 | - $data['xshipping_geo_zone_id'.$i] = $this->request->post['xshipping_geo_zone_id'.$i]; |
|
111 | + if (isset($this->request->post['xshipping_geo_zone_id' . $i])) { |
|
112 | + $data['xshipping_geo_zone_id' . $i] = $this->request->post['xshipping_geo_zone_id' . $i]; |
|
113 | 113 | } else { |
114 | - $data['xshipping_geo_zone_id'.$i] = $this->config->get('xshipping_geo_zone_id'.$i); |
|
114 | + $data['xshipping_geo_zone_id' . $i] = $this->config->get('xshipping_geo_zone_id' . $i); |
|
115 | 115 | } |
116 | 116 | |
117 | - if (isset($this->request->post['xshipping_status'.$i])) { |
|
118 | - $data['xshipping_status'.$i] = $this->request->post['xshipping_status'.$i]; |
|
117 | + if (isset($this->request->post['xshipping_status' . $i])) { |
|
118 | + $data['xshipping_status' . $i] = $this->request->post['xshipping_status' . $i]; |
|
119 | 119 | } else { |
120 | - $data['xshipping_status'.$i] = $this->config->get('xshipping_status'.$i); |
|
120 | + $data['xshipping_status' . $i] = $this->config->get('xshipping_status' . $i); |
|
121 | 121 | } |
122 | 122 | |
123 | - if (isset($this->request->post['xshipping_sort_order'.$i])) { |
|
124 | - $data['xshipping_sort_order'.$i] = $this->request->post['xshipping_sort_order'.$i]; |
|
123 | + if (isset($this->request->post['xshipping_sort_order' . $i])) { |
|
124 | + $data['xshipping_sort_order' . $i] = $this->request->post['xshipping_sort_order' . $i]; |
|
125 | 125 | } else { |
126 | - $data['xshipping_sort_order'.$i] = $this->config->get('xshipping_sort_order'.$i); |
|
126 | + $data['xshipping_sort_order' . $i] = $this->config->get('xshipping_sort_order' . $i); |
|
127 | 127 | } |
128 | 128 | } |
129 | 129 |
@@ -170,14 +170,14 @@ discard block |
||
170 | 170 | $url .= '&page=' . $this->request->get['page']; |
171 | 171 | } |
172 | 172 | |
173 | - $data['breadcrumbs'] = array(); |
|
173 | + $data['breadcrumbs'] = array(); |
|
174 | 174 | |
175 | - $data['breadcrumbs'][] = array( |
|
175 | + $data['breadcrumbs'][] = array( |
|
176 | 176 | 'text' => $this->language->get('text_home'), |
177 | 177 | 'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true) |
178 | 178 | ); |
179 | 179 | |
180 | - $data['breadcrumbs'][] = array( |
|
180 | + $data['breadcrumbs'][] = array( |
|
181 | 181 | 'text' => $this->language->get('heading_title'), |
182 | 182 | 'href' => $this->url->link('localisation/location', 'token=' . $this->session->data['token'] . $url, true) |
183 | 183 | ); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | $results = $this->model_localisation_location->getLocations($filter_data); |
200 | 200 | |
201 | 201 | foreach ($results as $result) { |
202 | - $data['location'][] = array( |
|
202 | + $data['location'][] = array( |
|
203 | 203 | 'location_id' => $result['location_id'], |
204 | 204 | 'name' => $result['name'], |
205 | 205 | 'address' => $result['address'], |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | if (!isset($this->request->get['location_id'])) { |
366 | 366 | $data['action'] = $this->url->link('localisation/location/add', 'token=' . $this->session->data['token'] . $url, true); |
367 | 367 | } else { |
368 | - $data['action'] = $this->url->link('localisation/location/edit', 'token=' . $this->session->data['token'] . '&location_id=' . $this->request->get['location_id'] . $url, true); |
|
368 | + $data['action'] = $this->url->link('localisation/location/edit', 'token=' . $this->session->data['token'] . '&location_id=' . $this->request->get['location_id'] . $url, true); |
|
369 | 369 | } |
370 | 370 | |
371 | 371 | $data['cancel'] = $this->url->link('localisation/location', 'token=' . $this->session->data['token'] . $url, true); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | } elseif (!empty($location_info)) { |
382 | 382 | $data['name'] = $location_info['name']; |
383 | 383 | } else { |
384 | - $data['name'] = ''; |
|
384 | + $data['name'] = ''; |
|
385 | 385 | } |
386 | 386 | |
387 | 387 | if (isset($this->request->post['address'])) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | foreach ($custommenus as $id => $custommenu) { |
127 | 127 | $rent_custommenu[] = array( |
128 | - 'name' => $custommenu['name'] , |
|
128 | + 'name' => $custommenu['name'], |
|
129 | 129 | 'custommenu_id' => $custommenu['custommenu_id'], |
130 | 130 | 'custommenu_type' => $custommenu['custommenu_type'], |
131 | 131 | 'status' => $custommenu['status'], |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $html = '<li id="custommenu-item-' . $custommenu['custommenu_id'] . '" class="custommenu-item custommenu-item-depth-0 custommenu-item-page custommenu-item-edit-inactive pending">'; |
227 | 227 | $html .= ' <dl class="custommenu-item-bar">'; |
228 | 228 | $html .= ' <dt class="custommenu-item-handle">'; |
229 | - $html .= ' <span class="item-title"><span class="custommenu-item-title">' . $custommenu['name'] .'</span> <span class="is-subcustommenu" style="display: none;">' . $this->language->get('text_sub_item') . '</span></span>'; |
|
229 | + $html .= ' <span class="item-title"><span class="custommenu-item-title">' . $custommenu['name'] . '</span> <span class="is-subcustommenu" style="display: none;">' . $this->language->get('text_sub_item') . '</span></span>'; |
|
230 | 230 | $html .= ' <span class="item-controls">'; |
231 | 231 | $html .= ' <span class="item-type">' . ucwords($custommenu['custommenu_type']) . '</span>'; |
232 | 232 | $html .= ' <a class="item-edit opencustommenuItem ' . $custommenu['custommenu_type'] . '" id="edit-' . $custommenu['custommenu_id'] . '" title="">'; |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | foreach ($languages as $language) { |
245 | 245 | $html .= '<div class="input-group"><span class="input-group-addon"><img src="language/' . $language["code"] . '/' . $language["code"] . '.png' . '" title="' . $language["name"] . '"/></span>'; |
246 | - $html .= ' <input type="text" name="custommenu_name[' . $language['language_id'] . ']" value="' . $custommenu_desc[$custommenu['custommenu_id']][$language['language_id']]['name']. '" placeholder="' . $this->language->get('text_custommenu_name') . '" class="form-control" />'; |
|
246 | + $html .= ' <input type="text" name="custommenu_name[' . $language['language_id'] . ']" value="' . $custommenu_desc[$custommenu['custommenu_id']][$language['language_id']]['name'] . '" placeholder="' . $this->language->get('text_custommenu_name') . '" class="form-control" />'; |
|
247 | 247 | $html .= '</div>'; |
248 | 248 | } |
249 | 249 | $html .= '<br>'; |
@@ -266,15 +266,15 @@ discard block |
||
266 | 266 | $html .= '</div>'; |
267 | 267 | $html .= '<br>'; |
268 | 268 | $html .= '<div class="pull-right">'; |
269 | - $html .= ' <a id="disablecustommenu-'. $count . '" onclick="statuscustommenu(\'disable\', \'' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\', \'disablecustommenu-' . $count .'\')" data-type="iframe" style="top:2px!important;font-size:1.2em !important;" title="' . $this->language->get('button_disable') . '" class="btn btn-danger btn-xs btn-edit btn-group"><i class="fa fa-times-circle"></i></a>'; |
|
269 | + $html .= ' <a id="disablecustommenu-' . $count . '" onclick="statuscustommenu(\'disable\', \'' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\', \'disablecustommenu-' . $count . '\')" data-type="iframe" style="top:2px!important;font-size:1.2em !important;" title="' . $this->language->get('button_disable') . '" class="btn btn-danger btn-xs btn-edit btn-group"><i class="fa fa-times-circle"></i></a>'; |
|
270 | 270 | $html .= ' <a onclick="savecustommenu(\'custommenu-item-settings-edit-' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\')" data-type="iframe" style="top:2px!important;font-size:1.2em !important;" title="' . $this->language->get('button_save') . '" class="btn btn-success btn-xs btn-edit btn-group"><i class="fa fa-save"></i></a>'; |
271 | 271 | $html .= ' <button type="button" title="" style="top:2px!important;font-size:1.2em !important;" class="btn btn-danger btn-xs btn-edit btn-group btn-loading" onclick="confirm(\'Are you sure?\') ? deletecustommenu(\'' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\') : false;" data-original-title="Delete"><i class="fa fa-trash-o"></i></button>'; |
272 | 272 | $html .= '</div>'; |
273 | 273 | $html .= '<br><br>'; |
274 | 274 | |
275 | - $html .= '<input class="custommenu-item-data-typecustommenu" type="hidden" name="custommenu-item-typecustommenu[Maincustommenu-' . $custommenu['custommenu_id'].']" value="Maincustommenu">'; |
|
275 | + $html .= '<input class="custommenu-item-data-typecustommenu" type="hidden" name="custommenu-item-typecustommenu[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="Maincustommenu">'; |
|
276 | 276 | $html .= '<input class="custommenu-item-data-db-id" type="hidden" name="custommenu-item-db-id[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="' . $custommenu['custommenu_id'] . '">'; |
277 | - $html .= '<input class="custommenu-item-data-parent-id" type="hidden" name="custommenu-item-parent-id[Maincustommenu-' . $custommenu['custommenu_id'] .']" value="0">'; |
|
277 | + $html .= '<input class="custommenu-item-data-parent-id" type="hidden" name="custommenu-item-parent-id[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="0">'; |
|
278 | 278 | $html .= '<input class="custommenu-item-data-position" type="hidden" name="custommenu-item-position[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="' . $custommenu['custommenu_id'] . '">'; |
279 | 279 | $html .= '<input class="custommenu-item-data-type" type="hidden" name="custommenu-item-type[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="post_type">'; |
280 | 280 | |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | |
366 | 366 | $id = explode('-', $this->request->post['id']); |
367 | 367 | |
368 | - $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" . $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>"; |
|
368 | + $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" . $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>"; |
|
369 | 369 | |
370 | 370 | echo $button; |
371 | 371 | exit(); |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | |
385 | 385 | $id = explode('-', $this->request->post['id']); |
386 | 386 | |
387 | - $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" . $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>"; |
|
387 | + $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" . $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>"; |
|
388 | 388 | |
389 | 389 | echo $button; |
390 | 390 | exit(); |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | |
404 | 404 | $id = explode('-', $this->request->post['id']); |
405 | 405 | |
406 | - $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" . $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>"; |
|
406 | + $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" . $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>"; |
|
407 | 407 | |
408 | 408 | echo $button; |
409 | 409 | exit(); |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | |
423 | 423 | $id = explode('-', $this->request->post['id']); |
424 | 424 | |
425 | - $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" . $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>"; |
|
425 | + $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" . $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>"; |
|
426 | 426 | |
427 | 427 | echo $button; |
428 | 428 | exit(); |