diff --git a/README.md b/README.md index 4d4befb..68ec65e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This module requires at least PHP 7.2 and Joomla! 3.8. ## Usage [Download the module](https://github.com/snoeren-development/joomla-random-module/archive/master.zip) and install it directly on your Joomla! powered website. Simply create -a new Random Module module and select the position the module should pick a module from. +a new SD Random Module module and select the position the module should pick a module from. ## Credits - [Michael Snoeren](https://github.com/MSnoeren) diff --git a/index.html b/index.html index e69de29..7c95a95 100644 --- a/index.html +++ b/index.html @@ -0,0 +1 @@ + diff --git a/install.php b/install.php new file mode 100644 index 0000000..9810cda --- /dev/null +++ b/install.php @@ -0,0 +1,63 @@ + + .btn-sd { + display: inline-block; + background-color: #8f5ba1; + color: #fff; + padding: .5rem 1rem; + margin-top: 1rem; + } + .btn-sd:hover { + color: #fff; + text-decoration: none; + } + .btn-outline-sd { + border: 1px solid #8f5ba1; + padding: .5rem 1rem; + margin-top: 1rem; + display: block; + } + +
+
 
+
+ SD Random Module Logo +
+ +
+

SD Random Module

+ + SD Random Module shows a random module from a (custom) position of your + site. This way you can easily show a random image, random streamer, + random survey and more.
+ + +
+
+HTML; + } +} diff --git a/language/en-GB/en-GB.mod_randommodule.ini b/language/en-GB/en-GB.mod_randommodule.ini deleted file mode 100644 index 061184a..0000000 --- a/language/en-GB/en-GB.mod_randommodule.ini +++ /dev/null @@ -1,5 +0,0 @@ -MOD_RANDOMMODULE="Random Module" -MOD_RANDOMMODULE_DESC="Show a random module." - -MOD_RANDOMMODULE_OPTION_POSITION="Module Position" -MOD_RANDOMMODULE_OPTION_POSITION_DESC="Select the module position to retrieve the modules from. This can be a custom position too. The Random Module module will then pick a random one from the list of modules." diff --git a/language/en-GB/en-GB.mod_randommodule.sys.ini b/language/en-GB/en-GB.mod_randommodule.sys.ini deleted file mode 100644 index e8ad298..0000000 --- a/language/en-GB/en-GB.mod_randommodule.sys.ini +++ /dev/null @@ -1,2 +0,0 @@ -MOD_RANDOMMODULE="Random Module" -MOD_RANDOMMODULE_DESC="Show a random module." diff --git a/language/en-GB/en-GB.mod_sdrandommodule.ini b/language/en-GB/en-GB.mod_sdrandommodule.ini new file mode 100644 index 0000000..b696646 --- /dev/null +++ b/language/en-GB/en-GB.mod_sdrandommodule.ini @@ -0,0 +1,5 @@ +MOD_SDRANDOMMODULE="SD Random Module" +MOD_SDRANDOMMODULE_DESC="Show a random module." + +MOD_SDRANDOMMODULE_OPTION_POSITION="Module Position" +MOD_SDRANDOMMODULE_OPTION_POSITION_DESC="Select the module position to retrieve the modules from. This can be a custom position too. The Random Module module will then pick a random one from the list of modules." diff --git a/language/en-GB/en-GB.mod_sdrandommodule.sys.ini b/language/en-GB/en-GB.mod_sdrandommodule.sys.ini new file mode 100644 index 0000000..a3ab1f3 --- /dev/null +++ b/language/en-GB/en-GB.mod_sdrandommodule.sys.ini @@ -0,0 +1,2 @@ +MOD_SDRANDOMMODULE="SD Random Module" +MOD_SDRANDOMMODULE_DESC="Show a random module." diff --git a/language/en-GB/index.html b/language/en-GB/index.html index e69de29..7c95a95 100644 --- a/language/en-GB/index.html +++ b/language/en-GB/index.html @@ -0,0 +1 @@ + diff --git a/language/index.html b/language/index.html index e69de29..7c95a95 100644 --- a/language/index.html +++ b/language/index.html @@ -0,0 +1 @@ + diff --git a/media/index.html b/media/index.html new file mode 100644 index 0000000..7c95a95 --- /dev/null +++ b/media/index.html @@ -0,0 +1 @@ + diff --git a/media/sd-random-module-logo.png b/media/sd-random-module-logo.png new file mode 100644 index 0000000..1e919e0 Binary files /dev/null and b/media/sd-random-module-logo.png differ diff --git a/mod_randommodule.php b/mod_sdrandommodule.php similarity index 93% rename from mod_randommodule.php rename to mod_sdrandommodule.php index 8baf3e9..0c3c7ba 100644 --- a/mod_randommodule.php +++ b/mod_sdrandommodule.php @@ -1,8 +1,9 @@ - MOD_RANDOMMODULE - 1.0.0 + MOD_SDRANDOMMODULE + 1.1.0 30-04-2020 Snoeren Development - https://snoerendevelopment.nl/ + https://snoerendevelopment.com/ info@snoerendevelopment.nl - MOD_RANDOMMODULE_DESC + MOD_SDRANDOMMODULE_DESC Snoeren Development (c) 2020. All rights reserved. MIT + install.php + - en-GB/en-GB.mod_randommodule.ini - en-GB/en-GB.mod_randommodule.sys.ini + en-GB/en-GB.mod_sdrandommodule.ini + en-GB/en-GB.mod_sdrandommodule.sys.ini tmpl - mod_randommodule.php + mod_sdrandommodule.php index.html + + sd-random-module-logo.png + index.html + +
@@ -89,7 +98,7 @@ type="extension" priority="2" name="Random Module"> - https://raw.githubusercontent.com/snoeren-development/joomla-random-module/master/updates.xml + https://snoerendevelopment.com/updates/sd-random-module.xml diff --git a/tmpl/default.php b/tmpl/default.php index 58c23fa..9d5294f 100644 --- a/tmpl/default.php +++ b/tmpl/default.php @@ -1,8 +1,9 @@ %s', + '
%s
', $moduleClassSuffix, $renderer->render($module) ); diff --git a/tmpl/index.html b/tmpl/index.html index e69de29..7c95a95 100644 --- a/tmpl/index.html +++ b/tmpl/index.html @@ -0,0 +1 @@ + diff --git a/updates.xml b/updates.xml deleted file mode 100644 index 2a65fee..0000000 --- a/updates.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - Random Module - - mod_randommodule - module - 1.0.0 - 0 - https://github.com/snoeren-development/joomla-random-module/releases/tag/v1.0.0 - - https://github.com/snoeren-development/joomla-random-module/archive/v1.0.0.zip - - - stable - - Snoeren Development - https://snoerendevelopment.nl/ - - -