get markup template
implement getMarkupTemplate function
This commit is contained in:
parent
91facd2d0a
commit
35abc4bb64
89 changed files with 243 additions and 243 deletions
|
@ -67,7 +67,7 @@ function clean_form(App $a, &$colorset, $user)
|
|||
$color = Config::get('duepuntozero', 'colorset');
|
||||
}
|
||||
|
||||
$t = get_markup_template("theme_settings.tpl");
|
||||
$t = Renderer::getMarkupTemplate("theme_settings.tpl");
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$submit' => L10n::t('Submit'),
|
||||
'$baseurl' => System::baseUrl(),
|
||||
|
|
|
@ -114,7 +114,7 @@ function frio_form($arr)
|
|||
|
||||
$background_image_help = '<strong>' . L10n::t('Note') . ': </strong>' . L10n::t('Check image permissions if all users are allowed to see the image');
|
||||
|
||||
$t = get_markup_template('theme_settings.tpl');
|
||||
$t = Renderer::getMarkupTemplate('theme_settings.tpl');
|
||||
$ctx = [
|
||||
'$submit' => L10n::t('Submit'),
|
||||
'$baseurl' => System::baseUrl(),
|
||||
|
|
|
@ -69,7 +69,7 @@ function quattro_form(App $a, $align, $color, $tfs, $pfs) {
|
|||
$pfs = "12";
|
||||
}
|
||||
|
||||
$t = get_markup_template("theme_settings.tpl" );
|
||||
$t = Renderer::getMarkupTemplate("theme_settings.tpl" );
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$submit' => L10n::t('Submit'),
|
||||
'$baseurl' => System::baseUrl(),
|
||||
|
|
|
@ -111,7 +111,7 @@ if (! function_exists('_js_in_foot')) {
|
|||
$ssl_state = null;
|
||||
$baseurl = System::baseUrl($ssl_state);
|
||||
$bottom['$baseurl'] = $baseurl;
|
||||
$tpl = get_markup_template('bottom.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('bottom.tpl');
|
||||
|
||||
return $a->page['bottom'] = Renderer::replaceMacros($tpl, $bottom);
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ function theme_admin(App $a) {
|
|||
if ($helperlist == "")
|
||||
$helperlist = "https://forum.friendi.ca/profile/helpers";
|
||||
|
||||
$t = get_markup_template("theme_admin_settings.tpl");
|
||||
$t = Renderer::getMarkupTemplate("theme_admin_settings.tpl");
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$helperlist' => ['vier_helperlist', L10n::t('Comma separated list of helper forums'), $helperlist, '', ''],
|
||||
]);
|
||||
|
@ -115,7 +115,7 @@ function vier_form(App $a, $style, $show_pages, $show_profiles, $show_helpers, $
|
|||
|
||||
$show_or_not = ['0' => L10n::t("don't show"), '1' => L10n::t("show"),];
|
||||
|
||||
$t = get_markup_template("theme_settings.tpl");
|
||||
$t = Renderer::getMarkupTemplate("theme_settings.tpl");
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$submit' => L10n::t('Submit'),
|
||||
'$baseurl' => System::baseUrl(),
|
||||
|
|
|
@ -145,7 +145,7 @@ function vier_community_info()
|
|||
if ($show_profiles) {
|
||||
$r = GContact::suggestionQuery(local_user(), 0, 9);
|
||||
|
||||
$tpl = get_markup_template('ch_directory_item.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('ch_directory_item.tpl');
|
||||
if (DBA::isResult($r)) {
|
||||
$aside['$comunity_profiles_title'] = L10n::t('Community Profiles');
|
||||
$aside['$comunity_profiles_items'] = [];
|
||||
|
@ -167,7 +167,7 @@ function vier_community_info()
|
|||
$publish = (Config::get('system', 'publish_all') ? '' : " AND `publish` = 1 ");
|
||||
$order = " ORDER BY `register_date` DESC ";
|
||||
|
||||
$tpl = get_markup_template('ch_directory_item.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('ch_directory_item.tpl');
|
||||
|
||||
$r = q("SELECT `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname`
|
||||
FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
||||
|
@ -244,7 +244,7 @@ function vier_community_info()
|
|||
}
|
||||
|
||||
|
||||
$tpl = get_markup_template('widget_forumlist_right.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('widget_forumlist_right.tpl');
|
||||
|
||||
$page = Renderer::replaceMacros(
|
||||
$tpl,
|
||||
|
@ -289,7 +289,7 @@ function vier_community_info()
|
|||
|
||||
$r[] = ["url" => "help/Quick-Start-guide", "name" => L10n::t("Quick Start")];
|
||||
|
||||
$tpl = get_markup_template('ch_helpers.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('ch_helpers.tpl');
|
||||
|
||||
if ($r) {
|
||||
$helpers = [];
|
||||
|
@ -380,7 +380,7 @@ function vier_community_info()
|
|||
$r[] = ["photo" => "images/mail.png", "name" => "E-Mail"];
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('ch_connectors.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('ch_connectors.tpl');
|
||||
|
||||
if (DBA::isResult($r)) {
|
||||
$con_services = [];
|
||||
|
@ -400,6 +400,6 @@ function vier_community_info()
|
|||
//end connectable services
|
||||
|
||||
//print right_aside
|
||||
$tpl = get_markup_template('communityhome.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('communityhome.tpl');
|
||||
$a->page['right_aside'] = Renderer::replaceMacros($tpl, $aside);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue