blob: 92ea8600aed75ad401dd0efd4625bca89536ea3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/**
* Shows a "Bookmark this" link and icon
*/
if (!elgg_is_logged_in()) {
return;
}
$url = 'pg/bookmarks/add/' . elgg_get_logged_in_user_guid()
. '?address=' . urlencode(current_page_url());
$return[] = new ElggMenuItem('bookmark_this_page', elgg_echo('bookmarks:this'), $url);
echo elgg_view('output/url', array(
'text' => '<span class="elgg-icon elgg-icon-bookmark"></span>',
'href' => $url,
'title' => $label,
'rel' => 'nofollow',
'encode_text' => false,
'class' => 'right elgg-bookmark-page',
));
|