mirror of
https://github.com/e107inc/e107.git
synced 2025-07-27 01:40:22 +02:00
Merge pull request #3578 from Jimmi08/patch-1
possibility to style signup_text shortcodes
This commit is contained in:
@@ -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>";
|
return "<form action='".e_SELF."' method='post' id='signupform' autocomplete='off'><div>".e107::getForm()->token()."</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* example: {SIGNUP_SIGNUP_TEXT}
|
||||||
function sc_signup_signup_text()
|
/* example: {SIGNUP_SIGNUP_TEXT: class=custom} */
|
||||||
|
function sc_signup_signup_text($parm='')
|
||||||
{
|
{
|
||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
if(!empty($pref['signup_text']))
|
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