Single v1
-commentaires cachés -settings -3 lightbox -enqueue js et css
This commit is contained in:
@@ -58,10 +58,14 @@ function displayRetina ($filename,$album) {
|
||||
elseif ($th_hd == true) {
|
||||
$standard = $thumb['hd']['url'] . ' 2x';
|
||||
}
|
||||
/*
|
||||
|
||||
$display = '<div class="album">';
|
||||
//$display .= '<div class="holder">';
|
||||
//$display .= '<a href="../../zenphoto/albums/'.$album.'/'.$filename.'" title="'.date_archive($filename).'" class="swipebox">';
|
||||
$display .= '<div class="thumb">';
|
||||
$display .= '<a href="../../zenphoto/albums/'.$album.'/'.$filename.'" title="'.date_archive($filename).'" class="wraptocenter swipebox" />';
|
||||
$display .= '<a class="wraptocenter" href="../../zenphoto/albums/'.$album.'/'.$filename.'" title="'.date_archive($filename).'" data-featherlight="image">';
|
||||
//$display .= '<a class="wraptocenter gallery" href="../../zenphoto/albums/'.$album.'/'.$filename.'" title="'.date_archive($filename).'">';
|
||||
//$display .= '<a href="../../zenphoto/albums/'.$album.'/'.$filename.'" title="'.date_archive($filename).'" class="wraptocenter">';
|
||||
|
||||
$display .= '<picture data-picture data-alt="">';
|
||||
$display .= '<!--[if IE 9]><video style="display: none;"><![endif]-->';
|
||||
@@ -74,23 +78,11 @@ function displayRetina ($filename,$album) {
|
||||
$display .= '</a>';
|
||||
$display .= '</div>';
|
||||
$display .= '<div class="albumdesc">';
|
||||
$display .= '<a href="../../zenphoto/index.php?album='.$album.'&image='.$filename.'" title= "'.date_archive($filename).'" class="" />';
|
||||
$display .= '<a href="../../zenphoto/index.php?album='.$album.'&image='.$filename.'" title= "'.date_archive($filename).'" class="">';
|
||||
$display .= '<span class="exif">'.date_archive($filename).'</span>';
|
||||
$display .= '</a></div>';
|
||||
$display .= '</div>';
|
||||
*/
|
||||
$display = '<div class="album">';
|
||||
$display .= '<div class="thumb">';
|
||||
$display .= '<picture data-picture data-alt="">';
|
||||
$display .= '<source class="image_standard" srcset="' . $standard . '">';
|
||||
$display .= '<img srcset="' . $thumb['sd']['url'] . '" width="' . $thumb['sd']['width'] . '" height="' . $thumb['sd']['height'] . '"alt="">';
|
||||
$display .= '</picture>';
|
||||
$display .= '</div>';
|
||||
$display .= '<div class="albumdesc">';
|
||||
$display .= '<span class="exif">';
|
||||
$display .= '<a href="../../zenphoto/index.php?album='.$album.'&image='.$filename.'" title= "'.date_archive($filename).'" class="" />'.date_archive($filename).'</a>';
|
||||
$display .= '</span></div>';
|
||||
$display .= '</div>';
|
||||
|
||||
return $display;
|
||||
}
|
||||
|
||||
@@ -226,30 +218,54 @@ if(isset($_POST) && isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SER
|
||||
$results->bind_param('i', $id_album);
|
||||
$results->execute(); //Execute prepared Query
|
||||
$results->bind_result($filename); //bind variables to prepared statement
|
||||
|
||||
$path = "../../zenphoto/cache/" . $album . "/";
|
||||
|
||||
//Display records fetched from database.
|
||||
//echo '<ul class="contents">';
|
||||
//echo '<section data-featherlight-gallery data-featherlight-filter="a">';
|
||||
|
||||
|
||||
while($results->fetch()){ //fetch values
|
||||
|
||||
/* ----
|
||||
$file = explode(".", $filename);
|
||||
|
||||
$file_sd = $path . $file[0] . "_180_thumb.jpg";
|
||||
$size_sd = getimagesize($file_sd, $info);
|
||||
$thumb['sd'] = array(
|
||||
'url' => "../../" . $file_sd,
|
||||
'width' => $size_sd[0],
|
||||
'height' => $size_sd[1]
|
||||
);
|
||||
|
||||
$file_hd = $path . $file[0] . "_360_thumb.jpg";
|
||||
$size_hd = getimagesize($file_hd, $info);
|
||||
$thumb['hd'] = array(
|
||||
'url' => "../../" . $file_hd,
|
||||
'width' => $size_hd[0],
|
||||
'height' => $size_hd[1]
|
||||
);*/
|
||||
/* ---- */
|
||||
|
||||
/*
|
||||
echo '<li>';
|
||||
echo $filename;
|
||||
echo '</li>';
|
||||
//echo $filename;
|
||||
$display .= '<a href="../../zenphoto/albums/'.$album.'/'.$filename.'" title="'.date_archive($filename).'" class="swipebox">';
|
||||
$display .= '<img srcset="' . $thumb['hd']['url'] . '" width="' . $thumb['hd']['width'] . '" height="' . $thumb['hd']['height'] . '"alt="">';
|
||||
$display .= '</a>';
|
||||
echo $display;
|
||||
$display = "";
|
||||
*/
|
||||
//echo '<a href="../../zenphoto/albums/">';
|
||||
//echo '<img src="test.jpg"></a>';
|
||||
//echo '<a href="aa.php"><img src="test.jpg"></a>';
|
||||
|
||||
echo displayRetina($filename,$album);
|
||||
/*
|
||||
if ($j <= count($fichier)-1) echo displayRetina($fichier[$j],$album);
|
||||
if ($j+1 <= count($fichier)-1) echo displayRetina($fichier[$j+1],$album);
|
||||
if ($j+2 <= count($fichier)-1) echo displayRetina($fichier[$j+2],$album);
|
||||
|
||||
//echo $fichier[$j];
|
||||
|
||||
$j = $j + 2;
|
||||
*/
|
||||
}
|
||||
//echo '</ul>';
|
||||
|
||||
echo '<div align="center" class="pagine">';
|
||||
}
|
||||
|
||||
//echo '</section>';
|
||||
|
||||
echo '<p style="clear: both; "></p>';
|
||||
echo '<div align="center">';
|
||||
/* We call the pagination function here to generate Pagination link for us.
|
||||
As you can see I have passed several parameters to the function. */
|
||||
echo paginate_function($item_per_page, $page_number, $get_total_rows[0], $total_pages);
|
||||
|
||||
Reference in New Issue
Block a user