mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Bootstrap usersettings template added.
This commit is contained in:
@@ -177,5 +177,144 @@ $USERSETTINGS_EDIT = "
|
||||
</div>
|
||||
";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// e107 v2. bootstrap3 compatible.
|
||||
|
||||
$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'>
|
||||
<label for='userclasses' class='col-sm-3 control-label'>".LAN_USER_76.":".req($pref['signup_option_class'])."</label>
|
||||
<div class='col-sm-9'>{---}
|
||||
<br /><span class='smalltext'>".LAN_USER_73."</span>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$USERSETTINGS_WRAPPER['edit']['AVATAR_UPLOAD'] = "<div class='form-group'>
|
||||
<label for='customtitle' class='col-sm-3 control-label'>".LAN_USET_26."</label>
|
||||
<div class='col-sm-9'>{---}</div>
|
||||
</div>
|
||||
";
|
||||
$USERSETTINGS_WRAPPER['edit']['PHOTO_UPLOAD'] = "<div class='form-group'>
|
||||
<label for='customtitle' class='col-sm-3 control-label'>".LAN_USER_06."</label>
|
||||
<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_TEMPLATE['edit'] = "
|
||||
|
||||
<div>
|
||||
|
||||
{USERNAME}
|
||||
{LOGINNAME}
|
||||
|
||||
<h4>".LAN_USET_31."</h4>
|
||||
|
||||
<div class='form-group'>
|
||||
<label for='loginname' class='col-sm-3 control-label'>".LAN_USER_60.req(!$pref['disable_emailcheck'])."</label>
|
||||
<div class='col-sm-9'>
|
||||
{EMAIL}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='form-group'>
|
||||
<label for='loginname' class='col-sm-3 control-label'>".LAN_USER_63.req($pref['signup_option_realname'])."</label>
|
||||
<div class='col-sm-9'>
|
||||
{REALNAME}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{CUSTOMTITLE}
|
||||
|
||||
{PASSWORD1}
|
||||
{PASSWORD_LEN}
|
||||
{PASSWORD2}
|
||||
|
||||
|
||||
<div class='form-group'>
|
||||
<label for='loginname' class='col-sm-3 control-label'>".LAN_USER_83."</label>
|
||||
<div class='col-sm-9'>
|
||||
{HIDEEMAIL=radio}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='form-group'>
|
||||
<label for='loginname' class='col-sm-3 control-label'>".LAN_USER_07.req($pref['signup_option_image'])."</label>
|
||||
<div class='col-sm-9'>
|
||||
{AVATAR_REMOTE}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{AVATAR_UPLOAD}
|
||||
{PHOTO_UPLOAD}
|
||||
|
||||
{USERCLASSES}
|
||||
{USEREXTENDED_ALL}
|
||||
|
||||
|
||||
{SIGNATURE=cols=58&rows=4}
|
||||
{SIGNATURE_HELP}
|
||||
|
||||
<div class='form-group'>
|
||||
<div class='col-sm-offset-3 col-sm-9'>
|
||||
{UPDATESETTINGSBUTTON}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
@@ -58,10 +58,30 @@ $ue = new e107_user_extended;
|
||||
$userMethods = e107::getUserSession();
|
||||
|
||||
require_once (e_HANDLER.'ren_help.php');
|
||||
include_once (e107::coreTemplatePath('usersettings')); //correct way to load a core template.
|
||||
// include_once (e_CORE.'shortcodes/batch/usersettings_shortcodes.php');
|
||||
e107::scStyle($sc_style);
|
||||
$usersettings_shortcodes = e107::getScBatch('usersettings');
|
||||
|
||||
|
||||
if(deftrue('BOOTSTRAP')==3)
|
||||
{
|
||||
$template = e107::getCoreTemplate('usersettings','', true, true); // always merge
|
||||
|
||||
$USERSETTINGS_MESSAGE = "{MESSAGE}";
|
||||
$USERSETTINGS_MESSAGE_CAPTION = LAN_OK;
|
||||
$USERSETTINGS_EDIT_CAPTION = LAN_USET_39; // 'Update User Settings'
|
||||
$USERSETTINGS_EDIT = $template['edit'];
|
||||
$usersettings_shortcodes = e107::getScBatch('usersettings');
|
||||
|
||||
$usersettings_shortcodes->wrapper('usersettings/edit');
|
||||
}
|
||||
else
|
||||
{
|
||||
include_once (e107::coreTemplatePath('usersettings')); //correct way to load a core template.
|
||||
e107::scStyle($sc_style);
|
||||
$usersettings_shortcodes = e107::getScBatch('usersettings');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
e107::js('footer-inline',"
|
||||
@@ -781,7 +801,7 @@ if (vartrue($_POST))
|
||||
require_once (e_HANDLER."form_handler.php");
|
||||
$rs = new form;
|
||||
|
||||
$text = (e_QUERY ? $rs->form_open("post", e_SELF."?".e_QUERY, "dataform", "", " enctype='multipart/form-data'") : $rs->form_open("post", e_SELF, "dataform", "", " enctype='multipart/form-data'"));
|
||||
$text = (e_QUERY ? $rs->form_open("post", e_SELF."?".e_QUERY, "dataform", "", " class='form-horizontal' role='form' enctype='multipart/form-data'") : $rs->form_open("post", e_SELF, "dataform", "", " class='form-horizontal' role='form' enctype='multipart/form-data'"));
|
||||
|
||||
if (e_QUERY == "update")
|
||||
{
|
||||
|
Reference in New Issue
Block a user