1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Merge pull request #3468 from Jimmi08/patch-5

{LOGIN_TABLE_SIGNUP_LINK} - added class option #3466
This commit is contained in:
Cameron
2018-09-27 14:31:34 -07:00
committed by GitHub

View File

@@ -185,11 +185,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='')
{
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;