diff options
Diffstat (limited to 'mod/bookmarks/views/default/bookmarks/page_links.php')
-rw-r--r-- | mod/bookmarks/views/default/bookmarks/page_links.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/bookmarks/views/default/bookmarks/page_links.php b/mod/bookmarks/views/default/bookmarks/page_links.php new file mode 100644 index 000000000..79678a47b --- /dev/null +++ b/mod/bookmarks/views/default/bookmarks/page_links.php @@ -0,0 +1,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', +)); |