get markup template
implement getMarkupTemplate function
This commit is contained in:
parent
91facd2d0a
commit
35abc4bb64
89 changed files with 243 additions and 243 deletions
10
src/App.php
10
src/App.php
|
|
@ -772,7 +772,7 @@ class App
|
|||
|
||||
Core\Addon::callHooks('head', $this->page['htmlhead']);
|
||||
|
||||
$tpl = get_markup_template('head.tpl');
|
||||
$tpl = Core\Renderer::getMarkupTemplate('head.tpl');
|
||||
/* put the head template at the beginning of page['htmlhead']
|
||||
* since the code added by the modules frequently depends on it
|
||||
* being first
|
||||
|
|
@ -823,7 +823,7 @@ class App
|
|||
} else {
|
||||
$link = 'toggle_mobile?off=1&address=' . curPageURL();
|
||||
}
|
||||
$this->page['footer'] .= Core\Renderer::replaceMacros(get_markup_template("toggle_mobile_footer.tpl"), [
|
||||
$this->page['footer'] .= Core\Renderer::replaceMacros(Core\Renderer::getMarkupTemplate("toggle_mobile_footer.tpl"), [
|
||||
'$toggle_link' => $link,
|
||||
'$toggle_text' => Core\L10n::t('toggle mobile')
|
||||
]);
|
||||
|
|
@ -831,7 +831,7 @@ class App
|
|||
|
||||
Core\Addon::callHooks('footer', $this->page['footer']);
|
||||
|
||||
$tpl = get_markup_template('footer.tpl');
|
||||
$tpl = Core\Renderer::getMarkupTemplate('footer.tpl');
|
||||
$this->page['footer'] = Core\Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => $this->getBaseURL(),
|
||||
'$footerScripts' => $this->footerScripts,
|
||||
|
|
@ -1792,7 +1792,7 @@ class App
|
|||
Core\Logger::log('index.php: page not found: ' . $_SERVER['REQUEST_URI'] . ' ADDRESS: ' . $_SERVER['REMOTE_ADDR'] . ' QUERY: ' . $_SERVER['QUERY_STRING'], Core\Logger::DEBUG);
|
||||
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . Core\L10n::t('Not Found'));
|
||||
$tpl = get_markup_template("404.tpl");
|
||||
$tpl = Core\Renderer::getMarkupTemplate("404.tpl");
|
||||
$this->page['content'] = Core\Renderer::replaceMacros($tpl, [
|
||||
'$message' => Core\L10n::t('Page not found.')
|
||||
]);
|
||||
|
|
@ -1881,7 +1881,7 @@ class App
|
|||
|
||||
// Add the navigation (menu) template
|
||||
if ($this->module != 'install' && $this->module != 'maintenance') {
|
||||
$this->page['htmlhead'] .= Core\Renderer::replaceMacros(get_markup_template('nav_head.tpl'), []);
|
||||
$this->page['htmlhead'] .= Core\Renderer::replaceMacros(Core\Renderer::getMarkupTemplate('nav_head.tpl'), []);
|
||||
$this->page['nav'] = Content\Nav::build($this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ class ForumManager
|
|||
$entries[] = $entry;
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('widget_forumlist.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('widget_forumlist.tpl');
|
||||
|
||||
$o .= Renderer::replaceMacros(
|
||||
$tpl,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class Nav
|
|||
|
||||
$nav_info = self::getInfo($a);
|
||||
|
||||
$tpl = get_markup_template('nav.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('nav.tpl');
|
||||
|
||||
$nav .= Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(),
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ class OEmbed
|
|||
|
||||
$th = 120;
|
||||
$tw = $th * $tr;
|
||||
$tpl = get_markup_template('oembed_video.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('oembed_video.tpl');
|
||||
$ret .= Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(),
|
||||
'$embedurl' => $oembed->embed_url,
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ class Pager
|
|||
]
|
||||
];
|
||||
|
||||
$tpl = get_markup_template('paginate.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('paginate.tpl');
|
||||
return Renderer::replaceMacros($tpl, ['pager' => $data]);
|
||||
}
|
||||
|
||||
|
|
@ -277,7 +277,7 @@ class Pager
|
|||
];
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('paginate.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('paginate.tpl');
|
||||
return Renderer::replaceMacros($tpl, ['pager' => $data]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -987,7 +987,7 @@ class BBCode extends BaseObject
|
|||
} else {
|
||||
$text = ($is_quote_share? "\n" : '');
|
||||
|
||||
$tpl = get_markup_template('shared_content.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('shared_content.tpl');
|
||||
$text .= Renderer::replaceMacros($tpl, [
|
||||
'$profile' => $attributes['profile'],
|
||||
'$avatar' => $attributes['avatar'],
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Widget
|
|||
*/
|
||||
public static function follow($value = "")
|
||||
{
|
||||
return Renderer::replaceMacros(get_markup_template('follow.tpl'), array(
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('follow.tpl'), array(
|
||||
'$connect' => L10n::t('Add New Contact'),
|
||||
'$desc' => L10n::t('Enter address or web location'),
|
||||
'$hint' => L10n::t('Example: bob@example.com, http://example.com/barbara'),
|
||||
|
|
@ -74,7 +74,7 @@ class Widget
|
|||
$aside = [];
|
||||
$aside['$nv'] = $nv;
|
||||
|
||||
return Renderer::replaceMacros(get_markup_template('peoplefind.tpl'), $aside);
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('peoplefind.tpl'), $aside);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -152,7 +152,7 @@ class Widget
|
|||
return '';
|
||||
}
|
||||
|
||||
return Renderer::replaceMacros(get_markup_template('nets.tpl'), array(
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('nets.tpl'), array(
|
||||
'$title' => L10n::t('Networks'),
|
||||
'$desc' => '',
|
||||
'$sel_all' => (($selected == '') ? 'selected' : ''),
|
||||
|
|
@ -194,7 +194,7 @@ class Widget
|
|||
}
|
||||
}
|
||||
|
||||
return Renderer::replaceMacros(get_markup_template('fileas_widget.tpl'), array(
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('fileas_widget.tpl'), array(
|
||||
'$title' => L10n::t('Saved Folders'),
|
||||
'$desc' => '',
|
||||
'$sel_all' => (($selected == '') ? 'selected' : ''),
|
||||
|
|
@ -234,7 +234,7 @@ class Widget
|
|||
}
|
||||
}
|
||||
|
||||
return Renderer::replaceMacros(get_markup_template('categories_widget.tpl'), array(
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('categories_widget.tpl'), array(
|
||||
'$title' => L10n::t('Categories'),
|
||||
'$desc' => '',
|
||||
'$sel_all' => (($selected == '') ? 'selected' : ''),
|
||||
|
|
@ -301,7 +301,7 @@ class Widget
|
|||
$r = GContact::commonFriendsZcid($profile_uid, $zcid, 0, 5, true);
|
||||
}
|
||||
|
||||
return Renderer::replaceMacros(get_markup_template('remote_friends_common.tpl'), array(
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('remote_friends_common.tpl'), array(
|
||||
'$desc' => L10n::tt("%d contact in common", "%d contacts in common", $t),
|
||||
'$base' => System::baseUrl(),
|
||||
'$uid' => $profile_uid,
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class CalendarExport
|
|||
// of the profile page it should be the personal /events page. So we can use $a->user.
|
||||
$user = defaults($a->data['user'], 'nickname', $a->user['nickname']);
|
||||
|
||||
$tpl = get_markup_template("events_aside.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("events_aside.tpl");
|
||||
$return = Renderer::replaceMacros($tpl, [
|
||||
'$etitle' => L10n::t("Export"),
|
||||
'$export_ical' => L10n::t("Export calendar as ical"),
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class TagCloud
|
|||
$tags[] = $tag;
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('tagblock_widget.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('tagblock_widget.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Tags'),
|
||||
'$tags' => $tags
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@ class ACL extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('acl_selector.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('acl_selector.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$showall' => L10n::t('Visible to everybody'),
|
||||
'$show' => L10n::t('show'),
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class Installer
|
|||
*/
|
||||
public function createConfig($phppath, $urlpath, $dbhost, $dbuser, $dbpass, $dbdata, $timezone, $language, $adminmail, $basepath)
|
||||
{
|
||||
$tpl = get_markup_template('local.ini.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('local.ini.tpl');
|
||||
$txt = Renderer::replaceMacros($tpl, [
|
||||
'$phpath' => $phppath,
|
||||
'$dbhost' => $dbhost,
|
||||
|
|
@ -238,7 +238,7 @@ class Installer
|
|||
$help .= L10n::t('Could not find a command line version of PHP in the web server PATH.') . EOL;
|
||||
$help .= L10n::t("If you don't have a command line version of PHP installed on your server, you will not be able to run the background processing. See <a href='https://github.com/friendica/friendica/blob/master/doc/Install.md#set-up-the-worker'>'Setup the worker'</a>") . EOL;
|
||||
$help .= EOL . EOL;
|
||||
$tpl = get_markup_template('field_input.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('field_input.tpl');
|
||||
$help .= Renderer::replaceMacros($tpl, [
|
||||
'$field' => ['phpath', L10n::t('PHP executable path'), $phppath, L10n::t('Enter full path to php executable. You can leave this blank to continue the installation.')],
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class System extends BaseObject
|
|||
header($_SERVER["SERVER_PROTOCOL"] . ' ' . $val . ' ' . $err);
|
||||
|
||||
if (isset($description["title"])) {
|
||||
$tpl = get_markup_template('http_status.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('http_status.tpl');
|
||||
echo Renderer::replaceMacros($tpl, ['$title' => $description["title"],
|
||||
'$description' => defaults($description, 'description', '')]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -899,7 +899,7 @@ class Event extends BaseObject
|
|||
// Construct the profile link (magic-auth).
|
||||
$profile_link = Contact::magicLinkById($item['author-id']);
|
||||
|
||||
$tpl = get_markup_template('event_stream_item.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('event_stream_item.tpl');
|
||||
$return = Renderer::replaceMacros($tpl, [
|
||||
'$id' => $item['event-id'],
|
||||
'$title' => prepare_text($item['event-summary']),
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ class Group extends BaseObject
|
|||
$label = L10n::t('Default privacy group for new contacts');
|
||||
}
|
||||
|
||||
$o = Renderer::replaceMacros(get_markup_template('group_selection.tpl'), [
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('group_selection.tpl'), [
|
||||
'$label' => $label,
|
||||
'$groups' => $display_groups
|
||||
]);
|
||||
|
|
@ -400,7 +400,7 @@ class Group extends BaseObject
|
|||
];
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('group_side.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('group_side.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$add' => L10n::t('add'),
|
||||
'$title' => L10n::t('Groups'),
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ class Profile
|
|||
|
||||
if (local_user() && local_user() == $a->profile['uid'] && $profiledata) {
|
||||
$a->page['aside'] .= Renderer::replaceMacros(
|
||||
get_markup_template('profile_edlink.tpl'),
|
||||
Renderer::getMarkupTemplate('profile_edlink.tpl'),
|
||||
[
|
||||
'$editprofile' => L10n::t('Edit profile'),
|
||||
'$profid' => $a->profile['id']
|
||||
|
|
@ -517,7 +517,7 @@ class Profile
|
|||
|
||||
$p['url'] = Contact::magicLink(defaults($p, 'url', $profile_url));
|
||||
|
||||
$tpl = get_markup_template('profile_vcard.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('profile_vcard.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$profile' => $p,
|
||||
'$xmpp' => $xmpp,
|
||||
|
|
@ -622,7 +622,7 @@ class Profile
|
|||
}
|
||||
}
|
||||
}
|
||||
$tpl = get_markup_template('birthdays_reminder.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('birthdays_reminder.tpl');
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(),
|
||||
'$classtoday' => $classtoday,
|
||||
|
|
@ -711,7 +711,7 @@ class Profile
|
|||
DBA::close($s);
|
||||
$classtoday = (($istoday) ? 'event-today' : '');
|
||||
}
|
||||
$tpl = get_markup_template('events_reminder.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('events_reminder.tpl');
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(),
|
||||
'$classtoday' => $classtoday,
|
||||
|
|
@ -728,12 +728,12 @@ class Profile
|
|||
$uid = $a->profile['uid'];
|
||||
|
||||
$o .= Renderer::replaceMacros(
|
||||
get_markup_template('section_title.tpl'),
|
||||
Renderer::getMarkupTemplate('section_title.tpl'),
|
||||
['$title' => L10n::t('Profile')]
|
||||
);
|
||||
|
||||
if ($a->profile['name']) {
|
||||
$tpl = get_markup_template('profile_advanced.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('profile_advanced.tpl');
|
||||
|
||||
$profile = [];
|
||||
|
||||
|
|
@ -978,7 +978,7 @@ class Profile
|
|||
$arr = ['is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => $tab, 'tabs' => $tabs];
|
||||
Addon::callHooks('profile_tabs', $arr);
|
||||
|
||||
$tpl = get_markup_template('common_tabs.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
|
||||
return Renderer::replaceMacros($tpl, ['$tabs' => $arr['tabs']]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -786,7 +786,7 @@ class Post extends BaseObject
|
|||
$uid = $parent_uid;
|
||||
}
|
||||
|
||||
$template = get_markup_template($this->getCommentBoxTemplate());
|
||||
$template = Renderer::getMarkupTemplate($this->getCommentBoxTemplate());
|
||||
$comment_box = Renderer::replaceMacros($template, [
|
||||
'$return_path' => $a->query_string,
|
||||
'$threaded' => $this->isThreaded(),
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class Temporal
|
|||
$options = str_replace('<select id="timezone_select" name="timezone">', '', $options);
|
||||
$options = str_replace('</select>', '', $options);
|
||||
|
||||
$tpl = get_markup_template('field_select_raw.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('field_select_raw.tpl');
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$field' => [$name, $label, $current, $help, $options],
|
||||
]);
|
||||
|
|
@ -141,7 +141,7 @@ class Temporal
|
|||
|
||||
$age = (intval($value) ? self::getAgeByTimezone($value, $a->user["timezone"], $a->user["timezone"]) : "");
|
||||
|
||||
$tpl = get_markup_template("field_input.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("field_input.tpl");
|
||||
$o = Renderer::replaceMacros($tpl,
|
||||
[
|
||||
'$field' => [
|
||||
|
|
@ -247,7 +247,7 @@ class Temporal
|
|||
|
||||
$readable_format = str_replace(['Y', 'm', 'd', 'H', 'i'], ['yyyy', 'mm', 'dd', 'HH', 'MM'], $dateformat);
|
||||
|
||||
$tpl = get_markup_template('field_datetime.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('field_datetime.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$field' => [
|
||||
$id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue