');
}
if (type.match('right-sidebar')) {
$this.replaceWith('');
}
if (type.match('full-width')) {
$this.replaceWith('');
}
});
$('#slider-section .widget-content').each(function() {
var $this = $(this),
text = $this.text().trim(),
type = text.toLowerCase(),
map = text.split('/'),
num = map[0],
label = map[1];
ajaxPosts($this, type, num, label);
});
$('.common-widget .widget-content').each(function() {
var $this = $(this),
text = $this.text().trim(),
type = text.toLowerCase(),
map = text.split('/'),
num = map[0],
label = map[1];
ajaxPosts($this, type, num, label);
});
$('.related-ready').each(function() {
var $this = $(this),
label = $this.find('.related-tag').data('label');
ajaxPosts($this, 'related', 3, label);
});
function post_link(feed, i) {
for (var x = 0; x < feed[i].link.length; x++)
if (feed[i].link[x].rel == 'alternate') {
var link = feed[i].link[x].href;
break
}
return link;
}
function post_title(feed, i, link) {
var n = feed[i].title.$t,
code = '' + n + '';
return code;
}
function post_date(feed, i) {
var c = feed[i].published.$t,
d = c.substring(0, 4),
f = c.substring(5, 7),
m = c.substring(8, 10),
h = monthFormat[parseInt(f, 10) - 1] + ' ' + m + ', ' + d,
code = '' + h + '';
return code;
}
function postThumb($c, img) {
var $h = $(' ';
}
kode += kontent;
}
kode += '';
} else {
kode = '
').html($c),
$t = $h.find('img:first').attr('src'),
$a = $t.lastIndexOf('/') || 0,
$b = $t.lastIndexOf('/', $a - 1) || 0,
$p0 = $t.substring(0, $b),
$p1 = $t.substring($b, $a),
$p2 = $t.substring($a);
if($p1.match(/\/s[0-9]+/g) || $p1.match(/\/w[0-9]+/g) || $p1 == '/d') {
$p1 = '/w72-h72-p-k-no-nu'
}
img = $p0 + $p1 + $p2;
return img
}
function FeatImage(feed, i, img) {
var $c = feed[i].content.$t;
if(feed[i].media$thumbnail) {
var src = feed[i].media$thumbnail.url
} else {
src = noThumbnail;
}
if($c.indexOf($c.match(/
';
} else if (type.match('related')) {
kontent += '' + title + '
- Error: No Posts Found
' + t + "") } }), $("#post-body iframe").each(function() { var e = $(this); e.attr("src").match("www.youtube.com") && e.wrap('') }) //]]>