diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-05 10:18:50 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-05 10:18:50 +0000 |
commit | 86371bffa2f6a204149f554534f8f0635735d87c (patch) | |
tree | 50ad468a304995283b78de42de5d4ebdd28715af /mod/groups/views/default | |
parent | d71ea0185de379c453b655f586177ad78b16a44d (diff) | |
download | elgg-86371bffa2f6a204149f554534f8f0635735d87c.tar.gz elgg-86371bffa2f6a204149f554534f8f0635735d87c.tar.bz2 |
Moved group links to the sidebar
git-svn-id: https://code.elgg.org/elgg/trunk@1697 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r-- | mod/groups/views/default/groups/grouplinks.php | 29 | ||||
-rw-r--r-- | mod/groups/views/default/groups/groupprofile.php | 3 | ||||
-rw-r--r-- | mod/groups/views/default/groups/menu/actions.php | 35 | ||||
-rw-r--r-- | mod/groups/views/default/groups/menu/adminlinks.php | 3 | ||||
-rw-r--r-- | mod/groups/views/default/groups/menu/links.php | 3 | ||||
-rw-r--r-- | mod/groups/views/default/groups/menu/ownerlinks.php | 20 |
6 files changed, 0 insertions, 93 deletions
diff --git a/mod/groups/views/default/groups/grouplinks.php b/mod/groups/views/default/groups/grouplinks.php deleted file mode 100644 index f5f071eb0..000000000 --- a/mod/groups/views/default/groups/grouplinks.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - /** - * Group links - * - * @package ElggGroups - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - //check to see if the user is looking at their own profile - if($_SESSION['user']->guid == $vars['entity']->owner_guid){ - - echo "<div id=\"profile_menu_wrapper\">"; //start the wrapper div - echo elgg_view("groups/menu/actions",$vars); - echo elgg_view("groups/menu/links",$vars); - echo "</div>"; //close wrapper div - - } else { - - echo "<div id=\"profile_menu_wrapper\">"; //start the wrapper div - echo elgg_view("groups/menu/actions",$vars); //grab action links such as make friend - echo elgg_view("groups/menu/links",$vars); //passive links to items such as user blog etc - echo "</div>"; //close wrapper div - - } - -?>
\ No newline at end of file diff --git a/mod/groups/views/default/groups/groupprofile.php b/mod/groups/views/default/groups/groupprofile.php index c8e48ebed..772f644a2 100644 --- a/mod/groups/views/default/groups/groupprofile.php +++ b/mod/groups/views/default/groups/groupprofile.php @@ -32,9 +32,6 @@ 'size' => $iconsize, ) ); - - // display relevant links - echo elgg_view("groups/grouplinks", array("entity" => $vars['entity'])); ?> </div> diff --git a/mod/groups/views/default/groups/menu/actions.php b/mod/groups/views/default/groups/menu/actions.php deleted file mode 100644 index 4c27fea9b..000000000 --- a/mod/groups/views/default/groups/menu/actions.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - /** - * Elgg group actions - * - * @package ElggGroups - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - if (isloggedin()) { - - if ($vars['entity']->isMember($_SESSION['user'])) - { - ?><p><a href="<?php echo $vars['url']; ?>action/groups/leave?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("groups:leave"); ?></a></p><?php - } - else - { - if ($vars['entity']->isPublicMembership()) - { - ?><p><a href="<?php echo $vars['url']; ?>action/groups/join?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("groups:join"); ?></a></p><?php - } - else - { - ?><p><a href="<?php echo $vars['url']; ?>action/groups/joinrequest?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("groups:joinrequest"); ?></a></p><?php - } - } - - if ($vars['entity']->canEdit()) - { - ?><p><a href="<?php echo $vars['url']; ?>mod/groups/invite.php?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("groups:invite"); ?></a></p><?php - } - } -?>
\ No newline at end of file diff --git a/mod/groups/views/default/groups/menu/adminlinks.php b/mod/groups/views/default/groups/menu/adminlinks.php deleted file mode 100644 index 15c5adc7f..000000000 --- a/mod/groups/views/default/groups/menu/adminlinks.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php - -?>
\ No newline at end of file diff --git a/mod/groups/views/default/groups/menu/links.php b/mod/groups/views/default/groups/menu/links.php deleted file mode 100644 index 15c5adc7f..000000000 --- a/mod/groups/views/default/groups/menu/links.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php - -?>
\ No newline at end of file diff --git a/mod/groups/views/default/groups/menu/ownerlinks.php b/mod/groups/views/default/groups/menu/ownerlinks.php deleted file mode 100644 index aaa575bec..000000000 --- a/mod/groups/views/default/groups/menu/ownerlinks.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php - /** - * Owner links - * - * @package ElggGroups - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - - // edit - if (($_SESSION['user']->getGUID() == $vars['entity']->owner_guid) && ($vars['full'])) - { - ?> - <p><a href="<?php echo $vars['url']; ?>mod/groups/edit.php?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("edit"); ?></a></p> - <?php - } -?>
\ No newline at end of file |