It's a cycle, where every round the function has to be executed, I've been searching, and I just found out how to call by onclick. I believe it's done by a script, but I do not find the code.
<script type="text/javascript" charset="utf-8">
var imgm = document.getElementsByClassName('image');
var txt = document.getElementsByClassName('text');
function control(mostra) {
if(mostra == "all"){
for (var i=0;i<imgm.length;i+=1){
imgm[i].style.display = 'block';
}
for (var i=0;i<txt.length;i+=1){
txt[i].style.display = 'block';
}
}else if(mostra == "image"){
for (var i=0;i<imgm.length;i+=1){
imgm[i].style.display = 'block';
}
for (var i=0;i<txt.length;i+=1){
txt[i].style.display = 'none';
}
}else{
for (var i=0;i<imgm.length;i+=1){
imgm[i].style.display = 'none';
}
for (var i=0;i<txt.length;i+=1){
txt[i].style.display = 'block';
}
}
}
</script>
. . .
<div id="button">
<input id="tudo" type="button" value="All" onclick=control('all') />
<input id="imagem" type="button" value="Image" onclick=control('image') />
<input id="texto" type="button" value="Text" onclick=control('text') />
</div>
. . .
{block:Posts}
<a href="{ReblogURL}" target="_blank" title="Click to reblog">
<div id="posts">
<div class="text">
{block:Text}{block:Title}<h1>{Title}</h1>{/block:Title}{Body}{/block:Text}
{block:Quote}
<div id="postquote">“{Quote}”</div><br>
{block:Source}<div id="sourcequote"> — {Source}</div>{/block:Source}
{/block:Quote}
{block:Link}
<a href="{URL}"><h1>{Name}</h1></a>
{block:Description}<p>{Description}</p>{/block:Description}
{/block:Link}
{block:Chat}<ul class="chat">{block:Lines}<li class="user_{UserNumber}">{block:Label}<span class="label">{Label}</span>{/block:Label} {Line}</li>{/block:Lines}</ul>{/block:Chat}
{block:Answer}
<table width="500px" cellspacing="0" cellpadding="0">
<tr>
<td width="415px" class="question">{Question}</td>
<td width="30px"><span class="questionarrow">◤</span></td>
<td width="64px" class="asking"><img src="{AskerPortraitURL-64}><br>{Asker}</td>
</tr>
</table>
<div class="answer">{Answer}</div>
{/block:answer}
</div>
<div class="image">
{block:Photo}<center><img src="{PhotoURL-500}"/></center>
{block:Caption}{Caption}{/block:Caption}{/block:Photo}
{block:Photoset}<center>{Photoset-500}</center>
{block:Caption}{Caption}{/block:Caption}{/block:Photoset}
{block:Video}{Video-500}{block:Caption}{Caption}{/block:Caption}{/block:Video}
</div>
{block:Audio}<span class="audio"><center>{AudioPlayerBlack}</center></span>{block:Caption}{Caption}{/block:Caption}{/block:Audio}
<div id="ssource">
{block:ContentSource}
<a href="{SourceURL}">{lang:Source}:{block:SourceLogo}
<img src="{BlackLogoURL}" width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
{/block:SourceLogo}{block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo}</a>
{/block:ContentSource}
</div>
</div>
</a>{block:HasTags}<br>{block:Tags} <a href="{TagURL}"><b>#</b>{Tag}</a> {/block:Tags}{/block:HasTags}
{/block:Posts}