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 @@
+
+
+
+
+{{foreach $subpages as $page}}
+ - {{$page.1}}
+{{/foreach}}
+
+
+{{if $admin.update}}
+
+{{/if}}
+
+
+{{if $admin.plugins_admin}}{{$plugadmtxt}}
{{/if}}
+
+ {{foreach $admin.plugins_admin as $l}}
+ - {{$l.1}}
+ {{/foreach}}
+
+
+
+{{$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}}
+
+
+ {{if $entries}}
+
{{$currenttitle}}
+
{{$currentintro}}
+
+
+
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}}
+
+
+
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}}
+ - {{$c[0]['platform']}} ({{$c[0]['total']}})
+ {{/if}}
+ {{/foreach}}
+
+
+
+
+
+
+{{foreach $counts as $c}}
+ {{if $c[0]['total'] > 0}}
+
+ {{$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}}
+
+ |
+
+ {{/if}}
+{{/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}}
+
+
+
+
{{$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}}
+
+ {{foreach $plugins as $p}}
+ -
+
+ {{$p.2.name}} - {{$p.2.version}}
+ {{if $p.2.experimental}} {{$experimental}} {{/if}}{{if $p.2.unsupported}} {{$unsupported}} {{/if}}
+
+
{{$p.2.description}}
+
+ {{/foreach}}
+
+ {{/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}}
+
+ {{/if}}
+
+ {{if $admin_form}}
+
{{$settings}}
+
+ {{/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}}
+
+
+ {{$id_header}} |
+ {{$to_header}} |
+ {{$url_header}} |
+ {{$network_header}} |
+ {{$created_header}} |
+ {{$last_header}} |
+
+ {{foreach $entries as $e}}
+
+ {{$e.id}} |
+ {{$e.name}} |
+ {{$e.nurl}} |
+ {{$e.network}} |
+ {{$e.created}} |
+ {{$e.last}} |
+
+ {{/foreach}}
+
+
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}}
+
+
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}}
+
+
+
+ {{* separate form for relocate... *}}
+
+
+
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}}
+
+
+ {{if $deleted}}
+
{{$h_deleted}}
+
+
+
+ |
+ {{foreach $th_deleted as $th}}{{$th}} | {{/foreach}}
+
+
+
+ {{foreach $deleted as $u}}
+
+ |
+ {{$u.name}} |
+ {{$u.email}} |
+ {{$u.register_date}} |
+ {{$u.login_date}} |
+ {{$u.lastitem_date}} |
+ {{$u.deleted}} |
+
+ {{/foreach}}
+
+
+ {{/if}}
+
{{$h_newuser}}
+
+
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}}
+
+
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 @@
+
+
+
+
+{{if $admin.plugins_admin}}
+
+{{/if}}
+
+
+
+
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 @@
+
+
+
+
+
+{{if $admin.update}}
+
+{{/if}}
+
+
+{{if $admin.plugins_admin}}{{$plugadmtxt}}
{{/if}}
+
+ {{foreach $admin.plugins_admin as $l}}
+ - {{$l.1}}
+ {{/foreach}}
+
+
+
+{{$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}}
+
+
+
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}}
+
+
+
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 @@
+
+
+
+
+
+{{if $admin.update}}
+
+{{/if}}
+
+
+{{if $admin.plugins_admin}}{{$plugadmtxt}}
{{/if}}
+
+ {{foreach $admin.plugins_admin as $l}}
+ - {{$l.1}}
+ {{/foreach}}
+
+
+
+{{$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}}
+
+
+
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}}
+
+
+
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}}
+
+
+ {{if $deleted}}
+
{{$h_deleted}}
+
+
+
+ |
+ {{foreach $th_deleted as $th}}{{$th}} | {{/foreach}}
+
+
+
+ {{foreach $deleted as $u}}
+
+ |
+ {{$u.name}} |
+ {{$u.email}} |
+ {{$u.register_date}} |
+ {{$u.login_date}} |
+ {{$u.lastitem_date}} |
+ {{$u.deleted}} |
+
+ {{/foreach}}
+
+
+ {{/if}}
+
{{$h_newuser}}
+
+