require_once('include/profile_selectors.php');
- $tpl = load_view_file('view/profed_head.tpl');
+ $tpl = file_get_contents('view/profed_head.tpl');
- $opt_tpl = load_view_file("view/profile-hide-friends.tpl");
+ $opt_tpl = file_get_contents("view/profile-hide-friends.tpl");
$hide_friends = replace_macros($opt_tpl,array(
'$desc' => t('Hide my contact/friend list from viewers of this profile?'),
'$yes_str' => t('Yes'),
$is_default = (($r[0]['is-default']) ? 1 : 0);
- $tpl = load_view_file("view/profile_edit.tpl");
+ $tpl = file_get_contents("view/profile_edit.tpl");
$o .= replace_macros($tpl,array(
'$banner' => t('Edit Profile Details'),
'$submit' => t('Submit'),
local_user());
if(count($r)) {
- $tpl_header = load_view_file('view/profile_listing_header.tpl');
+ $tpl_header = file_get_contents('view/profile_listing_header.tpl');
$o .= replace_macros($tpl_header,array(
'$header' => t('Profiles'),
'$chg_photo' => t('Change profile photo'),
));
- $tpl = load_view_file('view/profile_entry.tpl');
+ $tpl = file_get_contents('view/profile_entry.tpl');
foreach($r as $rr) {
$o .= replace_macros($tpl, array(