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:
16
system/migrations/50.php
Normal file
16
system/migrations/50.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* @var OTS_DB_MySQL $db
|
||||
*/
|
||||
|
||||
$up = function () use ($db) {
|
||||
if ($db->hasTable(TABLE_PREFIX . 'gallery')) {
|
||||
$db->dropTable(TABLE_PREFIX . 'gallery');
|
||||
}
|
||||
};
|
||||
|
||||
$down = function () use ($db) {
|
||||
if (!$db->hasTable(TABLE_PREFIX . 'gallery')) {
|
||||
$db->query(file_get_contents(__DIR__ . '/50-gallery.sql'));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user