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"
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";
}
}