diff --git a/image_optimizer_nat_OC_20_22_1_2_1.ocmod.zip b/image_optimizer_nat_OC_20_22_1_2_1.ocmod.zip index dfa9243..d7342cc 100644 Binary files a/image_optimizer_nat_OC_20_22_1_2_1.ocmod.zip and b/image_optimizer_nat_OC_20_22_1_2_1.ocmod.zip differ diff --git a/install.xml b/install.xml index 2e113d5..87a01ec 100644 --- a/install.xml +++ b/install.xml @@ -14,7 +14,7 @@ $this->load->model('setting/setting'); if ($this->config->get('module_img_opti_status')) { $nat_pos = $this->config->get('module_img_opti_menu_position'); - if ($nat_pos == 'sidebar' || $nat_pos == 'both') { + if (empty($nat_pos) || $nat_pos == 'sidebar' || $nat_pos == 'both') { if ($this->user->hasPermission('access', 'module/img_opti')) { $nat_token_str = 'token=' . (isset($this->session->data['token']) ? $this->session->data['token'] : ''); $nat_item = array( @@ -46,10 +46,11 @@ if (!$exists) { if ($nat_menu_index > -1) { $data['menus'][$nat_menu_index]['children'][] = $nat_item; + $data['menus'][$nat_menu_index]['icon'] = 'fa-space-shuttle fa-rotate-270 fw'; } else { $data['menus'][] = array( 'id' => 'menu-nat', - 'icon' => 'fa-rocket fw', + 'icon' => 'fa-space-shuttle fa-rotate-270 fw', 'name' => '[NAT] Modules', 'href' => '', 'children' => array($nat_item) @@ -73,7 +74,7 @@ $this->load->model('setting/setting'); if ($this->config->get('module_img_opti_status')) { $nat_pos = $this->config->get('module_img_opti_menu_position'); - if ($nat_pos == 'header' || $nat_pos == 'both') { + if (empty($nat_pos) || $nat_pos == 'header' || $nat_pos == 'both') { if ($this->user->hasPermission('access', 'module/img_opti')) { $exists = false; foreach ($data['nat_menus'] as $m) { @@ -99,13 +100,31 @@ ]]> + + ]]> @@ -114,7 +133,7 @@ a.img-thumbnail img, a.thumbnail img {