commit
2aa5fb253a
|
@ -3,7 +3,7 @@
|
||||||
"email": "",
|
"email": "",
|
||||||
"website": "https://github.com/dignajar/bludit-plugins",
|
"website": "https://github.com/dignajar/bludit-plugins",
|
||||||
"version": "1.1",
|
"version": "1.1",
|
||||||
"releaseDate": "2016-02-13",
|
"releaseDate": "2016-05-05",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"requires": "Bludit v1.1",
|
"requires": "Bludit v1.1",
|
||||||
"notes": ""
|
"notes": ""
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Последние записи",
|
||||||
|
"description": "Показывает последние опубликованные записи."
|
||||||
|
},
|
||||||
|
|
||||||
|
"amount-of-posts": "Количество записей"
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "RSS Feed",
|
||||||
|
"description": "Этот плагин генерирует RSS трансляцию на сайте."
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue