diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 16:36:30 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 16:36:30 +0000 |
commit | af5b59b518123a15a7182ebfe2487a9e10f67ee8 (patch) | |
tree | 4fcb24176b2b445acee48869aa816813f03352b6 /mod/pages/revision.php | |
parent | 186f5474e37f9ebde09b9afe2c82fa711402b421 (diff) | |
download | elgg-af5b59b518123a15a7182ebfe2487a9e10f67ee8.tar.gz elgg-af5b59b518123a15a7182ebfe2487a9e10f67ee8.tar.bz2 |
more clean up of the pages plugin to use new HTML/CSS
git-svn-id: http://code.elgg.org/elgg/trunk@7898 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/revision.php')
-rw-r--r-- | mod/pages/revision.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mod/pages/revision.php b/mod/pages/revision.php new file mode 100644 index 000000000..e301e26df --- /dev/null +++ b/mod/pages/revision.php @@ -0,0 +1,49 @@ +<?php +/** + * View a revision of page + * + * @package ElggPages + */ + +$id = get_input('id'); +$annotation = get_annotation($id); +if (!$annotation) { + forward(); +} + +$page = get_entity($annotation->entity_guid); +if (!$page) { + +} + +elgg_set_page_owner_guid($page->getContainerGUID()); + +group_gatekeeper(); + +$container = elgg_get_page_owner(); +if (!$container) { +} + +$title = $page->title . ": " . elgg_echo('pages:revision'); + +elgg_push_breadcrumb($container->name, $container->getURL()); +elgg_push_breadcrumb($page->title, $page->getURL()); +elgg_push_breadcrumb(elgg_echo('pages:revision')); + +$content = elgg_view('object/page_top', array( + 'entity' => $page, + 'revision' => $annotation, + 'full' => true, +)); + +$sidebar = elgg_view('pages/sidebar/tree', array('page' => $page)); + +$body = elgg_view_layout('content', array( + 'filter' => '', + 'buttons' => '', + 'content' => $content, + 'title' => $title, + 'sidebar' => $sidebar, +)); + +echo elgg_view_page($title, $body); |