Skip to content

Commit

Permalink
Merge pull request #799 from abhishek-webkul/gli-961
Browse files Browse the repository at this point in the history
Removed subtabs Search Engines and Referers from Stats tab at back office
  • Loading branch information
rohit053 authored Dec 28, 2023
2 parents 3fe8483 + 1f2e3e9 commit b0b4935
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion admin/themes/default/sass/partials/_icons.sass
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
@extend .icon-cogs
.icon-AdminAdmin
@extend .icon-cog
.icon-AdminParentStats
.icon-AdminStats
@extend .icon-bar-chart
.icon-AdminStock
@extend .icon-archive
Expand Down
3 changes: 3 additions & 0 deletions controllers/admin/AdminReferrersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class AdminReferrersControllerCore extends AdminController
{
public function __construct()
{
// redirect to Dashboard for stats related to Referers
Tools::redirectAdmin(Context::getContext()->link->getAdminLink('AdminDashboard'));

$this->bootstrap = true;
$this->table = 'referrer';
$this->className = 'Referrer';
Expand Down
3 changes: 3 additions & 0 deletions controllers/admin/AdminSearchEnginesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class AdminSearchEnginesControllerCore extends AdminController
{
public function __construct()
{
// redirect to Dashboard for stats related to Search Engines
Tools::redirectAdmin(Context::getContext()->link->getAdminLink('AdminDashboard'));

$this->bootstrap = true;
$this->table = 'search_engine';
$this->className = 'SearchEngine';
Expand Down
14 changes: 7 additions & 7 deletions install/data/xml/tab.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<tab id="Administration" id_parent="" active="1" hide_host_mode="0">
<class_name>AdminAdmin</class_name>
</tab>
<tab id="Stats" id_parent="" active="1" hide_host_mode="0">
<!-- <tab id="Stats" id_parent="" active="1" hide_host_mode="0">
<class_name>AdminParentStats</class_name>
</tab>
</tab> -->
<tab id="Stock" id_parent="" active="1" hide_host_mode="0">
<class_name>AdminStock</class_name>
</tab>
Expand Down Expand Up @@ -282,15 +282,15 @@
<tab id="Menus" id_parent="Administration" active="1" hide_host_mode="0">
<class_name>AdminTabs</class_name>
</tab>
<tab id="Stats_1" id_parent="Stats" active="1" hide_host_mode="0">
<tab id="Stats_1" id_parent="" active="1" hide_host_mode="0">
<class_name>AdminStats</class_name>
</tab>
<tab id="Search_Engines" id_parent="Stats" active="1" hide_host_mode="0">
<!-- <tab id="Search_Engines" id_parent="Stats" active="1" hide_host_mode="0">
<class_name>AdminSearchEngines</class_name>
</tab>
<tab id="Referrers" id_parent="Stats" active="1" hide_host_mode="0">
</tab> -->
<!-- <tab id="Referrers" id_parent="Stats" active="1" hide_host_mode="0">
<class_name>AdminReferrers</class_name>
</tab>
</tab> -->
<tab id="Warehouses" id_parent="Stock" active="1" hide_host_mode="0">
<class_name>AdminWarehouses</class_name>
</tab>
Expand Down

0 comments on commit b0b4935

Please sign in to comment.