Saturday, 1 September 2012

Dynamic Blogger Archive Sort by Label [updated]


How to load

Masukin CSS diatas ke CSS diBlog elo,
Add the CSS above to your blog template CSS, 
Bikin satu widget HTML/Javascriptmasukin script dibawah kedalemnya terus tempatin widget ini dibagian paling bawah dari layout blog.
Create a new HTML/Javascript widget, put the below script in it and placed this widget at the most bottom of blog layout.

if($('.post-title a').length==0){
  window.lingPost=$('a[rel="bookmark"]').prop('href')
}else{
  window.lingPost=$('.post-title a').prop('href')
}
if(typeof lingPost=='undefined'){window.lingPost=false}

$.ajax({url:'http://template-aing.googlecode.com/files/modifArchiveList.js',dataType:'script',cache:true,success:function(){
asipAing.modifArchiveList();
}});
Untuk Author panel, karena script ini baca label sama URL dari halaman aktif, jadi kalo postingan elo gak ada labelnya, Author panel gak bakal diload.

0 komentar: