Erstes großes Refactoring
* alle gemeinsamen Funktionen in includes/galleryfunctions.php zusammengeführt (fixes #21) * AJAX-Requests werden in ajaxrequest.php behandelt und liefern zusätzlich zum Titel auch die URLs des Vorschau- und des Vollbildes (fixes #22), die übergebenen Request-Parameter werden syntaktisch geprüft (fixes #23) * Die Vorschau- und Thumbnail-Bilder werden in der Funktion getScaledImage() in includes/galleryfunctions.php generiert und im Filesystem abgelegt (fixes #10) * Bildbeschreibungen sind jetzt in einem .ini-Format in bilder/example/galleryinfo.ini in der Sektion "images" definiert (addresses #20) * Rendern der Menüpunkte in index.php und includes/galleryfunctions.php vorbereitet (addresses #16) * Die AJAX-Aufrufe und Pfadberechnungen in scripts/ourhandlers.js wurden korrigiert und an die neue AJAX-Handler-URL angepasst (addresses #22, fixes #19) * Beispielbilder in Unterverzeichnis ''bilder/example'' verschoben und die Möglichkeit vorgesehen in ''bilder/galleryinfo.ini'' eine Standardgallerie anzugeben (fixes #24, addresses #20, #16)
This commit is contained in:
parent
3b970fb135
commit
0f8dda1b1b
19 changed files with 435 additions and 428 deletions
BIN
bilder/example/cimg3033_Small.jpg
Normal file
BIN
bilder/example/cimg3033_Small.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 83 KiB |
BIN
bilder/example/cimg3071_Small.jpg
Normal file
BIN
bilder/example/cimg3071_Small.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 70 KiB |
BIN
bilder/example/cimg3157_Small.jpg
Normal file
BIN
bilder/example/cimg3157_Small.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
BIN
bilder/example/cimg4188_Small.jpg
Normal file
BIN
bilder/example/cimg4188_Small.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
BIN
bilder/example/cimg4191_Small.jpg
Normal file
BIN
bilder/example/cimg4191_Small.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
BIN
bilder/example/cimg5178_Small.jpg
Normal file
BIN
bilder/example/cimg5178_Small.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
7
bilder/example/galleryinfo.ini
Normal file
7
bilder/example/galleryinfo.ini
Normal file
|
@ -0,0 +1,7 @@
|
|||
[images]
|
||||
cimg3033_Small.jpg = Kerze
|
||||
cimg3071_Small.jpg = Gerät
|
||||
cimg3157_Small.jpg = Abstract
|
||||
cimg4188_Small.jpg = Blume
|
||||
cimg4191_Small.jpg = Blume - Rose
|
||||
cimg5178_Small.jpg = Gerät nah
|
Reference in a new issue