From 1e44b5a8d9af4c2cc63be6539844ade662803e48 Mon Sep 17 00:00:00 2001 From: Jimako Date: Wed, 19 Dec 2018 08:37:39 +0100 Subject: [PATCH] possibility to style signup_text shortcodes --- e107_core/shortcodes/batch/signup_shortcodes.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e107_core/shortcodes/batch/signup_shortcodes.php b/e107_core/shortcodes/batch/signup_shortcodes.php index 3ffadb000..4aeb1792c 100755 --- a/e107_core/shortcodes/batch/signup_shortcodes.php +++ b/e107_core/shortcodes/batch/signup_shortcodes.php @@ -157,7 +157,8 @@ class signup_shortcodes extends e_shortcode return "
".e107::getForm()->token()."
"; } - + /* example: {SIGNUP_SIGNUP_TEXT} + /* example: {SIGNUP_SIGNUP_TEXT: class=custom} */ function sc_signup_signup_text() { $pref = e107::getPref(); @@ -165,7 +166,9 @@ class signup_shortcodes extends e_shortcode if(!empty($pref['signup_text'])) { - return "
".$tp->toHTML($pref['signup_text'], TRUE, 'parse_sc,defs')."
"; + $class = (!empty($parm['class'])) ? "class='".$parm['class']."'" : " class='alert alert-block alert-warning' "; + + return "
".$tp->toHTML($pref['signup_text'], TRUE, 'parse_sc,defs')."
"; } /*