slide repetindo o conteúdo
Olá meus amigos, estou com um problema em um slide onde ele ta repedindo o conteúdo nos 4 blocos..
Gostaria de uma ajuda pois quando eu faço ele ficar certinho o slide não passa, mais quando eu faço o slide passar ele fica com os blocos repetido..
Alguém poderia me dar alguma dica para me ajudar nisso...
Obrigado!
<div id="news-slider" class="owl-carousel">
<?php
$RedCat = new Read;
$RedCat->fullRead(
"SELECT DISTINCT "
. "p.post_id,"
. "p.post_name,"
. "p.post_title,"
. "p.post_cover,"
. "p.post_category,"
. "p.post_status,"
. "c.category_id,"
. "c.category_parent,"
. "c.category_name,"
. "c.category_title,"
. "c.category_content,"
. "c.category_date,"
. "c.category_color "
. "FROM " . DB_POSTS . " p "
. "INNER JOIN " . DB_CATEGORIES . " c ON c.category_id = p.post_category "
. "WHERE p.post_status = :status AND c.category_parent IS NULL GROUP BY p.post_category ORDER BY RAND()", "status=1"
);
if ($RedCat->getResult()):
foreach ($RedCat->getResult() as $Post):
$Post['post_cover'] = (file_exists("uploads/{$Post['post_cover']}") && !is_dir("uploads/{$Post['post_cover']}") ? "uploads/{$Post['post_cover']}" : 'admin/_img/no_image.jpg');
$Post['category_color'] = (!empty($Post['category_color']) ? "style='background-color:{$Post['category_color']}'" : '');
?>
<div class="news-slide">
<?php
$Indice = array('first', 'second', 'third', 'fourth');
foreach ($Indice as $class):
$Cover = ($class == 'first' ? "w=573&h=442" : ($class == 'second' ? "w=274&h=442" : ($class == 'third' ? "w=374&h=215" : ($class == 'fourth' ? "w=374&h=215" : ''))));
?>
<div class="news-slider-layer <?= $class; ?>">
<a href="<?= BASE; ?>/" title="">
<div class="content">
<span class="category-tag" <?= $Post['category_color']; ?>><?= $Post['category_title']; ?></span>
<p><?= $class; ?></p>
</div>
<img src="<?= BASE; ?>/tim.php?src=<?= $Post['post_cover']; ?>&<?= $Cover; ?>" title="<?= $Post['post_title']; ?>" alt="<?= $Post['post_title']; ?>">
</a>
</div>
<?php endforeach; ?>
</div>
<?php
endforeach;
endif;
?>
</div>
Discussão (0)
Carregando comentários...