get markup template
implement getMarkupTemplate function
This commit is contained in:
parent
91facd2d0a
commit
35abc4bb64
89 changed files with 243 additions and 243 deletions
|
@ -63,7 +63,7 @@ function photos_init(App $a) {
|
|||
|
||||
$account_type = Contact::getAccountType($profile);
|
||||
|
||||
$tpl = get_markup_template("vcard-widget.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("vcard-widget.tpl");
|
||||
|
||||
$vcard_widget = Renderer::replaceMacros($tpl, [
|
||||
'$name' => $profile['name'],
|
||||
|
@ -110,7 +110,7 @@ function photos_init(App $a) {
|
|||
}
|
||||
|
||||
if ($ret['success']) {
|
||||
$photo_albums_widget = Renderer::replaceMacros(get_markup_template('photo_albums.tpl'), [
|
||||
$photo_albums_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate('photo_albums.tpl'), [
|
||||
'$nick' => $a->data['user']['nickname'],
|
||||
'$title' => L10n::t('Photo Albums'),
|
||||
'$recent' => L10n::t('Recent Photos'),
|
||||
|
@ -131,7 +131,7 @@ function photos_init(App $a) {
|
|||
$a->page['aside'] .= $photo_albums_widget;
|
||||
}
|
||||
|
||||
$tpl = get_markup_template("photos_head.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("photos_head.tpl");
|
||||
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl,[
|
||||
'$ispublic' => L10n::t('everybody')
|
||||
|
@ -247,7 +247,7 @@ function photos_post(App $a)
|
|||
['name' => 'albumname', 'value' => $_POST['albumname']],
|
||||
];
|
||||
|
||||
$a->page['content'] = Renderer::replaceMacros(get_markup_template('confirm.tpl'), [
|
||||
$a->page['content'] = Renderer::replaceMacros(Renderer::getMarkupTemplate('confirm.tpl'), [
|
||||
'$method' => 'post',
|
||||
'$message' => L10n::t('Do you really want to delete this photo album and all its photos?'),
|
||||
'$extra_inputs' => $extra_inputs,
|
||||
|
@ -319,7 +319,7 @@ function photos_post(App $a)
|
|||
if (!empty($_REQUEST['confirm'])) {
|
||||
$drop_url = $a->query_string;
|
||||
|
||||
$a->page['content'] = Renderer::replaceMacros(get_markup_template('confirm.tpl'), [
|
||||
$a->page['content'] = Renderer::replaceMacros(Renderer::getMarkupTemplate('confirm.tpl'), [
|
||||
'$method' => 'post',
|
||||
'$message' => L10n::t('Do you really want to delete this photo?'),
|
||||
'$extra_inputs' => [],
|
||||
|
@ -1085,14 +1085,14 @@ function photos_content(App $a)
|
|||
|
||||
Addon::callHooks('photo_upload_form',$ret);
|
||||
|
||||
$default_upload_box = Renderer::replaceMacros(get_markup_template('photos_default_uploader_box.tpl'), []);
|
||||
$default_upload_submit = Renderer::replaceMacros(get_markup_template('photos_default_uploader_submit.tpl'), [
|
||||
$default_upload_box = Renderer::replaceMacros(Renderer::getMarkupTemplate('photos_default_uploader_box.tpl'), []);
|
||||
$default_upload_submit = Renderer::replaceMacros(Renderer::getMarkupTemplate('photos_default_uploader_submit.tpl'), [
|
||||
'$submit' => L10n::t('Submit'),
|
||||
]);
|
||||
|
||||
$usage_message = '';
|
||||
|
||||
$tpl = get_markup_template('photos_upload.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('photos_upload.tpl');
|
||||
|
||||
$aclselect_e = ($visitor ? '' : ACL::getFullSelectorHTML($a->user));
|
||||
|
||||
|
@ -1166,7 +1166,7 @@ function photos_content(App $a)
|
|||
if ($cmd === 'edit') {
|
||||
if (($album !== L10n::t('Profile Photos')) && ($album !== 'Contact Photos') && ($album !== L10n::t('Contact Photos'))) {
|
||||
if ($can_post) {
|
||||
$edit_tpl = get_markup_template('album_edit.tpl');
|
||||
$edit_tpl = Renderer::getMarkupTemplate('album_edit.tpl');
|
||||
|
||||
$album_e = $album;
|
||||
|
||||
|
@ -1220,7 +1220,7 @@ function photos_content(App $a)
|
|||
}
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('photo_album.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('photo_album.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$photos' => $photos,
|
||||
'$album' => $album,
|
||||
|
@ -1342,7 +1342,7 @@ function photos_content(App $a)
|
|||
}
|
||||
|
||||
if ($cmd === 'edit') {
|
||||
$tpl = get_markup_template('photo_edit_head.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('photo_edit_head.tpl');
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl,[
|
||||
'$prevlink' => $prevlink,
|
||||
'$nextlink' => $nextlink
|
||||
|
@ -1429,7 +1429,7 @@ function photos_content(App $a)
|
|||
|
||||
$edit = Null;
|
||||
if ($cmd === 'edit' && $can_post) {
|
||||
$edit_tpl = get_markup_template('photo_edit.tpl');
|
||||
$edit_tpl = Renderer::getMarkupTemplate('photo_edit.tpl');
|
||||
|
||||
$album_e = $ph[0]['album'];
|
||||
$caption_e = $ph[0]['desc'];
|
||||
|
@ -1468,12 +1468,12 @@ function photos_content(App $a)
|
|||
$responses = '';
|
||||
|
||||
if (count($linked_items)) {
|
||||
$cmnt_tpl = get_markup_template('comment_item.tpl');
|
||||
$tpl = get_markup_template('photo_item.tpl');
|
||||
$cmnt_tpl = Renderer::getMarkupTemplate('comment_item.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('photo_item.tpl');
|
||||
$return_path = $a->cmd;
|
||||
|
||||
if ($can_post || Security::canWriteToUserWall($owner_uid)) {
|
||||
$like_tpl = get_markup_template('like_noshare.tpl');
|
||||
$like_tpl = Renderer::getMarkupTemplate('like_noshare.tpl');
|
||||
$likebuttons = Renderer::replaceMacros($like_tpl, [
|
||||
'$id' => $link_item['id'],
|
||||
'$likethis' => L10n::t("I like this \x28toggle\x29"),
|
||||
|
@ -1612,7 +1612,7 @@ function photos_content(App $a)
|
|||
$paginate = $pager->renderFull($total);
|
||||
}
|
||||
|
||||
$photo_tpl = get_markup_template('photo_view.tpl');
|
||||
$photo_tpl = Renderer::getMarkupTemplate('photo_view.tpl');
|
||||
$o .= Renderer::replaceMacros($photo_tpl, [
|
||||
'$id' => $ph[0]['id'],
|
||||
'$album' => [$album_link, $ph[0]['album']],
|
||||
|
@ -1704,7 +1704,7 @@ function photos_content(App $a)
|
|||
}
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('photos_recent.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('photos_recent.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Recent Photos'),
|
||||
'$can_post' => $can_post,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue