3 $(".collapse").on('show.bs.collapse', function(e) {
4 var id = $(e.target).attr('id');
5 $("input[name=active_panel]").val(id);
7 var url = document.location.toString();
8 if ( url.match('#') ) {
9 var element = '#'+url.split('#')[1];
10 $(element).addClass('in');
11 window.scroll(0, $(element).offset().top - 120);
14 $("#cnftheme").click(function(){
15 document.location.assign("{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val());
20 <link rel="stylesheet" href="view/theme/frio/css/mod_admin.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
22 <div id="adminpage" class="adminpage generic-page-wrapper">
23 <h1>{{$title}} - {{$page}}</h1>
24 <div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true">
25 <form action="{{$baseurl}}/admin/site" method="post">
26 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
27 <input type="hidden" name="active_panel" value="">
28 {{* General Information *}}
30 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-general">
32 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-general-collapse" aria-expanded="false" aria-controls="admin-settings-general-collapse">
37 <div id="admin-settings-general-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-general">
38 <div class="panel-body">
39 {{include file="field_input.tpl" field=$sitename}}
40 {{include file="field_input.tpl" field=$sender_email}}
41 {{include file="field_input.tpl" field=$system_actor_name}}
42 {{include file="field_input.tpl" field=$shortcut_icon}}
43 {{include file="field_input.tpl" field=$touch_icon}}
44 {{include file="field_textarea.tpl" field=$additional_info}}
45 {{include file="field_select.tpl" field=$language}}
46 {{include file="field_select.tpl" field=$theme}}
47 {{include file="field_select.tpl" field=$theme_mobile}}
48 {{include file="field_select.tpl" field=$ssl_policy}}
49 {{if $ssl_policy.2 == 1}}{{include file="field_checkbox.tpl" field=$force_ssl}}{{/if}}
50 {{include file="field_checkbox.tpl" field=$show_help}}
51 {{include file="field_select.tpl" field=$singleuser}}
53 <div class="panel-footer">
54 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
64 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-registration">
66 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-registration-collapse" aria-expanded="false" aria-controls="admin-settings-registration-collapse">
71 <div id="admin-settings-registration-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-registration">
72 <div class="panel-body">
73 {{include file="field_textarea.tpl" field=$register_text}}
74 {{include file="field_select.tpl" field=$register_policy}}
75 {{include file="field_input.tpl" field=$daily_registrations}}
76 {{include file="field_checkbox.tpl" field=$enable_multi_reg}}
77 {{include file="field_checkbox.tpl" field=$enable_openid}}
78 {{include file="field_checkbox.tpl" field=$enable_regfullname}}
79 {{include file="field_checkbox.tpl" field=$register_notification}}
81 <div class="panel-footer">
82 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
94 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-upload">
96 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-upload-collapse" aria-expanded="false" aria-controls="admin-settings-upload-collapse">
101 <div id="admin-settings-upload-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-upload">
102 <div class="panel-body">
103 {{include file="field_input.tpl" field=$maximagesize}}
104 {{include file="field_input.tpl" field=$maximagelength}}
105 {{include file="field_input.tpl" field=$jpegimagequality}}
107 <div class="panel-footer">
108 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
119 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-corporate">
121 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-corporate-collapse" aria-expanded="false" aria-controls="admin-settings-corporate-collapse">
126 <div id="admin-settings-corporate-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-corporate">
127 <div class="panel-body">
128 {{include file="field_input.tpl" field=$allowed_sites}}
129 {{include file="field_input.tpl" field=$allowed_email}}
130 {{include file="field_input.tpl" field=$forbidden_nicknames}}
131 {{include file="field_checkbox.tpl" field=$no_oembed_rich_content}}
132 {{include file="field_input.tpl" field=$allowed_oembed}}
133 {{include file="field_checkbox.tpl" field=$block_public}}
134 {{include file="field_checkbox.tpl" field=$force_publish}}
135 {{include file="field_select.tpl" field=$community_page_style}}
136 {{include file="field_input.tpl" field=$max_author_posts_community_page}}
139 {{include file="field_checkbox.tpl" field=$mail_enabled}}
141 <div class="field checkbox" id="div_id_{{$mail_enabled.0}}">
142 <label for="id_{{$mail_enabled.0}}">{{$mail_enabled.1}}</label>
143 <span class="help-block" id="id_{{$mail_enabled.0}}" role="tooltip">{{$mail_not_able}}</span>
147 {{include file="field_checkbox.tpl" field=$ostatus_enabled}}
149 {{if $diaspora_able}}
150 {{include file="field_checkbox.tpl" field=$diaspora_enabled}}
152 <div class="field checkbox" id="div_id_{{$diaspora_enabled.0}}">
153 <label for="id_{{$diaspora_enabled.0}}">{{$diaspora_enabled.1}}</label>
154 <span class="help-block" id="id_{{$diaspora_enabled.0}}" role="tooltip">{{$diaspora_not_able}}</span>
157 {{include file="field_input.tpl" field=$global_directory}}
159 <input type="submit" name="republish_directory" class="btn btn-primary" value="{{$republish}}"/>
161 {{include file="field_checkbox.tpl" field=$newuser_private}}
162 {{include file="field_checkbox.tpl" field=$enotify_no_content}}
163 {{include file="field_checkbox.tpl" field=$private_addons}}
164 {{include file="field_checkbox.tpl" field=$disable_embedded}}
165 {{include file="field_checkbox.tpl" field=$allow_users_remote_self}}
166 {{include file="field_checkbox.tpl" field=$explicit_content}}
167 {{include file="field_checkbox.tpl" field=$proxify_content}}
169 <div class="panel-footer">
170 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
180 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-$dvanced">
182 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-advanced-collapse" aria-expanded="false" aria-controls="admin-settings-advanced-collapse">
187 <div id="admin-settings-advanced-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-advanced">
188 <div class="panel-body">
189 {{include file="field_checkbox.tpl" field=$verifyssl}}
190 {{include file="field_input.tpl" field=$proxy}}
191 {{include file="field_input.tpl" field=$proxyuser}}
192 {{include file="field_input.tpl" field=$timeout}}
193 {{include file="field_input.tpl" field=$abandon_days}}
194 {{include file="field_input.tpl" field=$temppath}}
195 {{include file="field_checkbox.tpl" field=$suppress_tags}}
196 {{include file="field_checkbox.tpl" field=$nodeinfo}}
197 {{include file="field_select.tpl" field=$check_new_version_url}}
199 <div class="panel-footer">
200 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
210 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-contacts">
212 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-contacts-collapse" aria-expanded="false" aria-controls="admin-settings-contacts-collapse">
213 {{$portable_contacts}}
217 <div id="admin-settings-contacts-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-cocontactsrporate">
218 <div class="panel-body">
219 {{include file="field_select.tpl" field=$contact_discovery}}
220 {{include file="field_checkbox.tpl" field=$synchronize_directory}}
221 {{include file="field_checkbox.tpl" field=$poco_discovery}}
222 {{include file="field_input.tpl" field=$poco_requery_days}}
223 {{include file="field_checkbox.tpl" field=$poco_local_search}}
225 <div class="panel-footer">
226 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
236 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-performance">
238 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-performance-collapse" aria-expanded="false" aria-controls="admin-settings-performance-collapse">
243 <div id="admin-settings-performance-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-performance">
244 <div class="panel-body">
245 {{include file="field_checkbox.tpl" field=$compute_group_counts}}
246 {{include file="field_checkbox.tpl" field=$only_tag_search}}
247 {{include file="field_input.tpl" field=$max_comments}}
248 {{include file="field_input.tpl" field=$max_display_comments}}
249 {{include file="field_checkbox.tpl" field=$dbclean}}
250 {{include file="field_input.tpl" field=$dbclean_expire_days}}
251 {{include file="field_input.tpl" field=$dbclean_unclaimed}}
252 {{include file="field_input.tpl" field=$dbclean_expire_conv}}
253 {{include file="field_checkbox.tpl" field=$optimize_tables}}
254 {{include file="field_checkbox.tpl" field=$cache_contact_avatar}}
256 <div class="panel-footer">
257 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
267 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-worker">
269 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-worker-collapse" aria-expanded="false" aria-controls="admin-settings-worker-collapse">
274 <div id="admin-settings-worker-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-worker">
275 <div class="panel-body">
276 {{include file="field_input.tpl" field=$maxloadavg}}
277 {{include file="field_input.tpl" field=$min_memory}}
278 {{include file="field_input.tpl" field=$worker_queues}}
279 {{include file="field_checkbox.tpl" field=$worker_fastlane}}
281 <div class="panel-footer">
282 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
292 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-relay-corporate">
294 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-relay-collapse" aria-expanded="false" aria-controls="admin-settings-relay-collapse">
299 <div id="admin-settings-relay-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-relay">
300 <div class="panel-body">
302 <p>{{$relay_list_title}}</p>
304 {{foreach $relay_list as $relay}}
305 <li>{{$relay.url}}</li>
309 <p>{{$no_relay_list}}</p>
311 <p>{{$relay_description}}</p>
312 {{include file="field_select.tpl" field=$relay_scope}}
313 {{include file="field_input.tpl" field=$relay_server_tags}}
314 {{include file="field_input.tpl" field=$relay_deny_tags}}
315 {{include file="field_checkbox.tpl" field=$relay_user_tags}}
316 {{include file="field_checkbox.tpl" field=$relay_directly}}
318 <div class="panel-footer">
319 <input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
326 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-relocate">
328 <button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-relocate-collapse" aria-expanded="false" aria-controls="admin-settings-relocate-collapse">
333 <div id="admin-settings-relocate-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-relocate">
334 <div class="panel-body">
338 <p><code>{{$relocate_cmd}}</code></p>