mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
{LOGIN_TABLE_SIGNUP_LINK} - added class option #3466
This commit is contained in:
@@ -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='')
|
function sc_login_table_signup_link($parm='')
|
||||||
{
|
{
|
||||||
|
|
||||||
if($this->userReg === 1)
|
if($this->userReg === 1)
|
||||||
{
|
{
|
||||||
return "<a href='".e_SIGNUP."'>".LAN_LOGIN_11."</a>";
|
$class = (!empty($parm['class'])) ? "class='".$parm['class']."'" : "";
|
||||||
|
|
||||||
|
return "<a href='".e_SIGNUP."' ".$class.">".LAN_LOGIN_11."</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user