<div class="row"> <h3>Gallerie fotografiche</h3> </div> <div class="row"> <?php $string = file_get_contents("./json/photos.json"); $json_a = json_decode($string, true); usort($json_a, 'sort_by_date'); foreach ($json_a as $ph => $photo) { $data = $util->shortDate($photo['data']); $folder = $photo['folder']; $title = $photo['title']; $gallery->setPath('./photos/' . $folder . '/'); //path to the image folder $images = $gallery->getImages(array('jpg', 'png')); //array of possible image extensions (useful if you have mixed galleries) ?> <div class="col-xs-12"> <h4><?php echo $title; ?> <a name='<?php echo $folder; ?> '></a> (<?php echo substr($data, strlen($data) - 9); ?> )</h4> <p><strong><?php echo $photo['copyright'];