Exemple #1
0
			</div>
		</div><!-- // end #header -->
        <?php 
require '../classes/landmarkDB.php';
require '../classes/pagination.php';
require '../home.php';
$landmarks = new LandmarkDB();
$limit = 4;
$pagination = new Pagination();
$offset = $pagination->getOffset($limit);
$yourLandmarks = $landmarks->getYourLandmarks($limit, $offset);
$ids = array();
foreach ($yourLandmarks as $value) {
    $ids[] = (int) $value->id;
}
$yourLandmarkImages = $landmarks->selectLandmarkItemsImages($ids, 'small');
$bigImages = $landmarks->selectLandmarkItemsImages($ids, 'big');
?>
       	<?php 
if (count($yourLandmarks) > 0) {
    ?>
       	<div id="main">
			<div class="container">
				<div id="slideshow">
					<?php 
    foreach ($bigImages as $image) {
        ?>
						<?php 
        if (isset($image) && $image != '') {
            ?>
							<img src="../classes/images/<?php