joe's personal site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.4 KiB

2 years ago
<!DOCTYPE html>
<html lang=en-US>
<?php $pageName = $_SERVER['SCRIPT_NAME'];
require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/title.php');
require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/head.php');
require $_SERVER['DOCUMENT_ROOT'] . '/blog/includes/config.php'; ?>
<body id="photos">
<div class="wrapper">
<div class="header-container">
<?php require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/header.php'); ?>
<?php require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/nav.php'); ?>
2 years ago
<div class="content" id="content" role="main">
<div id="gallery" class="gallery">
<ul class="photos">
$stmt = $db->prepare('SELECT imageName, imageTitle, imageDesc, imageCat, imageTags, imageSize FROM blog_photos WHERE imagePub = :imagePub ORDER BY RAND()');
$stmt->execute(array(':imagePub' => '1'));
$i = 0;
while($row = $stmt->fetch()){
echo '<li id="item-'.$i.'"><img loading="lazy" data-original="/img/gallery/'.$row['imageName'] .'" src="/img/gallery/'.$row['imageName'] . '" alt="'.$row['imageTitle'].'"></li>'."\n";
<script defer src="/js/viewer/viewer.js"></script>
<script defer src="/js/viewer/main-other.js"></script>
<?php require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/footer.php'); ?>