Merge bd4ca8222e24d47ca993d91a78deb1c6131ec4e5 into f0cf4aa7143482fe41f3f7dc9f2607f3b97a077c
This commit is contained in:
commit
1020ba9236
bl-plugins/googletools
@ -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": ""
|
||||
|
@ -31,13 +31,15 @@ class pluginGoogleTools extends Plugin {
|
||||
|
||||
public function siteHead()
|
||||
{
|
||||
$html = PHP_EOL.'<!-- Google Webmasters Tools -->'.PHP_EOL;
|
||||
$html .= '<meta name="google-site-verification" content="'.$this->getDbField('google-site-verification').'">'.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.'<!-- Google Webmasters Tools -->'.PHP_EOL;
|
||||
$html .= '<meta name="google-site-verification" content="'.$this->getDbField('google-site-verification').'">'.PHP_EOL;
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user