aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/breadcrumbs.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/breadcrumbs.php')
-rw-r--r--views/default/navigation/breadcrumbs.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/views/default/navigation/breadcrumbs.php b/views/default/navigation/breadcrumbs.php
index 6ceb5eacc..88577a8ff 100644
--- a/views/default/navigation/breadcrumbs.php
+++ b/views/default/navigation/breadcrumbs.php
@@ -17,48 +17,6 @@ if (isset($vars['breadcrumbs'])) {
$breadcrumbs = elgg_get_breadcrumbs();
}
-
-$page_owner = elgg_get_page_owner_entity();
-
-if(elgg_instanceof($page_owner, 'group')) {
-
- // $breadcrumbs[1] should corresponds to group's breadcrumb
- // we'll look for it in crumbs link
-
- $link = $breadcrumbs[1]['link'];
- $guid = (string) $page_owner->guid;
- $alias = $page_owner->alias;
-
- $title = $breadcrumbs[1]['title'];
- $name = $page_owner->name;
-
- if(strpos($link, $guid) || $alias && strpos($link, $alias) || !$link && $title == $name) {
- $first_crumb = array_shift($breadcrumbs);
- $container = get_entity($page_owner->container_guid);
- while(elgg_instanceof($container, 'group')) {
-
- // TODO: I should find a better solution for this.
- if(strpos($first_crumb['link'], 'groups') !== false) {
- $container_link = str_replace('all', "profile/$container->guid", $first_crumb['link']);
- } elseif(strpos($first_crumb['link'], 'discussion') !== false) {
- $container_link = str_replace('all', "owner/$container->guid", $first_crumb['link']);
- } else {
- $container_link = str_replace('all', "group/$container->guid", $first_crumb['link']);
- }
-
- $container_link = elgg_trigger_plugin_hook('container_crumb_link', 'breadcrumbs', array('container' => $container, 'first_crumb' => $first_crumb), $container_link);
-
- array_unshift($breadcrumbs, array(
- 'title' => $container->name,
- 'link' => $container_link,
- ));
- $container = get_entity($container->container_guid);
- }
- array_unshift($breadcrumbs, $first_crumb);
- }
-}
-
-
$class = 'elgg-menu elgg-breadcrumbs';
$additional_class = elgg_extract('class', $vars, '');
if ($additional_class) {