Back
Next
GALLERIA
\r\n"; } else { $images = 0; $current_col = 0; $count = $rows * $columns; $last = $count + $first; echo "\r\n"; $dir = opendir($images_folder); while ($filename = readdir($dir)) { $ext = pathinfo($filename, PATHINFO_EXTENSION); if ($ext == 'gif' || $ext == 'jpeg' || $ext == 'jpg' || $ext == 'png') { if ($images >= $first && $images < $last) { if ($current_col == 0) { echo "\r\n"; } list($width, $height) = getimagesize($images_folder.$filename); $link = ""; $image_ratio = $width/$height; if ($image_ratio > 1) { $thumbnail_width = $thumbnail_size; $thumbnail_height = $thumbnail_size / $image_ratio; } else { $thumbnail_width = $thumbnail_size * $image_ratio; $thumbnail_height = $thumbnail_size; } echo "\r\n"; $current_col++; if ($current_col == $columns) { $current_col = 0; echo "\r\n"; } } $images++; } } $pagination = ''; $pages = ceil($images/$count); for ($i=0; $i<$pages; $i++) { $page = $i * $count; $current_page = $i + 1; if ($page == $first) { $pagination .= " $current_page "; } else { $pagination .= " $current_page\r\n "; } } echo "\r\n"; echo "
$link\"\"
$pagination
\r\n"; } ?>
SEGUICI SU
Azienda agricola Chioccioland
di Zamperini Enrico

Sede legale:
p.zza L. da Vinci, 8 Campiglia
53034 Colle di Val d'Elsa (SI)
p.iva 01423190527
n. REA SI-146543

Allevamento:
loc. I Fornelli - Campiglia
53034
Colle di Val d'Elsa (SI)

CONTATTACI
info@chioccioland.com
Enrico: +393401815331
Mauro:+393338241775
Copyright (c) 2017 Chioccioland.