diff --git a/README.md b/README.md
index 0be0148..86bb5f5 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,8 @@ Don't forget to turn the option off again!
### Version history
+2021-07-30 Added uk-active class on active toplevel item, version bumped to 1.0.4.
+
2021-07-17 Added update server, version bumped to 1.0.3.
2021-07-15 Warning fix, version bumped to 1.0.2
@@ -50,4 +52,3 @@ Added coded improvements by Dmitrii Cymbal and added the option to set a dropdow
Also the Modules Anywhere plugin is no longer needed.
2021-07-14 Initial version
-
diff --git a/source/helper.php b/source/helper.php
index 4d6079d..eaa3bef 100644
--- a/source/helper.php
+++ b/source/helper.php
@@ -1,7 +1,7 @@
GNU General Public License version 3 or later
email@renekreijveld.nl
https://www.destiny.nl
- 1.0.3
- Mega Menu module for YOOtheme Pro, version 1.0.3.
+ 1.0.4
+ Mega Menu module for YOOtheme Pro, version 1.0.4.
https://raw.githubusercontent.com/renekreijveld/YOOthemeMegaMenu/main/updates/mod_yootheme_megamenu.xml
diff --git a/source/mod_yootheme_megamenu_1.0.3.zip b/source/mod_yootheme_megamenu_1.0.3.zip
deleted file mode 100644
index 5d6f466..0000000
Binary files a/source/mod_yootheme_megamenu_1.0.3.zip and /dev/null differ
diff --git a/source/tmpl/default.php b/source/tmpl/default.php
index ab10b86..ac0706c 100644
--- a/source/tmpl/default.php
+++ b/source/tmpl/default.php
@@ -1,7 +1,7 @@
input->getCmd('Itemid', '');
?>
@@ -28,7 +33,15 @@
- -
+ linktype === 'internal' && $itemId === $item->internallink)
+ {
+ $liClass = ' class="uk-active"';
+ }
+ ?>
+
- >
target; ?>>title; ?>showdd; ?>
ddkind === 'mega' || $item->ddkind === 'single') : ?>
diff --git a/updates/mod_yootheme_megamenu.xml b/updates/mod_yootheme_megamenu.xml
index 4f98a19..9e253a2 100644
--- a/updates/mod_yootheme_megamenu.xml
+++ b/updates/mod_yootheme_megamenu.xml
@@ -5,10 +5,10 @@
mod_yootheme_megamenu
module
site
- 1.0.3
+ 1.0.4
https://github.com/renekreijveld/YOOthemeMegaMenu
- https://github.com/renekreijveld/YOOthemeMegaMenu/releases/download/1.0.3/mod_yootheme_megamenu_1.0.3.zip
+ https://github.com/renekreijveld/YOOthemeMegaMenu/releases/download/1.0.4/mod_yootheme_megamenu_1.0.4.zip
René Kreijveld
https://www.destiny.nl