Update plugin.php
leave verification code for main page only
This commit is contained in:
parent
32d4f2684a
commit
bd4ca8222e
|
@ -31,13 +31,15 @@ class pluginGoogleTools extends Plugin {
|
||||||
|
|
||||||
public function siteHead()
|
public function siteHead()
|
||||||
{
|
{
|
||||||
$html = PHP_EOL.'<!-- Google Webmasters Tools -->'.PHP_EOL;
|
global $Url
|
||||||
$html .= '<meta name="google-site-verification" content="'.$this->getDbField('google-site-verification').'">'.PHP_EOL;
|
|
||||||
|
|
||||||
if(Text::isEmpty($this->getDbField('google-site-verification'))) {
|
if(Text::isEmpty($this->getDbField('google-site-verification')) || !($Url->whereAmI()=='home')) {
|
||||||
return false;
|
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;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue