From dea0ba28f950867532eae572e7bcda49e81bbcf0 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 18 Nov 2015 17:40:42 +0100 Subject: Fixes #378 - Plugin administration UI. --- plugins/addlink_toolbar/addlink_toolbar.meta | 1 + plugins/archiveorg/archiveorg.meta | 1 + plugins/demo_plugin/demo_plugin.meta | 1 + plugins/playvideos/playvideos.meta | 1 + plugins/qrcode/qrcode.meta | 1 + plugins/readityourself/readityourself.meta | 2 ++ plugins/readityourself/readityourself.php | 2 +- plugins/wallabag/wallabag.meta | 2 ++ plugins/wallabag/wallabag.php | 2 +- 9 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 plugins/addlink_toolbar/addlink_toolbar.meta create mode 100644 plugins/archiveorg/archiveorg.meta create mode 100644 plugins/demo_plugin/demo_plugin.meta create mode 100644 plugins/playvideos/playvideos.meta create mode 100644 plugins/qrcode/qrcode.meta create mode 100644 plugins/readityourself/readityourself.meta create mode 100644 plugins/wallabag/wallabag.meta (limited to 'plugins') diff --git a/plugins/addlink_toolbar/addlink_toolbar.meta b/plugins/addlink_toolbar/addlink_toolbar.meta new file mode 100644 index 00000000..2f0b5866 --- /dev/null +++ b/plugins/addlink_toolbar/addlink_toolbar.meta @@ -0,0 +1 @@ +description="Adds the addlink input on the linklist page." diff --git a/plugins/archiveorg/archiveorg.meta b/plugins/archiveorg/archiveorg.meta new file mode 100644 index 00000000..8b5703e1 --- /dev/null +++ b/plugins/archiveorg/archiveorg.meta @@ -0,0 +1 @@ +description="For each link, add an Archive.org icon." diff --git a/plugins/demo_plugin/demo_plugin.meta b/plugins/demo_plugin/demo_plugin.meta new file mode 100644 index 00000000..b063ecb7 --- /dev/null +++ b/plugins/demo_plugin/demo_plugin.meta @@ -0,0 +1 @@ +description="A demo plugin covering all use cases for template designers and plugin developers." diff --git a/plugins/playvideos/playvideos.meta b/plugins/playvideos/playvideos.meta new file mode 100644 index 00000000..c2b0908e --- /dev/null +++ b/plugins/playvideos/playvideos.meta @@ -0,0 +1 @@ +description="Add a button in the toolbar allowing to watch all videos." diff --git a/plugins/qrcode/qrcode.meta b/plugins/qrcode/qrcode.meta new file mode 100644 index 00000000..cbf371ea --- /dev/null +++ b/plugins/qrcode/qrcode.meta @@ -0,0 +1 @@ +description="For each link, add a QRCode icon ." diff --git a/plugins/readityourself/readityourself.meta b/plugins/readityourself/readityourself.meta new file mode 100644 index 00000000..bd611dd0 --- /dev/null +++ b/plugins/readityourself/readityourself.meta @@ -0,0 +1,2 @@ +description="For each link, add a ReadItYourself icon to save the shaared URL." +parameters=READITYOUSELF_URL; \ No newline at end of file diff --git a/plugins/readityourself/readityourself.php b/plugins/readityourself/readityourself.php index 1b030bc8..c8df4c4f 100644 --- a/plugins/readityourself/readityourself.php +++ b/plugins/readityourself/readityourself.php @@ -13,7 +13,7 @@ if (is_file(PluginManager::$PLUGINS_PATH . '/readityourself/config.php')) { include PluginManager::$PLUGINS_PATH . '/readityourself/config.php'; } -if (!isset($GLOBALS['plugins']['READITYOUSELF_URL'])) { +if (empty($GLOBALS['plugins']['READITYOUSELF_URL'])) { $GLOBALS['plugin_errors'][] = 'Readityourself plugin error: '. 'Please define "$GLOBALS[\'plugins\'][\'READITYOUSELF_URL\']" '. 'in "plugins/readityourself/config.php" or in your Shaarli config.php file.'; diff --git a/plugins/wallabag/wallabag.meta b/plugins/wallabag/wallabag.meta new file mode 100644 index 00000000..8763c4a2 --- /dev/null +++ b/plugins/wallabag/wallabag.meta @@ -0,0 +1,2 @@ +description="For each link, add a Wallabag icon to save it in your instance." +parameters="WALLABAG_URL" \ No newline at end of file diff --git a/plugins/wallabag/wallabag.php b/plugins/wallabag/wallabag.php index e3c399a9..0d6fc66d 100644 --- a/plugins/wallabag/wallabag.php +++ b/plugins/wallabag/wallabag.php @@ -11,7 +11,7 @@ if (is_file(PluginManager::$PLUGINS_PATH . '/wallabag/config.php')) { include PluginManager::$PLUGINS_PATH . '/wallabag/config.php'; } -if (!isset($GLOBALS['plugins']['WALLABAG_URL'])) { +if (empty($GLOBALS['plugins']['WALLABAG_URL'])) { $GLOBALS['plugin_errors'][] = 'Wallabag plugin error: '. 'Please define "$GLOBALS[\'plugins\'][\'WALLABAG_URL\']" '. 'in "plugins/wallabag/config.php" or in your Shaarli config.php file.'; -- cgit v1.2.3