Kursangebote mit Anmeldung über getCoursForm(). Funktionen: getCoursList, getCoursContent, getCoursImages, getCoursVideos, getCoursMedia.
Gibt einen einzelnen Kurs als Array zurück.
Code
$k = getCoursContent("5");
echo $k["headline"];
echo $k["theme"];
echo date("d.m.Y", $k["start"]);
echo date("d.m.Y", $k["end"]);
echo $k["price"];
echo $k["location"]["name"];
echo $k["graphic"]["image"];
foreach ($k["instructor"] as $instr) {
echo $instr["firstname"].' '.$instr["lastname"];
echo $instr["email"];
}
foreach ($k["links"] as $link) {
echo '<a href="'.$link["url"].'">'.$link["button"].'</a>';
}
foreach ($k["downloads"] as $dl) {
echo '<a href="'.$dl["file"].'">'.$dl["button"].'</a>';
}Ausgabe (Live)
{
"id": null,
"key": null,
"tags": null,
"headline": "",
"content": "",
"theme": "",
"description": "",
"start": null,
"end": null,
"price": null,
"age": null,
"location": {
"id": null,
"key": null,
"name": null,
"city": null,
"country": null
},
"label": [
""
],
"website": [
""
],
"status": null,
"update": null,
"image_items": 374,
"video_items": 38,
"videofile_items": 29,
"media_items": 441,
"image": {
"id": "980",
"image": "media\/courses\/image\/980.webp",
"thumbnail": "media\/courses\/image\/thumbnail\/980.webp",
"small": "media\/courses\/image\/small\/980.webp",
"check": "false"
},
"video": {
"id": "1021",
"url": "https:\/\/www.youtube.com\/watch?v=DRXJhVHQDtI",
"embed": "