function getHomeTopPosts(){
// AYER
$data['ayer'] = $this->getHomeTopPostsQuery($this->setTime(2));
// SEMANA
$data['semana'] = $this->getHomeTopPostsQuery($this->setTime(3));
// MES
$data['mes'] = $this->getHomeTopPostsQuery($this->setTime(4));
// HISTÓRICO
$data['historico'] = $this->getHomeTopPostsQuery($this->setTime(5));
// 15 MINUTOS
$data['15min'] = $this->getHomeTopPostsQuery($this->setTime(9));
// 1HORA
$data['hora'] = $this->getHomeTopPostsQuery($this->setTime(6));
// 3HORAS
$data['3horas'] = $this->getHomeTopPostsQuery($this->setTime(7));
// 6HORAS
$data['6horas'] = $this->getHomeTopPostsQuery($this->setTime(8));
// TODO EL TIEMPO
case 5:
//
$data['start'] = 0;
$data['end'] = $tiempo;
//
break;
// 15 Minutos
case 9:
//
$resta = $this->setSegs(1, '15min') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 30 Minutos
case 10:
//
$resta = $this->setSegs(1, '30min') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 1 HORA
case 6:
//
$resta = $this->setSegs(1, 'dia') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 3 HORAS
case 7:
//
$resta = $this->setSegs(1, '3horas') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 6 HORAS
case 8:
//
$resta = $this->setSegs(1, '6horas') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
case 'mes' :
$segundos = $tiempo * 2592000;
break;
case 'hora' :
$segundos = $tiempo * 3600;
break;
case '3horas' :
$segundos = $tiempo * 10800;
break;
case '6horas' :
$segundos = $tiempo * 32400;
break;
case '15min' :
$segundos = $tiempo * 900;
break;
case '30min' :
$segundos = $tiempo * 1800;
break;
{include file='modules/m.home_last_comments.tpl'}
{if $tsUser->is_member}
{include file='modules/m.home_destacados.tpl'}
{/if}
{if $tsConfig.c_fotos_private == '1' && !$tsUser->is_member}{else}
<li class="tabbed {if $tsPage == 'fotos'}here{/if}" id="tabbedfotos">
<a title="Ir a Fotos" onclick="menu('fotos', this.href); return false;" href="{$tsConfig.url}/fotos/">Fotos <img alt="Drop Down" src="{$tsConfig.tema.t_url}/images/arrowdown.png"></a>
</li>
{/if}
<li class="tabbed {if $tsPage == 'destacados'}here{/if}" id="tabbedtops">
<a title="destacados" onclick="menu('tops', this.href); return false;" href="{$tsConfig.url}/destacados/">Destacados </a>
</li>
<li class="tabbed {if $tsPage != 'home' && $tsPage != 'posts' && $tsPage != 'tops' && $tsPage != 'admin' && $tsPage != 'fotos'}here{/if}" id="tabbedhome">
<li class="tabbed {if $tsPage != 'home' && $tsPage != 'posts' && $tsPage != 'tops' && $tsPage != 'admin' && $tsPage != 'fotos' && $tsPage != 'destacados'}here{/if}" id="tabbedhome">
<div id="subMenuFotos" class="subMenu {if $tsPage == 'fotos'}here{/if}">
<ul class="floatL tabsMenu">
<li{if $tsAction == '' && $tsAction != 'agregar' && $tsAction != 'album' && $tsAction != 'favoritas' || $tsAction == 'ver'} class="here"{/if}><a href="{$tsConfig.url}/fotos/">Inicio</a></li>
{if $tsAction == 'album' && $tsFUser.0 != $tsUser->uid}<li class="here"><a href="{$tsConfig.url}/fotos/{$tsFUser.1}">Álbum de {$tsFUser.1}</a></li>{/if}
{if $tsUser->is_admod || $tsUser->permisos.gopf}<li{if $tsAction == 'agregar'} class="here"{/if}><a href="{$tsConfig.url}/fotos/agregar.php">Agregar Foto</a></li>{/if}
<li{if $tsAction == 'album' && $tsFUser.0 == $tsUser->uid} class="here"{/if}><a href="{$tsConfig.url}/fotos/{$tsUser->nick}">Mis Fotos</a></li>
</ul>
<div class="clearBoth"></div>
</div>
<div id="subMenuTops" class="subMenu {if $tsPage == 'destacados'}here{/if}">
<ul class="floatL tabsMenu">
<li{if $tsAction == 'posts'} class="here"{/if}><a href="{$tsConfig.url}/destacados/posts/">Posts</a></li>
<li{if $tsAction == 'usuarios'} class="here"{/if}><a href="{$tsConfig.url}/destacados/usuarios/">Usuarios</a></li>
</ul>
<div class="clearBoth"></div>
</div>