mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
bring back load_view_file for dispy templates
This commit is contained in:
parent
5903ea38f3
commit
a00813497f
7 changed files with 12 additions and 12 deletions
|
@ -107,8 +107,8 @@ function conversation(&$a, $items, $mode, $update) {
|
|||
$cmnt_tpl = file_get_contents('view/comment_item.tpl');
|
||||
$like_tpl = file_get_contents('view/like.tpl');
|
||||
$noshare_tpl = file_get_contents('view/like_noshare.tpl');
|
||||
$tpl = file_get_contents('view/wall_item.tpl');
|
||||
$wallwall = file_get_contents('view/wallwall_item.tpl');
|
||||
$tpl = load_view_file('view/wall_item.tpl');
|
||||
$wallwall = load_view_file('view/wallwall_item.tpl');
|
||||
|
||||
$alike = array();
|
||||
$dlike = array();
|
||||
|
@ -120,7 +120,7 @@ function conversation(&$a, $items, $mode, $update) {
|
|||
// "New Item View" on network page or search page results
|
||||
// - just loop through the items and format them minimally for display
|
||||
|
||||
$tpl = file_get_contents('view/search_item.tpl');
|
||||
$tpl = load_view_file('view/search_item.tpl');
|
||||
$droptpl = file_get_contents('view/wall_fake_drop.tpl');
|
||||
|
||||
foreach($items as $item) {
|
||||
|
@ -664,7 +664,7 @@ function status_editor($a,$x) {
|
|||
|
||||
$geotag = (($x['allow_location']) ? file_get_contents('view/jot_geotag.tpl') : '');
|
||||
|
||||
$tpl = file_get_contents('view/jot-header.tpl');
|
||||
$tpl = load_view_file('view/jot-header.tpl');
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros($tpl, array(
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
|
@ -680,7 +680,7 @@ function status_editor($a,$x) {
|
|||
));
|
||||
|
||||
|
||||
$tpl = file_get_contents("view/jot.tpl");
|
||||
$tpl = load_view_file("view/jot.tpl");
|
||||
|
||||
$jotplugins = '';
|
||||
$jotnets = '';
|
||||
|
|
|
@ -125,7 +125,7 @@ function nav(&$a) {
|
|||
$banner .= '<a href="http://project.friendika.com"><img id="logo-img" src="images/friendika-32.png" alt="logo" /></a><span id="logo-text"><a href="http://project.friendika.com">Friendika</a></span>';
|
||||
|
||||
|
||||
$tpl = file_get_contents('view/nav.tpl');
|
||||
$tpl = load_view_file('view/nav.tpl');
|
||||
|
||||
$a->page['nav'] .= replace_macros($tpl, array(
|
||||
'$langselector' => lang_selector(),
|
||||
|
|
|
@ -31,7 +31,7 @@ function editpost_content(&$a) {
|
|||
|
||||
$o .= '<h2>' . t('Edit post') . '</h2>';
|
||||
|
||||
$tpl = file_get_contents('view/jot-header.tpl');
|
||||
$tpl = load_view_file('view/jot-header.tpl');
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros($tpl, array(
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
|
@ -41,7 +41,7 @@ function editpost_content(&$a) {
|
|||
));
|
||||
|
||||
|
||||
$tpl = file_get_contents("view/jot.tpl");
|
||||
$tpl = load_view_file("view/jot.tpl");
|
||||
|
||||
if(($group) || (is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid'])))))
|
||||
$lockstate = 'lock';
|
||||
|
|
|
@ -120,7 +120,7 @@ function message_content(&$a) {
|
|||
$myprofile = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
|
||||
|
||||
|
||||
$tpl = file_get_contents('view/mail_head.tpl');
|
||||
$tpl = load_view_file('view/mail_head.tpl');
|
||||
$header = replace_macros($tpl, array(
|
||||
'$messages' => t('Messages'),
|
||||
'$inbox' => t('Inbox'),
|
||||
|
|
|
@ -1247,7 +1247,7 @@ function photos_content(&$a) {
|
|||
$paginate = paginate($a);
|
||||
}
|
||||
|
||||
$photo_tpl = file_get_contents('view/photo_view.tpl');
|
||||
$photo_tpl = load_view_file('view/photo_view.tpl');
|
||||
$o .= replace_macros($photo_tpl, array(
|
||||
'$id' => $ph[0]['id'],
|
||||
'$album' => array($album_link,$ph[0]['album']),
|
||||
|
|
|
@ -104,7 +104,7 @@ function profile_content(&$a, $update = 0) {
|
|||
if(x($_GET,'tab'))
|
||||
$tab = notags(trim($_GET['tab']));
|
||||
|
||||
$tpl = file_get_contents('view/profile_tabs.tpl');
|
||||
$tpl = load_view_file('view/profile_tabs.tpl');
|
||||
|
||||
$o .= replace_macros($tpl,array(
|
||||
'$url' => $a->get_baseurl() . '/' . $a->cmd,
|
||||
|
|
|
@ -406,7 +406,7 @@ function settings_content(&$a) {
|
|||
'$basepath' => $a->get_hostname()
|
||||
));
|
||||
|
||||
$stpl = file_get_contents('view/settings.tpl');
|
||||
$stpl = load_view_file('view/settings.tpl');
|
||||
|
||||
$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue