aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/pages/bookmarks/bookmarklet.php
blob: 99866e38519cebb866e7d62d89a46d2f58aaf65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);