From 2d9ddefae1455ad560c566fd9eae18dc32ed1d81 Mon Sep 17 00:00:00 2001 From: Jimako Date: Fri, 22 Mar 2019 23:50:04 +0100 Subject: [PATCH] #3466 {LOGIN_TABLE_USERNAME} - added class --- e107_core/shortcodes/batch/login_shortcodes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e107_core/shortcodes/batch/login_shortcodes.php b/e107_core/shortcodes/batch/login_shortcodes.php index dc2ab6c0b..a67bcdc2a 100644 --- a/e107_core/shortcodes/batch/login_shortcodes.php +++ b/e107_core/shortcodes/batch/login_shortcodes.php @@ -42,6 +42,8 @@ class login_shortcodes extends e_shortcode return LOGINMESSAGE; } + /* example: {LOGIN_TABLE_USERNAME} */ + /* example: {LOGIN_TABLE_USERNAME: class=form-control} */ function sc_login_table_username($parm='') //FIXME use $frm { @@ -54,9 +56,9 @@ class login_shortcodes extends e_shortcode $allowEmailLogin = varset($pref['allowEmailLogin'],0); $ulabel = array(LAN_LOGIN_1,LAN_LOGIN_28,LAN_LOGIN_29); $placeholder = $ulabel[$allowEmailLogin]; + $class = (!empty($parm['class'])) ? $parm['class'] : "tbox form-control input-block-level"; - - return ""; + return ""; } function sc_login_table_password($parm='') //FIXME use $frm