HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers64/klimroosbudel.nl/wwwroot/app/views/includes/v_photogallery.php
<?php
    if( ! class_exists('Photo_Gallery_Model')) include DOCUMENT_ROOT . 'app/models/m_photo_gallery.class.php';

    $Model = new Photo_Gallery_Model();
    $albums = $Model->get();
    $output = '';
    for($i=0;$i<3;$i++)
    {
        $images = $albums[$i]['images'];
        shuffle($images);
        array_values($images);
        $image = $images[0];

        $url = SITE_ROOT . 'fotogalerij/' . Fn::encodeUrl($albums[$i]['title']);

        $output .= '<a href="' . $url . '" class="col g3';
        if($i == 2) $output .= ' last';
        $output .= '">
            <img class="bottom_red" src="' . UPLOADS_ROOT . $image['thumb'] . '"><span class="photo_title">' . $albums[$i]['title'] . '</span>
        </a>';
    }



    $Menu = new Menu();
    $url = $Menu->getLatestAlbum();
?>

<section class="bg_blue goto_gallery">
    <div class="photo_spacer">
        <h3>Fotogalerij</h3>
    </div>
    <div class="center_div photogallery">
        <?php echo $output; ?>
        <div class="clear"></div>
        <a class="button center white" href="/fotogalerij/<?php echo $url ?>">Bekijk alle albums</a>
    </div>
</section>