bd->url = "index.php?categoria=$cat_id";
$album->bd->paginate(12); //12 é o numero de itens por página
$album->getAlbumByCat($cat_id);
else:
$album->bd->url = "index.php";
$album->bd->paginate(12); //12 é o numero de itens por página
$album->getAlbuns();
endif;
if ($album->bd->data >= 1):
foreach ($album->bd->data as $a):
if (isset($_GET['fx'])) {
if (isset($fx_list[intval($_GET['fx'])])) {
$a->album_fx = $fx_list[intval($_GET['fx'])];
}
$a->album_fx = $_GET['fx'];
}
$foto = new Foto();
$pg = 4;
if ($a->album_fx == 'coverflow' || $a->album_fx == 'sideslide' || $a->album_fx == 'peekaboo') {
$pg = 3;
}
if ($a->album_fx == '' ){
$pg = 1;
}
$foto->getFotosHome($a->album_id,$pg);
if (isset($foto->bd->data[0])) :
$tfoto = count($foto->bd->data);
?>
bd->data as $f):
if (isset($f->foto_url)):
if (!file_exists("fotos/$f->foto_url")):
$f->foto_url = "nopic.jpg";
endif;
else:
$f->foto_url = "nopic.jpg";
endif;
?>
album_nome ?>