mirror of
https://github.com/slawkens/myaac.git
synced 2026-02-06 21:26:22 +01:00
Better gallery
Replaced complex gallery with simple script Slideshow loaded from images/gallery folder Credits: https://www.w3schools.com/howto/howto_js_slideshow.asp
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
<?php
|
||||
|
||||
use MyAAC\Models\Gallery;
|
||||
|
||||
if(PAGE !== 'news') {
|
||||
return;
|
||||
}
|
||||
|
||||
$gallery = Gallery::find($config['gallery_image_id_from_database']);
|
||||
if ($gallery) {
|
||||
$configGalleryImageThumb = config('gallery_image_thumb');
|
||||
if (!empty($configGalleryImageThumb)) {
|
||||
$twig->display('gallery.html.twig', array(
|
||||
'image' => $gallery->toArray()
|
||||
'image' => GALLERY_DIR . $configGalleryImageThumb,
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user