PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: show.php Size: 9.85 KB
/home/ankaservis/public_html/app/views/blog/show.php

<?php 
$latest_posts = $latest_posts ?? [];
$device_types = $device_types ?? [];
$brands = $brands ?? [];
?>

<section class="py-16 tech-bg-pattern">
    <div class="container mx-auto px-4">
        <div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
            <aside class="space-y-6 cozum-merkezi-sidebar">
                <?php if (!empty($device_types)): ?>
                    <div class="bg-gradient-to-br from-gray-50 via-white to-gray-50 rounded-xl shadow-md border border-gray-200 p-6">
                        <h3 class="text-xl font-bold text-anka-gray mb-4 flex items-center space-x-2">
                            <svg class="w-5 h-5 text-anka-orange" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
                            </svg>
                            <span>Kategoriler</span>
                        </h3>
                        <ul class="space-y-2">
                            <?php foreach ($device_types as $dt): ?>
                                <li>
                                    <a href="<?php echo Helper::url('/cozum-merkezi?device_type=' . urlencode($dt['device_type'])); ?>" class="flex items-center justify-between text-gray-700 hover:text-anka-orange font-medium">
                                        <span><?php echo Helper::escape($dt['device_type']); ?></span>
                                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
                                        </svg>
                                    </a>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                <?php endif; ?>

                <?php if (!empty($brands)): ?>
                    <div class="bg-gradient-to-br from-gray-50 via-white to-gray-50 rounded-xl shadow-md border border-gray-200 p-6">
                        <h3 class="text-xl font-bold text-anka-gray mb-4 flex items-center space-x-2">
                            <svg class="w-5 h-5 text-anka-orange" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 16v-2m8-6h2M2 12H4m13.657-6.343l1.414-1.414M5.343 18.657l1.414-1.414"></path>
                            </svg>
                            <span>Markalar</span>
                        </h3>
                        <ul class="space-y-2">
                            <?php foreach ($brands as $b): ?>
                                <li>
                                    <a href="<?php echo Helper::url('/cozum-merkezi?brand=' . urlencode($b['brand'])); ?>" class="flex items-center justify-between text-gray-700 hover:text-anka-orange font-medium">
                                        <span><?php echo Helper::escape($b['brand']); ?></span>
                                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
                                        </svg>
                                    </a>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                <?php endif; ?>

                <?php if (!empty($latest_posts)): ?>
                    <div class="bg-gradient-to-br from-gray-50 via-white to-gray-50 rounded-xl shadow-md border border-gray-200 p-6">
                        <h3 class="text-xl font-bold text-anka-gray mb-4 flex items-center space-x-2">
                            <svg class="w-5 h-5 text-anka-orange" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 4H5m14-8H5m14 8H5"></path>
                            </svg>
                            <span>Son Çözümler</span>
                        </h3>
                        <ul class="space-y-4">
                            <?php foreach ($latest_posts as $latest): ?>
                                <li class="border-b border-gray-100 pb-3 last:border-0 last:pb-0">
                                    <a href="<?php 
                                        $url = '/cozum-merkezi';
                                        if (!empty($latest['device_type'])) {
                                            $url .= '/' . Helper::slug($latest['device_type']);
                                            if (!empty($latest['brand'])) {
                                                $url .= '/' . Helper::slug($latest['brand']);
                                            }
                                        }
                                        $url .= '/' . $latest['slug'];
                                        echo Helper::url($url);
                                    ?>" class="font-semibold text-anka-gray hover:text-anka-orange transition leading-snug">
                                        <?php echo Helper::escape($latest['title']); ?>
                                    </a>
                                    <p class="text-xs text-gray-500 mt-1 flex items-center space-x-1">
                                        <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path>
                                        </svg>
                                        <span><?php echo Helper::dateFormat($latest['created_at']); ?></span>
                                    </p>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                <?php endif; ?>
            </aside>

            <div class="lg:col-span-3 cozum-merkezi-content">
            <div class="mb-6">
                <p class="text-anka-orange font-semibold mb-2"><?php echo defined('COMPANY_NAME') ? COMPANY_NAME : ''; ?></p>
                <h1 class="text-3xl md:text-4xl font-bold text-anka-gray mb-4"><?php echo Helper::escape($post['title']); ?> - Ankara Servis</h1>
                <div class="flex items-center space-x-4 text-gray-500 mb-6">
                    <span class="flex items-center space-x-2">
                        <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path>
                        </svg>
                        <span><?php echo Helper::dateFormat($post['created_at']); ?></span>
                    </span>
                </div>
                <div class="w-24 h-1 bg-gradient-to-r from-anka-orange to-anka-gray rounded"></div>
            </div>
            
            <?php if (!empty($post['image'])): ?>
                <img src="<?php echo Helper::asset('images/' . $post['image']); ?>" alt="<?php echo Helper::escape($post['title']); ?>" class="w-full h-64 md:h-96 object-cover rounded-xl mb-8 shadow-lg">
            <?php endif; ?>
            
            <div class="prose max-w-none mb-8">
                <div class="text-gray-700 leading-relaxed text-lg"><?php echo $post['content']; ?></div>
            </div>
            
            <div class="border-t border-gray-200 pt-8 flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
                <a href="<?php echo Helper::url('/cozum-merkezi'); ?>" class="inline-flex items-center space-x-2 text-anka-orange hover:text-orange-600 font-semibold transition">
                    <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path>
                    </svg>
                    <span>Çözüm Merkezi'ne Dön</span>
                </a>
                <div class="flex gap-3">
                    <a href="tel:03124660667" class="inline-flex items-center space-x-2 bg-anka-orange text-white px-5 py-2 rounded-lg font-semibold shadow hover:bg-orange-600 transition">
                        <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path>
                        </svg>
                        <span>Hemen Ara</span>
                    </a>
                    <a href="<?php echo Helper::url('/iletisim/servis-formu'); ?>" class="inline-flex items-center space-x-2 border border-anka-orange text-anka-orange px-5 py-2 rounded-lg font-semibold hover:bg-anka-orange hover:text-white transition">
                        <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
                        </svg>
                        <span>Servis Formu</span>
                    </a>
                </div>
            </div>
            </div>
        </div>
    </div>
</section>

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
14.38 KB lrw-r--r-- 2025-11-17 19:50:45
Edit Download
9.85 KB lrw-r--r-- 2025-11-17 19:50:45
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI