Viewing File: /home/maglabs/exclusive/wp-content/plugins/g5-blog/assets/js/frontend.js
var G5BLOG = window.G5BLOG || {};
(function ($) {
"use strict";
window.G5BLOG = G5BLOG;
var $window = $(window),
$body = $('body'),
isRTL = $body.hasClass('rtl');
G5BLOG = {
init: function () {
this.singleThumbnail();
},
singleThumbnail: function () {
var $single_post = $('body.single-post');
if ($single_post.length > 0) {
if ($single_post.find('.g5blog__single-featured').length) {
$body.addClass('g5blog__has-post-thumbnail');
} else {
$body.addClass('g5blog__no-post-thumbnail');
}
}
},
};
$(document).ready(function () {
G5BLOG.init();
});
})(jQuery);
Back to Directory
File Manager