function spaf_match_block_ticker() {
// ⚠️ Admin veya sayfa editörü aktifse ticker'ı yükleme
if ( is_admin() || ( isset($_GET['vc_editable']) && $_GET['vc_editable'] == 'true' ) || defined('ELEMENTOR_EDITOR_MODE') ) {
return;
}
ob_start();
// 🔹 Aktif sezon
$current_season = get_terms([
'taxonomy' => 'sp_season',
'hide_empty' => false,
'number' => 1,
'orderby' => 'term_id',
'order' => 'DESC',
'fields' => 'ids',
]);
if ( empty($current_season) ) {
echo '
⚠️ Henüz aktif sezon bulunamadı.
';
return ob_get_clean();
}
// 🔹 Ligleri al
$all_leagues = get_terms([
'taxonomy' => 'sp_league',
'hide_empty' => false,
'fields' => 'ids',
]);
// 🔹 Zaman dilimi
$tz = new DateTimeZone(get_option('timezone_string') ?: 'Europe/Istanbul');
$now = new DateTime('now', $tz);
$today_timestamp = strtotime($now->format('Y-m-d'));
$week_before = strtotime('-7 days', $today_timestamp);
$week_after = strtotime('+7 days', $today_timestamp);
// 🔹 Maçları çek
$args = [
'post_type' => 'sp_event',
'post_status' => ['publish','future'],
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'ASC',
'tax_query' => [
[
'taxonomy' => 'sp_season',
'field' => 'term_id',
'terms' => $current_season,
],
[
'taxonomy' => 'sp_league',
'field' => 'term_id',
'terms' => $all_leagues,
],
],
];
MUHAMMET HUNC - Düzce Amatör Lig
Şu anki lig
1.Amatör Lig, Süper Amatör Lig, 1.Amatör Lig (Play-Off), 2.Amatör Lig (A Grubu)
Sezonlar
2022-2023, 2023-2024, 2024-2025
| Sezon | Kulüp | | | | | | | | | | MIN | | GPG | |
| Toplam | - | | | | | | 100.00 | 0.00 | 0.00 | | | 2.00 | 2.00 | 0:00 |
| Sezon | Kulüp | | | | | | | | | | MIN | | GPG | |
| Toplam | - | | | | | | 100.00 | 0.00 | 0.00 | | | 2.00 | 2.00 | 0:00 |
| Sezon | Kulüp | | | | | | | | | | MIN | | GPG | |
| Toplam | - | | | | | | 100.00 | 0.00 | 0.00 | | | 1.00 | 1.00 | 0:00 |
© 2018 - 2025 duzceamatorlig.com - Tüm hakları saklıdır.
Bu sitedeki yazı, fotoğraf ve görseller izinsiz kullanılamaz.