Galeria de postagens recentes

Views:
<style scoped='' type='text/css'>
/* Postagens recentes */
#recentpostnav{
width:100%;
margin:0 auto;
}
#recentpostsae{
margin:0}
.recentpostel{
background:#fff; /*Cor de fundo*/
display:block;
border:1px solid #ddd; /*Cor da borda geral*/
margin:5px 0;
padding:10px;
height:79px;
}
.recentpostel img{
background:#fff; /*Cor de fundo da miniatura*/
padding:4px;
float:left;
height:70px; /*Altura da miniatura*/
margin-right:8px;
width:70px; /*Largura da miniatura*/
border:1px solid #ddd; /*Cor da borda da miniatura*/
}
.recentpostel h6,.recentpostel h6 a{
text-decoration:none;
font-size:13px!important; /*Tamanho da fonte dos títulos*/
font-weight:normal!important;
margin:0;
color:#111 !important; /*Cor da fonte dos títulos*/
}
.recentpostel:hover{
background-color:#fefefe; /*Cor de fundo em estado hover*/
}
.recentpostel p{
font-size:0px;
text-align:left;
color:transparent;
line-height:normal;
margin:5px 0;
}
#recentpostload{
color:#888; /*Cor da fonte*/
font-family:Tahoma; /*Família da fonte*/
font-size:100px;
letter-spacing:-10px;
text-align:center;
text-shadow:-5px 01px #444;
background:url(http://2.bp.blogspot.com/-60aISBQLRY0/VFBMqzLfzGI/AAAAAAAABgM/GInmVTvEzkc/s1600/loader.gif) 50% 50% no-repeat #fff;
height:470px;
border:1px solid #ddd; /*Cor e tipo da borda*/
}
#recentpostnavfeed{
border:1px solid #ddd; /*Cor e tipo da borda dos links de navegação*/
color:#bbb;
font-family:Verdana; /*Tipo da fonte dos links de navegação*/
font-size:12px; /*Tamanho da fonte dos links de navegação*/
text-align:center;
margin:0;
}
#recentpostnavfeed:hover{
background-color:#fefefe;
}
#recentpostnavfeed a{
color:#141414!important;
font-family:Tahoma!important;
font-size:12px!important;
font-weight:normal!important;
display:block;padding:5px 10px;
}
#recentpostnavfeed span{padding:5px 10px}
#recentpostnavfeed .next{float:right}
#recentpostnavfeed .previous{float:left}
#recentpostnavfeed .home{text-align:center}
#recentpostnavfeed a:hover,#recentpostnavfeed span.noactived{color:transparant!important}
</style>

<script type='text/javascript'>
//<![CDATA[
    var numfeed = 5;
    var startfeed = 0;
    var urlblog = "ENDEREÇO DE SEU BLOG";
    var charac = 40;
    var urlprevious, urlnext;
function arlinafeed(e,t){for(var n=e.split("<"),r=0;r<n.length;r++)-1!=n[r].indexOf(">")&&(n[r]=n[r].substring(n[r].indexOf(">")+1,n[r].length));return n=n.join(""),n=n.substring(0,t-1)}function showrecentpostsae(e){var t,n,r,a,i,s="";urlprevious="",urlnext="";for(var l=0;l<e.feed.link.length;l++)"previous"==e.feed.link[l].rel&&(urlprevious=e.feed.link[l].href),"next"==e.feed.link[l].rel&&(urlnext=e.feed.link[l].href);for(var d=0;d<numfeed&&d!=e.feed.entry.length;d++){t=e.feed.entry[d],n=t.title.$t;for(var l=0;l<t.link.length;l++)if("alternate"==t.link[l].rel){r=t.link[l].href;break}i="content"in t?t.content.$t:"summary"in t?t.summary.$t:"",a="media$thumbnail"in t?t.media$thumbnail.url:"http://3.bp.blogspot.com/-BHuXHny1kOk/VXrkSyxKCjI/AAAAAAAACas/pZLJAEUDtds/s1600/no-image.png",s+="<div class='recentpostel'>",s+="<a href='"+r+"' target='_blank'><img src='"+a+"' /></a>",s+="<h6><a href='"+r+"'>"+n+"</a></h6>",s+="<p>"+arlinafeed(i,charac)+"...</p>",s+="</div>"}document.getElementById("recentpostsae").innerHTML=s,s="",s+=urlprevious?"<a href='javascript:navigasifeed(-1);' class='previous'>Anterior</a>":"<span class='noactived previous'>Anterior</span>",s+=urlnext?"<a href='javascript:navigasifeed(1);' class='next'>Próximo</a>":"<span class='noactived next'>Próximo</span>",s+="<a href='javascript:navigasifeed(0);' class='home'>Home</a>",document.getElementById("recentpostnavfeed").innerHTML=s}function navigasifeed(e){var t,n;-1==e?(t=urlprevious.indexOf("?"),n=urlprevious.substring(t)):1==e?(t=urlnext.indexOf("?"),n=urlnext.substring(t)):n="?start-index=1&max-results="+numfeed+"&orderby=published&alt=json-in-script",n+="&callback=showrecentpostsae",incluirscript(n)}function incluirscript(e){1==startfeed&&removerscript(),document.getElementById("recentpostsae").innerHTML="<div id='recentpostload'></div>",document.getElementById("recentpostnavfeed").innerHTML="";var t=urlblog+"/feeds/posts/default"+e,n=document.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src",t),n.setAttribute("id","arlinalabel"),document.getElementsByTagName("head")[0].appendChild(n),startfeed=1}function removerscript(){var e=document.getElementById("arlinalabel"),t=e.parentNode;t.removeChild(e)}onload=function(){navigasifeed(0)};
//]]>
</script>
<div id="recentpostsae"></div>
<div id="recentpostnavfeed"></div>


Home Sobre mim Tutoriais Loja de templates Portfólio Fanpage