]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Removed widget view from Profile.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 22 Mar 2010 10:50:13 +0000 (10:50 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 22 Mar 2010 10:50:13 +0000 (10:50 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5465 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/index.php
mod/profile/profile_lib.php
mod/profile/start.php
mod/profile/views/default/profile/profile_navigation.php

index 6d56f2c8774fe453ba519481863236808962afce..41552602d08129267297bad3cbc4dc9d3d3998bb 100644 (file)
@@ -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
index 3979ad9e338308681ee2e91a1781ee6dd2e73063..7e092c003fac815b0d2390eb51d3f3e8e78dd65c 100644 (file)
@@ -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;
index 3ba2b391587449dbf4b5717827ba48d51101854e..bb2f3d5ccd579644aacd3bcb87382f7618256f46 100644 (file)
@@ -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
index 0ab00746c8c1e52fce207c8c652156ec0cc96e30..b322066bf1a720695d585e3fb12360147f7f4a5c 100755 (executable)
@@ -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