diff --git a/administrator/language/en-GB/tpl_atum.ini b/administrator/language/en-GB/tpl_atum.ini index 013ae6b49d47f..f610dcd04133e 100644 --- a/administrator/language/en-GB/tpl_atum.ini +++ b/administrator/language/en-GB/tpl_atum.ini @@ -4,9 +4,6 @@ ; Note : All ini files need to be saved as UTF-8 ATUM="Atum Administrator template" -TPL_ATUM_ALTTEXT_LOGIN_LOGO_LABEL="Alt Text Login Logo" -TPL_ATUM_ALTTEXT_SITE_LOGO_LABEL="Alt Text Brand Large" -TPL_ATUM_ALTTEXT_SMALL_LOGO_LABEL="Alt Text Brand Small" TPL_ATUM_BACK_TO_CONTROL_PANEL="Back to Dashboard" TPL_ATUM_BACKEND_LOGIN="Joomla Administrator Login" TPL_ATUM_COLORS_HUE="Choose your hue value for the dark template colour" @@ -20,10 +17,14 @@ TPL_ATUM_COLORS_SETTINGS_MONOCHROME_LABEL="Set Colour to Monochrome" TPL_ATUM_COLORS_SETTINGS_SPECIAL_COLOR_LABEL="Special Colour" TPL_ATUM_COLORS_SETTINGS_TEXT_DARK_LABEL="Dark Text" TPL_ATUM_COLORS_SETTINGS_TEXT_LIGHT_LABEL="Light Text" +TPL_ATUM_IMAGE_LABEL="Image" TPL_ATUM_IMAGE_SETTINGS_LABEL="Image Settings" TPL_ATUM_LOGIN_LOGO_LABEL="Login Logo" TPL_ATUM_LOGIN_SIDEBAR_VIEW_WEBSITE="view website" TPL_ATUM_LOGIN_SITE_TITLE="%s - Administrator Login" +TPL_ATUM_LOGO_ALT_EMPTY_DESC="Decorative Image - no description required" +TPL_ATUM_LOGO_ALT_EMPTY_LABEL="No Description" +TPL_ATUM_LOGO_ALT_LABEL="Image Description (Alt Text)" TPL_ATUM_MORE_ELEMENTS="More Elements" TPL_ATUM_SITE_LOGO_LABEL="Brand Large" TPL_ATUM_SITE_LOGO_SMALL_LABEL="Brand Small" diff --git a/administrator/templates/atum/error_full.php b/administrator/templates/atum/error_full.php index ea2df0068a56e..2337670299099 100644 --- a/administrator/templates/atum/error_full.php +++ b/administrator/templates/atum/error_full.php @@ -35,15 +35,16 @@ $logoBrandLarge = $this->params->get('logoBrandLarge') ? Uri::root() . htmlspecialchars($this->params->get('logoBrandLarge'), ENT_QUOTES) : $this->baseurl . '/templates/' . $this->template . '/images/logos/brand-large.svg'; -$loginLogo = $this->params->get('loginLogo') - ? Uri::root() . $this->params->get('loginLogo') - : $this->baseurl . '/templates/' . $this->template . '/images/logos/login.svg'; $logoBrandSmall = $this->params->get('logoBrandSmall') ? Uri::root() . htmlspecialchars($this->params->get('logoBrandSmall'), ENT_QUOTES) : $this->baseurl . '/templates/' . $this->template . '/images/logos/brand-small.svg'; -$logoBrandLargeAlt = htmlspecialchars($this->params->get('logoBrandLargeAlt', ''), ENT_COMPAT, 'UTF-8'); -$logoBrandSmallAlt = htmlspecialchars($this->params->get('logoBrandSmallAlt', ''), ENT_COMPAT, 'UTF-8'); +$logoBrandLargeAlt = empty($this->params->get('logoBrandLargeAlt')) && empty($this->params->get('emptyLogoBrandLargeAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandLargeAlt'), ENT_COMPAT, 'UTF-8') . '"'; +$logoBrandSmallAlt = empty($this->params->get('logoBrandSmallAlt')) && empty($this->params->get('emptyLogoBrandSmallAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandSmallAlt'), ENT_COMPAT, 'UTF-8') . '"'; // Enable assets $wa->usePreset('template.atum.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) @@ -93,8 +94,8 @@
diff --git a/administrator/templates/atum/error_login.php b/administrator/templates/atum/error_login.php index 091164e119a09..df05cb25384c1 100644 --- a/administrator/templates/atum/error_login.php +++ b/administrator/templates/atum/error_login.php @@ -39,8 +39,15 @@ ? Uri::root() . htmlspecialchars($this->params->get('logoBrandSmall'), ENT_QUOTES) : $this->baseurl . '/templates/' . $this->template . '/images/logos/brand-small.svg'; -$logoBrandLargeAlt = htmlspecialchars($this->params->get('logoBrandLargeAlt', ''), ENT_COMPAT, 'UTF-8'); -$logoBrandSmallAlt = htmlspecialchars($this->params->get('logoBrandSmallAlt', ''), ENT_COMPAT, 'UTF-8'); +$logoBrandLargeAlt = empty($this->params->get('logoBrandLargeAlt')) && empty($this->params->get('emptyLogoBrandLargeAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandLargeAlt'), ENT_COMPAT, 'UTF-8') . '"'; +$logoBrandSmallAlt = empty($this->params->get('logoBrandSmallAlt')) && empty($this->params->get('emptyLogoBrandSmallAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandSmallAlt'), ENT_COMPAT, 'UTF-8') . '"'; +$loginLogoAlt = empty($this->params->get('loginLogoAlt')) && empty($this->params->get('emptyLoginLogoAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('loginLogoAlt'), ENT_COMPAT, 'UTF-8') . '"'; // Enable assets $wa->usePreset('template.atum.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) @@ -87,10 +94,9 @@
-
@@ -121,7 +127,7 @@
- + >

diff --git a/administrator/templates/atum/index.php b/administrator/templates/atum/index.php index 30bd42a7ab3a6..6e61daad3e5ab 100644 --- a/administrator/templates/atum/index.php +++ b/administrator/templates/atum/index.php @@ -45,8 +45,13 @@ ? Uri::root() . htmlspecialchars($this->params->get('logoBrandSmall'), ENT_QUOTES) : $this->baseurl . '/templates/' . $this->template . '/images/logos/brand-small.svg'; -$logoBrandLargeAlt = htmlspecialchars($this->params->get('logoBrandLargeAlt', ''), ENT_COMPAT, 'UTF-8'); -$logoBrandSmallAlt = htmlspecialchars($this->params->get('logoBrandSmallAlt', ''), ENT_COMPAT, 'UTF-8'); +$logoBrandLargeAlt = empty($this->params->get('logoBrandLargeAlt')) && empty($this->params->get('emptyLogoBrandLargeAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandLargeAlt'), ENT_COMPAT, 'UTF-8') . '"'; +$logoBrandSmallAlt = empty($this->params->get('logoBrandSmallAlt')) && empty($this->params->get('emptyLogoBrandSmallAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandSmallAlt'), ENT_COMPAT, 'UTF-8') . '"'; + // Enable assets $wa->usePreset('template.atum.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) @@ -93,14 +98,14 @@
diff --git a/administrator/templates/atum/login.php b/administrator/templates/atum/login.php index d8ee1b9c9e61a..4086686eb2e85 100644 --- a/administrator/templates/atum/login.php +++ b/administrator/templates/atum/login.php @@ -39,8 +39,15 @@ ? Uri::root() . htmlspecialchars($this->params->get('logoBrandSmall'), ENT_QUOTES) : $this->baseurl . '/templates/' . $this->template . '/images/logos/brand-small.svg'; -$logoBrandLargeAlt = htmlspecialchars($this->params->get('logoBrandLargeAlt', ''), ENT_COMPAT, 'UTF-8'); -$logoBrandSmallAlt = htmlspecialchars($this->params->get('logoBrandSmallAlt', ''), ENT_COMPAT, 'UTF-8'); +$logoBrandLargeAlt = empty($this->params->get('logoBrandLargeAlt')) && empty($this->params->get('emptyLogoBrandLargeAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandLargeAlt'), ENT_COMPAT, 'UTF-8') . '"'; +$logoBrandSmallAlt = empty($this->params->get('logoBrandSmallAlt')) && empty($this->params->get('emptyLogoBrandSmallAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('logoBrandSmallAlt'), ENT_COMPAT, 'UTF-8') . '"'; +$loginLogoAlt = empty($this->params->get('loginLogoAlt')) && empty($this->params->get('emptyLoginLogoAlt')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('loginLogoAlt'), ENT_COMPAT, 'UTF-8') . '"'; // Enable assets $wa->usePreset('template.atum.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) @@ -87,10 +94,9 @@
-
@@ -111,8 +117,7 @@
diff --git a/administrator/templates/atum/templateDetails.xml b/administrator/templates/atum/templateDetails.xml index de822416b6e60..253dc46073d05 100644 --- a/administrator/templates/atum/templateDetails.xml +++ b/administrator/templates/atum/templateDetails.xml @@ -117,36 +117,60 @@
- - - - - - +
+ + + +
+
+ + + +
+
+ + + +