1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +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

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='') function sc_login_table_fpw_link($parm='')
{ {
if(empty($this->userReg)) if(empty($this->userReg))
{ {
return null; return null;
} }
$class = (!empty($parm['class'])) ? "class='".$parm['class']."'" : "";
return "<a href='".e_BASE."fpw.php'>".LAN_LOGIN_12."</a>"; return "<a href='".e_HTTP."fpw.php' ".$class.">".LAN_LOGIN_12."</a>";
} }