1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-11 18:14:10 +01:00

Merge pull request #3578 from Jimmi08/patch-1

possibility to style signup_text shortcodes
This commit is contained in:
Cameron 2018-12-19 12:00:47 -08:00 committed by GitHub
commit dffc796e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,15 +157,18 @@ class signup_shortcodes extends e_shortcode
return "<form action='".e_SELF."' method='post' id='signupform' autocomplete='off'><div>".e107::getForm()->token()."</div>";
}
function sc_signup_signup_text()
/* example: {SIGNUP_SIGNUP_TEXT}
/* example: {SIGNUP_SIGNUP_TEXT: class=custom} */
function sc_signup_signup_text($parm='')
{
$pref = e107::getPref();
$tp = e107::getParser();
if(!empty($pref['signup_text']))
{
return "<div id='signup-custom-text' class='alert alert-block alert-warning'>".$tp->toHTML($pref['signup_text'], TRUE, 'parse_sc,defs')."</div>";
$class = (!empty($parm['class'])) ? "class='".$parm['class']."'" : " class='alert alert-block alert-warning' ";
return "<div id='signup-custom-text' ".$class." >".$tp->toHTML($pref['signup_text'], TRUE, 'parse_sc,defs')."</div>";
}
/*