mirror of
https://github.com/friendica/friendica
synced 2025-05-01 19:44:23 +02: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
|
@ -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