mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
possibility to style signup_text shortcodes
This commit is contained in:
@@ -157,7 +157,8 @@ class signup_shortcodes extends e_shortcode
|
||||
return "<form action='".e_SELF."' method='post' id='signupform' autocomplete='off'><div>".e107::getForm()->token()."</div>";
|
||||
}
|
||||
|
||||
|
||||
/* 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 "<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>";
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user