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 @@