mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:50:11 +00:00
get markup template
implement getMarkupTemplate function
This commit is contained in:
parent
91facd2d0a
commit
35abc4bb64
89 changed files with 243 additions and 243 deletions
|
@ -83,7 +83,7 @@ class Contact extends BaseModule
|
|||
}
|
||||
|
||||
/// @TODO Add nice spaces
|
||||
$vcard_widget = Renderer::replaceMacros(get_markup_template('vcard-widget.tpl'), [
|
||||
$vcard_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate('vcard-widget.tpl'), [
|
||||
'$name' => htmlentities($contact['name']),
|
||||
'$photo' => $contact['photo'],
|
||||
'$url' => Model\Contact::MagicLink($contact['url']),
|
||||
|
@ -114,7 +114,7 @@ class Contact extends BaseModule
|
|||
$groups_widget = null;
|
||||
}
|
||||
|
||||
$a->page['aside'] .= Renderer::replaceMacros(get_markup_template('contacts-widget-sidebar.tpl'), [
|
||||
$a->page['aside'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contacts-widget-sidebar.tpl'), [
|
||||
'$vcard_widget' => $vcard_widget,
|
||||
'$findpeople_widget' => $findpeople_widget,
|
||||
'$follow_widget' => $follow_widget,
|
||||
|
@ -123,7 +123,7 @@ class Contact extends BaseModule
|
|||
]);
|
||||
|
||||
$base = $a->getBaseURL();
|
||||
$tpl = get_markup_template('contacts-head.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('contacts-head.tpl');
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(true),
|
||||
'$base' => $base
|
||||
|
@ -439,7 +439,7 @@ class Contact extends BaseModule
|
|||
|
||||
$a->page['aside'] = '';
|
||||
|
||||
return Renderer::replaceMacros(get_markup_template('contact_drop_confirm.tpl'), [
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_drop_confirm.tpl'), [
|
||||
'$header' => L10n::t('Drop contact'),
|
||||
'$contact' => self::getContactTemplateVars($orig_record),
|
||||
'$method' => 'get',
|
||||
|
@ -476,7 +476,7 @@ class Contact extends BaseModule
|
|||
$contact_id = $a->data['contact']['id'];
|
||||
$contact = $a->data['contact'];
|
||||
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(get_markup_template('contact_head.tpl'), [
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_head.tpl'), [
|
||||
'$baseurl' => $a->getBaseURL(true),
|
||||
]);
|
||||
|
||||
|
@ -592,7 +592,7 @@ class Contact extends BaseModule
|
|||
$contact_settings_label = null;
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('contact_edit.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('contact_edit.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$header' => L10n::t('Contact'),
|
||||
'$tab_str' => $tab_str,
|
||||
|
@ -756,7 +756,7 @@ class Contact extends BaseModule
|
|||
],
|
||||
];
|
||||
|
||||
$tab_tpl = get_markup_template('common_tabs.tpl');
|
||||
$tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
$t = Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]);
|
||||
|
||||
$total = 0;
|
||||
|
@ -801,7 +801,7 @@ class Contact extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('contacts-template.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('contacts-template.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(),
|
||||
'$header' => L10n::t('Contacts') . (($nets) ? ' - ' . ContactSelector::networkToName($nets) : ''),
|
||||
|
@ -904,7 +904,7 @@ class Contact extends BaseModule
|
|||
];
|
||||
}
|
||||
|
||||
$tab_tpl = get_markup_template('common_tabs.tpl');
|
||||
$tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
$tab_str = Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]);
|
||||
|
||||
return $tab_str;
|
||||
|
|
|
@ -124,7 +124,7 @@ class Install extends BaseModule
|
|||
|
||||
$status = self::$installer->checkEnvironment($a->getBaseURL(), $phppath);
|
||||
|
||||
$tpl = get_markup_template('install_checks.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('install_checks.tpl');
|
||||
$output .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => $install_title,
|
||||
'$pass' => L10n::t('System check'),
|
||||
|
@ -146,7 +146,7 @@ class Install extends BaseModule
|
|||
$phpath = notags(trim(defaults($_POST, 'phpath' , '' )));
|
||||
$adminmail = notags(trim(defaults($_POST, 'adminmail', '' )));
|
||||
|
||||
$tpl = get_markup_template('install_db.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('install_db.tpl');
|
||||
$output .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => $install_title,
|
||||
'$pass' => L10n::t('Database connection'),
|
||||
|
@ -202,7 +202,7 @@ class Install extends BaseModule
|
|||
/* Installed langs */
|
||||
$lang_choices = L10n::getAvailableLanguages();
|
||||
|
||||
$tpl = get_markup_template('install_settings.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('install_settings.tpl');
|
||||
$output .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => $install_title,
|
||||
'$checks' => self::$installer->getChecks(),
|
||||
|
@ -233,7 +233,7 @@ class Install extends BaseModule
|
|||
$db_return_text .= $txt;
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('install_finished.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('install_finished.tpl');
|
||||
$output .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => $install_title,
|
||||
'$checks' => self::$installer->getChecks(),
|
||||
|
|
|
@ -28,7 +28,7 @@ class Itemsource extends \Friendica\BaseModule
|
|||
$source = htmlspecialchars($conversation['source']);
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('debug/itemsource.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('debug/itemsource.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$guid' => ['guid', L10n::t('Item Guid'), htmlentities(defaults($_REQUEST, 'guid', '')), ''],
|
||||
'$source' => $source,
|
||||
|
|
|
@ -300,16 +300,16 @@ class Login extends BaseModule
|
|||
}
|
||||
|
||||
if (local_user()) {
|
||||
$tpl = get_markup_template('logout.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('logout.tpl');
|
||||
} else {
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(
|
||||
get_markup_template('login_head.tpl'),
|
||||
Renderer::getMarkupTemplate('login_head.tpl'),
|
||||
[
|
||||
'$baseurl' => $a->getBaseURL(true)
|
||||
]
|
||||
);
|
||||
|
||||
$tpl = get_markup_template('login.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('login.tpl');
|
||||
$_SESSION['return_path'] = $return_path;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ class Tos extends BaseModule
|
|||
* @return string
|
||||
**/
|
||||
public static function content() {
|
||||
$tpl = get_markup_template('tos.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('tos.tpl');
|
||||
if (Config::get('system', 'tosdisplay')) {
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Terms of Service'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue