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,
|
||||
"date" => filemtime($current_dir . "/" . $file),
|
||||
"size" => filesize($current_dir . "/" . $file),
|
||||
"html" => "
|
||||
"html" => '
|
||||
<li>
|
||||
<a href='$current_dir/$file' title='$file'>
|
||||
<em-pdf>" . padstring($file, 20) . "</em-pdf>
|
||||
<a href="'.$current_dir.'/'.$file.'" title="'.$file.'">
|
||||
<em-pdf>' . padstring($file, 20) . '</em-pdf>
|
||||
<span></span>
|
||||
<img src='" . GALLERY_ROOT . "images/filetype_" . $extension . ".png' width='$thumb_size' height='$thumb_size' alt='$file' />
|
||||
</a>$filename_caption
|
||||
</li>");
|
||||
<img src="' . GALLERY_ROOT .'images/filetype_' . $extension . '.png" width="'.$thumb_size.'" height="'.$thumb_size.'" alt="'.$file.'" />
|
||||
</a>'.$filename_caption.'
|
||||
</li>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -561,7 +561,10 @@ if ($i < 0) {
|
|||
}
|
||||
|
||||
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;
|
||||
overflow:hidden;
|
||||
padding : 0.3em;
|
||||
max-width : 320px;
|
||||
height: 320px;
|
||||
vertical-align: top;
|
||||
}
|
||||
#gallery li img {
|
||||
width:100%;
|
||||
max-width : 320px;
|
||||
}
|
||||
#gallery em {
|
||||
display:block;
|
||||
|
|
Loading…
Reference in a new issue