diff --git a/config/config.ini.example b/config/config.ini.example
index bc7e6b0..325071c 100644
--- a/config/config.ini.example
+++ b/config/config.ini.example
@@ -68,6 +68,9 @@ rss.char = ""
img.thumbnail = "true"
default.thumbnail = ""
+;Enable or disable jQuery, if Lightbox is "on" then this option ignored.
+jquery = "disable"
+
; Lightbox inline image handling. This can slowdown your page load, especially when Disqus enabled. "on" or "off".
lightbox = "off"
diff --git a/system/includes/functions.php b/system/includes/functions.php
index d5b9759..5781e28 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -1398,6 +1398,7 @@ function authorinfo($title=null, $body=null) {
function head_contents($title, $description, $canonical) {
$styleImage = config('lightbox');
+ $jq = config('jquery');
$output = '';
$title = '
' . $title . '';
@@ -1419,7 +1420,12 @@ function head_contents($title, $description, $canonical) {
$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";
}
else {
- $output .= $title ."\n". $favicon ."\n". $charset ."\n". $generator ."\n". $xua ."\n". $viewport ."\n". $description ."\n". $sitemap ."\n". $canonical ."\n". $feed ."\n". $jquery ."\n";
+ 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";
+ }
+ else {
+ $output .= $title ."\n". $favicon ."\n". $charset ."\n". $generator ."\n". $xua ."\n". $viewport ."\n". $description ."\n". $sitemap ."\n";
+ }
}
return $output;