From 16d0c30328730ceb29442e150f443407df28fe4e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 1 Dec 2017 00:40:55 -0500 Subject: [PATCH] Move admin templates to dedicated sub-folder --- mod/admin.php | 39 ++--- view/templates/admin/aside.tpl | 47 +++++ view/templates/admin/blocklist.tpl | 33 ++++ view/templates/admin/deleteitem.tpl | 11 ++ view/templates/admin/federation.tpl | 58 +++++++ view/templates/admin/logs.tpl | 22 +++ view/templates/admin/plugins.tpl | 22 +++ view/templates/admin/plugins_details.tpl | 37 ++++ view/templates/admin/queue.tpl | 25 +++ view/templates/admin/settings_features.tpl | 21 +++ view/templates/admin/settings_head.tpl | 9 + view/templates/admin/site.tpl | 160 ++++++++++++++++++ view/templates/admin/summary.tpl | 48 ++++++ view/templates/admin/users.tpl | 155 +++++++++++++++++ view/templates/admin/viewlogs.tpl | 6 + view/theme/frio/templates/admin/aside.tpl | 85 ++++++++++ .../frost-mobile/templates/admin/aside.tpl | 32 ++++ .../frost-mobile/templates/admin/site.tpl | 65 +++++++ .../frost-mobile/templates/admin/users.tpl | 98 +++++++++++ view/theme/frost/templates/admin/aside.tpl | 32 ++++ view/theme/frost/templates/admin/site.tpl | 73 ++++++++ view/theme/frost/templates/admin/users.tpl | 98 +++++++++++ view/theme/quattro/templates/admin/users.tpl | 155 +++++++++++++++++ 23 files changed, 1309 insertions(+), 22 deletions(-) create mode 100644 view/templates/admin/aside.tpl create mode 100644 view/templates/admin/blocklist.tpl create mode 100644 view/templates/admin/deleteitem.tpl create mode 100644 view/templates/admin/federation.tpl create mode 100644 view/templates/admin/logs.tpl create mode 100644 view/templates/admin/plugins.tpl create mode 100644 view/templates/admin/plugins_details.tpl create mode 100644 view/templates/admin/queue.tpl create mode 100644 view/templates/admin/settings_features.tpl create mode 100644 view/templates/admin/settings_head.tpl create mode 100644 view/templates/admin/site.tpl create mode 100644 view/templates/admin/summary.tpl create mode 100644 view/templates/admin/users.tpl create mode 100644 view/templates/admin/viewlogs.tpl create mode 100644 view/theme/frio/templates/admin/aside.tpl create mode 100644 view/theme/frost-mobile/templates/admin/aside.tpl create mode 100644 view/theme/frost-mobile/templates/admin/site.tpl create mode 100644 view/theme/frost-mobile/templates/admin/users.tpl create mode 100644 view/theme/frost/templates/admin/aside.tpl create mode 100644 view/theme/frost/templates/admin/site.tpl create mode 100644 view/theme/frost/templates/admin/users.tpl create mode 100644 view/theme/quattro/templates/admin/users.tpl diff --git a/mod/admin.php b/mod/admin.php index cdcd688f2..de981bb90 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -149,7 +149,6 @@ function admin_post(App $a) */ function admin_content(App $a) { - if (!is_site_admin()) { return login(false); } @@ -164,7 +163,7 @@ function admin_content(App $a) // apc_delete($toDelete); //} // Header stuff - $a->page['htmlhead'] .= replace_macros(get_markup_template('admin_settings_head.tpl'), array()); + $a->page['htmlhead'] .= replace_macros(get_markup_template('admin/settings_head.tpl'), array()); /* * Side bar links @@ -201,7 +200,7 @@ function admin_content(App $a) $aside_tools['diagnostics_probe'] = array('probe/', t('probe address'), 'probe'); $aside_tools['diagnostics_webfinger'] = array('webfinger/', t('check webfinger'), 'webfinger'); - $t = get_markup_template("admin_aside.tpl"); + $t = get_markup_template('admin/aside.tpl'); $a->page['aside'] .= replace_macros($t, array( '$admin' => $aside_tools, '$subpages' => $aside_sub, @@ -213,11 +212,7 @@ function admin_content(App $a) '$admurl' => "admin/" )); - - - /* - * Page content - */ + // Page content $o = ''; // urls if ($a->argc > 1) { @@ -298,7 +293,7 @@ function admin_page_blocklist(App $a) ); } } - $t = get_markup_template("admin_blocklist.tpl"); + $t = get_markup_template('admin/blocklist.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Server Blocklist'), @@ -376,7 +371,7 @@ function admin_page_blocklist_post(App $a) */ function admin_page_deleteitem(App $a) { - $t = get_markup_template("admin_deleteitem.tpl"); + $t = get_markup_template('admin/deleteitem.tpl'); return replace_macros($t, array( '$title' => t('Administration'), @@ -557,7 +552,7 @@ function admin_page_federation(App $a) $hint = t('The Auto Discovered Contact Directory feature is not enabled, it will improve the data displayed here.'); // load the template, replace the macros and return the page content - $t = get_markup_template("admin_federation.tpl"); + $t = get_markup_template('admin/federation.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Federation Statistics'), @@ -592,7 +587,7 @@ function admin_page_queue(App $a) WHERE `c`.`id` = `q`.`cid` ORDER BY `q`.`cid`, `q`.`created`;"); - $t = get_markup_template("admin_queue.tpl"); + $t = get_markup_template('admin/queue.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Inspect Queue'), @@ -689,7 +684,7 @@ function admin_page_summary(App $a) $queues = array('label' => t('Message queues'), 'queue' => $queue, 'workerq' => $workerqueue); - $t = get_markup_template("admin_summary.tpl"); + $t = get_markup_template('admin/summary.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Summary'), @@ -1176,7 +1171,7 @@ function admin_page_site(App $a) $optimize_max_tablesize = 100; } - $t = get_markup_template("admin_site.tpl"); + $t = get_markup_template('admin/site.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Site'), @@ -1605,7 +1600,7 @@ function admin_page_users(App $a) $th_users = array_map(null, array(t('Name'), t('Email'), t('Register date'), t('Last login'), t('Last item'), t('Account')), $valid_orders ); - $t = get_markup_template("admin_users.tpl"); + $t = get_markup_template('admin/users.tpl'); $o = replace_macros($t, array( // strings // '$title' => t('Administration'), @@ -1724,7 +1719,7 @@ function admin_page_plugins(App $a) $func($a, $admin_form); } - $t = get_markup_template("admin_plugins_details.tpl"); + $t = get_markup_template('admin/plugins_details.tpl'); return replace_macros($t, array( '$title' => t('Administration'), @@ -1785,7 +1780,7 @@ function admin_page_plugins(App $a) } } - $t = get_markup_template("admin_plugins.tpl"); + $t = get_markup_template('admin/plugins.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Plugins'), @@ -2001,7 +1996,7 @@ function admin_page_themes(App $a) $screenshot = null; } - $t = get_markup_template("admin_plugins_details.tpl"); + $t = get_markup_template('admin/plugins_details.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Themes'), @@ -2050,7 +2045,7 @@ function admin_page_themes(App $a) } } - $t = get_markup_template("admin_plugins.tpl"); + $t = get_markup_template('admin/plugins.tpl'); return replace_macros($t, array( '$title' => t('Administration'), '$page' => t('Themes'), @@ -2123,7 +2118,7 @@ function admin_page_logs(App $a) $phplogenabled = t('PHP log currently disabled.'); } - $t = get_markup_template("admin_logs.tpl"); + $t = get_markup_template('admin/logs.tpl'); return replace_macros($t, array( '$title' => t('Administration'), @@ -2164,7 +2159,7 @@ function admin_page_logs(App $a) */ function admin_page_viewlogs(App $a) { - $t = get_markup_template("admin_viewlogs.tpl"); + $t = get_markup_template('admin/viewlogs.tpl'); $f = Config::get('system', 'logfile'); $data = ''; @@ -2271,7 +2266,7 @@ function admin_page_features(App $a) } } - $tpl = get_markup_template("admin_settings_features.tpl"); + $tpl = get_markup_template('admin/settings_features.tpl'); $o .= replace_macros($tpl, array( '$form_security_token' => get_form_security_token("admin_manage_features"), '$title' => t('Manage Additional Features'), diff --git a/view/templates/admin/aside.tpl b/view/templates/admin/aside.tpl new file mode 100644 index 000000000..5c9cce0d0 --- /dev/null +++ b/view/templates/admin/aside.tpl @@ -0,0 +1,47 @@ + + +

{{$admtxt}}

+ + +{{if $admin.update}} + +{{/if}} + + +{{if $admin.plugins_admin}}

{{$plugadmtxt}}

{{/if}} + + + +

{{$logtxt}}

+ + +

{{$diagnosticstxt}}

+ diff --git a/view/templates/admin/blocklist.tpl b/view/templates/admin/blocklist.tpl new file mode 100644 index 000000000..1484c987e --- /dev/null +++ b/view/templates/admin/blocklist.tpl @@ -0,0 +1,33 @@ + +
+

{{$title}} - {{$page}}

+

{{$intro}}

+

{{$public}}

+ +

{{$addtitle}}

+
+ + {{include file="field_input.tpl" field=$newdomain}} + {{include file="field_input.tpl" field=$newreason}} +
+
+ + {{if $entries}} +

{{$currenttitle}}

+

{{$currentintro}}

+
+ + {{foreach $entries as $e}} + {{include file="field_input.tpl" field=$e.domain}} + {{include file="field_input.tpl" field=$e.reason}} + {{include file="field_checkbox.tpl" field=$e.delete}} + {{/foreach}} +
+ {{/if}} +
+ +
diff --git a/view/templates/admin/deleteitem.tpl b/view/templates/admin/deleteitem.tpl new file mode 100644 index 000000000..cf819dea6 --- /dev/null +++ b/view/templates/admin/deleteitem.tpl @@ -0,0 +1,11 @@ +
+

{{$title}} - {{$page}}

+

{{$intro1}}

+

{{$intro2}}

+
+ +
+ + {{include file="field_input.tpl" field=$deleteitemguid}} +
+
diff --git a/view/templates/admin/federation.tpl b/view/templates/admin/federation.tpl new file mode 100644 index 000000000..ee33df09b --- /dev/null +++ b/view/templates/admin/federation.tpl @@ -0,0 +1,58 @@ + + +
+

{{$title}} - {{$page}}

+

{{$intro}}

+ {{if not $autoactive}} +

{{$hint}}

+ {{/if}} +

{{$legendtext}} +

+

+
+ + + +{{foreach $counts as $c}} + {{if $c[0]['total'] > 0}} + + + + + + + + {{/if}} +{{/foreach}} +
{{$c[0]['platform']}}{{$c[0]['total']}} + {{$c[0]['network']}}
+ + +
    + {{foreach $c[1] as $v}} +
  • {{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}{{$v['version']}}{{else}}{{$v['version']}}{{/if}} ({{$v['total']}})
  • + {{/foreach}} +
+
diff --git a/view/templates/admin/logs.tpl b/view/templates/admin/logs.tpl new file mode 100644 index 000000000..b2e6357a9 --- /dev/null +++ b/view/templates/admin/logs.tpl @@ -0,0 +1,22 @@ +
+

{{$title}} - {{$page}}

+ +
+ + + {{include file="field_checkbox.tpl" field=$debugging}} + {{include file="field_input.tpl" field=$logfile}} + {{include file="field_select.tpl" field=$loglevel}} + +
+ +
+ +

{{$phpheader}}

+
+

{{$phplogenabled}}

+

{{$phphint}}

+
{{$phplogcode}}
+
+ +
diff --git a/view/templates/admin/plugins.tpl b/view/templates/admin/plugins.tpl new file mode 100644 index 000000000..75565dd2e --- /dev/null +++ b/view/templates/admin/plugins.tpl @@ -0,0 +1,22 @@ + +
+

{{$title}} - {{$page}}

+ {{if $pcount eq 0}} +
+ {{$noplugshint}} +
+ {{else}} + {{$reload}} + + {{/if}} +
diff --git a/view/templates/admin/plugins_details.tpl b/view/templates/admin/plugins_details.tpl new file mode 100644 index 000000000..9def8fc60 --- /dev/null +++ b/view/templates/admin/plugins_details.tpl @@ -0,0 +1,37 @@ + +
+

{{$title}} - {{$page}}

+ +

{{$info.name}} - {{$info.version}} : {{$action}}

+

{{$info.description}}

+ +

{{$str_author}} + {{foreach $info.author as $a}} + {{if $a.link}}{{$a.name}}{{else}}{{$a.name}}{{/if}}, + {{/foreach}} +

+ +

{{$str_maintainer}} + {{foreach $info.maintainer as $a}} + {{if $a.link}}{{$a.name}}{{else}}{{$a.name}}{{/if}}, + {{/foreach}} +

+ + {{if $screenshot}} + {{$screenshot.1}} + {{/if}} + + {{if $admin_form}} +

{{$settings}}

+
+ {{$admin_form}} +
+ {{/if}} + + {{if $readme}} +

Readme

+
+ {{$readme}} +
+ {{/if}} +
diff --git a/view/templates/admin/queue.tpl b/view/templates/admin/queue.tpl new file mode 100644 index 000000000..aaca9b014 --- /dev/null +++ b/view/templates/admin/queue.tpl @@ -0,0 +1,25 @@ +
+

{{$title}} - {{$page}} ({{$count}})

+ +

{{$info}}

+ + + + + + + + + + {{foreach $entries as $e}} + + + + + + + + + {{/foreach}} +
{{$id_header}}{{$to_header}}{{$url_header}}{{$network_header}}{{$created_header}}{{$last_header}}
{{$e.id}}{{$e.name}}{{$e.nurl}}{{$e.network}}{{$e.created}}{{$e.last}}
+
diff --git a/view/templates/admin/settings_features.tpl b/view/templates/admin/settings_features.tpl new file mode 100644 index 000000000..abcc527d4 --- /dev/null +++ b/view/templates/admin/settings_features.tpl @@ -0,0 +1,21 @@ +

{{$title}}

+ +
+ + +{{foreach $features as $g => $f}} +

{{$f.0}}

+ +
+ {{foreach $f.1 as $fcat}} + {{include file="field_yesno.tpl" field=$fcat.0}} + {{include file="field_yesno.tpl" field=$fcat.1}} + {{/foreach}} + +
+ +
+
+{{/foreach}} + +
diff --git a/view/templates/admin/settings_head.tpl b/view/templates/admin/settings_head.tpl new file mode 100644 index 000000000..25c0f804e --- /dev/null +++ b/view/templates/admin/settings_head.tpl @@ -0,0 +1,9 @@ + diff --git a/view/templates/admin/site.tpl b/view/templates/admin/site.tpl new file mode 100644 index 000000000..9f7b3601e --- /dev/null +++ b/view/templates/admin/site.tpl @@ -0,0 +1,160 @@ + +
+

{{$title}} - {{$page}}

+ +
+ + + {{include file="field_input.tpl" field=$sitename}} + {{include file="field_input.tpl" field=$hostname}} + {{include file="field_input.tpl" field=$sender_email}} + {{include file="field_textarea.tpl" field=$banner}} + {{include file="field_input.tpl" field=$shortcut_icon}} + {{include file="field_input.tpl" field=$touch_icon}} + {{include file="field_textarea.tpl" field=$info}} + {{include file="field_select.tpl" field=$language}} + {{include file="field_select.tpl" field=$theme}} + {{include file="field_select.tpl" field=$theme_mobile}} + {{include file="field_select.tpl" field=$ssl_policy}} + {{if $ssl_policy.2 == 1}}{{include file="field_checkbox.tpl" field=$force_ssl}}{{/if}} + {{include file="field_checkbox.tpl" field=$hide_help}} + {{include file="field_select.tpl" field=$singleuser}} +
+ +

{{$registration}}

+ {{include file="field_input.tpl" field=$register_text}} + {{include file="field_select.tpl" field=$register_policy}} + {{include file="field_input.tpl" field=$daily_registrations}} + {{include file="field_checkbox.tpl" field=$no_multi_reg}} + {{include file="field_checkbox.tpl" field=$no_openid}} + {{include file="field_checkbox.tpl" field=$no_regfullname}} +
+ +

{{$upload}}

+ {{include file="field_input.tpl" field=$maximagesize}} + {{include file="field_input.tpl" field=$maximagelength}} + {{include file="field_input.tpl" field=$jpegimagequality}} +
+ +

{{$corporate}}

+ {{include file="field_input.tpl" field=$allowed_sites}} + {{include file="field_input.tpl" field=$allowed_email}} + {{include file="field_checkbox.tpl" field=$block_public}} + {{include file="field_checkbox.tpl" field=$force_publish}} + {{include file="field_select.tpl" field=$community_page_style}} + {{include file="field_input.tpl" field=$max_author_posts_community_page}} + + {{include file="field_checkbox.tpl" field=$ostatus_disabled}} + {{include file="field_checkbox.tpl" field=$ostatus_full_threads}} + + {{if $diaspora_able}} + {{include file="field_checkbox.tpl" field=$diaspora_enabled}} + {{else}} +
+ + {{$diaspora_not_able}} +
+ {{/if}} + {{include file="field_checkbox.tpl" field=$dfrn_only}} + {{include file="field_input.tpl" field=$global_directory}} +
+ {{include file="field_checkbox.tpl" field=$newuser_private}} + {{include file="field_checkbox.tpl" field=$enotify_no_content}} + {{include file="field_checkbox.tpl" field=$private_addons}} + {{include file="field_checkbox.tpl" field=$disable_embedded}} + {{include file="field_checkbox.tpl" field=$allow_users_remote_self}} +
+ +

{{$advanced}}

+ {{include file="field_select.tpl" field=$rino}} + {{include file="field_checkbox.tpl" field=$verifyssl}} + {{include file="field_input.tpl" field=$proxy}} + {{include file="field_input.tpl" field=$proxyuser}} + {{include file="field_input.tpl" field=$timeout}} + {{include file="field_input.tpl" field=$maxloadavg_frontend}} + {{include file="field_input.tpl" field=$optimize_max_tablesize}} + {{include file="field_input.tpl" field=$optimize_fragmentation}} + {{include file="field_input.tpl" field=$abandon_days}} + {{include file="field_input.tpl" field=$temppath}} + {{include file="field_input.tpl" field=$basepath}} + {{include file="field_checkbox.tpl" field=$suppress_tags}} + {{include file="field_checkbox.tpl" field=$nodeinfo}} + {{include file="field_select.tpl" field=$check_new_version_url}} +
+ +

{{$portable_contacts}}

+ {{include file="field_checkbox.tpl" field=$poco_completion}} + {{include file="field_input.tpl" field=$poco_requery_days}} + {{include file="field_select.tpl" field=$poco_discovery}} + {{include file="field_select.tpl" field=$poco_discovery_since}} + {{include file="field_checkbox.tpl" field=$poco_local_search}} +
+ +

{{$performance}}

+ {{include file="field_checkbox.tpl" field=$only_tag_search}} + {{include file="field_input.tpl" field=$itemcache}} + {{include file="field_input.tpl" field=$itemcache_duration}} + {{include file="field_input.tpl" field=$max_comments}} + {{include file="field_checkbox.tpl" field=$proxy_disabled}} +
+ +

{{$worker_title}}

+ {{include file="field_input.tpl" field=$maxloadavg}} + {{include file="field_input.tpl" field=$min_memory}} + {{include file="field_input.tpl" field=$worker_queues}} + {{include file="field_checkbox.tpl" field=$worker_dont_fork}} + {{include file="field_checkbox.tpl" field=$worker_fastlane}} + {{include file="field_checkbox.tpl" field=$worker_frontend}} +
+ +
+ + {{* separate form for relocate... *}} +
+ +

{{$relocate}}

+ {{include file="field_input.tpl" field=$relocate_url}} + +
+
+ +
diff --git a/view/templates/admin/summary.tpl b/view/templates/admin/summary.tpl new file mode 100644 index 000000000..e65014413 --- /dev/null +++ b/view/templates/admin/summary.tpl @@ -0,0 +1,48 @@ + +
+

{{$title}} - {{$page}}

+{{if $showwarning}} +
+ {{foreach $warningtext as $wt}} +

{{$wt}}

+ {{/foreach}} +
+{{/if}} + +
+
{{$queues.label}}
+
{{$queues.queue}} - {{$queues.workerq}}
+
+
+
{{$pending.0}}
+
{{$pending.1}} +
+ +
+
{{$users.0}}
+
{{$users.1}}
+
+ {{foreach $accounts as $p}} +
+
{{$p.0}}
+
{{if $p.1}}{{$p.1}}{{else}}0{{/if}}
+
+ {{/foreach}} + + +
+
{{$plugins.0}}
+ + {{foreach $plugins.1 as $p}} +
{{$p}}
+ {{/foreach}} + +
+ +
+
{{$version.0}}
+
{{$platform}} '{{$codename}}' {{$version.1}} - {{$build}} +
+ + +
diff --git a/view/templates/admin/users.tpl b/view/templates/admin/users.tpl new file mode 100644 index 000000000..a842d6e36 --- /dev/null +++ b/view/templates/admin/users.tpl @@ -0,0 +1,155 @@ + + +
+

{{$title}} - {{$page}}

+ +
+ + +

{{$h_pending}}

+ {{if $pending}} + + + + {{foreach $th_pending as $th}}{{/foreach}} + + + + + + {{foreach $pending as $u}} + + + + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.created}}{{$u.name}} + + +

{{$pendingnotetext}}: {{$u.note}}

+ +
+ {{else}} +

{{$no_pending}}

+ {{/if}} + +

{{$h_users}}

+ {{if $users}} + + + + + {{foreach $th_users as $th}} + + {{/foreach}} + + + + + + {{foreach $users as $u}} + + + + + + + + + + {{else}} +   + {{/if}} + + + {{/foreach}} + +
+ + {{if $order_users == $th.1}} + {{if $order_direction_users == "+"}} + ↓ + {{else}} + ↑ + {{/if}} + {{else}} + ↕ + {{/if}} + {{$th.0}} +
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} + {{if $u.is_deletable}} + + {{if $u.is_deletable}} + + + {{else}} +   + {{/if}} +
+ +
+ {{else}} + NO USERS?!? + {{/if}} +
+ {{if $deleted}} +

{{$h_deleted}}

+ + + + + {{foreach $th_deleted as $th}}{{/foreach}} + + + + {{foreach $deleted as $u}} + + + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}}
+ {{/if}} +

{{$h_newuser}}

+
+ + + + + + + + + + + + + +
{{include file="field_input.tpl" field=$newusername}}
{{include file="field_input.tpl" field=$newusernickname}}
{{include file="field_input.tpl" field=$newuseremail}}
+
+
+
diff --git a/view/templates/admin/viewlogs.tpl b/view/templates/admin/viewlogs.tpl new file mode 100644 index 000000000..c80264c52 --- /dev/null +++ b/view/templates/admin/viewlogs.tpl @@ -0,0 +1,6 @@ +
+

{{$title}} - {{$page}}

+ +

{{$logname}}

+
{{$data}}
+
diff --git a/view/theme/frio/templates/admin/aside.tpl b/view/theme/frio/templates/admin/aside.tpl new file mode 100644 index 000000000..a90ec6916 --- /dev/null +++ b/view/theme/frio/templates/admin/aside.tpl @@ -0,0 +1,85 @@ + + +
+

{{$admtxt}}

+ + + + {{if $admin.update}} + + {{/if}} +
+ +{{if $admin.plugins_admin}} +
+

{{$plugadmtxt}}

+ +
+{{/if}} + +
+

{{$logtxt}}

+ +
+ +
+

{{$diagnosticstxt}}

+ +
diff --git a/view/theme/frost-mobile/templates/admin/aside.tpl b/view/theme/frost-mobile/templates/admin/aside.tpl new file mode 100644 index 000000000..74b6cd5f6 --- /dev/null +++ b/view/theme/frost-mobile/templates/admin/aside.tpl @@ -0,0 +1,32 @@ + + +

{{$admtxt}}

+ + +{{if $admin.update}} + +{{/if}} + + +{{if $admin.plugins_admin}}

{{$plugadmtxt}}

{{/if}} + + + +

{{$logtxt}}

+ + diff --git a/view/theme/frost-mobile/templates/admin/site.tpl b/view/theme/frost-mobile/templates/admin/site.tpl new file mode 100644 index 000000000..d5b64e58d --- /dev/null +++ b/view/theme/frost-mobile/templates/admin/site.tpl @@ -0,0 +1,65 @@ + + +
+

{{$title}} - {{$page}}

+ +
+ + + {{include file="field_input.tpl" field=$sitename}} + {{include file="field_textarea.tpl" field=$banner}} + {{include file="field_select.tpl" field=$language}} + {{include file="field_select.tpl" field=$theme}} + {{include file="field_select.tpl" field=$theme_mobile}} + {{include file="field_select.tpl" field=$ssl_policy}} + {{include file="field_checkbox.tpl" field=$old_share}} + {{include file="field_checkbox.tpl" field=$hide_help}} + {{include file="field_select.tpl" field=$singleuser}} + +
+ +

{{$registration}}

+ {{include file="field_input.tpl" field=$register_text}} + {{include file="field_select.tpl" field=$register_policy}} + + {{include file="field_checkbox.tpl" field=$no_multi_reg}} + {{include file="field_checkbox.tpl" field=$no_openid}} + {{include file="field_checkbox.tpl" field=$no_regfullname}} + +
+ +

{{$upload}}

+ {{include file="field_input.tpl" field=$maximagesize}} + {{include file="field_input.tpl" field=$maximagelength}} + {{include file="field_input.tpl" field=$jpegimagequality}} + +

{{$corporate}}

+ {{include file="field_input.tpl" field=$allowed_sites}} + {{include file="field_input.tpl" field=$allowed_email}} + {{include file="field_checkbox.tpl" field=$block_public}} + {{include file="field_checkbox.tpl" field=$force_publish}} + {{include file="field_checkbox.tpl" field=$no_community_page}} + {{include file="field_checkbox.tpl" field=$ostatus_disabled}} + {{include file="field_checkbox.tpl" field=$diaspora_enabled}} + {{include file="field_checkbox.tpl" field=$dfrn_only}} + {{include file="field_input.tpl" field=$global_directory}} + {{include file="field_checkbox.tpl" field=$newuser_private}} + {{include file="field_checkbox.tpl" field=$enotify_no_content}} + {{include file="field_checkbox.tpl" field=$private_addons}} + {{include file="field_checkbox.tpl" field=$disable_embedded}} +
+ +

{{$advanced}}

+ {{include file="field_checkbox.tpl" field=$verifyssl}} + {{include file="field_input.tpl" field=$proxy}} + {{include file="field_input.tpl" field=$proxyuser}} + {{include file="field_input.tpl" field=$timeout}} + {{include file="field_input.tpl" field=$delivery_interval}} + {{include file="field_input.tpl" field=$poll_interval}} + {{include file="field_input.tpl" field=$maxloadavg}} + {{include file="field_input.tpl" field=$abandon_days}} + +
+ +
+
diff --git a/view/theme/frost-mobile/templates/admin/users.tpl b/view/theme/frost-mobile/templates/admin/users.tpl new file mode 100644 index 000000000..f0c4869a7 --- /dev/null +++ b/view/theme/frost-mobile/templates/admin/users.tpl @@ -0,0 +1,98 @@ + +
+

{{$title}} - {{$page}}

+ +
+ + +

{{$h_pending}}

+ {{if $pending}} + + + + {{foreach $th_pending as $th}}{{/foreach}} + + + + + + {{foreach $pending as $u}} + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.created}}{{$u.name}} + + +
+ +
+ {{else}} +

{{$no_pending}}

+ {{/if}} + + + + +

{{$h_users}}

+ {{if $users}} + + + + + {{foreach $th_users as $th}}{{/foreach}} + + + + + + {{foreach $users as $u}} + + + + + + + + + + {{/if}} + + + {{/foreach}} + +
{{$th}}
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} + {{if $u.is_admin}} +   + {{else}} + + {{if $u.is_admin}} +   + {{else}} + + + {{/if}} +
+ +
+ {{else}} + NO USERS?!? + {{/if}} +
+
diff --git a/view/theme/frost/templates/admin/aside.tpl b/view/theme/frost/templates/admin/aside.tpl new file mode 100644 index 000000000..74b6cd5f6 --- /dev/null +++ b/view/theme/frost/templates/admin/aside.tpl @@ -0,0 +1,32 @@ + + +

{{$admtxt}}

+ + +{{if $admin.update}} + +{{/if}} + + +{{if $admin.plugins_admin}}

{{$plugadmtxt}}

{{/if}} + + + +

{{$logtxt}}

+ + diff --git a/view/theme/frost/templates/admin/site.tpl b/view/theme/frost/templates/admin/site.tpl new file mode 100644 index 000000000..8dcfa9129 --- /dev/null +++ b/view/theme/frost/templates/admin/site.tpl @@ -0,0 +1,73 @@ + + +
+

{{$title}} - {{$page}}

+ +
+ + + {{include file="field_input.tpl" field=$sitename}} + {{include file="field_textarea.tpl" field=$banner}} + {{include file="field_select.tpl" field=$language}} + {{include file="field_select.tpl" field=$theme}} + {{include file="field_select.tpl" field=$theme_mobile}} + {{include file="field_select.tpl" field=$ssl_policy}} + {{include file="field_checkbox.tpl" field=$old_share}} + {{include file="field_checkbox.tpl" field=$hide_help}} + {{include file="field_select.tpl" field=$singleuser}} + +
+ +

{{$registration}}

+ {{include file="field_input.tpl" field=$register_text}} + {{include file="field_select.tpl" field=$register_policy}} + {{include file="field_input.tpl" field=$daily_registrations}} + {{include file="field_checkbox.tpl" field=$no_multi_reg}} + {{include file="field_checkbox.tpl" field=$no_openid}} + {{include file="field_checkbox.tpl" field=$no_regfullname}} + +
+ +

{{$upload}}

+ {{include file="field_input.tpl" field=$maximagesize}} + {{include file="field_input.tpl" field=$maximagelength}} + {{include file="field_input.tpl" field=$jpegimagequality}} + +

{{$corporate}}

+ {{include file="field_input.tpl" field=$allowed_sites}} + {{include file="field_input.tpl" field=$allowed_email}} + {{include file="field_checkbox.tpl" field=$block_public}} + {{include file="field_checkbox.tpl" field=$force_publish}} + {{include file="field_checkbox.tpl" field=$no_community_page}} + {{include file="field_checkbox.tpl" field=$ostatus_disabled}} + {{include file="field_checkbox.tpl" field=$diaspora_enabled}} + {{include file="field_checkbox.tpl" field=$dfrn_only}} + {{include file="field_input.tpl" field=$global_directory}} + {{include file="field_checkbox.tpl" field=$newuser_private}} + {{include file="field_checkbox.tpl" field=$enotify_no_content}} + {{include file="field_checkbox.tpl" field=$private_addons}} + {{include file="field_checkbox.tpl" field=$disable_embedded}} +
+ +

{{$advanced}}

+ {{include file="field_checkbox.tpl" field=$verifyssl}} + {{include file="field_input.tpl" field=$proxy}} + {{include file="field_input.tpl" field=$proxyuser}} + {{include file="field_input.tpl" field=$timeout}} + {{include file="field_input.tpl" field=$delivery_interval}} + {{include file="field_input.tpl" field=$poll_interval}} + {{include file="field_input.tpl" field=$maxloadavg}} + {{include file="field_input.tpl" field=$abandon_days}} + {{include file="field_input.tpl" field=$lockpath}} + {{include file="field_input.tpl" field=$temppath}} + {{include file="field_input.tpl" field=$basepath}} + +

{{$performance}}

+ {{include file="field_input.tpl" field=$itemcache}} + {{include file="field_input.tpl" field=$itemcache_duration}} + + +
+ +
+
diff --git a/view/theme/frost/templates/admin/users.tpl b/view/theme/frost/templates/admin/users.tpl new file mode 100644 index 000000000..f0c4869a7 --- /dev/null +++ b/view/theme/frost/templates/admin/users.tpl @@ -0,0 +1,98 @@ + +
+

{{$title}} - {{$page}}

+ +
+ + +

{{$h_pending}}

+ {{if $pending}} + + + + {{foreach $th_pending as $th}}{{/foreach}} + + + + + + {{foreach $pending as $u}} + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.created}}{{$u.name}} + + +
+ +
+ {{else}} +

{{$no_pending}}

+ {{/if}} + + + + +

{{$h_users}}

+ {{if $users}} + + + + + {{foreach $th_users as $th}}{{/foreach}} + + + + + + {{foreach $users as $u}} + + + + + + + + + + {{/if}} + + + {{/foreach}} + +
{{$th}}
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} + {{if $u.is_admin}} +   + {{else}} + + {{if $u.is_admin}} +   + {{else}} + + + {{/if}} +
+ +
+ {{else}} + NO USERS?!? + {{/if}} +
+
diff --git a/view/theme/quattro/templates/admin/users.tpl b/view/theme/quattro/templates/admin/users.tpl new file mode 100644 index 000000000..ddb395db9 --- /dev/null +++ b/view/theme/quattro/templates/admin/users.tpl @@ -0,0 +1,155 @@ + + +
+

{{$title}} - {{$page}}

+ +
+ + +

{{$h_pending}}

+ {{if $pending}} + + + + {{foreach $th_pending as $th}}{{/foreach}} + + + + + + {{foreach $pending as $u}} + + + + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.created}}{{$u.name}} + + +

{{$pendingnotetext}}: {{$u.note}}

+ +
+ {{else}} +

{{$no_pending}}

+ {{/if}} + +

{{$h_users}}

+ {{if $users}} + + + + + {{foreach $th_users as $th}} + + {{/foreach}} + + + + + + {{foreach $users as $u}} + + + + + + + + + + {{else}} +   + {{/if}} + + + {{/foreach}} + +
+ + {{if $order_users == $th.1}} + {{if $order_direction_users == "+"}} + ↓ + {{else}} + ↑ + {{/if}} + {{else}} + ↕ + {{/if}} + {{$th.0}} +
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}} + {{if $u.is_deletable}} + + {{if $u.is_deletable}} + + + {{else}} +   + {{/if}} +
+ +
+ {{else}} + NO USERS?!? + {{/if}} +
+ {{if $deleted}} +

{{$h_deleted}}

+ + + + + {{foreach $th_deleted as $th}}{{/foreach}} + + + + {{foreach $deleted as $u}} + + + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.nickname}}{{$u.name}}{{$u.register_date}}{{$u.lastitem_date}}
+ {{/if}} +

{{$h_newuser}}

+
+ + + + + + + + + + + + + +
{{include file="field_input.tpl" field=$newusername}}
{{include file="field_input.tpl" field=$newusernickname}}
{{include file="field_input.tpl" field=$newuseremail}}
+
+
+