MC18 NOV17x2

Social Media Icons Shop 55

Titel
GDPR & Filmverbot
$image = ''; $alt = $item->title; if (!empty($item->images)) { $images = json_decode($item->images); if (!empty($images->image_intro)) { $image = $images->image_intro; } elseif (!empty($images->image_fulltext)) { $image = $images->image_fulltext; } if (!empty($images->image_intro_alt)) { $alt = $images->image_intro_alt; } } if (empty($image) && !empty($item->introtext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->introtext, $matches)) { $image = $matches[1]; } } if (empty($image) && !empty($item->fulltext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->fulltext, $matches)) { $image = $matches[1]; } } if (!empty($image) && strpos($image, 'http') !== 0 && strpos($image, '//') !== 0) { $image = Uri::root() . ltrim($image, '/'); } $intro = ''; if (!empty($item->introtext)) { $intro = $item->introtext; } $intro = preg_replace('/]*>/i', '', $intro); $intro = preg_replace('/]*>.*?<\/figure>/is', '', $intro); $intro = preg_replace('/]*>.*?<\/figcaption>/is', '', $intro); $intro = preg_replace('/]*class="[^"]*caption[^"]*"[^>]*>.*?<\/div>/is', '', $intro); $intro = html_entity_decode(strip_tags($intro), ENT_QUOTES, 'UTF-8'); $intro = preg_replace('/\s+/u', ' ', $intro); $intro = trim($intro); $date = ''; $dateSource = ''; if (!empty($item->publish_up) && $item->publish_up !== '0000-00-00 00:00:00') { $dateSource = $item->publish_up; } elseif (!empty($item->created) && $item->created !== '0000-00-00 00:00:00') { $dateSource = $item->created; } if (!empty($dateSource)) { $months = [ '01' => 'Januar', '02' => 'Februar', '03' => 'März', '04' => 'April', '05' => 'Mai', '06' => 'Juni', '07' => 'Juli', '08' => 'August', '09' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Dezember', ]; $d = Factory::getDate($dateSource); $day = (int) $d->format('d'); $month = $months[$d->format('m')] ?? $d->format('m'); $year = $d->format('Y'); $date = $day . '. ' . $month . ' ' . $year; } $section = ''; if (!empty($item->link)) { $path = parse_url($item->link, PHP_URL_PATH); $segments = array_values(array_filter(explode('/', $path))); $indexFilmschule = array_search('filmschule', $segments); if ($indexFilmschule !== false && isset($segments[$indexFilmschule + 1])) { $raw = $segments[$indexFilmschule + 1]; $section = str_replace('-', ' ', $raw); $section = mb_convert_case($section, MB_CASE_TITLE, 'UTF-8'); } } ?> $image = ''; $alt = $item->title; if (!empty($item->images)) { $images = json_decode($item->images); if (!empty($images->image_intro)) { $image = $images->image_intro; } elseif (!empty($images->image_fulltext)) { $image = $images->image_fulltext; } if (!empty($images->image_intro_alt)) { $alt = $images->image_intro_alt; } } if (empty($image) && !empty($item->introtext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->introtext, $matches)) { $image = $matches[1]; } } if (empty($image) && !empty($item->fulltext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->fulltext, $matches)) { $image = $matches[1]; } } if (!empty($image) && strpos($image, 'http') !== 0 && strpos($image, '//') !== 0) { $image = Uri::root() . ltrim($image, '/'); } $intro = ''; if (!empty($item->introtext)) { $intro = $item->introtext; } $intro = preg_replace('/]*>/i', '', $intro); $intro = preg_replace('/]*>.*?<\/figure>/is', '', $intro); $intro = preg_replace('/]*>.*?<\/figcaption>/is', '', $intro); $intro = preg_replace('/]*class="[^"]*caption[^"]*"[^>]*>.*?<\/div>/is', '', $intro); $intro = html_entity_decode(strip_tags($intro), ENT_QUOTES, 'UTF-8'); $intro = preg_replace('/\s+/u', ' ', $intro); $intro = trim($intro); $date = ''; $dateSource = ''; if (!empty($item->publish_up) && $item->publish_up !== '0000-00-00 00:00:00') { $dateSource = $item->publish_up; } elseif (!empty($item->created) && $item->created !== '0000-00-00 00:00:00') { $dateSource = $item->created; } if (!empty($dateSource)) { $months = [ '01' => 'Januar', '02' => 'Februar', '03' => 'März', '04' => 'April', '05' => 'Mai', '06' => 'Juni', '07' => 'Juli', '08' => 'August', '09' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Dezember', ]; $d = Factory::getDate($dateSource); $day = (int) $d->format('d'); $month = $months[$d->format('m')] ?? $d->format('m'); $year = $d->format('Y'); $date = $day . '. ' . $month . ' ' . $year; } $section = ''; if (!empty($item->link)) { $path = parse_url($item->link, PHP_URL_PATH); $segments = array_values(array_filter(explode('/', $path))); $indexFilmschule = array_search('filmschule', $segments); if ($indexFilmschule !== false && isset($segments[$indexFilmschule + 1])) { $raw = $segments[$indexFilmschule + 1]; $section = str_replace('-', ' ', $raw); $section = mb_convert_case($section, MB_CASE_TITLE, 'UTF-8'); } } ?> $image = ''; $alt = $item->title; if (!empty($item->images)) { $images = json_decode($item->images); if (!empty($images->image_intro)) { $image = $images->image_intro; } elseif (!empty($images->image_fulltext)) { $image = $images->image_fulltext; } if (!empty($images->image_intro_alt)) { $alt = $images->image_intro_alt; } } if (empty($image) && !empty($item->introtext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->introtext, $matches)) { $image = $matches[1]; } } if (empty($image) && !empty($item->fulltext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->fulltext, $matches)) { $image = $matches[1]; } } if (!empty($image) && strpos($image, 'http') !== 0 && strpos($image, '//') !== 0) { $image = Uri::root() . ltrim($image, '/'); } $intro = ''; if (!empty($item->introtext)) { $intro = $item->introtext; } $intro = preg_replace('/]*>/i', '', $intro); $intro = preg_replace('/]*>.*?<\/figure>/is', '', $intro); $intro = preg_replace('/]*>.*?<\/figcaption>/is', '', $intro); $intro = preg_replace('/]*class="[^"]*caption[^"]*"[^>]*>.*?<\/div>/is', '', $intro); $intro = html_entity_decode(strip_tags($intro), ENT_QUOTES, 'UTF-8'); $intro = preg_replace('/\s+/u', ' ', $intro); $intro = trim($intro); $date = ''; $dateSource = ''; if (!empty($item->publish_up) && $item->publish_up !== '0000-00-00 00:00:00') { $dateSource = $item->publish_up; } elseif (!empty($item->created) && $item->created !== '0000-00-00 00:00:00') { $dateSource = $item->created; } if (!empty($dateSource)) { $months = [ '01' => 'Januar', '02' => 'Februar', '03' => 'März', '04' => 'April', '05' => 'Mai', '06' => 'Juni', '07' => 'Juli', '08' => 'August', '09' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Dezember', ]; $d = Factory::getDate($dateSource); $day = (int) $d->format('d'); $month = $months[$d->format('m')] ?? $d->format('m'); $year = $d->format('Y'); $date = $day . '. ' . $month . ' ' . $year; } $section = ''; if (!empty($item->link)) { $path = parse_url($item->link, PHP_URL_PATH); $segments = array_values(array_filter(explode('/', $path))); $indexFilmschule = array_search('filmschule', $segments); if ($indexFilmschule !== false && isset($segments[$indexFilmschule + 1])) { $raw = $segments[$indexFilmschule + 1]; $section = str_replace('-', ' ', $raw); $section = mb_convert_case($section, MB_CASE_TITLE, 'UTF-8'); } } ?> $image = ''; $alt = $item->title; if (!empty($item->images)) { $images = json_decode($item->images); if (!empty($images->image_intro)) { $image = $images->image_intro; } elseif (!empty($images->image_fulltext)) { $image = $images->image_fulltext; } if (!empty($images->image_intro_alt)) { $alt = $images->image_intro_alt; } } if (empty($image) && !empty($item->introtext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->introtext, $matches)) { $image = $matches[1]; } } if (empty($image) && !empty($item->fulltext)) { if (preg_match('/]+src=["\']([^"\']+)["\']/i', $item->fulltext, $matches)) { $image = $matches[1]; } } if (!empty($image) && strpos($image, 'http') !== 0 && strpos($image, '//') !== 0) { $image = Uri::root() . ltrim($image, '/'); } $intro = ''; if (!empty($item->introtext)) { $intro = $item->introtext; } $intro = preg_replace('/]*>/i', '', $intro); $intro = preg_replace('/]*>.*?<\/figure>/is', '', $intro); $intro = preg_replace('/]*>.*?<\/figcaption>/is', '', $intro); $intro = preg_replace('/]*class="[^"]*caption[^"]*"[^>]*>.*?<\/div>/is', '', $intro); $intro = html_entity_decode(strip_tags($intro), ENT_QUOTES, 'UTF-8'); $intro = preg_replace('/\s+/u', ' ', $intro); $intro = trim($intro); $date = ''; $dateSource = ''; if (!empty($item->publish_up) && $item->publish_up !== '0000-00-00 00:00:00') { $dateSource = $item->publish_up; } elseif (!empty($item->created) && $item->created !== '0000-00-00 00:00:00') { $dateSource = $item->created; } if (!empty($dateSource)) { $months = [ '01' => 'Januar', '02' => 'Februar', '03' => 'März', '04' => 'April', '05' => 'Mai', '06' => 'Juni', '07' => 'Juli', '08' => 'August', '09' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Dezember', ]; $d = Factory::getDate($dateSource); $day = (int) $d->format('d'); $month = $months[$d->format('m')] ?? $d->format('m'); $year = $d->format('Y'); $date = $day . '. ' . $month . ' ' . $year; } $section = ''; if (!empty($item->link)) { $path = parse_url($item->link, PHP_URL_PATH); $segments = array_values(array_filter(explode('/', $path))); $indexFilmschule = array_search('filmschule', $segments); if ($indexFilmschule !== false && isset($segments[$indexFilmschule + 1])) { $raw = $segments[$indexFilmschule + 1]; $section = str_replace('-', ' ', $raw); $section = mb_convert_case($section, MB_CASE_TITLE, 'UTF-8'); } } ?>