From 600ebad5a4241f27eef4cfe070ace2aa3a8d6bf9 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Sun, 27 Jan 2019 14:14:10 +0100 Subject: [PATCH] #275 - Add labels for screenreaders only to BS3 login menu --- .../login_menu/login_menu_shortcodes.php | 33 ++++++------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/e107_plugins/login_menu/login_menu_shortcodes.php b/e107_plugins/login_menu/login_menu_shortcodes.php index 941510a13..af7c80810 100755 --- a/e107_plugins/login_menu/login_menu_shortcodes.php +++ b/e107_plugins/login_menu/login_menu_shortcodes.php @@ -10,22 +10,9 @@ | Released under the terms and conditions of the | GNU General Public License (http://gnu.org). | -| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu_shortcodes.php,v $ -| $Revision$ -| $Date$ -| $Author$ +----------------------------------------------------------------------------+ */ -/** - * e107 Login menu plugin - * - * Shortcodes for login menu - * - * @package e107_plugins - * @subpackage login - * - */ if (!defined('e107_INIT')) { exit(); } global $tp; @@ -114,7 +101,9 @@ e107::getLanguage()->bcDefs($bcDefs); // If logging in with email address - ignore pref and increase to 100 chars. $maxLength = ($this->allowEmailLogin == 1 || $this->allowEmailLogin) ? 100 : varset($pref['loginname_maxlength'],30); - return "\n"; + return " + + \n"; } @@ -127,8 +116,13 @@ e107::getLanguage()->bcDefs($bcDefs); function sc_lm_password_input($parm='') { $pref = e107::getPref(); - $t_password = "\n"; - if (!USER && e107::getSession()->is('challenge') && varset($pref['password_CHAP'],0)) $t_password .= "\n\n"; + $t_password = " + + \n"; + + if (!USER && e107::getSession()->is('challenge') && varset($pref['password_CHAP'],0)) + $t_password .= "\n\n"; + return $t_password; } @@ -499,15 +493,8 @@ e107::getLanguage()->bcDefs($bcDefs); } - - } } - - $login_menu_shortcodes = e107::getScBatch('login_menu',TRUE); - - -?> \ No newline at end of file