$body .= elgg_view('profile/profile_contents/details', array("entity" => $user));
break;
- case 'widgets':
- $body .= elgg_view_layout('widgets');
- break;
-
case 'friends':
$body .= elgg_view('profile/profile_contents/friends', array("entity" => $user));
break;
$body .= elgg_view('profile/profile_contents/details', array("entity" => $user));
break;
}
- //$body .= elgg_view_entity($user,true);
$title = $user->name;
- //$body .= elgg_view_layout('widgets');
} else {
$body = elgg_echo("profile:notfound");
$title = elgg_echo("profile");
}
-if ($option == 'widgets') {
- //page_draw_widgets($title, $body, $sidebar="");
-} else {
- $body = elgg_view_layout("one_column", $body);
- page_draw($title, $body);
-}
\ No newline at end of file
+$body = elgg_view_layout("one_column", $body);
+page_draw($title, $body);
\ No newline at end of file
$view_options = array('entity' => $user);
switch($section){
- case 'widgets':
- $body .= elgg_view_layout('widgets', $view_options);
- break;
-
case 'friends':
$body .= elgg_view('profile/profile_contents/friends', $view_options);
break;
register_action("profile/cropicon",false,$CONFIG->pluginspath . "profile/actions/cropicon.php");
register_action("profile/editdefault",false,$CONFIG->pluginspath . "profile/actions/editdefault.php", true);
register_action("profile/editdefault/delete",false,$CONFIG->pluginspath . "profile/actions/deletedefaultprofileitem.php", true);
-register_action("profile/editdefault/reset",false,$CONFIG->pluginspath . "profile/actions/resetdefaultprofile.php", true);
-
-
-// Define widgets for use in this context
-use_widgets('profile');
\ No newline at end of file
+register_action("profile/editdefault/reset",false,$CONFIG->pluginspath . "profile/actions/resetdefaultprofile.php", true);
\ No newline at end of file
$profile = $vars['entity'];
$activity = '';
-$widgets = '';
$friends = '';
$extend = '';
$twitter = '';
$friends = 'class="selected"';
break;
- case 'widgets':
- $widgets = 'class="selected"';
- break;
-
case 'details':
$details = 'class="selected"';
break;
<ul>
<li <?php echo $activity; ?>><a href="<?php echo $url; ?>">Activity</a></li>
<li <?php echo $details; ?>><a href="<?php echo $url . 'details'; ?>">Details</a></li>
- <li <?php echo $widgets; ?>><a href="<?php echo $url . 'widgets'; ?>">Widgets</a></li>
<li <?php echo $friends; ?>><a href="<?php echo $url . 'friends'; ?>">Friends</a></li>
<?php
//check to see if the twitter username is set