diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 03:27:03 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 03:27:03 +0000 |
commit | 5a9dfa444ec1807b7b73b9e86fe219a0055731c3 (patch) | |
tree | 9476f58ddb2bd277af171b56d191d5d3840b2848 /mod/bookmarks/pages/bookmarklet.php | |
parent | 52e5df0a088c0b8abd1448547c090da9b967f835 (diff) | |
download | elgg-5a9dfa444ec1807b7b73b9e86fe219a0055731c3.tar.gz elgg-5a9dfa444ec1807b7b73b9e86fe219a0055731c3.tar.bz2 |
Refs #2680: Bookmarks revamp, part 3: menus and bookmarklet.
git-svn-id: http://code.elgg.org/elgg/trunk@8268 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/pages/bookmarklet.php')
-rw-r--r-- | mod/bookmarks/pages/bookmarklet.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mod/bookmarks/pages/bookmarklet.php b/mod/bookmarks/pages/bookmarklet.php new file mode 100644 index 000000000..99866e385 --- /dev/null +++ b/mod/bookmarks/pages/bookmarklet.php @@ -0,0 +1,36 @@ +<?php +/** +* Elgg bookmarks plugin bookmarklet page +* +* @package Bookmarks +*/ + +gatekeeper(); + +$container_guid = get_input('container_guid'); +$container = get_entity($container_guid); +$page_owner = $container; + +if (elgg_instanceof($container, 'object')) { + $page_owner = $container->getContainerEntity(); +} + +elgg_set_page_owner_guid($page_owner->getGUID()); + +$title = elgg_echo('bookmarks:bookmarklet'); + +if ($page_owner instanceof ElggGroup) { + elgg_push_breadcrumb($page_owner->name, $page_owner->getURL()); +} + +elgg_push_breadcrumb($title); + +$content = elgg_view("bookmarks/bookmarklet"); + +$body = elgg_view_layout('content', array( + 'content' => $content, + 'title' => $title, + 'filter' => false +)); + +echo elgg_view_page($title, $body);
\ No newline at end of file |