aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/views/default/bookmarks/page_links.php
blob: 79678a47b4c2fd53ea4f3c794fab6b8731df91e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * Shows a "Bookmark this" link and icon
 */
$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',
));