diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-09 02:51:07 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-09 02:51:07 +0000 |
commit | 9ea30ea494cea4c950894a0ac1131eefda10868b (patch) | |
tree | 14218328deb421bff1232bd3d53255135c40afd8 /views/default | |
parent | 834d01e1eea8c27391a82e4edbb7af3fba862ada (diff) | |
download | elgg-9ea30ea494cea4c950894a0ac1131eefda10868b.tar.gz elgg-9ea30ea494cea4c950894a0ac1131eefda10868b.tar.bz2 |
removed metadata menu which has been replaced by the entity menu
git-svn-id: http://code.elgg.org/elgg/trunk@8638 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/navigation/menu/metadata.php | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/views/default/navigation/menu/metadata.php b/views/default/navigation/menu/metadata.php deleted file mode 100644 index 742aee3ad..000000000 --- a/views/default/navigation/menu/metadata.php +++ /dev/null @@ -1,54 +0,0 @@ -<?php -/** - * List metadata for objects - * - * @uses $vars['entity'] ElggEntity - * @uses $vars['handler'] Page handler identifier - * @uses $vars['links'] Array of extra links - */ - -$entity = $vars['entity']; -$handler = elgg_extract('handler', $vars, ''); - -?> -<ul class="elgg-menu elgg-menu-hz elgg-menu-metadata"> - <li> - <?php echo elgg_view('output/access', array('entity' => $entity)); ?> - </li> -<?php - -if (isset($vars['links']) && is_array($vars['links'])) { - foreach ($vars['links'] as $link) { - echo "<li>$link</li>"; - } -} - -// pass <li>your data</li> back from the view -echo elgg_view('entity/metadata', array('entity' => $entity)); - -// links to delete or edit. -if ($entity->canEdit() && $handler) { - - $edit_url = "pg/$handler/edit/{$entity->getGUID()}"; - $edit_link = elgg_view('output/url', array( - 'href' => $edit_url, - 'text' => elgg_echo('edit'), - )); - echo "<li>$edit_link</li>"; - - $delete_url = "action/$handler/delete?guid={$entity->getGUID()}"; - $delete_link = elgg_view('output/confirmlink', array( - 'href' => $delete_url, - 'text' => elgg_view_icon('delete'), - 'title' => elgg_echo('delete'), - 'confirm' => elgg_echo('deleteconfirm'), - 'text_encode' => false, - )); - echo "<li>$delete_link</li>"; -} - -$likes = elgg_view_likes($entity); -echo "<li>$likes</li>"; - -?> -</ul> |