summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bookmarklets/init.php13
-rw-r--r--plugins/share/init.php24
2 files changed, 20 insertions, 17 deletions
diff --git a/plugins/bookmarklets/init.php b/plugins/bookmarklets/init.php
index 8a3822341..9669afefe 100644
--- a/plugins/bookmarklets/init.php
+++ b/plugins/bookmarklets/init.php
@@ -20,7 +20,7 @@ class Bookmarklets extends Plugin {
print "<div dojoType=\"dijit.layout.AccordionPane\"
title=\"<i class='material-icons'>bookmark</i> ".__('Bookmarklets')."\">";
- print __("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.");
+ print "<h3>" . __("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.") . "</h3>";
$bm_subscribe_url = str_replace('%s', '', Pref_Feeds::subscribe_to_feed_url());
@@ -32,12 +32,15 @@ class Bookmarklets extends Plugin {
print "<a href=\"$bm_url\">" . __('Subscribe in Tiny Tiny RSS'). "</a>";
print "</label></p>";
- print "<p>" . __("Use this bookmarklet to publish arbitrary pages using Tiny Tiny RSS") . "</p>";
+ print "<h3>" . __("Use this bookmarklet to publish arbitrary pages using Tiny Tiny RSS") . "</h3>";
- print "<p><label class='dijitButton'>";
+ print "<label class='dijitButton'>";
$bm_url = htmlspecialchars("javascript:(function(){var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='".get_self_url_prefix()."/public.php?op=sharepopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=500,height=250')){l.href=g;}}a();})()");
print "<a href=\"$bm_url\">" . __('Share with Tiny Tiny RSS'). "</a>";
- print "</label></p>";
+ print "</label>";
+
+ print "<button dojoType='dijit.form.Button' class='alt-info' onclick='window.open(\"https://tt-rss.org/wiki/ShareAnything\")'>
+ <i class='material-icons'>help</i> ".__("More info...")."</button>";
print "</div>"; #pane
@@ -48,4 +51,4 @@ class Bookmarklets extends Plugin {
return 2;
}
-} \ No newline at end of file
+}
diff --git a/plugins/share/init.php b/plugins/share/init.php
index 095cffbdf..ba33838b3 100644
--- a/plugins/share/init.php
+++ b/plugins/share/init.php
@@ -42,11 +42,9 @@ class Share extends Plugin {
function hook_prefs_tab_section($id) {
if ($id == "prefFeedsPublishedGenerated") {
- print "<hr/>";
+ print "<h3>" . __("You can disable all articles shared by unique URLs here.") . "</h3>";
- print "<p>" . __("You can disable all articles shared by unique URLs here.") . "</p>";
-
- print "<button class=\"alt-danger\" dojoType=\"dijit.form.Button\" onclick=\"return Plugins.Share.clearKeys()\">".
+ print "<button class='alt-danger' dojoType='dijit.form.Button' onclick=\"return Plugins.Share.clearKeys()\">".
__('Unshare all articles')."</button> ";
print "</p>";
@@ -102,14 +100,16 @@ class Share extends Plugin {
$sth->execute([$uuid, $param, $_SESSION['uid']]);
}
- print __("You can share this article by the following unique URL:") . "<br/>";
+ print "<div class='dlgSec'>" . __("You can share this article by the following unique URL:") . "</div>";
$url_path = get_self_url_prefix();
$url_path .= "/public.php?op=share&key=$uuid";
- print "<div class='panel text-center'>";
- print "<a id='gen_article_url' href='$url_path' target='_blank' rel='noopener noreferrer'>$url_path</a>";
- print "</div>";
+ print "<div class='dlgSecCont'>
+ <div class='panel text-center'>
+ <a id='gen_article_url' href='$url_path' target='_blank' rel='noopener noreferrer'>$url_path</a>
+ </div>
+ </div>";
/* if (!label_find_id(__('Shared'), $_SESSION["uid"]))
label_create(__('Shared'), $_SESSION["uid"]);
@@ -123,13 +123,13 @@ class Share extends Plugin {
print "<div align='center'>";
- print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('shareArticleDlg').unshare()\">".
+ print "<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('shareArticleDlg').unshare()\">".
__('Unshare article')."</button>";
- print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('shareArticleDlg').newurl()\">".
+ print "<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('shareArticleDlg').newurl()\">".
__('Generate new URL')."</button>";
- print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('shareArticleDlg').hide()\">".
+ print "<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('shareArticleDlg').hide()\">".
__('Close this window')."</button>";
print "</div>";
@@ -139,4 +139,4 @@ class Share extends Plugin {
return 2;
}
-} \ No newline at end of file
+}