';
$html .= '';
require_once __DIR__ . '/seo_spintax.php';
$cat_key = 'genel';
if (strpos($slug, 'bakim') !== false || strpos($slug, 'temizligi') !== false) $cat_key = 'bakim';
elseif (strpos($slug, 'ssd') !== false || strpos($slug, 'ram') !== false) $cat_key = 'ssd';
elseif (strpos($slug, 'ekran') !== false) $cat_key = 'ekran';
elseif (strpos($slug, 'sivi') !== false) $cat_key = 'sivi';
elseif (strpos($slug, 'anakart') !== false || strpos($slug, 'bga') !== false) $cat_key = 'anakart';
$pool = isset($spintax_blocks[$cat_key]) ? $spintax_blocks[$cat_key] : $spintax_blocks['genel'];
$h_counter = 0;
$h = function($options) use (&$h_counter, $found_region, $slug, $brand) {
$h_counter++;
$hash = md5($found_region . $slug . $brand . $h_counter);
$num = hexdec(substr($hash, 0, 8));
return $options[$num % count($options)];
};
if ($cat_key === 'genel') {
$intro = $h([$pool['intro_1a'], $pool['intro_1b'], $pool['intro_1c'], $pool['intro_1d'], $pool['intro_1e']]);
$intro2 = $h([$pool['intro_2a'], $pool['intro_2b'], $pool['intro_2c'], $pool['intro_2d'], $pool['intro_2e']]);
$diag = $h([$pool['diag_1a'], $pool['diag_1b'], $pool['diag_1c'], $pool['diag_1d']]);
$sol = $h([$pool['sol_1a'], $pool['sol_1b'], $pool['sol_1c'], $pool['sol_1d']]);
$why = $h([$pool['why_1a'], $pool['why_1b'], $pool['why_1c'], $pool['why_1d'], $pool['why_1e']]);
$text1 = $intro . ' ' . $intro2;
$text2 = $diag;
$text3 = $sol . ' ' . $why;
} else {
$intro = $h([$pool['intro_1a'], $pool['intro_1b']]);
$diag = $pool['diag_1a'];
$sol = $pool['sol_1a'];
$text1 = $intro;
$text2 = $diag;
$text3 = $sol;
}
$text1 = str_replace(['{region}', '[MARKA]'], [$found_region, $b], $text1);
$locative_map = [
'antalya' => "Antalya'da", 'muratpasa' => "Muratpaşa'da", 'kepez' => "Kepez'de",
'lara' => "Lara'da", 'sirinyali' => "Şirinyalı'da", 'guzeloba' => "Güzeloba'da",
'caglayan' => "Çağlayan'da", 'fener' => "Fener'de", 'kircami' => "Kırcami'de",
'kundu' => "Kundu'da", 'uncali' => "Uncalı'da", 'meltem' => "Meltem'de",
'meydan' => "Meydan'da", 'dokuma' => "Dokuma'da", 'yesilbahce' => "Yeşilbahçe'de"
];
$reg_key = strtolower(str_replace(' ', '-', $found_region));
$region_locative = isset($locative_map[$reg_key]) ? $locative_map[$reg_key] : htmlspecialchars($found_region) . "'da";
$text1 .= " Özellikle
" . $region_locative . " " . htmlspecialchars($t) . " ihtiyaç duyduğunuzda, sıradan tamir işlemleri yerine kalıcı donanım mühendisliği standartlarını tercih etmeniz cihazınızın ömrünü uzatacaktır.";
$text2 = str_replace(['{region}', '[MARKA]'], [$found_region, $b], $text2);
$text3 = str_replace(['{region}', '[MARKA]'], [$found_region, $b], $text3);
$html .= '
' . $found_region . ' ' . $t . ' İçin Profesyonel Çözümler
';
$html .= '
' . $text1 . '
';
$html .= '
Gelişmiş Arıza Tespiti
';
$html .= '
' . $text2 . '
';
$html .= '
Kalıcı Onarım ve Güvence
';
$html .= '
' . $text3 . '
';
$html .= '
Servis İşlemi ve Kalite Güvencesi
Cihazınıza uygulanan '.$t.' işlemi, laboratuvar standartlarında olup tüm test prosedürleri başarıyla tamamlanmadan teslim edilmez. Değiştirilen donanımlar markanın ürettiği standartlarda parçalarla yapılarak uzun ömür ve stabilite güvence altına alınır.
';
$html .= '
'.$t.' İçin Destek İhtiyacınız mı Var?
Uzman teknisyenlerimizle hemen görüşün, kesin ve güvenilir çözüm alın.
';
// ─── 70/30 DİNAMİK SEO LİNKLERİ ───────────────────────────────────
$all_regions = [
'lara' => 'Lara', 'muratpasa' => 'Muratpaşa', 'kepez' => 'Kepez',
'sirinyali' => 'Şirinyalı', 'guzeloba' => 'Güzeloba', 'caglayan' => 'Çağlayan',
'fener' => 'Fener', 'kircami' => 'Kırcami', 'kundu' => 'Kundu',
'uncali' => 'Uncalı', 'meltem' => 'Meltem', 'meydan' => 'Meydan',
'dokuma' => 'Dokuma', 'yesilbahce' => 'Yeşilbahçe'
];
$valid_services = [
'bilgisayar-servisi', 'laptop-tamircisi', 'ekran-degisimi', 'anakart-tamiri',
'ssd-yukseltme', 'fan-temizligi', 'format-atma', 'mentese-tamiri',
'klavye-degisimi', 'batarya-degisimi', 'mavi-ekran', 'sarj-soketi-tamiri',
'notebook-tamiri', 'ram-yukseltme', 'bilgisayar-tamircisi', 'bilgisayar-hizlandirma'
];
// Mevcut bölgeyi tespit et
$cur_region_slug = 'antalya';
$cur_region_name = 'Antalya';
foreach ($all_regions as $rs => $rn) {
if (mb_stripos($slug . ' ' . $title, $rn, 0, 'UTF-8') !== false || strpos(strtolower($slug), $rs) !== false) {
$cur_region_slug = $rs;
$cur_region_name = $rn;
break;
}
}
$html .= generate_70_30_links($cur_region_slug, $cur_region_name);
$html .= '
';
return $html;
}
}
?>