Bilder

Bildgalerien mit Fotograf-Verwaltung. Jede Galerie kann Bilder, Video-Streams und Videodateien enthalten.

Liste

getGalleryList($config, $mediaCheck = "false")

Gibt Bildgalerien zurück. Optional nach Fotograf filtern.

$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"].'">';
    }
}
KeyBeschreibungWerte
websiteWebsite-IDSITE_ID
statusStatusfilter'1' · '0' · leer
photographerFilter nach Fotograf-IDID
labelLabel-ID FilterID
searchFreitextsucheBegriff
orderbySortierfeld'id' · 'date' · 'headline'
directionRichtung'asc' · 'desc'
start / limitPaginationInteger
KeyBeschreibung
id / key / tags / headline / content / descriptionBasisdaten
photographerFotograf-ID
dateDatum (Unix-Timestamp)
status / updateStatus und letztes Update
image_items / video_items / videofile_items / media_itemsAnzahl Medien
image.image / .thumbnail / .smallErstes Bild (geprüft)
[
    {
        "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": [] } ]

Playground