@ -20,10 +20,10 @@ Templates that are only used by addons shall be placed in the
directory.
To render a template use the function *get_markup_template* to load the template and *replace_macros* to replace the macros/variables in the just loaded template file.
To render a template use the function *getMarkupTemplate* to load the template and *replaceMacros* to replace the macros/variables in the just loaded template file.
@ -314,7 +315,7 @@ function admin_page_tos(App $a)
{
$tos=newTos();
$t=get_markup_template('admin/tos.tpl');
returnreplace_macros($t,[
returnRenderer::replaceMacros($t,[
'$title'=>L10n::t('Administration'),
'$page'=>L10n::t('Terms of Service'),
'$displaytos'=>['displaytos',L10n::t('Display Terms of Service'),Config::get('system','tosdisplay'),L10n::t('Enable the Terms of Service page. If this is enabled a link to the terms will be added to the registration form and the general information page.')],
@ -376,7 +377,7 @@ function admin_page_blocklist(App $a)
}
}
$t=get_markup_template('admin/blocklist.tpl');
returnreplace_macros($t,[
returnRenderer::replaceMacros($t,[
'$title'=>L10n::t('Administration'),
'$page'=>L10n::t('Server Blocklist'),
'$intro'=>L10n::t('This page can be used to define a black list of servers from the federated network that are not allowed to interact with your node. For all entered domains you should also give a reason why you have blocked the remote server.'),
@ -491,7 +492,7 @@ function admin_page_contactblock(App $a)
$contacts=DBA::toArray($statement);
$t=get_markup_template('admin/contactblock.tpl');
$o=replace_macros($t,[
$o=Renderer::replaceMacros($t,[
// strings //
'$title'=>L10n::t('Administration'),
'$page'=>L10n::t('Remote Contact Blocklist'),
@ -534,7 +535,7 @@ function admin_page_deleteitem(App $a)
{
$t=get_markup_template('admin/deleteitem.tpl');
returnreplace_macros($t,[
returnRenderer::replaceMacros($t,[
'$title'=>L10n::t('Administration'),
'$page'=>L10n::t('Delete Item'),
'$submit'=>L10n::t('Delete this Item'),
@ -726,7 +727,7 @@ function admin_page_federation(App $a)
// load the template, replace the macros and return the page content
$t=get_markup_template('admin/federation.tpl');
returnreplace_macros($t,[
returnRenderer::replaceMacros($t,[
'$title'=>L10n::t('Administration'),
'$page'=>L10n::t('Federation Statistics'),
'$intro'=>$intro,
@ -769,7 +770,7 @@ function admin_page_queue(App $a)
DBA::close($entries);
$t=get_markup_template('admin/queue.tpl');
returnreplace_macros($t,[
returnRenderer::replaceMacros($t,[
'$title'=>L10n::t('Administration'),
'$page'=>L10n::t('Inspect Queue'),
'$count'=>count($r),
@ -820,7 +821,7 @@ function admin_page_workerqueue(App $a, $deferred)
DBA::close($entries);
$t=get_markup_template('admin/workerqueue.tpl');
returnreplace_macros($t,[
returnRenderer::replaceMacros($t,[
'$title'=>L10n::t('Administration'),
'$page'=>$sub_title,
'$count'=>count($r),
@ -938,7 +939,7 @@ function admin_page_summary(App $a)
'$thanks'=>L10n::t('Friendica is a community project, that would not be possible without the help of many people. Here is a list of those who have contributed to the code or the translation of Friendica. Thank you all!'),
@ -163,7 +164,7 @@ function delegate_content(App $a)
$parent_password=['parent_password',L10n::t('Parent Password:'),'',L10n::t('Please enter the password of the parent account to legitimize your request.')];
'$desc'=>L10n::t('Toggle between different identities or community/group pages which share your account details or which you have been granted "manage" permissions'),
'$choose'=>L10n::t('Select an identity to manage: '),