From 8b17ba7a096292150b8791d58e649498cc99ff6b Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 19 Jan 2019 21:05:38 +0100 Subject: [PATCH] Canonical URL --- bl-plugins/canonical/languages/en.json | 7 +++++++ bl-plugins/canonical/metadata.json | 10 ++++++++++ bl-plugins/canonical/plugin.php | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 bl-plugins/canonical/languages/en.json create mode 100644 bl-plugins/canonical/metadata.json create mode 100644 bl-plugins/canonical/plugin.php diff --git a/bl-plugins/canonical/languages/en.json b/bl-plugins/canonical/languages/en.json new file mode 100644 index 00000000..84127c07 --- /dev/null +++ b/bl-plugins/canonical/languages/en.json @@ -0,0 +1,7 @@ +{ + "plugin-data": + { + "name": "Canonical", + "description": "" + } +} \ No newline at end of file diff --git a/bl-plugins/canonical/metadata.json b/bl-plugins/canonical/metadata.json new file mode 100644 index 00000000..3b279590 --- /dev/null +++ b/bl-plugins/canonical/metadata.json @@ -0,0 +1,10 @@ +{ + "author": "Bludit", + "email": "", + "website": "https://plugins.bludit.com", + "version": "3.6.1", + "releaseDate": "2019-01-16", + "license": "MIT", + "compatible": "3.6.1", + "notes": "" +} \ No newline at end of file diff --git a/bl-plugins/canonical/plugin.php b/bl-plugins/canonical/plugin.php new file mode 100644 index 00000000..dd98da29 --- /dev/null +++ b/bl-plugins/canonical/plugin.php @@ -0,0 +1,15 @@ +'.PHP_EOL; + } elseif ($GLOBALS['WHERE_AM_I'] === 'page') { + global $page; + return ''.PHP_EOL; + } + } + +} \ No newline at end of file