Untuk cara penerapannya ke dalam blog, karena ini adalah modifikasi, tentu sobat sudah harus memasang widget Popular Posts di blog sobat.
Tambahkan kode berikut di atas
]]></b:skin>
.popular-posts .item-thumbnail {
float: left;
margin: 0 5px 0 0;
}
.popular-posts ul {padding-left: 0;}
.popular-posts ul li {
list-style-image: none;
list-style-type: none;
display: inline;
}
.popular-posts ul li img {
padding: 0;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
border: 1px solid transparent;
background-color: #444444;
background-image: -webkit-linear-gradient(to bottom, #444444, #999999);
background-image: -moz-linear-gradient(to bottom, #444444, #999999);
background-image: -o-linear-gradient(to bottom, #444444, #999999);
background-image: -ms-linear-gradient(to bottom, #444444, #999999);
background-image: linear-gradient(to bottom, #444444, #999999);
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
}
.popular-posts ul li img:hover {
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
box-shadow: 0 0 3px white inset, 0px 0 6px rgb(202, 202, 202);
border: 1px solid #fff;
background-color: #444444;
background-image: -webkit-linear-gradient(to bottom, #444444, #999999);
background-image: -moz-linear-gradient(to bottom, #444444, #999999);
background-image: -o-linear-gradient(to bottom, #444444, #999999);
background-image: -ms-linear-gradient(to bottom, #444444, #999999);
background-image: linear-gradient(to bottom, #444444, #999999);
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
}
Kemudian cari kode berikut
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
.......................
.......................
.......................
.......................
.......................
</b:widget>
lalu tandai dan ganti dengan kode berikut<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
<b:includable id='main'>
<b:if cond='data:title'>
<h3>
<data:title/>
</h3>
</b:if>
<div class='widget-content popular-posts'>
<ul>
<b:loop values='data:posts' var='post'>
<li>
<b:if cond='data:showThumbnails == "false"'>
<b:if cond='data:showSnippets == "false"'>
<!-- (1) No snippet/thumbnail -->
<a expr:href='data:post.href'>
<data:post.title/>
</a>
<b:else/>
<!-- (2) Show only snippets -->
<div class='item-title'>
<a expr:href='data:post.href'>
<data:post.title/>
</a>
</div>
<div class='item-snippet'>
<data:post.snippet/>
</div>
</b:if>
<b:else/>
<b:if cond='data:showSnippets == "false"'>
<!-- (3) Show only thumbnails -->
<div class='item-thumbnail-only'>
<div class='item-thumbnail'>
<a expr:href='data:post.href' expr:title='data:post.title'>
<b:if cond='data:post.thumbnail'>
<img alt='' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
<b:else/>
<img alt='' expr:height='data:thumbnailSize' expr:width='data:thumbnailSize' src='http://laudririzal.googlecode.com/svn/trunk/images/noimages-72x72.png'/>
</b:if>
</a>
</div>
</div>
<b:else/>
<!-- (4) Show snippets and thumbnails -->
<div class='item-content'>
<b:if cond='data:post.thumbnail'>
<div class='item-thumbnail'>
<a expr:href='data:post.href' target='_blank'>
<img alt='' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
</a>
</div>
</b:if>
<div class='item-title'>
<a expr:href='data:post.href'>
<data:post.title/>
</a>
</div>
<div class='item-snippet'>
<data:post.snippet/>
</div>
</div>
<div style='clear: both;'/>
</b:if>
</b:if>
</li>
</b:loop>
</ul>
</div>
</b:includable>
</b:widget>
Terakhir simpan template sobat
Terima kasih sahabat, di bookmark dulu....
BalasHapusIya silahkan sob
Hapus