get markup template

implement getMarkupTemplate function
This commit is contained in:
Adam Magness
2018-10-31 10:44:06 -04:00
parent 91facd2d0a
commit 35abc4bb64
89 changed files with 243 additions and 243 deletions

View File

@@ -111,7 +111,7 @@ function hovercard_content()
'actions' => $actions,
];
if ($datatype == 'html') {
$tpl = get_markup_template('hovercard.tpl');
$tpl = Renderer::getMarkupTemplate('hovercard.tpl');
$o = Renderer::replaceMacros($tpl, [
'$profile' => $profile,
]);
@@ -134,7 +134,7 @@ function get_template_content($template, $root = '')
{
// We load the whole template system to get the filename.
// Maybe we can do it a little bit smarter if I get time.
$t = get_markup_template($template, $root);
$t = Renderer::getMarkupTemplate($template, $root);
$filename = $t->filename;
// Get the content of the template file