From f72819781da0764d9f4e020870dd312df9a60edd Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Fri, 23 Oct 2015 14:43:53 +0000 Subject: [PATCH] Add some missing alt tags --- modules/authX509/templates/X509error.php | 2 +- modules/authYubiKey/templates/yubikeylogin.php | 6 +++--- modules/core/templates/loginuserpass.php | 2 +- templates/login-ldapmulti.php | 4 ++-- templates/login.php | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/authX509/templates/X509error.php b/modules/authX509/templates/X509error.php index c55ae65c4..1f272301c 100644 --- a/modules/authX509/templates/X509error.php +++ b/modules/authX509/templates/X509error.php @@ -9,7 +9,7 @@ $this->includeAtTemplateBase('includes/header.php'); if ($this->data['errorcode'] !== NULL) { ?> <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5"> - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l" style="margin: 15px " /> + <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l" style="margin: 15px" alt="" /> <h2><?php echo $this->t('{login:error_header}'); ?></h2> <p><b><?php echo $this->t('{errors:title_' . $this->data['errorcode'] . '}'); ?></b></p> <p><?php echo $this->t('{errors:descr_' . $this->data['errorcode'] . '}'); ?></p> diff --git a/modules/authYubiKey/templates/yubikeylogin.php b/modules/authYubiKey/templates/yubikeylogin.php index 72e805d80..172a09aae 100644 --- a/modules/authYubiKey/templates/yubikeylogin.php +++ b/modules/authYubiKey/templates/yubikeylogin.php @@ -10,7 +10,7 @@ $this->includeAtTemplateBase('includes/header.php'); if ($this->data['errorcode'] !== NULL) { ?> <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5"> - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l" style="margin: 15px " /> + <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l" style="margin: 15px" alt="" /> <h2><?php echo $this->t('{login:error_header}'); ?></h2> <p><b><?php echo $this->t('{errors:title_' . $this->data['errorcode'] . '}'); ?></b></p> <p><?php echo $this->t('{errors:descr_' . $this->data['errorcode'] . '}'); ?></p> @@ -19,8 +19,8 @@ if ($this->data['errorcode'] !== NULL) { } ?> - <img style="float: right" src="<?php echo(SimpleSAML_Module::getModuleURL('authYubiKey/resources/logo.jpg')); ?>" /> - <img style="clear: right; float: right" src="<?php echo(SimpleSAML_Module::getModuleURL('authYubiKey/resources/yubikey.jpg')); ?>" /> + <img style="float: right" src="<?php echo(SimpleSAML_Module::getModuleURL('authYubiKey/resources/logo.jpg')); ?>" alt="" /> + <img style="clear: right; float: right" src="<?php echo(SimpleSAML_Module::getModuleURL('authYubiKey/resources/yubikey.jpg')); ?>" alt="YubiKey" /> <h2 style=""><?php echo $this->t('{authYubiKey:yubikey:header}'); ?></h2> diff --git a/modules/core/templates/loginuserpass.php b/modules/core/templates/loginuserpass.php index 7b39963c2..8983d1a26 100644 --- a/modules/core/templates/loginuserpass.php +++ b/modules/core/templates/loginuserpass.php @@ -14,7 +14,7 @@ $this->includeAtTemplateBase('includes/header.php'); if ($this->data['errorcode'] !== NULL) { ?> <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5"> - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l erroricon" style="margin: 15px " /> + <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l erroricon" style="margin: 15px" alt="" /> <h2><?php echo $this->t('{login:error_header}'); ?></h2> <p><b><?php echo htmlspecialchars($this->t('{errors:title_' . $this->data['errorcode'] . '}', $this->data['errorparams'])); ?></b></p> <p><?php echo htmlspecialchars($this->t('{errors:descr_' . $this->data['errorcode'] . '}', $this->data['errorparams'])); ?></p> diff --git a/templates/login-ldapmulti.php b/templates/login-ldapmulti.php index 9e9ae971e..b4430cbd8 100644 --- a/templates/login-ldapmulti.php +++ b/templates/login-ldapmulti.php @@ -5,7 +5,7 @@ <?php if (isset($this->data['error'])) { ?> <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5"> - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l erroricon" style="margin: 15px " /> + <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l erroricon" style="margin: 15px" alt="" /> <h2><?php echo $this->t('error_header'); ?></h2> <p class="logintext"><?php echo htmlspecialchars($this->data['error']); ?> </p> @@ -22,7 +22,7 @@ <table> <tr> - <td rowspan="3"><img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-authentication.48x48.png" id="loginicon" /></td> + <td rowspan="3"><img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-authentication.48x48.png" id="loginicon" alt="" /></td> <td style="padding: .3em;"><?php echo $this->t('username'); ?></td> <td><input type="text" tabindex="1" name="username" <?php if (isset($this->data['username'])) { diff --git a/templates/login.php b/templates/login.php index cd4aaa644..bded6d6d1 100644 --- a/templates/login.php +++ b/templates/login.php @@ -7,7 +7,7 @@ <?php if (isset($this->data['error'])) { ?> <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5"> - <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l erroricon" style="margin: 15px" /> + <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l erroricon" style="margin: 15px" alt="" /> <h2><?php echo $this->t('error_header'); ?></h2> <p><?php echo $this->t($this->data['error']); ?> </p> @@ -22,7 +22,7 @@ <table> <tr> - <td rowspan="2"><img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-authentication.48x48.png" id="loginicon" /></td> + <td rowspan="2"><img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-authentication.48x48.png" id="loginicon" alt="" /></td> <td style="padding: .3em;"><?php echo $this->t('username'); ?></td> -- GitLab