diff --git a/bl-plugins/googletools/metadata.json b/bl-plugins/googletools/metadata.json index 7eec067d..1e0fe1d9 100644 --- a/bl-plugins/googletools/metadata.json +++ b/bl-plugins/googletools/metadata.json @@ -3,7 +3,7 @@ "email": "", "website": "https://github.com/dignajar/bludit-plugins", "version": "1.1", - "releaseDate": "2016-02-13", + "releaseDate": "2016-05-05", "license": "MIT", "requires": "Bludit v1.1", "notes": "" diff --git a/bl-plugins/googletools/plugin.php b/bl-plugins/googletools/plugin.php index e126af55..b8d8f9de 100644 --- a/bl-plugins/googletools/plugin.php +++ b/bl-plugins/googletools/plugin.php @@ -31,13 +31,15 @@ class pluginGoogleTools extends Plugin { public function siteHead() { - $html = PHP_EOL.''.PHP_EOL; - $html .= ''.PHP_EOL; + global $Url - if(Text::isEmpty($this->getDbField('google-site-verification'))) { + if(Text::isEmpty($this->getDbField('google-site-verification')) || !($Url->whereAmI()=='home')) { return false; } + $html = PHP_EOL.''.PHP_EOL; + $html .= ''.PHP_EOL; + return $html; } @@ -60,4 +62,4 @@ class pluginGoogleTools extends Plugin { return $html; } -} \ No newline at end of file +}