From f1683ec755e988283adfbaddcbbabb38e96b5a78 Mon Sep 17 00:00:00 2001 From: zlaxy Date: Tue, 31 Mar 2020 20:45:31 +0300 Subject: [PATCH] link v0.02 - add javascript button --- link/link.apd | 6 ------ link/link.php | 11 ++++++++--- 2 files changed, 8 insertions(+), 9 deletions(-) delete mode 100644 link/link.apd diff --git a/link/link.apd b/link/link.apd deleted file mode 100644 index 3b6b6b5..0000000 --- a/link/link.apd +++ /dev/null @@ -1,6 +0,0 @@ -version: 0.01 -url: $baseurl/link -requires: local_channel -name: Link -photo: icon:cog - diff --git a/link/link.php b/link/link.php index be1a70c..1a38f84 100644 --- a/link/link.php +++ b/link/link.php @@ -2,7 +2,7 @@ /** * Name: Link * Description: Using short links on whole hub - * Version: 0.01 + * Version: 0.02 * Depends: Core * Recommends: None * Author: ivan zlax <@zlax@ussr.win> @@ -11,12 +11,15 @@ namespace Zotlabs\Module; -require_once("include/bbcode.php"); +require_once('include/bbcode.php'); require_once('include/security.php'); require_once('include/conversation.php'); require_once('include/acl_selectors.php'); require_once('include/items.php'); +// Javascript code for "Link on Hub" button insert - it is not good, it is temporarily +\App::$page['htmlhead'] .= "\n"; + class Link extends \Zotlabs\Web\Controller { function get($update = 0, $load = false) { @@ -450,4 +453,6 @@ class Link extends \Zotlabs\Web\Controller { } -} \ No newline at end of file +} + +//App::$page['htmlhead'] .= ''; \ No newline at end of file