1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Merge pull request #3469 from Jimmi08/patch-6

{LOGIN_TABLE_FPW_LINK} - added class #3466
This commit is contained in:
Cameron 2018-09-27 14:32:23 -07:00 committed by GitHub
commit b757b0988c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,14 +201,16 @@ class login_shortcodes extends e_shortcode
}
/* example {LOGIN_TABLE_FPW_LINK} */
/* example {LOGIN_TABLE_FPW_LINK: class=dg-btn-2 btn-white radius-3px hover-white size-xl} */
function sc_login_table_fpw_link($parm='')
{
if(empty($this->userReg))
{
return null;
}
return "<a href='".e_BASE."fpw.php'>".LAN_LOGIN_12."</a>";
$class = (!empty($parm['class'])) ? "class='".$parm['class']."'" : "";
return "<a href='".e_HTTP."fpw.php' ".$class.">".LAN_LOGIN_12."</a>";
}