<div class="pu"> <?php $readpublicidade = read("publicidade", " WHERE pg ='noticias' LIMIT 6"); if (!$readpublicidade) { echo 'Publicidades:'; } else { echo '<ul>'; foreach ($readpublicidade as $publi) { echo '<li>' . getTumb($publi["thumb"], $publi['nome'], $publi['nome'], 250, 135, '', '', $publi['link']) . '</li>'; } echo '</ul>'; } ?> </div><!-- publicidades -->
</h1> <div class="content"> <?php echo $art['content']; ?> <?php $readGaleria = read("galeria", "WHERE post_id = '{$art['id']}'"); if ($readGaleria) { echo ' <ul class="gallery">'; echo ' <h1>Galeria De Imagens:</h1>'; foreach ($readGaleria as $gb) { echo '<li>'; getTumb($gb["img"], $art['tags'], $art['titulo'], 54, 54, 100, "", ""); echo '</li>'; } echo ' </ul><!-- //gallery -->'; } ?> <?php $autor = getAutor($art['autor']); ?> <div class="msForm"><a href="<?php echo BASE . '/artigo/' . $art['url'] . '&f=true'; ?>
</div><!-- /Variados --> <div class="tec"><!--PALAVRA AMIGA--> <?php echo '<ul class="ultec">'; $readEspostes = read("post", "WHERE tipo='post' AND status='1' AND cat_pai= '71' ORDER BY data DESC LIMIT 1,2"); if ($readEspostes) { foreach ($readEspostes as $esportes) { $i++; echo ' <li class="bsshadow'; if ($i == 2) { echo ' last'; } echo '>'; getTumb($esportes["thumb"], $esportes['tags'], $variados['titulo'], 133, 237, '', '', BASE . '/artigo/' . $variados['url']); echo ' <span class="info">'; echo '<p class="titulo"><a href="' . BASE . '/artigo/' . $variados['url'] . ' title="' . $esportes['titulo'] . '"">' . lmWords($esportes['titulo'], 35) . '</a></p>'; echo ' <p class="data">' . date('d/m/Y H:i', strtotime($variados['data'])) . '</p>'; echo ' </li>'; } } echo '</ul>'; ?> <!--AssuntoS Orações--> <?php echo '<ul class="ultecover">'; $readVariad = read("post", "WHERE tipo='post' AND status='1' AND cat_pai= '73' ORDER BY data DESC LIMIT 1,3"); if ($readVariad) {
$pag = empty($url[3]) ? '1' : $url[3]; $maximo = 12; $inicio = $pag * $maximo - $maximo; if ($cat['id_pai'] != '') { $readArtig = read("post", "WHERE categoria ='{$cat['id']}' AND status = '1' AND tipo= 'post' ORDER BY data DESC LIMIT {$inicio},{$maximo}"); } else { $readArtig = read("post", "WHERE cat_pai= '{$cat['id']}' AND status = '1' AND tipo= 'post' ORDER BY data DESC LIMIT {$inicio},{$maximo}"); } foreach ($readArtig as $art) { $catCon++; echo '<li'; if ($catCon % 4 == 0) { echo ' class="last"'; } echo '>'; getTumb($art["thumb"], $art['tags'], $art['titulo'], 200, 150, '', '', BASE . '/artigo/' . $art['url']); echo ' <p class="data">' . date('d/m/Y H:i', strtotime($art['data'])) . '</p>'; echo '<p class="titulo"><a title="' . $art['titulo'] . ' "href="' . BASE . '/artigo/' . $art['url'] . '" class="link"> ' . lmWords($art['titulo'], 50) . '</a></p>'; echo '</li>'; } echo '</ul>'; //Paginação $link = BASE . '/categoria/' . $cat['url'] . '/page/'; if ($cat['id_pai'] != '') { readPaginator("post", "WHERE categoria = '{$cat['id']}' AND status= '1' AND tipo = 'post' ORDER BY data DESC", $maximo, $link, $pag); } else { readPaginator("post", "WHERE cat_pai = '{$cat['id']}' AND status= '1' AND tipo = 'post' ORDER BY data DESC", $maximo, $link, $pag); } ?>