aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/views/default/bookmarks/bookmarklet.php
blob: 4ff05c68a7a38cfb6770eca710c93fd57a028886 (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
<?php
/**
 * Elgg get bookmarks bookmarklet view
 * 
 * @package ElggBookmarks
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Curverider <info@elgg.com>
 * @copyright Curverider Ltd 2008-2010
 * @link http://elgg.org/
 */

$page_owner = $vars['pg_owner'];

$bookmarktext = elgg_echo("bookmarks:this");
if ($page_owner instanceof ElggGroup)	
	$bookmarktext = sprintf(elgg_echo("bookmarks:this:group"), $page_owner->name)
?>
<h3>Browser Bookmarklet</h3>
<a href="javascript:location.href='<?php echo $vars['url']; ?>pg/bookmarks/<?php echo page_owner_entity()->username; ?>/add?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"> <img src="<?php echo $vars['url']; ?>_graphics/elgg_bookmarklet.gif" border="0" title="<?php echo elgg_echo('bookmarks:this');?>" /> </a>
<br />
<a class="link" onclick="elgg_slide_toggle(this,'#elgg_sidebar','.bookmarklet');">Instructions</a>

<div class="bookmarklet hidden">
	<p><?php echo elgg_echo("bookmarks:bookmarklet:description"); ?></p>
	<p><?php echo elgg_echo("bookmarks:bookmarklet:descriptionie"); ?></p>
	<p><?php echo elgg_echo("bookmarks:bookmarklet:description:conclusion"); ?></p>		
</div>