From 0fc783e2b350b8ac6ff275fd9b201674cbcf2c16 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Feb 2021 22:07:37 +0300 Subject: cleanup markup in some plugins, make nsfw generate dijit widgets --- plugins/share/init.php | 52 ++++++++++++++++++++++---------------------------- 1 file changed, 23 insertions(+), 29 deletions(-) (limited to 'plugins/share') diff --git a/plugins/share/init.php b/plugins/share/init.php index 42923ed8a..846e1f39c 100644 --- a/plugins/share/init.php +++ b/plugins/share/init.php @@ -41,14 +41,14 @@ class Share extends Plugin { function hook_prefs_tab_section($id) { if ($id == "prefFeedsPublishedGenerated") { + ?> +
- print "
"; - - print "

" . __("You can disable all articles shared by unique URLs here.") . "

"; - - print " "; +

+ + execute([$uuid, $param, $_SESSION['uid']]); } - print "
" . __("You can share this article by the following unique URL:") . "
"; + $url_path = htmlspecialchars(get_self_url_prefix() . "/public.php?op=share&key=$uuid"); - $url_path = get_self_url_prefix(); - $url_path .= "/public.php?op=share&key=$uuid"; + ?> - print "
-
- $url_path -
-
"; +
- /* if (!label_find_id(__('Shared'), $_SESSION["uid"])) - label_create(__('Shared'), $_SESSION["uid"]); - label_add_article($ref_id, __('Shared'), $_SESSION['uid']); */ +
+
+ +
+
+ "; - - print ""; - - print ""; - - print ""; - - print ""; + ?> + +