
"); } }
"' + content + '"';
}
htmlcode += '';
$('.widget-content').each(function () {
if ($(this).text().match('recentcomment')) {
$(this).html(htmlcode);
}
})
}
});
}
// --------------- Related Post --------------- //
$(".related-posts").each(function () {
var g = $(this).html();
$.ajax({
url: "/feeds/posts/default/-/" + g + "?alt=json-in-script&max-results=6",
type: 'get',
dataType: "jsonp",
success: function (data) {
var htmlcode= showdata(data);
$(".related-posts").html(htmlcode);
}
});
});
// --------------- Adv --------------- //
var srcimg= text.split('|');
var linkimg=''
if (text.match('adv')) {
text = srcimg[0].replace('adv/', '');
$(this).html(''+linkimg+'');
}
});
// --------------- Include Icon --------------- //
$(".grid-posts").each(function() {
var t = $(this),
i = t.find(".thumb-post").attr("href");
$.get(i, function(i) {
$(i).find('.post-body iframe[src*="youtube.com"]').length && t.find(
".thumb-post").append(
''
),
$(i).find('.post-body iframe[src*="google.com/maps"]').length && t.find(
".thumb-post").append(
''
),
$(i).find('.post-body iframe[src*="player.vimeo.com"]').length && t.find(
".thumb-post").append(
''
),
$(i).find('.post-body iframe[src*="w.soundcloud.com"]').length && t.find(
".thumb-post").append(
''
),
$(i).find(".post-body .twitter-tweet").length && (t.find(
".thumb-post").append(
''
), t.find(".post-type-twitter").html($(i).find(
".post-body .twitter-tweet"))),
$(i).find(".post-body .instagram-media").length && (t.find(
".thumb-post").append(
''
), t.find(".post-type-instagram").html($(i).find(
".post-body .instagram-media")))
}, "html")
});
//]]>
No comments
Post a Comment