summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-02-22 06:35:14 +0300
committerAndrew Dolgov <[email protected]>2019-02-22 06:35:14 +0300
commit55b032a6bd13c8e8d7cf9ca4070ade5a888cad24 (patch)
tree47806f2a8b4daca43e80521955731c23235a5bdf /plugins
parentc2fa0c4416062026d5012e038c627ad69af950e6 (diff)
plugins/share: update layout
Diffstat (limited to 'plugins')
-rw-r--r--plugins/share/init.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/plugins/share/init.php b/plugins/share/init.php
index 7917c4856..ba33838b3 100644
--- a/plugins/share/init.php
+++ b/plugins/share/init.php
@@ -44,7 +44,7 @@ class Share extends Plugin {
print "<h3>" . __("You can disable all articles shared by unique URLs here.") . "</h3>";
- 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>";
@@ -100,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"]);
@@ -121,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>";