get markup template
implement getMarkupTemplate function
This commit is contained in:
parent
91facd2d0a
commit
35abc4bb64
89 changed files with 243 additions and 243 deletions
|
|
@ -175,7 +175,7 @@ function admin_content(App $a)
|
|||
// apc_delete($toDelete);
|
||||
//}
|
||||
// Header stuff
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(get_markup_template('admin/settings_head.tpl'), []);
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('admin/settings_head.tpl'), []);
|
||||
|
||||
/*
|
||||
* Side bar links
|
||||
|
|
@ -226,7 +226,7 @@ function admin_content(App $a)
|
|||
$addons_admin[] = $addon;
|
||||
}
|
||||
|
||||
$t = get_markup_template('admin/aside.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/aside.tpl');
|
||||
$a->page['aside'] .= Renderer::replaceMacros($t, [
|
||||
'$admin' => $aside_tools,
|
||||
'$subpages' => $aside_sub,
|
||||
|
|
@ -314,7 +314,7 @@ function admin_content(App $a)
|
|||
function admin_page_tos(App $a)
|
||||
{
|
||||
$tos = new Tos();
|
||||
$t = get_markup_template('admin/tos.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/tos.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Terms of Service'),
|
||||
|
|
@ -376,7 +376,7 @@ function admin_page_blocklist(App $a)
|
|||
];
|
||||
}
|
||||
}
|
||||
$t = get_markup_template('admin/blocklist.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/blocklist.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Server Blocklist'),
|
||||
|
|
@ -491,7 +491,7 @@ function admin_page_contactblock(App $a)
|
|||
|
||||
$contacts = DBA::toArray($statement);
|
||||
|
||||
$t = get_markup_template('admin/contactblock.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/contactblock.tpl');
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
// strings //
|
||||
'$title' => L10n::t('Administration'),
|
||||
|
|
@ -533,7 +533,7 @@ function admin_page_contactblock(App $a)
|
|||
*/
|
||||
function admin_page_deleteitem(App $a)
|
||||
{
|
||||
$t = get_markup_template('admin/deleteitem.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/deleteitem.tpl');
|
||||
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
|
|
@ -726,7 +726,7 @@ function admin_page_federation(App $a)
|
|||
$hint = L10n::t('The <em>Auto Discovered Contact Directory</em> 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 = Renderer::getMarkupTemplate('admin/federation.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Federation Statistics'),
|
||||
|
|
@ -769,7 +769,7 @@ function admin_page_queue(App $a)
|
|||
}
|
||||
DBA::close($entries);
|
||||
|
||||
$t = get_markup_template('admin/queue.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/queue.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Inspect Queue'),
|
||||
|
|
@ -820,7 +820,7 @@ function admin_page_workerqueue(App $a, $deferred)
|
|||
}
|
||||
DBA::close($entries);
|
||||
|
||||
$t = get_markup_template('admin/workerqueue.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/workerqueue.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => $sub_title,
|
||||
|
|
@ -938,7 +938,7 @@ function admin_page_summary(App $a)
|
|||
'memory_limit' => ini_get('memory_limit')],
|
||||
'mysql' => ['max_allowed_packet' => $max_allowed_packet]];
|
||||
|
||||
$t = get_markup_template('admin/summary.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/summary.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Summary'),
|
||||
|
|
@ -1449,7 +1449,7 @@ function admin_page_site(App $a)
|
|||
$optimize_max_tablesize = -1;
|
||||
}
|
||||
|
||||
$t = get_markup_template('admin/site.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/site.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Site'),
|
||||
|
|
@ -1643,13 +1643,13 @@ function admin_page_dbsync(App $a)
|
|||
}
|
||||
|
||||
if (!count($failed)) {
|
||||
$o = Renderer::replaceMacros(get_markup_template('structure_check.tpl'), [
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('structure_check.tpl'), [
|
||||
'$base' => System::baseUrl(true),
|
||||
'$banner' => L10n::t('No failed updates.'),
|
||||
'$check' => L10n::t('Check database structure'),
|
||||
]);
|
||||
} else {
|
||||
$o = Renderer::replaceMacros(get_markup_template('failed_updates.tpl'), [
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('failed_updates.tpl'), [
|
||||
'$base' => System::baseUrl(true),
|
||||
'$banner' => L10n::t('Failed Updates'),
|
||||
'$desc' => L10n::t('This does not include updates prior to 1139, which did not return a status.'),
|
||||
|
|
@ -1910,7 +1910,7 @@ function admin_page_users(App $a)
|
|||
|
||||
$th_users = array_map(null, [L10n::t('Name'), L10n::t('Email'), L10n::t('Register date'), L10n::t('Last login'), L10n::t('Last item'), L10n::t('Type')], $valid_orders);
|
||||
|
||||
$t = get_markup_template('admin/users.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/users.tpl');
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
// strings //
|
||||
'$title' => L10n::t('Administration'),
|
||||
|
|
@ -2026,7 +2026,7 @@ function admin_page_addons(App $a, array $addons_admin)
|
|||
$func($a, $admin_form);
|
||||
}
|
||||
|
||||
$t = get_markup_template('admin/addon_details.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/addon_details.tpl');
|
||||
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
|
|
@ -2087,7 +2087,7 @@ function admin_page_addons(App $a, array $addons_admin)
|
|||
}
|
||||
}
|
||||
|
||||
$t = get_markup_template('admin/addons.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/addons.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Addons'),
|
||||
|
|
@ -2297,7 +2297,7 @@ function admin_page_themes(App $a)
|
|||
$screenshot = null;
|
||||
}
|
||||
|
||||
$t = get_markup_template('admin/addon_details.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/addon_details.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Themes'),
|
||||
|
|
@ -2341,7 +2341,7 @@ function admin_page_themes(App $a)
|
|||
$addons[] = [$th['name'], (($th['allowed']) ? "on" : "off"), Theme::getInfo($th['name'])];
|
||||
}
|
||||
|
||||
$t = get_markup_template('admin/addons.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/addons.tpl');
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Themes'),
|
||||
|
|
@ -2415,7 +2415,7 @@ function admin_page_logs(App $a)
|
|||
$phplogenabled = L10n::t('PHP log currently disabled.');
|
||||
}
|
||||
|
||||
$t = get_markup_template('admin/logs.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/logs.tpl');
|
||||
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Administration'),
|
||||
|
|
@ -2456,7 +2456,7 @@ function admin_page_logs(App $a)
|
|||
*/
|
||||
function admin_page_viewlogs(App $a)
|
||||
{
|
||||
$t = get_markup_template('admin/viewlogs.tpl');
|
||||
$t = Renderer::getMarkupTemplate('admin/viewlogs.tpl');
|
||||
$f = Config::get('system', 'logfile');
|
||||
$data = '';
|
||||
|
||||
|
|
@ -2562,7 +2562,7 @@ function admin_page_features(App $a)
|
|||
}
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('admin/settings_features.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('admin/settings_features.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$form_security_token' => BaseModule::getFormSecurityToken("admin_manage_features"),
|
||||
'$title' => L10n::t('Manage Additional Features'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue