2013-04-23 11:47:57 +00:00
|
|
|
<h1>{{$ptitle}}</h1>
|
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$nickname_block nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2019-11-02 23:12:16 +00:00
|
|
|
<form action="settings" id="settings-form" method="post" autocomplete="off" enctype="multipart/form-data" >
|
2013-04-23 11:47:57 +00:00
|
|
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
|
|
|
|
2014-09-07 14:24:40 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_pass}}</a></h3>
|
2014-09-07 08:26:38 +00:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 11:47:57 +00:00
|
|
|
{{include file="field_password.tpl" field=$password1}}
|
|
|
|
{{include file="field_password.tpl" field=$password2}}
|
|
|
|
{{include file="field_password.tpl" field=$password3}}
|
|
|
|
|
|
|
|
{{if $oid_enable}}
|
|
|
|
{{include file="field_input.tpl" field=$openid}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
|
2013-04-23 11:47:57 +00:00
|
|
|
</div>
|
2014-09-06 11:53:23 +00:00
|
|
|
</div>
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2014-09-07 14:24:40 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_basic}}</a></h3>
|
2014-09-07 08:26:38 +00:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$username}}
|
|
|
|
{{include file="field_input.tpl" field=$email}}
|
|
|
|
{{include file="field_password.tpl" field=$password4}}
|
|
|
|
{{include file="field_custom.tpl" field=$timezone}}
|
2015-11-08 13:23:49 +00:00
|
|
|
{{include file="field_select.tpl" field=$language}}
|
2013-04-23 11:47:57 +00:00
|
|
|
{{include file="field_input.tpl" field=$defloc}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$allowloc}}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
|
2013-04-23 11:47:57 +00:00
|
|
|
</div>
|
2014-09-06 11:53:23 +00:00
|
|
|
</div>
|
2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
|
2014-09-07 14:24:40 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_prv}}</a></h3>
|
2014-09-07 08:26:38 +00:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
<input type="hidden" name="visibility" value="{{$visibility}}" />
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$maxreq}}
|
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$profile_in_dir nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$profile_in_net_dir nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$hide_friends nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$hide_wall nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2020-03-02 07:57:23 +00:00
|
|
|
{{$unlisted nofilter}}
|
|
|
|
|
2020-03-08 13:16:59 +00:00
|
|
|
{{$accessiblephotos nofilter}}
|
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$blockwall nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$blocktags nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$unkmail nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$cntunkmail}}
|
|
|
|
|
2020-04-01 01:43:04 +00:00
|
|
|
{{$group_select nofilter}}
|
2015-01-20 18:19:58 +00:00
|
|
|
|
2020-04-01 01:43:04 +00:00
|
|
|
<h3>{{$permissions}}</h3>
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2020-04-01 01:43:04 +00:00
|
|
|
{{$aclselect nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
|
2013-04-23 11:47:57 +00:00
|
|
|
</div>
|
2014-09-06 11:53:23 +00:00
|
|
|
</div>
|
|
|
|
|
2020-02-16 20:44:55 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$expire.label}}</a></h3>
|
|
|
|
<div class="settings-content-block">
|
|
|
|
<div id="settings-expiry">
|
|
|
|
{{include file="field_input.tpl" field=$expire.days}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.items}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.notes}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.starred}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.network_only}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2020-02-16 20:44:55 +00:00
|
|
|
<div class="settings-submit-wrapper" >
|
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2014-09-07 14:24:40 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_not}}</a></h3>
|
2014-09-07 08:26:38 +00:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 11:47:57 +00:00
|
|
|
<div id="settings-notifications">
|
|
|
|
|
2020-01-24 17:56:34 +00:00
|
|
|
<div id="settings-notification-desc">{{$lbl_not}}</div>
|
2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
<div class="group">
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify1}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify2}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify3}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify4}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify5}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify6}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify7}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify8}}
|
|
|
|
</div>
|
|
|
|
|
2015-06-24 07:49:53 +00:00
|
|
|
{{include file="field_checkbox.tpl" field=$email_textonly}}
|
2017-11-04 12:08:12 +00:00
|
|
|
{{include file="field_checkbox.tpl" field=$detailed_notif}}
|
2015-06-24 07:49:53 +00:00
|
|
|
|
2020-02-05 08:08:32 +00:00
|
|
|
{{include file="field_checkbox.tpl" field=$desktop_notifications}}
|
2015-06-24 07:49:53 +00:00
|
|
|
<script>
|
|
|
|
(function(){
|
2020-02-06 02:38:22 +00:00
|
|
|
let $notificationField = $("#div_id_{{$desktop_notifications.0}}");
|
|
|
|
let $notificationCheckbox = $("#id_{{$desktop_notifications.0}}");
|
|
|
|
|
|
|
|
if (getNotificationPermission() === 'granted') {
|
|
|
|
$notificationCheckbox.prop('checked', true);
|
|
|
|
}
|
2015-06-24 07:49:53 +00:00
|
|
|
if (getNotificationPermission() === null) {
|
2020-02-06 02:38:22 +00:00
|
|
|
$notificationField.hide();
|
2015-06-24 07:49:53 +00:00
|
|
|
}
|
2015-11-08 13:23:49 +00:00
|
|
|
|
2020-02-06 02:38:22 +00:00
|
|
|
$notificationCheckbox.on('change', function(e) {
|
|
|
|
if (Notification.permission === 'granted') {
|
|
|
|
localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
|
|
|
|
} else if (Notification.permission === 'denied') {
|
|
|
|
localStorage.setItem('notification-permissions', 'denied');
|
|
|
|
|
|
|
|
$notificationCheckbox.prop('checked', false);
|
|
|
|
} else if (Notification.permission === 'default') {
|
|
|
|
Notification.requestPermission(function(choice) {
|
|
|
|
if (choice === 'granted') {
|
|
|
|
localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
|
|
|
|
} else {
|
|
|
|
localStorage.setItem('notification-permissions', 'denied');
|
|
|
|
$notificationCheckbox.prop('checked', false);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
2015-06-24 07:49:53 +00:00
|
|
|
})();
|
|
|
|
</script>
|
2015-01-20 18:19:58 +00:00
|
|
|
|
2013-04-23 11:47:57 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
|
2013-04-23 11:47:57 +00:00
|
|
|
</div>
|
2014-09-06 11:53:23 +00:00
|
|
|
</div>
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2014-09-07 14:24:40 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_advn}}</a></h3>
|
2014-09-07 08:26:38 +00:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 11:47:57 +00:00
|
|
|
<div id="settings-pagetype-desc">{{$h_descadvn}}</div>
|
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$pagetype nofilter}}
|
2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
|
2013-04-23 11:47:57 +00:00
|
|
|
</div>
|
2014-09-06 11:53:23 +00:00
|
|
|
</div>
|
2013-04-23 11:47:57 +00:00
|
|
|
|
2019-11-02 23:12:16 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$importcontact}}</a></h3>
|
|
|
|
<div class="settings-content-block">
|
2019-11-03 16:31:01 +00:00
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="{{$importcontact_maxsize}}" />
|
2019-11-02 23:12:16 +00:00
|
|
|
<div id="settings-pagetype-desc">{{$importcontact_text}}</div>
|
|
|
|
<input type="file" name="importcontact-filename" />
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
|
|
|
<input type="submit" name="importcontact-submit" class="importcontact-submit" value="{{$importcontact_button}}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-09-07 14:24:40 +00:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$relocate}}</a></h3>
|
2014-09-07 08:26:38 +00:00
|
|
|
<div class="settings-content-block">
|
2013-11-13 10:57:11 +00:00
|
|
|
<div id="settings-pagetype-desc">{{$relocate_text}}</div>
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="submit" name="resend_relocate" class="settings-submit" value="{{$relocate_button}}" />
|
2013-11-13 10:57:11 +00:00
|
|
|
</div>
|
2014-09-06 11:53:23 +00:00
|
|
|
</div>
|