Skip to content

Commit

Permalink
V1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenMoolenschot committed Jul 31, 2022
1 parent ece1ae9 commit 5d2a474
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
6 changes: 6 additions & 0 deletions language/en-GB/mod_custom_quickicon.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ MOD_CUSTOM_QUICKICON_SHOW_PRIVACYREQUEST_LABEL="Privacy Requests"
MOD_CUSTOM_QUICKICON_SHOW_TEMPLATE_CODE_LABEL="Template Code Icon"
MOD_CUSTOM_QUICKICON_SHOW_TEMPLATE_STYLES_LABEL="Template Styles Icon"
MOD_CUSTOM_QUICKICON_SHOW_USERS_LABEL="User Icon"
MOD_CUSTOM_QUICKICON_SHOW_TAGS_LABEL="Tags Icon"
MOD_CUSTOM_QUICKICON_TAGS_MANAGER="Tags"
MOD_CUSTOM_QUICKICON_TAGS_MANAGER_ADD="Add Tag"
MOD_CUSTOM_QUICKICON_SHOW_REDIRECTS_LABEL="Redirects Icon"
MOD_CUSTOM_QUICKICON_REDIRECTS="Redirects"
MOD_CUSTOM_QUICKICON_REDIRECTS_ADD="Add Redirect"
MOD_CUSTOM_QUICKICON_SITE="Icons Site"
MOD_CUSTOM_QUICKICON_STRUCTURE="Structure"
MOD_CUSTOM_QUICKICON_SYSTEM="Icons System"
Expand Down
7 changes: 5 additions & 2 deletions language/nl-NL/mod_custom_quickicon.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,17 @@ MOD_CUSTOM_QUICKICON_SHOW_OVERRIDEUPDATE_LABEL="Update controle overschrijven"
MOD_CUSTOM_QUICKICON_SHOW_PLUGINS_LABEL="Plugin icoon"
MOD_CUSTOM_QUICKICON_SHOW_PRIVACYREQUEST_LABEL="Privacy verzoeken"
MOD_CUSTOM_QUICKICON_SHOW_TAGS_LABEL="Tags icoon"
MOD_CUSTOM_QUICKICON_TAGS_MANAGER="Tags"
MOD_CUSTOM_QUICKICON_TAGS_MANAGER_ADD="Tag toevoegen"
MOD_CUSTOM_QUICKICON_SHOW_TEMPLATE_CODE_LABEL="Templatecode icoon"
MOD_CUSTOM_QUICKICON_SHOW_TEMPLATE_STYLES_LABEL="Templatestijl icoon"
MOD_CUSTOM_QUICKICON_SHOW_USERS_LABEL="Gebruiker icoon"
MOD_CUSTOM_QUICKICON_SHOW_REDIRECTS_LABEL="Verwijzingen icoon"
MOD_CUSTOM_QUICKICON_REDIRECTS="Verwijzingen"
MOD_CUSTOM_QUICKICON_REDIRECTS_ADD="Verwijzing toevoegen"
MOD_CUSTOM_QUICKICON_SITE="Iconen site"
MOD_CUSTOM_QUICKICON_STRUCTURE="Structuur"
MOD_CUSTOM_QUICKICON_SYSTEM="Iconen systeem"
MOD_CUSTOM_QUICKICON_TAGS_MANAGER="Tags"
MOD_CUSTOM_QUICKICON_TAGS_MANAGER_ADD="Tag toevoegen"
MOD_CUSTOM_QUICKICON_TEMPLATE_CODE="Templatecode"
MOD_CUSTOM_QUICKICON_TEMPLATE_STYLES="Templatestijlen"
MOD_CUSTOM_QUICKICON_TYPE="Icoontype"
Expand Down
14 changes: 12 additions & 2 deletions mod_custom_quickicon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension type="module" client="administrator" method="upgrade">
<name>Custom Quick Icons</name>
<author>Joomill Extensions</author>
<creationDate>March 2022</creationDate>
<creationDate>August 2022</creationDate>
<copyright>Copyright (C) 2022 Joomill. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later;</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomill-extensions.com</authorUrl>
<version>1.3.0</version>
<version>1.4.0</version>
<description>MOD_CUSTOM_QUICKICON_XML_DESCRIPTION</description>
<namespace path="src">Joomill\Module\Customquickicon</namespace>
<files>
Expand Down Expand Up @@ -201,6 +201,16 @@
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_redirects"
type="radio"
label="MOD_CUSTOM_QUICKICON_SHOW_REDIRECTS_LABEL"
layout="joomla.form.field.radio.switcher"
default="0"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>

<fieldset name="hikashop">
Expand Down
11 changes: 11 additions & 0 deletions src/Helper/CustomQuickIconHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,17 @@ public function getButtons(Registry $params, CMSApplication $application = null)
];
}

if ($params->get('show_redirects')) {
$this->buttons[$key][] = [
'image' => 'fas fa-retweet',
'link' => Route::_('index.php?option=com_redirect'),
'linkadd' => Route::_('index.php?option=com_redirect&view=link&layout=edit'),
'name' => 'MOD_CUSTOM_QUICKICON_REDIRECTS',
'access' => array('core.admin', 'com_redirect'),
'group' => $context
];
}

if ($params->get('show_checkin')) {
$quickicon = [
'image' => 'icon-unlock-alt',
Expand Down

0 comments on commit 5d2a474

Please sign in to comment.