aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/index.php14
-rw-r--r--mod/profile/profile_lib.php4
-rw-r--r--mod/profile/start.php6
-rwxr-xr-xmod/profile/views/default/profile/profile_navigation.php6
4 files changed, 3 insertions, 27 deletions
diff --git a/mod/profile/index.php b/mod/profile/index.php
index 6d56f2c87..41552602d 100644
--- a/mod/profile/index.php
+++ b/mod/profile/index.php
@@ -26,10 +26,6 @@ if ($user = get_user_by_username($username)) {
$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;
@@ -45,16 +41,10 @@ if ($user = get_user_by_username($username)) {
$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
diff --git a/mod/profile/profile_lib.php b/mod/profile/profile_lib.php
index 3979ad9e3..7e092c003 100644
--- a/mod/profile/profile_lib.php
+++ b/mod/profile/profile_lib.php
@@ -22,10 +22,6 @@ function profile_get_user_profile_html($user, $section = 'activity') {
$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;
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 3ba2b3915..bb2f3d5cc 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -303,8 +303,4 @@ register_action("profile/iconupload",false,$CONFIG->pluginspath . "profile/actio
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
diff --git a/mod/profile/views/default/profile/profile_navigation.php b/mod/profile/views/default/profile/profile_navigation.php
index 0ab00746c..b322066bf 100755
--- a/mod/profile/views/default/profile/profile_navigation.php
+++ b/mod/profile/views/default/profile/profile_navigation.php
@@ -7,7 +7,6 @@ if (isset($vars['section'])) {
$profile = $vars['entity'];
$activity = '';
-$widgets = '';
$friends = '';
$extend = '';
$twitter = '';
@@ -20,10 +19,6 @@ switch($section){
$friends = 'class="selected"';
break;
- case 'widgets':
- $widgets = 'class="selected"';
- break;
-
case 'details':
$details = 'class="selected"';
break;
@@ -43,7 +38,6 @@ switch($section){
<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