1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00
php-e107/e107_core/templates/usersettings_template.php

323 lines
9.0 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
2009-11-12 15:01:36 +00:00
* e107 website system
*
2009-11-18 01:06:08 +00:00
* Copyright (C) 2008-2009 e107 Inc (e107.org)
2009-11-12 15:01:36 +00:00
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*
*
* $Source: /cvs_backup/e107_0.8/e107_themes/templates/usersettings_template.php,v $
2010-02-10 18:18:01 +00:00
* $Revision$
* $Date$
* $Author$
2009-11-12 15:01:36 +00:00
*/
2006-12-02 04:36:16 +00:00
if (!defined('e107_INIT')) { exit; }
if (!defined("USER_WIDTH"))
{
$uw = (deftrue('BOOTSTRAP')) ? "" : "width:97%";
define("USER_WIDTH", $uw);
}
2006-12-02 04:36:16 +00:00
// global $usersettings_shortcodes, $pref;
2006-12-02 04:36:16 +00:00
$sc_style['CUSTOMTITLE']['pre'] = "<tr>
<td style='width:40%' class='forumheader3'>".LAN_USER_04.":</td>
<td style='width:60%' class='forumheader2'>\n";
$sc_style['CUSTOMTITLE']['post'] = "</td></tr>\n";
2006-12-02 04:36:16 +00:00
$sc_style['PASSWORD1']['pre'] = "<tr>
<td style='width:40%' class='forumheader3'>".LAN_USET_24."</td>
<td style='width:60%' class='forumheader2'>\n";
$sc_style['PASSWORD1']['post'] = "</td></tr>\n";
2006-12-02 04:36:16 +00:00
$sc_style['PASSWORD2']['pre'] = "<tr>
<td style='width:40%' class='forumheader3'>".LAN_USET_25."</td>
<td style='width:60%' class='forumheader2'>\n";
$sc_style['PASSWORD2']['post'] = "</td></tr>\n";
$sc_style['PASSWORD_LEN']['pre'] = "<br /><span class='smalltext'> (".LAN_USER_78." ";
$sc_style['PASSWORD_LEN']['post'] = " ".LAN_USER_79.")</span>";
$sc_style['USERCLASSES']['pre'] = "<tr>
<td style='width:40%;vertical-align:top' class='forumheader3'>".LAN_USER_76.":".req($pref['signup_option_class'])."
<br /><span class='smalltext'>".LAN_USER_73."</span>
</td>
<td style='width:60%' class='forumheader2'>";
$sc_style['USERCLASSES']['post'] = "</td></tr>\n";
$sc_style['AVATAR_UPLOAD']['pre'] = "<tr>
<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_USET_26."<br /></td>
<td style='width:60%' class='forumheader2'>\n";
$sc_style['AVATAR_UPLOAD']['post'] = "</td></tr>\n";
$sc_style['PHOTO_UPLOAD']['pre'] = "<tr>
<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_USER_06."</td>
<td style='width:60%' class='forumheader2'><span class='smalltext'>\n";
$sc_style['PHOTO_UPLOAD']['post'] = "</span></td></tr>";
$sc_style['USERNAME']['pre'] = "<tr>
<td style='width:40%' class='forumheader3'>".LAN_USER_01."</td>
<td style='width:60%' class='forumheader2'>\n";
$sc_style['USERNAME']['post'] = "</td</tr>";
$sc_style['LOGINNAME']['pre'] = "<tr>
<td style='width:40%' class='forumheader3'>".LAN_USER_81."</td>
<td style='width:60%' class='forumheader2'>\n";
$sc_style['LOGINNAME']['post'] = "</td></tr>\n";
$sc_style['SIGNATURE']['pre'] = "<tr><td style='width:40%;vertical-align:top' class='forumheader3'>".LAN_USER_71.req($pref['signup_option_signature'])."</td>
<td style='width:60%' class='forumheader2'>";
2012-06-19 12:53:48 +00:00
//$sc_style['SIGNATURE']['pre'] = "<tr><td style='width:40%;vertical-align:top' class='forumheader3'></td>
// <td style='width:60%' class='forumheader2'>";
// $sc_style['SIGNATURE_HELP']['pre'] = "</td></tr>"; \
$sc_style['SIGNATURE_HELP']['post'] = "</td></tr>";
$USER_EXTENDED_CAT = "<tr><td colspan='2' class='forumheader'>{CATNAME}</td></tr>";
$USEREXTENDED_FIELD = "<tr>
<td style='width:40%' class='forumheader3'>
{FIELDNAME}
</td>
<td style='width:60%' class='forumheader3'>
{FIELDVAL} {HIDEFIELD}
</td>
</tr>
";
$REQUIRED_FIELD = "{FIELDNAME}<span class='required'> *</span>";
2006-12-02 04:36:16 +00:00
2011-05-03 22:39:51 +00:00
// After Saving has occurred.
$USERSETTINGS_MESSAGE = "{MESSAGE}";
$USERSETTINGS_MESSAGE_CAPTION = LAN_OK;
$USERSETTINGS_EDIT_CAPTION = LAN_USET_39; // 'Update User Settings'
2011-05-03 22:39:51 +00:00
2006-12-02 04:36:16 +00:00
$USERSETTINGS_EDIT = "
<div style='text-align:center'>
2012-12-22 00:59:56 -08:00
<table style='".USER_WIDTH."' class='table fborder adminform'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
2006-12-02 04:36:16 +00:00
<tr>
<td colspan='2' class='forumheader'>".LAN_USET_31."</td>
2006-12-02 04:36:16 +00:00
</tr>
{USERNAME}
{LOGINNAME}
2006-12-02 04:36:16 +00:00
<tr>
<td style='width:40%' class='forumheader3'>".LAN_USER_60.req(!$pref['disable_emailcheck'])."</td>
2006-12-02 04:36:16 +00:00
<td style='width:60%' class='forumheader2'>
{EMAIL}
2006-12-02 04:36:16 +00:00
</td>
</tr>
<tr>
<td style='width:40%' class='forumheader3'>".LAN_USER_63.req($pref['signup_option_realname'])."</td>
2006-12-02 04:36:16 +00:00
<td style='width:60%' class='forumheader2'>
{REALNAME}
</td>
</tr>
{CUSTOMTITLE}
{PASSWORD1}
{PASSWORD_LEN}
{PASSWORD2}
<tr>
<td style='width:40%' class='forumheader3'>".LAN_USER_83."</td>
2006-12-02 04:36:16 +00:00
<td style='width:60%' class='forumheader2'><span class='defaulttext'>
{HIDEEMAIL=radio}
</span>
</td>
</tr>
2006-12-02 04:36:16 +00:00
<tr>
<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_USER_07.req($pref['signup_option_image'])."</td>
2006-12-02 04:36:16 +00:00
<td style='width:60%' class='forumheader2'>
{AVATAR_REMOTE}
</td>
</tr>
{AVATAR_UPLOAD}
{PHOTO_UPLOAD}
{USERCLASSES}
{USEREXTENDED_ALL}
{SIGNATURE=cols=58&rows=4}
{SIGNATURE_HELP}
2006-12-02 04:36:16 +00:00
</tr>
</table>
<div>
{UPDATESETTINGSBUTTON}
</div>
2006-12-02 04:36:16 +00:00
</div>
";
2013-12-21 21:54:23 -08:00
// e107 v2. bootstrap3 compatible template.
2013-12-21 21:54:23 -08:00
$USERSETTINGS_WRAPPER['edit']['USERNAME'] = "<div class='form-group'>
<label for='username' class='col-sm-3 control-label'>".LAN_USER_01."</label>
<div class='col-sm-9'>{---}</div>
</div>
";
$USERSETTINGS_WRAPPER['edit']['LOGINNAME'] = "<div class='form-group'>
<label for='loginname' class='col-sm-3 control-label'>".LAN_USER_81."</label>
<div class='col-sm-9'>{---}</div>
</div>
";
$USERSETTINGS_WRAPPER['edit']['PASSWORD1'] = "<div class='form-group'>
<label for='password1' class='col-sm-3 control-label'>".LAN_USET_24."</label>
<div class='col-sm-9'>{---}</div>
</div>
";
$USERSETTINGS_WRAPPER['edit']['PASSWORD2'] = "<div class='form-group'>
<label for='password2' class='col-sm-3 control-label'>".LAN_USET_25."</label>
<div class='col-sm-9'>{---}</div>
</div>
";
$USERSETTINGS_WRAPPER['edit']['CUSTOMTITLE'] = "<div class='form-group'>
<label for='customtitle' class='col-sm-3 control-label'>".LAN_USER_04."</label>
<div class='col-sm-9'>{---}</div>
</div>
";
$USERSETTINGS_WRAPPER['edit']['USERCLASSES'] = "<div class='form-group'>
2016-01-30 18:39:01 -08:00
<label class='col-sm-3 control-label'>".LAN_USER_76.":".req($pref['signup_option_class'])."</label>
<div class='col-sm-9'>{---}</div>
2013-12-21 21:54:23 -08:00
</div>
";
$USERSETTINGS_WRAPPER['edit']['AVATAR_UPLOAD'] = "<div class='form-group'>
<label for='avatar' class='col-sm-3 control-label'>".LAN_USET_26."</label>
2013-12-21 21:54:23 -08:00
<div class='col-sm-9'>{---}</div>
</div>
";
$USERSETTINGS_WRAPPER['edit']['PHOTO_UPLOAD'] = "<div class='form-group'>
<label for='photo' class='col-sm-3 control-label'>".LAN_USER_06."</label>
2013-12-21 21:54:23 -08:00
<div class='col-sm-9'>{---}</div>
</div>
";
$USERSETTINGS_WRAPPER['edit']['SIGNATURE'] = "<div class='form-group'>
<label for='signature' class='col-sm-3 control-label'>".LAN_USER_71.req($pref['signup_option_signature'])."</label>
<div class='col-sm-9'>{---}</div>
</div>
";
// $USERSETTINGS_WRAPPER['edit']['USEREXTENDED_ALL'] = "<div class='form-group'>{---}</div>";
2013-12-21 21:54:23 -08:00
// Bootstrap 3 only.
2013-12-21 21:54:23 -08:00
$USERSETTINGS_TEMPLATE['edit'] = "
<div>
2013-12-21 21:54:23 -08:00
{USERNAME}
2013-12-21 21:54:23 -08:00
{LOGINNAME}
2013-12-21 21:54:23 -08:00
<div class='form-group'>
2016-01-30 18:39:01 -08:00
<label for='email' class='col-sm-3 control-label'>".LAN_USER_60.req(!$pref['disable_emailcheck'])."</label>
2013-12-21 21:54:23 -08:00
<div class='col-sm-9'>
{EMAIL}
</div>
</div>
<div class='form-group'>
2016-01-30 18:39:01 -08:00
<label for='realname' class='col-sm-3 control-label'>".LAN_USER_63.req($pref['signup_option_realname'])."</label>
2013-12-21 21:54:23 -08:00
<div class='col-sm-9'>
{REALNAME}
</div>
</div>
{CUSTOMTITLE}
{PASSWORD1}
2013-12-21 21:54:23 -08:00
{PASSWORD2}
<div class='form-group'>
2016-01-30 18:39:01 -08:00
<label for='hideemail' class='col-sm-3 control-label'>".LAN_USER_83."</label>
2013-12-21 21:54:23 -08:00
<div class='col-sm-9'>
{HIDEEMAIL=radio}
</div>
</div>
2013-12-21 21:54:23 -08:00
<div class='form-group'>
2016-01-30 18:39:01 -08:00
<label class='col-sm-3 control-label'>".LAN_USER_07.req($pref['signup_option_image'])."</label>
2013-12-21 21:54:23 -08:00
<div class='col-sm-9'>
{AVATAR_REMOTE}
</div>
</div>
{AVATAR_UPLOAD}
{PHOTO_UPLOAD}
2013-12-21 21:54:23 -08:00
{USERCLASSES}
{USEREXTENDED_ALL=tabs}
2013-12-21 21:54:23 -08:00
{SIGNATURE}
2013-12-21 21:54:23 -08:00
{SIGNATURE_HELP}
<div class='form-group'>
<div class='col-sm-offset-3 col-sm-9'>
{UPDATESETTINGSBUTTON}
</div>
</div>
</div>
2013-12-21 21:54:23 -08:00
";
$USERSETTINGS_TEMPLATE['extended-category'] = "<h3>{CATNAME}</h3>";
$USERSETTINGS_TEMPLATE['extended-field'] = "<div class='form-group'>
<label class='col-sm-3 control-label'>{FIELDNAME}</label>
<div class='col-sm-9'>
{FIELDVAL} {HIDEFIELD}
</div>
</div>
";
2013-12-21 21:54:23 -08:00
2006-12-02 04:36:16 +00:00
?>