' + title + ' 9192u
' + date + '
';
} else if (type.match('hot-posts')) {
if (i == 0) {
kontent += '';
} else {
kontent += '';
}
} else if (type.match('feat-big')) {
if (i == 0) {
kontent += '' + image + '' + tag + '
' + title + ' 9192u
' + author + date + '
' + snip + '
';
} else {
kontent += '' + image + '' + title + ' 9192u
' + date + '
';
}
} else if (type.match('col-left') || type.match('col-right')) {
if (i == 0) {
kontent += '' + image + '' + tag + '
' + title + ' 9192u
' + author + date + '
' + snip + '
';
} else {
kontent += '' + image + '' + title + ' 9192u
' + date + '
';
}
} else if (type.match('grid-small')) {
kontent += '' + title + ' 9192u
' + date + '
';
} else if (type.match('grid-big')) {
kontent += '' + image + '' + tag + '
' + title + ' 9192u
' + author + date + '
' + snip + '
';
} else if (type.match('feat-list')) {
kontent += '' + image + '' + tag + '
' + title + ' 9192u
' + author + date + '
' + snipp + '
';
} else if (type.match('post-list')) {
kontent += '' + image + '' + title + ' 9192u
' + date + '
';
} else if (type.match('related')) {
kontent += '' + title + ' 9192u
' + date + '
';
}
kode += kontent;
}
kode += '';
} else {
kode = '';
}
if (type.match("mega-menu")) {
$this.addClass('has-sub mega-menu').append(kode);
$this.find('a:first').attr('href', function($this, href) {
if (label == 'recent' || label == 'random') {
href = href.replace(href, '/search/?&max-results=' + postPerPage);
} else {
href = href.replace(href, '/search/label/' + label + '?&max-results=' + postPerPage);
}
return href;
});
} else if (type.match('hot-posts')) {
$this.html(kode).parent().addClass('show-hot');
} else if (type.match('feat-big') || type.match('feat-list') || type.match('col-left') || type.match('col-right') || type.match('grid-small') || type.match('grid-big')) {
$this.parent().find('.widget-title').append('' + messages.viewAll + '');
if (type.match('col-left') || type.match('col-right')) {
if (type.match('col-right')) {
$this.parent().addClass('col-right');
}
$this.parent().addClass('col-width');
}
$this.html(kode).parent().addClass('show-widget');
} else {
$this.html(kode);
}
}
});
}
}
$('.blog-post-comments').each(function() {
var system = commentsSystem,
disqus_url = disqus_blogger_current_url,
disqus = '',
current_url = $(location).attr('href'),
facebook = '',
sClass = 'comments-system-' + system;
if (system == 'blogger') {
$(this).addClass(sClass).show();
} else if (system == 'disqus') {
(function() {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqusShortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
$('#comments, #gpluscomments').remove();
$(this).append(disqus).addClass(sClass).show();
} else if (system == 'facebook') {
$('#comments, #gpluscomments').remove();
$(this).append(facebook).addClass(sClass).show();
} else if (system == 'hide') {
$(this).hide();
} else {
$(this).addClass('comments-system-default').show();
}
});
})
$(document).scroll(function(){
if (fixedMenu == true) {
$(window).on("scroll", function(e){
var height = 0;
var scrollTop = $(this).scrollTop();
if ( scrollTop < 240 ) {
height = $(".header-header").height();
$(".header-menu, .mobile-header").removeClass("scrolled-header");
}
else {
$(".header-menu, .mobile-header").addClass("scrolled-header");
$("body").css({"marginTop": height});
}
});
}
});
//]]>