From 47621ea249ea4e2c9161434fc3c4cd57d902ce5a Mon Sep 17 00:00:00 2001 From: MGS Creativa Date: Tue, 31 Oct 2023 13:29:08 -0300 Subject: [PATCH 1/4] Menu, check menu_text if icon class selected parameter --- .../helixultimate/src/Core/Classes/HelixultimateMenu.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php b/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php index 8d9d8605..0bb1e369 100644 --- a/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php +++ b/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php @@ -659,7 +659,14 @@ private function item($item, $extra_class='') $class = !empty($class) ? 'class="' . $class . '"' : ''; if ($item->menu_icon) { - $linktitle = '' . $item->title; + if ($item->getParams()->get('menu_text', 1)) + { + $linktitle = '' . $item->title; + } + else + { + $linktitle = '' . $item->title . ''; + } } else if ($item->menu_image) { From 44e47c1ba199debe7db5ea756e8a387feafb4158 Mon Sep 17 00:00:00 2001 From: MGS Creativa Date: Tue, 31 Oct 2023 13:31:08 -0300 Subject: [PATCH 2/4] Menu, check menu_text if icon class selected parameter --- .../overrides/mod_menu/default_component.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/system/helixultimate/overrides/mod_menu/default_component.php b/plugins/system/helixultimate/overrides/mod_menu/default_component.php index 4c2445de..61ad1d70 100644 --- a/plugins/system/helixultimate/overrides/mod_menu/default_component.php +++ b/plugins/system/helixultimate/overrides/mod_menu/default_component.php @@ -36,7 +36,14 @@ $linktype = $item->title; if ($item->menu_icon) { - $linktype = '' . $item->title; + if ($item->getParams()->get('menu_text', 1)) + { + $linktype = '' . $item->title; + } + else + { + $linktype = '' . $item->title . ''; + } } else if ($item->menu_image) { From 486ed7aeda541a4d44ed7c17d94c11c697b69c9d Mon Sep 17 00:00:00 2001 From: MGS Creativa Date: Tue, 31 Oct 2023 13:32:13 -0300 Subject: [PATCH 3/4] Menu, check menu_text if icon class selected parameter --- .../overrides/mod_menu/default_heading.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/system/helixultimate/overrides/mod_menu/default_heading.php b/plugins/system/helixultimate/overrides/mod_menu/default_heading.php index f653e6b7..925be5a6 100644 --- a/plugins/system/helixultimate/overrides/mod_menu/default_heading.php +++ b/plugins/system/helixultimate/overrides/mod_menu/default_heading.php @@ -21,9 +21,15 @@ $showToggler = $maxLevel === 0 || $item->level < $maxLevel; if ($item->menu_icon) { - $linktype = '' . $item->title; + if ($item->params->get('menu_text', 1)) + { + $linktype = '' . $item->title; + } + else + { + $linktype = '' . $item->title . ''; + } } - else if ($item->menu_image) { if ($item->menu_image_css) @@ -48,4 +54,4 @@ } ?> -> \ No newline at end of file +> From a9a651fa4f2ba5b960e20414678f28a514a59979 Mon Sep 17 00:00:00 2001 From: MGS Creativa Date: Tue, 31 Oct 2023 13:33:06 -0300 Subject: [PATCH 4/4] Menu, check menu_text if icon class selected parameter --- .../helixultimate/overrides/mod_menu/default_url.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/system/helixultimate/overrides/mod_menu/default_url.php b/plugins/system/helixultimate/overrides/mod_menu/default_url.php index 170dd310..fee5c29d 100644 --- a/plugins/system/helixultimate/overrides/mod_menu/default_url.php +++ b/plugins/system/helixultimate/overrides/mod_menu/default_url.php @@ -35,9 +35,15 @@ $linktype = $item->title; if ($item->menu_icon) { - $linktype = '' . $item->title; + if ($item->getParams()->get('menu_text', 1)) + { + $linktype = '' . $item->title; + } + else + { + $linktype = '' . $item->title . ''; + } } - else if ($item->menu_image) { if ($item->menu_image_css)