From 02ef130feb022e3638d1e86515dd32c72d9eee02 Mon Sep 17 00:00:00 2001 From: Jimako Date: Thu, 27 Sep 2018 14:29:21 +0200 Subject: [PATCH] {LOGIN_TABLE_SIGNUP_LINK} - added class option #3466 --- e107_core/shortcodes/batch/login_shortcodes.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/e107_core/shortcodes/batch/login_shortcodes.php b/e107_core/shortcodes/batch/login_shortcodes.php index e207959e8..abc1db8f5 100644 --- a/e107_core/shortcodes/batch/login_shortcodes.php +++ b/e107_core/shortcodes/batch/login_shortcodes.php @@ -178,11 +178,16 @@ class login_shortcodes extends e_shortcode } + /* example {LOGIN_TABLE_SIGNUP_LINK} */ + /* example {LOGIN_TABLE_SIGNUP_LINK: class=hover-black dg-btn-2 radius-3px btn-white hover-accent size-lg} */ function sc_login_table_signup_link($parm='') { + if($this->userReg === 1) { - return "".LAN_LOGIN_11.""; + $class = (!empty($parm['class'])) ? "class='".$parm['class']."'" : ""; + + return "".LAN_LOGIN_11.""; } return null; @@ -202,4 +207,4 @@ class login_shortcodes extends e_shortcode } -?> \ No newline at end of file +?>