mirror of
https://github.com/e107inc/e107.git
synced 2025-02-06 06:59:07 +01:00
Fixed readablity of code, fixed typo LAN_SIbGNUP_85 to LAN_SIGNUP_85, added $SIGNUP_TEXT to $SIGNUP_BEGIN, removed a redundant tr-tag from $SIGNUP_BODY.
This commit is contained in:
parent
9d7d4a6f15
commit
a081bf9cbc
@ -9,100 +9,93 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_themes/templates/signup_template.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_themes/templates/signup_template.php,v $
|
||||||
* $Revision$
|
* $Revision: 12837 $
|
||||||
* $Date$
|
* $Date: 2012-06-19 11:08:41 +0200 (di, 19 jun 2012) $
|
||||||
* $Author$
|
* $Author: e107coders $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
if (!defined("USER_WIDTH")){ define("USER_WIDTH", "width:100%"); }
|
if (!defined("USER_WIDTH")){ define("USER_WIDTH", "width:100%"); }
|
||||||
|
|
||||||
|
|
||||||
define("REQUIRED_FIELD_MARKER", "<span class='required'> *</span>");
|
define("REQUIRED_FIELD_MARKER", "<span class='required'> *</span>");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_DISPLAYNAME']['pre'] = "
|
$sc_style['SIGNUP_DISPLAYNAME']['pre'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap' >".LAN_SIGNUP_89."<span class='required'> *</span><br /><span class='smalltext'>".LAN_SIGNUP_90."</span></td>
|
<td class='forumheader3' style='width:30%;white-space:nowrap' >"
|
||||||
<td class='forumheader3' style='width:70%'>
|
.LAN_SIGNUP_89."<span class='required'> *</span><br /><span class='smalltext'>".LAN_SIGNUP_90."</span>
|
||||||
";
|
</td>
|
||||||
|
<td class='forumheader3' style='width:70%'>";
|
||||||
$sc_style['SIGNUP_DISPLAYNAME']['post'] = "
|
$sc_style['SIGNUP_DISPLAYNAME']['post'] = "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_REALNAME']['pre'] = "
|
$sc_style['SIGNUP_REALNAME']['pre'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_91."".req($pref['signup_option_realname'])."</td>
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>"
|
||||||
<td class='forumheader3' style='width:70%' >
|
.LAN_SIGNUP_91."".req($pref['signup_option_realname'])."
|
||||||
";
|
</td>
|
||||||
|
<td class='forumheader3' style='width:70%' >";
|
||||||
$sc_style['SIGNUP_REALNAME']['post'] = "
|
$sc_style['SIGNUP_REALNAME']['post'] = "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_IS_MANDATORY']['pre'] = "<span class='required'>";
|
$sc_style['SIGNUP_IS_MANDATORY']['pre'] = "<span class='required'>";
|
||||||
$sc_style['SIGNUP_IS_MANDATORY']['post'] = "</span>";
|
$sc_style['SIGNUP_IS_MANDATORY']['post'] = "</span>";
|
||||||
|
|
||||||
|
|
||||||
if(!defined($USERCLASS_SUBSCRIBE_START))
|
if(!defined($USERCLASS_SUBSCRIBE_START))
|
||||||
{
|
{
|
||||||
$USERCLASS_SUBSCRIBE_START = "
|
$USERCLASS_SUBSCRIBE_START = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%;vertical-align:top'>".LAN_USER_76." ".req($pref['signup_option_class'])."
|
<td class='forumheader3' style='width:30%;vertical-align:top'>"
|
||||||
<br /><span class='smalltext'>".LAN_USER_73."</span></td>
|
.LAN_USER_76." ".req($pref['signup_option_class'])."<br />
|
||||||
<td class='forumheader3' style='width:70%;margin-left:0px'>
|
<span class='smalltext'>".LAN_USER_73."</span>
|
||||||
<table style='".USER_WIDTH."'>
|
</td>
|
||||||
";
|
<td class='forumheader3' style='width:70%;margin-left:0px'>
|
||||||
|
<table style='".USER_WIDTH."'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined($USERCLASS_SUBSCRIBE_ROW))
|
if(!defined($USERCLASS_SUBSCRIBE_ROW))
|
||||||
{
|
{
|
||||||
$USERCLASS_SUBSCRIBE_ROW = "
|
$USERCLASS_SUBSCRIBE_ROW = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='defaulttext' style='width:10%;vertical-align:top'>
|
<td class='defaulttext' style='width:10%;vertical-align:top'>
|
||||||
<div {USERCLASS_INDENT}>
|
<div {USERCLASS_INDENT}>
|
||||||
<input type='checkbox' name='class[]' value='{USERCLASS_ID}' {USERCLASS_CHECKED} />
|
<input type='checkbox' name='class[]' value='{USERCLASS_ID}' {USERCLASS_CHECKED} />
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class='defaulttext' style='text-align:left;margin-left:0px;width:90%;padding-top:3px;vertical-align:top'>{USERCLASS_NAME}<br />
|
<td class='defaulttext' style='text-align:left;margin-left:0px;width:90%;padding-top:3px;vertical-align:top'>
|
||||||
<span class='smalltext'>{USERCLASS_DESCRIPTION}</span>
|
{USERCLASS_NAME}<br />
|
||||||
</td>
|
<span class='smalltext'>{USERCLASS_DESCRIPTION}</span>
|
||||||
</tr>
|
</td>
|
||||||
";
|
</tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined($USERCLASS_SUBSCRIBE_END))
|
if(!defined($USERCLASS_SUBSCRIBE_END))
|
||||||
{
|
{
|
||||||
$USERCLASS_SUBSCRIBE_END = "
|
$USERCLASS_SUBSCRIBE_END = "
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!defined($SIGNUP_PASSWORD_LEN))
|
if(!defined($SIGNUP_PASSWORD_LEN))
|
||||||
{
|
{
|
||||||
$SIGNUP_PASSWORD_LEN = "<span class='smalltext'> (".LAN_SIGNUP_1." {$pref['signup_pass_len']} ".LAN_SIGNUP_2.")</span>";
|
$SIGNUP_PASSWORD_LEN = "
|
||||||
|
<span class='smalltext'> (".LAN_SIGNUP_1." {$pref['signup_pass_len']} ".LAN_SIGNUP_2.")</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(!defined($SIGNUP_EXTENDED_USER_FIELDS))
|
if(!defined($SIGNUP_EXTENDED_USER_FIELDS))
|
||||||
{
|
{
|
||||||
$SIGNUP_EXTENDED_USER_FIELDS = "
|
$SIGNUP_EXTENDED_USER_FIELDS = "
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:40%' class='forumheader3'>
|
<td style='width:40%' class='forumheader3'>
|
||||||
{EXTENDED_USER_FIELD_TEXT}
|
{EXTENDED_USER_FIELD_TEXT}
|
||||||
{EXTENDED_USER_FIELD_REQUIRED}
|
{EXTENDED_USER_FIELD_REQUIRED}
|
||||||
</td>
|
</td>
|
||||||
<td style='width:60%' class='forumheader3'>
|
<td style='width:60%' class='forumheader3'>
|
||||||
{EXTENDED_USER_FIELD_EDIT}
|
{EXTENDED_USER_FIELD_EDIT}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined($EXTENDED_USER_FIELD_REQUIRED))
|
if(!defined($EXTENDED_USER_FIELD_REQUIRED))
|
||||||
@ -124,171 +117,147 @@ $SIGNUP_SIGNATURE_END = "
|
|||||||
";
|
";
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$sc_style['SIGNUP_SIGNATURE']['pre'] = "
|
||||||
$sc_style['SIGNUP_SIGNATURE']['pre'] = "<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' >".LAN_SIGNUP_93." ".req($pref['signup_option_signature'])."</td>
|
<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' >".LAN_SIGNUP_93." ".req($pref['signup_option_signature'])."</td>
|
||||||
<td class='forumheader3' style='width:70%' >";
|
<td class='forumheader3' style='width:70%'>";
|
||||||
|
|
||||||
$sc_style['SIGNUP_SIGNATURE']['post'] = "
|
$sc_style['SIGNUP_SIGNATURE']['post'] = "
|
||||||
</td></tr>";
|
</td>
|
||||||
|
</tr>";
|
||||||
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_IMAGES']['pre'] = "
|
$sc_style['SIGNUP_IMAGES']['pre'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' >".LAN_SIGNUP_94.req($pref['signup_option_image'])."</td>
|
<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' >".LAN_SIGNUP_94.req($pref['signup_option_image'])."</td>
|
||||||
<td class='forumheader3' style='width:70%;vertical-align:top' >
|
<td class='forumheader3' style='width:70%;vertical-align:top'>";
|
||||||
";
|
|
||||||
$sc_style['SIGNUP_IMAGES']['post'] = "
|
$sc_style['SIGNUP_IMAGES']['post'] = "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_IMAGECODE']['pre'] = "
|
$sc_style['SIGNUP_IMAGECODE']['pre'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%'>".e107::getSecureImg()->renderLabel().req(2)."</td>
|
<td class='forumheader3' style='width:30%'>".e107::getSecureImg()->renderLabel().req(2)."</td>
|
||||||
<td class='forumheader3' style='width:70%'>
|
<td class='forumheader3' style='width:70%'>";
|
||||||
";
|
|
||||||
$sc_style['SIGNUP_IMAGECODE']['post'] = "
|
$sc_style['SIGNUP_IMAGECODE']['post'] = "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_LOGINNAME']['pre'] = "
|
$sc_style['SIGNUP_LOGINNAME']['pre'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%'>".LAN_SIGNUP_81.req(2)."</td>
|
<td class='forumheader3' style='width:30%'>".LAN_SIGNUP_81.req(2)."</td>
|
||||||
<td class='forumheader3' style='width:70%'>
|
<td class='forumheader3' style='width:70%'>";
|
||||||
";
|
|
||||||
$sc_style['SIGNUP_LOGINNAME']['post'] = "
|
$sc_style['SIGNUP_LOGINNAME']['post'] = "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_HIDE_EMAIL']['pre'] = "
|
$sc_style['SIGNUP_HIDE_EMAIL']['pre'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_USER_83."</td>
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_USER_83."</td>
|
||||||
<td class='forumheader3' style='width:70%'>
|
<td class='forumheader3' style='width:70%'>";
|
||||||
";
|
|
||||||
$sc_style['SIGNUP_HIDE_EMAIL']['post'] = "
|
$sc_style['SIGNUP_HIDE_EMAIL']['post'] = "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_EMAIL_CONFIRM']['pre'] = "
|
$sc_style['SIGNUP_EMAIL_CONFIRM']['pre'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_39."</td>
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_39."</td>
|
||||||
<td class='forumheader3' style='width:70%'>
|
<td class='forumheader3' style='width:70%'>";
|
||||||
";
|
|
||||||
$sc_style['SIGNUP_EMAIL_CONFIRM']['post'] = "
|
$sc_style['SIGNUP_EMAIL_CONFIRM']['post'] = "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
|
|
||||||
$sc_style['SIGNUP_XUP']['pre'] = "<div class='center' style='display:block;padding:10px'>";
|
$sc_style['SIGNUP_XUP']['pre'] = "<div class='center' style='display:block;padding:10px'>";
|
||||||
$sc_style['SIGNUP_XUP']['post'] = "<h2 class='divider'><span>OR</span></h2></div>";
|
$sc_style['SIGNUP_XUP']['post'] = "<h2 class='divider'><span>OR</span></h2></div>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!defined($COPPA_TEMPLATE))
|
if(!defined($COPPA_TEMPLATE))
|
||||||
{
|
{
|
||||||
$COPPA_TEMPLATE = LAN_SIGNUP_77." <a href='http://www.ftc.gov/privacy/coppafaqs.shtm'>".LAN_SIGNUP_14."</a>. ".LAN_SIGNUP_15." ".$tp->emailObfuscate(SITEADMINEMAIL,LAN_SIGNUP_14)." ".LAN_SIGNUP_16."
|
$COPPA_TEMPLATE =
|
||||||
<br />
|
LAN_SIGNUP_77." <a href='http://www.ftc.gov/privacy/coppafaqs.shtm'>".LAN_SIGNUP_14."</a>. "
|
||||||
<br />
|
.LAN_SIGNUP_15." ".$tp->emailObfuscate(SITEADMINEMAIL,LAN_SIGNUP_14)." ".LAN_SIGNUP_16."<br />
|
||||||
<div style='text-align:center'><b>".LAN_SIGNUP_17."</b>
|
<br />
|
||||||
{SIGNUP_COPPA_FORM}
|
<div style='text-align:center'><b>".LAN_SIGNUP_17."</b>
|
||||||
</div>
|
{SIGNUP_COPPA_FORM}
|
||||||
";
|
</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined($COPPA_FAIL))
|
if(!defined($COPPA_FAIL))
|
||||||
{
|
{
|
||||||
$COPPA_FAIL = "<div style='text-align:center'>".LAN_SIGNUP_9."</div>";
|
$COPPA_FAIL = "<div style='text-align:center'>".LAN_SIGNUP_9."</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined($SIGNUP_TEXT))
|
if(!defined($SIGNUP_TEXT))
|
||||||
{
|
{
|
||||||
$SIGNUP_TEXT =
|
$SIGNUP_TEXT =
|
||||||
LAN_SIGNUP_80." <b>".LAN_SIGNUP_29."</b><br /><br />".LAN_SIGNUP_30."<br />".LAN_SIbGNUP_85."
|
"{SIGNUP_SIGNUP_TEXT}<br />".
|
||||||
";
|
LAN_SIGNUP_80." <b>".LAN_SIGNUP_29."</b><br /><br />".
|
||||||
|
LAN_SIGNUP_30."<br />".
|
||||||
|
LAN_SIGNUP_85;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(!defined($SIGNUP_BEGIN))
|
if(!defined($SIGNUP_BEGIN))
|
||||||
{
|
{
|
||||||
$SIGNUP_BEGIN = "{SIGNUP_FORM_OPEN}";
|
$SIGNUP_BEGIN = "
|
||||||
|
{SIGNUP_FORM_OPEN}".$SIGNUP_TEXT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!defined($SIGNUP_BODY))
|
if(!defined($SIGNUP_BODY))
|
||||||
{
|
{
|
||||||
|
$SIGNUP_BODY = "
|
||||||
$SIGNUP_BODY = "
|
{SIGNUP_XUP}
|
||||||
{SIGNUP_XUP}
|
<div id='default'>
|
||||||
<div id='default'>
|
{SIGNUP_XUP_ACTION}
|
||||||
{SIGNUP_XUP_ACTION}
|
<table class='fborder' style='".USER_WIDTH."'>
|
||||||
<table class='fborder' style='".USER_WIDTH."'>
|
{SIGNUP_DISPLAYNAME}
|
||||||
{SIGNUP_DISPLAYNAME}
|
{SIGNUP_LOGINNAME}
|
||||||
|
{SIGNUP_REALNAME}
|
||||||
<tr>
|
<tr>
|
||||||
{SIGNUP_LOGINNAME}
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_USER_60."{SIGNUP_IS_MANDATORY=email}</td>
|
||||||
{SIGNUP_REALNAME}
|
<td class='forumheader3' style='width:70%'>
|
||||||
<tr>
|
{SIGNUP_EMAIL}
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_USER_60."{SIGNUP_IS_MANDATORY=email}</td>
|
</td>
|
||||||
<td class='forumheader3' style='width:70%'>
|
</tr>
|
||||||
{SIGNUP_EMAIL}
|
{SIGNUP_EMAIL_CONFIRM}
|
||||||
</td>
|
<tr>
|
||||||
</tr>
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_83."<span class='required'> *</span></td>
|
||||||
{SIGNUP_EMAIL_CONFIRM}
|
<td class='forumheader3' style='width:70%'>
|
||||||
<tr>
|
{SIGNUP_PASSWORD1}
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_83."<span class='required'> *</span></td>
|
</td>
|
||||||
<td class='forumheader3' style='width:70%'>
|
</tr>
|
||||||
{SIGNUP_PASSWORD1}
|
<tr>
|
||||||
</td>
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_84."<span class='required'> *</span></td>
|
||||||
</tr>
|
<td class='forumheader3' style='width:70%'>
|
||||||
<tr>
|
{SIGNUP_PASSWORD2}
|
||||||
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_84."<span class='required'> *</span></td>
|
</td>
|
||||||
<td class='forumheader3' style='width:70%'>
|
</tr>
|
||||||
{SIGNUP_PASSWORD2}
|
{SIGNUP_HIDE_EMAIL}
|
||||||
</td>
|
{SIGNUP_USERCLASS_SUBSCRIBE}
|
||||||
</tr>
|
{SIGNUP_EXTENDED_USER_FIELDS}
|
||||||
{SIGNUP_HIDE_EMAIL}
|
{SIGNUP_SIGNATURE}
|
||||||
{SIGNUP_USERCLASS_SUBSCRIBE}
|
{SIGNUP_IMAGES}
|
||||||
{SIGNUP_EXTENDED_USER_FIELDS}
|
{SIGNUP_IMAGECODE}
|
||||||
{SIGNUP_SIGNATURE}
|
<tr style='vertical-align:top'>
|
||||||
{SIGNUP_IMAGES}
|
<td class='forumheader' colspan='2' style='text-align:center'>
|
||||||
{SIGNUP_IMAGECODE}
|
<input class='button' type='submit' name='register' value=\"".LAN_SIGNUP_79."\" />
|
||||||
<tr style='vertical-align:top'>
|
<br />
|
||||||
<td class='forumheader' colspan='2' style='text-align:center'>
|
</td>
|
||||||
<input class='button' type='submit' name='register' value=\"".LAN_SIGNUP_79."\" />
|
</tr>
|
||||||
<br />
|
</table>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
{SIGNUP_FORM_CLOSE}";
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{SIGNUP_FORM_CLOSE}
|
|
||||||
";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(!defined($SIGNUP_EXTENDED_CAT))
|
if(!defined($SIGNUP_EXTENDED_CAT))
|
||||||
{
|
{
|
||||||
$SIGNUP_EXTENDED_CAT = "
|
$SIGNUP_EXTENDED_CAT = "
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan='2' class='forumheader'>
|
<td colspan='2' class='forumheader'>
|
||||||
{EXTENDED_CAT_TEXT}
|
{EXTENDED_CAT_TEXT}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(!defined($SIGNUP_END))
|
if(!defined($SIGNUP_END))
|
||||||
{
|
{
|
||||||
$SIGNUP_END = "
|
$SIGNUP_END = '';
|
||||||
";
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user