Add video support
This commit is contained in:
parent
c201d26a81
commit
77d786e26c
2 changed files with 13 additions and 8 deletions
17
index.php
17
index.php
|
@ -408,14 +408,14 @@ if (is_dir($current_dir) && $handle = opendir($current_dir)) {
|
||||||
"name" => $file,
|
"name" => $file,
|
||||||
"date" => filemtime($current_dir . "/" . $file),
|
"date" => filemtime($current_dir . "/" . $file),
|
||||||
"size" => filesize($current_dir . "/" . $file),
|
"size" => filesize($current_dir . "/" . $file),
|
||||||
"html" => "
|
"html" => '
|
||||||
<li>
|
<li>
|
||||||
<a href='$current_dir/$file' title='$file'>
|
<a href="'.$current_dir.'/'.$file.'" title="'.$file.'">
|
||||||
<em-pdf>" . padstring($file, 20) . "</em-pdf>
|
<em-pdf>' . padstring($file, 20) . '</em-pdf>
|
||||||
<span></span>
|
<span></span>
|
||||||
<img src='" . GALLERY_ROOT . "images/filetype_" . $extension . ".png' width='$thumb_size' height='$thumb_size' alt='$file' />
|
<img src="' . GALLERY_ROOT .'images/filetype_' . $extension . '.png" width="'.$thumb_size.'" height="'.$thumb_size.'" alt="'.$file.'" />
|
||||||
</a>$filename_caption
|
</a>'.$filename_caption.'
|
||||||
</li>");
|
</li>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -561,7 +561,10 @@ if ($i < 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($y = $i; $y < $nbFile; $y++) {
|
for ($y = $i; $y < $nbFile; $y++) {
|
||||||
$page_navigation .= "<a href='" . $current_dir . "/" . $files[$y]["name"] . "' class='hidden' title='" . $img_captions[$files[$y]["name"]] . "'></a>";
|
if(empty($img_captions[$files[$y]['name']])){
|
||||||
|
$img_captions[$files[$y]['name']] = $files[$y]['name'];
|
||||||
|
}
|
||||||
|
$page_navigation .= '<a href="' . $current_dir . '/' . $files[$y]['name'] . '" class="hidden" title="' . $img_captions[$files[$y]['name']] . '"></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------
|
//-----------------------
|
||||||
|
|
|
@ -78,10 +78,12 @@
|
||||||
position:relative;
|
position:relative;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
padding : 0.3em;
|
padding : 0.3em;
|
||||||
|
max-width : 320px;
|
||||||
|
height: 320px;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
#gallery li img {
|
#gallery li img {
|
||||||
width:100%;
|
width:100%;
|
||||||
max-width : 320px;
|
|
||||||
}
|
}
|
||||||
#gallery em {
|
#gallery em {
|
||||||
display:block;
|
display:block;
|
||||||
|
|
Loading…
Reference in a new issue