diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-14 13:39:53 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-14 13:39:53 -0400 |
commit | 0d5bd3a636218a18b0fa81c6897614e37943455c (patch) | |
tree | 3dc7b211ac71e0d169b01e4a2a2a7e130e50b854 /templates/bookmarklet.php | |
parent | ded448fd10b1383c5c48eb90e7659550b1db7b01 (diff) |
small things added to firstrun page and settings
Diffstat (limited to 'templates/bookmarklet.php')
-rw-r--r-- | templates/bookmarklet.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/bookmarklet.php b/templates/bookmarklet.php new file mode 100644 index 000000000..31a654b86 --- /dev/null +++ b/templates/bookmarklet.php @@ -0,0 +1,8 @@ +<?php + +function createBookmarklet() { + $l = OC_L10N::get('news'); + echo '<small>' . $l->t('Drag this to your browser bookmarks and click on it whenever you want to subscribe to a webpage quickly:') . '</small>' + . '<a class="button bookmarklet" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(\'' . OCP\Util::linkToAbsolute('bookmarks', 'addBm.php') . '?output=popup&url=\'+c(b.location),\'bkmk_popup\',\'left=\'+((a.screenX||a.screenLeft)+10)+\',top=\'+((a.screenY||a.screenTop)+10)+\',height=230px,width=230px,resizable=1,alwaysRaised=1\');a.setTimeout(function(){d.focus()},300);})();">' + . $l->t('Subscribe') . '</a>'; +} |