diff options
Diffstat (limited to 'mod/bookmarks/views/default/bookmarks/bookmarklet.php')
-rw-r--r-- | mod/bookmarks/views/default/bookmarks/bookmarklet.php | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/mod/bookmarks/views/default/bookmarks/bookmarklet.php b/mod/bookmarks/views/default/bookmarks/bookmarklet.php index 14dedb9d4..4ff05c68a 100644 --- a/mod/bookmarks/views/default/bookmarks/bookmarklet.php +++ b/mod/bookmarks/views/default/bookmarks/bookmarklet.php @@ -15,15 +15,13 @@ $bookmarktext = elgg_echo("bookmarks:this"); if ($page_owner instanceof ElggGroup) $bookmarktext = sprintf(elgg_echo("bookmarks:this:group"), $page_owner->name) ?> -<p> - <?php echo elgg_echo("bookmarks:bookmarklet:description"); ?> -</p> -<p class="sharing_bookmarklet"> - <a href="javascript:location.href='<?php echo $vars['url']; ?>pg/bookmarks/<?php echo $page_owner->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 $bookmarktext ?>" /> </a> -</p> -<p> - <?php echo elgg_echo("bookmarks:bookmarklet:descriptionie"); ?> -</p> -<p> - <?php echo elgg_echo("bookmarks:bookmarklet:description:conclusion"); ?> -</p>
\ No newline at end of file +<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>
\ No newline at end of file |