diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-01-27 04:15:53 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-01-27 04:15:53 +0100 |
commit | ae7393db3d99a7ac223ae917129cccd9f49888e3 (patch) | |
tree | 7f54b72b0d01c38afd1378365a67e4f192922423 /templates/part.subscribelet.php | |
parent | 483784caa38bd6131405ac474347a215584e30a5 (diff) |
merged the angularjs branch
Diffstat (limited to 'templates/part.subscribelet.php')
-rw-r--r-- | templates/part.subscribelet.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/part.subscribelet.php b/templates/part.subscribelet.php new file mode 100644 index 000000000..2080620d5 --- /dev/null +++ b/templates/part.subscribelet.php @@ -0,0 +1,19 @@ + +<small> + <?php p($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('<?php print_unescaped(OCP\Util::linkToAbsolute('news', 'subscribe.php'))?>?output=popup&url='+c(b.location), + 'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+', + top='+((a.screenY||a.screenTop)+10)+', + height=150px,width=360px,resizable=1,alwaysRaised=1'); + a.setTimeout(function() { + d.focus()},300); + })();"> + <?php p($l->t('Subscribe')) ?> +</a> + |