From 227e1615e2cd180a75147d602bd11964f9918a03 Mon Sep 17 00:00:00 2001 From: Kanti Date: Mon, 15 Sep 2014 12:43:04 +0200 Subject: [PATCH 1/2] Added WebmasterToolsVerification --- system/includes/functions.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 4a4a58e..88ab4ae 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1561,6 +1561,7 @@ function head_contents($title, $description, $canonical) { $styleImage = config('lightbox'); $jq = config('jquery'); $output = ''; + $wmt_id = config('google.wmt.id'); $title = '' . $title . ''; $favicon = ''; @@ -1576,14 +1577,19 @@ function head_contents($title, $description, $canonical) { $jquery = ''; $lightbox = ''; $corejs = ''; + $webmasterTools = ''; + if(!empty($wmt_id)) + { + $webmasterTools = ''; + } if ($styleImage == 'on') { - $output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $lightboxcss . "\n" . $jquery . "\n" . $lightbox . "\n" . $corejs . "\n"; + $output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $lightboxcss . "\n" . $jquery . "\n" . $lightbox . "\n" . $corejs . "\n" . $webmasterTools . "\n"; } else { if ($jq == 'enable') { - $output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $jquery . "\n"; + $output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $jquery . "\n" . $webmasterTools . "\n"; } else { - $output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n"; + $output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $webmasterTools . "\n"; } } From eae85a1c2e462e03511b4c3b79cfb2ae305bf1f9 Mon Sep 17 00:00:00 2001 From: Kanti Date: Mon, 15 Sep 2014 12:44:00 +0200 Subject: [PATCH 2/2] Added Webmaster tool verification --- config/config.ini.example | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config.ini.example b/config/config.ini.example index ccef248..824739a 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -32,6 +32,9 @@ fb.color = "light" ; Disqus comments disqus.shortname = "" +; Google Web Master Tool ID verification +google.wmt.id = "" + ; Google+ publisher google.publisher = "" @@ -84,4 +87,4 @@ views.root = "themes/logs" views.counter = "true" ; Framework config. No need to edit. -views.layout = "layout" \ No newline at end of file +views.layout = "layout"