diff --git a/install.xml b/install.xml index ac5ac98..70611c9 100644 --- a/install.xml +++ b/install.xml @@ -7,6 +7,45 @@ NAT mailto:info@nat.od.ua + + + language->get('text_dashboard');]]> + load->model('setting/setting'); + $nat_status = $this->config->get('module_poll_widget_nat_status'); + if ($nat_status === null || $nat_status) { + $nat_pos = $this->config->get('module_poll_widget_nat_menu_position'); + if (empty($nat_pos)) { $nat_pos = 'both'; } + if ($nat_pos == 'sidebar' || $nat_pos == 'both') { + if ($this->user->hasPermission('access', 'module/poll_widget_nat')) { + $data['poll_widget_nat_href'] = $this->url->link('module/poll_widget_nat', 'token=' . $this->session->data['token'], 'SSL'); + } + } + } + } + } catch (\Throwable $e) { + } + ]]> + + + + + + ]]> + + + + ]]> + + + user->hasPermission('access', 'catalog/product')) {]]> @@ -41,7 +80,7 @@ } 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) @@ -75,7 +114,7 @@ if ($this->user->hasPermission('access', 'module/poll_widget_nat')) { $data['nat_menus'][] = array( 'name' => 'Poll Widget', - 'href' => $this->url->link('module/poll_widget_nat', 'token=' . $this->session->data['token'], true) + 'href' => $this->url->link('module/poll_widget_nat', 'token=' . $this->session->data['token'], 'SSL') ); } } @@ -88,13 +127,30 @@ + + ]]> + +#nat-ecosystem-menu .fa-space-shuttle, +#collapse-nat .fa-space-shuttle, +.fa-space-shuttle.fa-rotate-270 { + color: #ec741c !important; +} +#nat-ecosystem-menu a:hover .fa-space-shuttle { + color: #ff8c3b !important; +} +#nat-ecosystem-menu .fa-rocket { color: #ec741c !important; } +#nat-ecosystem-menu .fa-rocket:before { content: "\f197" !important; display: inline-block; transform: rotate(270deg); } + + ]]> +