mirror of
https://github.com/friendica/friendica
synced 2025-04-25 10:30:12 +00:00
replace macros
implement new replaceMacros function
This commit is contained in:
parent
f6c86649c2
commit
91facd2d0a
91 changed files with 335 additions and 249 deletions
|
@ -11,6 +11,7 @@ use Friendica\Core\Config;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
|
@ -30,7 +31,7 @@ class Widget
|
|||
*/
|
||||
public static function follow($value = "")
|
||||
{
|
||||
return replace_macros(get_markup_template('follow.tpl'), array(
|
||||
return Renderer::replaceMacros(get_markup_template('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'),
|
||||
|
@ -73,7 +74,7 @@ class Widget
|
|||
$aside = [];
|
||||
$aside['$nv'] = $nv;
|
||||
|
||||
return replace_macros(get_markup_template('peoplefind.tpl'), $aside);
|
||||
return Renderer::replaceMacros(get_markup_template('peoplefind.tpl'), $aside);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -151,7 +152,7 @@ class Widget
|
|||
return '';
|
||||
}
|
||||
|
||||
return replace_macros(get_markup_template('nets.tpl'), array(
|
||||
return Renderer::replaceMacros(get_markup_template('nets.tpl'), array(
|
||||
'$title' => L10n::t('Networks'),
|
||||
'$desc' => '',
|
||||
'$sel_all' => (($selected == '') ? 'selected' : ''),
|
||||
|
@ -193,7 +194,7 @@ class Widget
|
|||
}
|
||||
}
|
||||
|
||||
return replace_macros(get_markup_template('fileas_widget.tpl'), array(
|
||||
return Renderer::replaceMacros(get_markup_template('fileas_widget.tpl'), array(
|
||||
'$title' => L10n::t('Saved Folders'),
|
||||
'$desc' => '',
|
||||
'$sel_all' => (($selected == '') ? 'selected' : ''),
|
||||
|
@ -233,7 +234,7 @@ class Widget
|
|||
}
|
||||
}
|
||||
|
||||
return replace_macros(get_markup_template('categories_widget.tpl'), array(
|
||||
return Renderer::replaceMacros(get_markup_template('categories_widget.tpl'), array(
|
||||
'$title' => L10n::t('Categories'),
|
||||
'$desc' => '',
|
||||
'$sel_all' => (($selected == '') ? 'selected' : ''),
|
||||
|
@ -300,7 +301,7 @@ class Widget
|
|||
$r = GContact::commonFriendsZcid($profile_uid, $zcid, 0, 5, true);
|
||||
}
|
||||
|
||||
return replace_macros(get_markup_template('remote_friends_common.tpl'), array(
|
||||
return Renderer::replaceMacros(get_markup_template('remote_friends_common.tpl'), array(
|
||||
'$desc' => L10n::tt("%d contact in common", "%d contacts in common", $t),
|
||||
'$base' => System::baseUrl(),
|
||||
'$uid' => $profile_uid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue