diff options
author | Jeff Tilson <jrtilson@gmail.com> | 2013-04-05 13:35:13 -0400 |
---|---|---|
committer | Jeff Tilson <jrtilson@gmail.com> | 2013-04-05 13:35:13 -0400 |
commit | 5103c706857719615102eda7cfd823b0723a1476 (patch) | |
tree | 156f69ffa5914368ef4fc1a878503db867993fd4 /mod/pages/views/default/object/page_top.php | |
parent | 835c7fe5eb77343081b9bd33ec465f9ce8929570 (diff) | |
download | elgg-5103c706857719615102eda7cfd823b0723a1476.tar.gz elgg-5103c706857719615102eda7cfd823b0723a1476.tar.bz2 |
Allow pages revisions to be reverted or deleted
Diffstat (limited to 'mod/pages/views/default/object/page_top.php')
-rw-r--r-- | mod/pages/views/default/object/page_top.php | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/mod/pages/views/default/object/page_top.php b/mod/pages/views/default/object/page_top.php index 945a22eed..f35202993 100644 --- a/mod/pages/views/default/object/page_top.php +++ b/mod/pages/views/default/object/page_top.php @@ -60,18 +60,26 @@ if ($comments_count != 0 && !$revision) { $comments_link = ''; } -$metadata = elgg_view_menu('entity', array( - 'entity' => $vars['entity'], - 'handler' => 'pages', - 'sort_by' => 'priority', - 'class' => 'elgg-menu-hz', -)); - $subtitle = "$editor_text $comments_link $categories"; // do not show the metadata and controls in widget view -if (elgg_in_context('widgets') || $revision) { - $metadata = ''; +if (!elgg_in_context('widgets')) { + // If we're looking at a revision, display annotation menu + if ($revision) { + $metadata = elgg_view_menu('annotation', array( + 'annotation' => $annotation, + 'sort_by' => 'priority', + 'class' => 'elgg-menu-hz float-alt', + )); + } else { + // Regular entity menu + $metadata = elgg_view_menu('entity', array( + 'entity' => $vars['entity'], + 'handler' => 'pages', + 'sort_by' => 'priority', + 'class' => 'elgg-menu-hz', + )); + } } if ($full) { |