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

@ -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,