Bildgalerien mit Fotograf-Verwaltung. Jede Galerie kann Bilder, Video-Streams und Videodateien enthalten.
Gibt Bildgalerien zurück. Optional nach Fotograf filtern.
Code
$config = [];
$config["website"] = '1';
$config["status"] = '1';
$config["label"] = '';
$config["photographer"] = ''; // optional: Fotograf-ID
$config["search"] = '';
$config["orderby"] = 'date';
$config["direction"] = 'desc';
$config["start"] = '0';
$config["limit"] = '10';
$galerien = getGalleryList($config);
foreach ($galerien as $g) {
echo $g["headline"];
echo $g["content"];
echo date("d.m.Y", $g["date"]);
echo $g["image_items"]; // Anzahl Bilder
// Erstes Bild:
if (!empty($g["image"])) {
echo '<img src="'.$g["image"]["image"].'">';
}
}
$config Parameter
| Key | Beschreibung | Werte |
|---|---|---|
| website | Website-ID | SITE_ID |
| status | Statusfilter | '1' · '0' · leer |
| photographer | Filter nach Fotograf-ID | ID |
| label | Label-ID Filter | ID |
| search | Freitextsuche | Begriff |
| orderby | Sortierfeld | 'id' · 'date' · 'headline' |
| direction | Richtung | 'asc' · 'desc' |
| start / limit | Pagination | Integer |
Rückgabe-Keys
| Key | Beschreibung |
|---|---|
| id / key / tags / headline / content / description | Basisdaten |
| photographer | Fotograf-ID |
| date | Datum (Unix-Timestamp) |
| status / update | Status und letztes Update |
| image_items / video_items / videofile_items / media_items | Anzahl Medien |
| image.image / .thumbnail / .small | Erstes Bild (geprüft) |
Ausgabe (Live)
[
{
"id": "16",
"key": "66",
"tags": "Mix",
"headline": "Test2301",
"content": "adsfadfdsf<\/p>",
"description": "adsfdsf",
"photographer": "9",
"date": "1769158020",
"label": [
"6"
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-23 09:48:03",
"image_items": 0,
"video_items": 0,
"videofile_items": 0,
"media_items": 0,
"image": [],
"video": [],
"videofile": []
},
{
"id": "13",
"key": "Muller",
"tags": "0",
"headline": "Sonnenaufgang",
"content": "
asdsfdfdsf<\/p>
<\/p>
adsfdafdsfdfdsf<\/p>",
"description": "asdfasdfsdfdsfd",
"photographer": "9",
"date": "1769093520",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-20 15:58:37",
"image_items": 1,
"video_items": 0,
"videofile_items": 0,
"media_items": 1,
"image": {
"id": "1423",
"image": "media\/gallery\/gallery\/image\/1423.webp",
"thumbnail": "media\/gallery\/gallery\/image\/thumbnail\/1423.webp",
"small": "media\/gallery\/gallery\/image\/small\/1423.webp",
"check": "false"
},
"video": [],
"videofile": []
},
{
"id": "15",
"key": "fsdgf-sfg15",
"tags": "",
"headline": "fsdgf sfg",
"content": "
sdfgsdgf sdfg<\/p>",
"description": "Galerie 1",
"photographer": "0",
"date": "1769082060",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-22 12:42:01",
"image_items": 0,
"video_items": 0,
"videofile_items": 0,
"media_items": 0,
"image": [],
"video": [],
"videofile": []
}
]