$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();
// "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) {
$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(),
));
- $tpl = file_get_contents("view/jot.tpl");
+ $tpl = load_view_file("view/jot.tpl");
$jotplugins = '';
$jotnets = '';
$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(),
$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(),
));
- $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';
$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'),
$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']),
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,
'$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);