mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 02:42:40 +02:00
Signup template upgraded to full v2.x standards. Template cleanup of usersettings and contact templates.
This commit is contained in:
@@ -14,170 +14,102 @@
|
||||
* $Author: e107coders $
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
if (!defined("USER_WIDTH")){ define("USER_WIDTH", "width:100%"); }
|
||||
if(!defined('e107_INIT'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
// Shortcode Wrappers
|
||||
|
||||
$sc_style['SIGNUP_DISPLAYNAME']['pre'] = "
|
||||
$SIGNUP_WRAPPER['SIGNUP_DISPLAYNAME'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap' ><label for='username'>"
|
||||
.LAN_SIGNUP_89."{SIGNUP_IS_MANDATORY=true}<br /><span class='smalltext'>".LAN_SIGNUP_90."</span></label>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_DISPLAYNAME']['post'] = "
|
||||
</td>
|
||||
. LAN_SIGNUP_89 . "{SIGNUP_IS_MANDATORY=true}<br /><span class='smalltext'>" . LAN_SIGNUP_90 . "</span></label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_REALNAME']['pre'] = "
|
||||
$SIGNUP_WRAPPER['SIGNUP_REALNAME'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='realname'>"
|
||||
.LAN_SIGNUP_91."{SIGNUP_IS_MANDATORY=realname}</label>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:70%' >";
|
||||
$sc_style['SIGNUP_REALNAME']['post'] = "
|
||||
</td>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='realname'>" . LAN_SIGNUP_91 . "{SIGNUP_IS_MANDATORY=realname}</label></td>
|
||||
<td class='forumheader3' style='width:70%' >{---}</td>
|
||||
</tr>";
|
||||
$sc_style['SIGNUP_GDPR_INFO']['pre'] = "<tr style='vertical-align:top'><td class='forumheader' colspan='2' style='text-align:center'>";
|
||||
$sc_style['SIGNUP_GDPR_INFO']['post'] = "</td>
|
||||
</tr>";
|
||||
|
||||
|
||||
|
||||
if(!isset($SIGNUP_PASSWORD_LEN))
|
||||
{
|
||||
$SIGNUP_PASSWORD_LEN = "
|
||||
<span class='smalltext'> (".LAN_SIGNUP_1." {$pref['signup_pass_len']} ".LAN_SIGNUP_2.")</span>";
|
||||
}
|
||||
|
||||
if(!isset($SIGNUP_EXTENDED_USER_FIELDS))
|
||||
{
|
||||
$SIGNUP_EXTENDED_USER_FIELDS = "
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
<label>{EXTENDED_USER_FIELD_TEXT}
|
||||
{EXTENDED_USER_FIELD_REQUIRED}</label>
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
{EXTENDED_USER_FIELD_EDIT}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
$SIGNUP_WRAPPER['SIGNUP_GDPR_INFO'] = "<tr style='vertical-align:top'><td class='forumheader' colspan='2' style='text-align:center'>{---}</td></tr>";
|
||||
|
||||
|
||||
|
||||
$sc_style['SIGNUP_SIGNATURE']['pre'] = "
|
||||
$SIGNUP_WRAPPER['SIGNUP_SIGNATURE'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' ><label for='signature'>".LAN_SIGNUP_93." {SIGNUP_IS_MANDATORY=signature}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
|
||||
$sc_style['SIGNUP_SIGNATURE']['post'] = "
|
||||
</td>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' ><label for='signature'>" . LAN_SIGNUP_93 . " {SIGNUP_IS_MANDATORY=signature}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_IMAGES']['pre'] = "
|
||||
|
||||
$SIGNUP_WRAPPER['SIGNUP_IMAGES'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' ><label for='avatar'>".LAN_SIGNUP_94."{SIGNUP_IS_MANDATORY=avatar}</label></td>
|
||||
<td class='forumheader3' style='width:70%;vertical-align:top'>";
|
||||
$sc_style['SIGNUP_IMAGES']['post'] = "
|
||||
</td>
|
||||
<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' ><label for='avatar'>" . LAN_SIGNUP_94 . "{SIGNUP_IS_MANDATORY=avatar}</label></td>
|
||||
<td class='forumheader3' style='width:70%;vertical-align:top'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_IMAGECODE']['pre'] = "
|
||||
$SIGNUP_WRAPPER['SIGNUP_IMAGECODE'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%'><label for='code-verify'>".e107::getSecureImg()->renderLabel()."{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_IMAGECODE']['post'] = "
|
||||
</td>
|
||||
<td class='forumheader3' style='width:30%'><label for='code-verify'>" . e107::getSecureImg()->renderLabel() . "{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_LOGINNAME']['pre'] = "
|
||||
$SIGNUP_WRAPPER['SIGNUP_LOGINNAME'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%'><label for='loginname'>".LAN_SIGNUP_81."{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_LOGINNAME']['post'] = "
|
||||
</td>
|
||||
<td class='forumheader3' style='width:30%'><label for='loginname'>" . LAN_SIGNUP_81 . "{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_HIDE_EMAIL']['pre'] = "
|
||||
$SIGNUP_WRAPPER['SIGNUP_HIDE_EMAIL'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label>".LAN_USER_83."</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_HIDE_EMAIL']['post'] = "
|
||||
</td>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label>" . LAN_USER_83 . "</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_EMAIL_CONFIRM']['pre'] = "
|
||||
$SIGNUP_WRAPPER['SIGNUP_EMAIL_CONFIRM'] = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='email-confirm'>".LAN_SIGNUP_39."{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_EMAIL_CONFIRM']['post'] = "
|
||||
</td>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='email-confirm'>" . LAN_SIGNUP_39 . "{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_XUP']['pre'] = "<div class='center' style='display:block;padding:10px'>";
|
||||
$sc_style['SIGNUP_XUP']['post'] = "<h2 class='signup-divider'><span>".LAN_SIGNUP_120."</span></h2></div>";
|
||||
$SIGNUP_WRAPPER['SIGNUP_XUP'] = "<div class='center' style='display:block;padding:10px'>{---}
|
||||
<h2 class='signup-divider'><span>" . LAN_SIGNUP_120 . "</span></h2></div>";
|
||||
|
||||
$sc_style['SIGNUP_PASSWORD1']['pre'] = "<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='password1'>".LAN_SIGNUP_83."{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_PASSWORD1']['post'] = "</td>
|
||||
$SIGNUP_WRAPPER['SIGNUP_PASSWORD1'] = "<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='password1'>" . LAN_SIGNUP_83 . "{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_PASSWORD2']['pre'] = "<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='password2'>".LAN_SIGNUP_84."{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_PASSWORD2']['post'] = "</td>
|
||||
$SIGNUP_WRAPPER['SIGNUP_PASSWORD2'] = "<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='password2'>" . LAN_SIGNUP_84 . "{SIGNUP_IS_MANDATORY=true}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
$sc_style['SIGNUP_USERCLASS_SUBSCRIBE']['pre'] = "<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label>".LAN_SIGNUP_113."{SIGNUP_IS_MANDATORY=subscribe}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>";
|
||||
$sc_style['SIGNUP_USERCLASS_SUBSCRIBE']['post'] = "</td>
|
||||
$SIGNUP_WRAPPER['SIGNUP_USERCLASS_SUBSCRIBE'] = "<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label>" . LAN_SIGNUP_113 . "{SIGNUP_IS_MANDATORY=subscribe}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>{---}</td>
|
||||
</tr>";
|
||||
|
||||
|
||||
if(!isset($COPPA_TEMPLATE))
|
||||
{
|
||||
$COPPA_TEMPLATE =
|
||||
LAN_SIGNUP_77." <a target='_blank' href='http://www.ftc.gov/privacy/coppafaqs.shtm'>".LAN_SIGNUP_14."</a>. "
|
||||
.LAN_SIGNUP_15." ".e107::getParser()->emailObfuscate(SITEADMINEMAIL,LAN_SIGNUP_14)." ".LAN_SIGNUP_16."<br />
|
||||
<br />
|
||||
<div style='text-align:center'><b>".LAN_SIGNUP_17."</b>
|
||||
{SIGNUP_COPPA_FORM}
|
||||
</div>";
|
||||
}
|
||||
// Template v2.x spec.
|
||||
|
||||
if(!isset($COPPA_FAIL))
|
||||
{
|
||||
$COPPA_FAIL = "<div style='text-align:center'>".LAN_SIGNUP_9."</div>";
|
||||
}
|
||||
|
||||
//if(!defined($SIGNUP_TEXT))
|
||||
{
|
||||
//$SIGNUP_TEXT = $tp->parseTemplate("{SIGNUP_SIGNUP_TEXT}"); // .
|
||||
//LAN_SIGNUP_80." <b>".LAN_SIGNUP_29."</b><br /><br />".
|
||||
//LAN_SIGNUP_30."<br />".
|
||||
//LAN_SIGNUP_85;
|
||||
}
|
||||
|
||||
if(!isset($SIGNUP_BEGIN))
|
||||
{
|
||||
$SIGNUP_BEGIN = "
|
||||
$SIGNUP_TEMPLATE['start'] = "
|
||||
{SIGNUP_FORM_OPEN} {SIGNUP_ADMINOPTIONS} {SIGNUP_SIGNUP_TEXT}";
|
||||
}
|
||||
|
||||
if(!isset($SIGNUP_BODY))
|
||||
{
|
||||
$SIGNUP_BODY = "
|
||||
|
||||
$SIGNUP_TEMPLATE['body'] = "
|
||||
{SIGNUP_XUP}
|
||||
<div id='default'>
|
||||
{SIGNUP_XUP_ACTION}
|
||||
<table class='table fborder' style='".USER_WIDTH."'>
|
||||
<table class='table fborder' >
|
||||
{SIGNUP_DISPLAYNAME}
|
||||
{SIGNUP_LOGINNAME}
|
||||
{SIGNUP_REALNAME}
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='email'>".LAN_USER_60."{SIGNUP_IS_MANDATORY=email}</label></td>
|
||||
<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='email'>" . LAN_USER_60 . "{SIGNUP_IS_MANDATORY=email}</label></td>
|
||||
<td class='forumheader3' style='width:70%'>
|
||||
{SIGNUP_EMAIL}
|
||||
</td>
|
||||
@@ -194,40 +126,41 @@ if(!isset($SIGNUP_BODY))
|
||||
{SIGNUP_GDPR_INFO}
|
||||
<tr style='vertical-align:top'>
|
||||
<td class='forumheader' colspan='2' style='text-align:center'>
|
||||
<input class='button btn btn-primary' type='submit' name='register' value=\"".LAN_SIGNUP_79."\" />
|
||||
<input class='button btn btn-primary' type='submit' name='register' value=\"{LAN=LAN_SIGNUP_79}\" />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{SIGNUP_FORM_CLOSE}";
|
||||
}
|
||||
|
||||
if(!isset($SIGNUP_EXTENDED_CAT))
|
||||
{
|
||||
$SIGNUP_EXTENDED_CAT = "
|
||||
|
||||
$SIGNUP_TEMPLATE['end'] = '';
|
||||
|
||||
|
||||
$SIGNUP_TEMPLATE['coppa'] = "{SIGNUP_COPPA_TEXT}<br /><br />
|
||||
<div style='text-align:center'><b>{LAN=LAN_SIGNUP_17}</b>
|
||||
{SIGNUP_COPPA_FORM}
|
||||
</div>";
|
||||
|
||||
$SIGNUP_TEMPLATE['coppa-fail'] = "<div class='alert alert-danger alert-block' style='text-align:center'>{LAN=LAN_SIGNUP_9}</div>";
|
||||
|
||||
|
||||
$SIGNUP_TEMPLATE['extended-category'] = "
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader'>
|
||||
{EXTENDED_CAT_TEXT}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if(!isset($SIGNUP_END))
|
||||
{
|
||||
$SIGNUP_END = '';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// v2.x to-do
|
||||
|
||||
$SIGNUP_TEMPLATE = array();
|
||||
$SIGNUP_TEMPLATE['start'] = $SIGNUP_BEGIN;
|
||||
$SIGNUP_TEMPLATE['end'] = $SIGNUP_END;
|
||||
$SIGNUP_TEMPLATE['body'] = $SIGNUP_BODY;
|
||||
$SIGNUP_TEMPLATE['extended-user-fields'] = $SIGNUP_EXTENDED_USER_FIELDS;
|
||||
$SIGNUP_TEMPLATE['coppa'] = '';
|
||||
$SIGNUP_TEMPLATE['coppa-fail'] = '';
|
||||
|
||||
$SIGNUP_TEMPLATE['extended-user-fields'] = "
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
<label>{EXTENDED_USER_FIELD_TEXT}
|
||||
{EXTENDED_USER_FIELD_REQUIRED}</label>
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
{EXTENDED_USER_FIELD_EDIT}
|
||||
</td>
|
||||
</tr>";
|
Reference in New Issue
Block a user