<?php $__env->startPush("head"); ?>
    <title><?php echo e($galeriDetay->baslik); ?> Foto Galeri</title>
    <meta name="description" content="<?php echo e($galeriDetay->metadesc); ?>" />
    <link rel="image_src" type="image/jpeg" href="<?php echo e(url('images/galeriler/'.$galeriDetay->resim)); ?>" />
    <meta name="DC.date.issued" content="<?php echo e(date('c',strtotime($galeriDetay->created_at))); ?>" />
    <meta property="og:site_name" content="<?php echo e(config('ayarlar.baslik')); ?>" />
    <meta property="og:url" content="<?php echo e(URL::current()); ?>" />
    <meta property="og:title" content="<?php echo e($galeriDetay->baslik); ?>" />
    <meta property="og:description" content="<?php echo e($galeriDetay->metadesc); ?>" />
    <meta property="og:image" content="<?php echo e(url('images/galeriler/'.$galeriDetay->resim)); ?>" />
    <meta name="twitter:card" content="photo">
    <meta name="twitter:site" content="<?php echo e('@'.config('ayarlar.twkullanici')); ?>">
    <meta name="twitter:url" content="<?php echo e(URL::current()); ?>">
    <meta name="twitter:title" content="<?php echo e($galeriDetay->baslik); ?>" />
    <meta name="twitter:description" content="<?php echo e($galeriDetay->metadesc); ?>" />
    <meta name="twitter:image" content="<?php echo e(url('images/galeriler/'.$galeriDetay->resim)); ?>" />
    <meta itemprop="interactionCount" content="İzlenme: <?php echo e($galeriDetay->hit); ?>" />
    <meta itemprop="thumbnailUrl" content="<?php echo e(url('images/galeriler/'.$galeriDetay->resim)); ?>" />
    <meta itemprop="datePublished" content="<?php echo e(date('c',strtotime($galeriDetay->created_at))); ?>" />
    <meta itemprop="dateCreated" content="<?php echo e(date('c',strtotime($galeriDetay->created_at))); ?>" />
    <meta itemprop="dateModified" content="<?php echo e(date('c',strtotime($galeriDetay->updated_at))); ?>" />
<?php $__env->stopPush(); ?>
<?php $__env->startSection("content"); ?>
    <?php if(!empty($medyaDetayUst)): ?>
        <section class="block-wrapper text-center reklam mt-0 pt-0 pb-0 mb-3">
            <?php if($medyaDetayUst->tip == 1): ?>
                <a target="_blank" href="<?php echo e($medyaDetayUst->link); ?>">
                    <img src="<?php echo e(url('images/reklamlar/'.$medyaDetayUst->resim)); ?>" alt="<?php echo e($medyaDetayUst->baslik); ?>">
                </a>
            <?php else: ?>
                <?php echo $medyaDetayUst->metin; ?>

            <?php endif; ?>
        </section>
    <?php endif; ?>
    <section class="pt-30 bg-white box-shadow mt-15 mb-30 pb-30">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="entry-header entry-header-1 mb-20">
                        <h1 class="post-title" itemprop="name">
                            <?php echo e($galeriDetay->baslik); ?>

                        </h1>
                        <div class="breadcrumb">
                            <a class="color-grey" href="<?php echo e(url('/')); ?>">Ana Sayfa</a>
                            <span class="color-grey"></span>
                            <a class="color-grey" href="<?php echo e(url('fotogaleri')); ?>">Foto Galeri</a>
                            <span class="color-grey d-none d-md-inline-block"></span>
                            <a class="color-grey d-none d-md-inline-block" href="<?php echo e(url('galeri/kategoriler/'.\Illuminate\Support\Str::slug($galeriDetay->kategoriler->baslik).'-'.$galeriDetay->kategoriler->id)); ?>"><?php echo e($galeriDetay->kategoriler->baslik); ?></a>
                            <span class="color-grey d-none d-md-inline-block"></span>
                            <?php echo e($galeriDetay->baslik); ?>

                        </div>
                        <blockquote class="wp-block-quote is-style-large mt-3 mt-md-3" itemprop="description">
                            <p class="mb-0"><?php echo e($galeriDetay->metadesc); ?></p>
                        </blockquote>
                        <div class="bt-1 border-color-1 mb-3 mt-0 mt-md-3"></div>
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="photo-detail">
                        <div class="row news-detail">
                            <div class="col-md-8 pr-md-0">
                                <?php if(!empty($medyaIcerikUst)): ?>
                                    <section class="block-wrapper text-center reklam mt-0 pb-0 pt-0 mb-3">
                                        <?php if($medyaIcerikUst->tip == 1): ?>
                                            <a target="_blank" href="<?php echo e($medyaIcerikUst->link); ?>">
                                                <img src="<?php echo e(url('images/reklamlar/'.$medyaIcerikUst->resim)); ?>" alt="<?php echo e($medyaIcerikUst->baslik); ?>">
                                            </a>
                                        <?php else: ?>
                                            <?php echo $medyaIcerikUst->metin; ?>

                                        <?php endif; ?>
                                    </section>
                                <?php endif; ?>


                                <div class="position-relative gallerydetail text-center">
                                    <?php if(count($galeriResimler) != 0): ?>
                                        <?php if($galeriDetay->tip == 1): ?>
                                        <a href="<?php if( $galeriResimler->nextPageUrl() != null ): ?><?php echo e($galeriResimler->nextPageUrl()); ?> <?php else: ?> <?php echo e($galeriResimler->url(1)); ?> <?php endif; ?>">
                                            <img class="img-fluid" src="<?php echo e(url('images/galeriresim/'.$galeriResimler[0]->resim)); ?>" alt="<?php echo e($galeriDetay->baslik); ?>">
                                        </a>
                                        <?php else: ?>
                                            <img class="img-fluid" src="<?php echo e(url('images/galeriresim/'.$galeriResimler[0]->resim)); ?>" alt="<?php echo e($galeriDetay->baslik); ?>">
                                            <?php endif; ?>
                                    <?php else: ?>
                                        <div class="alert alert-danger" role="alert">
                                            Bu galeride resim bulunamadı!
                                        </div>
                                    <?php endif; ?>
                                </div>
                                <?php if(!empty($medyaIcerikAlt)): ?>
                                    <section class="block-wrapper text-center reklam mt-0 pb-0 pt-0 mb-3">
                                        <?php if($medyaIcerikAlt->tip == 1): ?>
                                            <a target="_blank" href="<?php echo e($medyaIcerikAlt->link); ?>">
                                                <img src="<?php echo e(url('images/reklamlar/'.$medyaIcerikAlt->resim)); ?>" alt="<?php echo e($medyaIcerikAlt->baslik); ?>">
                                            </a>
                                        <?php else: ?>
                                            <?php echo $medyaIcerikAlt->metin; ?>

                                        <?php endif; ?>
                                    </section>
                                <?php endif; ?>
                                <div class="clearfix"></div>
                            </div>
                            <div class="col-md-4">
                                <?php if($galeriDetay->tip == 1): ?>
                                    <div class="ts-pagination photopage text-center mb-3 mt-3 mt-md-0">
                                        <?php echo e($galeriResimler->links()); ?>

                                    </div>
                                <?php endif; ?>

                                <?php if(count($galeriResimler) != 0): ?>
                                    <p>
                                        <?php echo e($galeriResimler[0]->metadesc); ?>

                                    </p>
                                <?php endif; ?>


                                <div class="right-sidebar">
                                    <?php if(!empty($medyaDetaySag1)): ?>
                                        <div class="sidebar-widget mb-15">
                                            <?php if($medyaDetaySag1->tip == 1): ?>
                                                <a target="_blank" href="<?php echo e($medyaDetaySag1->link); ?>">
                                                    <img src="<?php echo e(url('images/reklamlar/'.$medyaDetaySag1->resim)); ?>" alt="<?php echo e($medyaDetaySag1->baslik); ?>">
                                                </a>
                                            <?php else: ?>
                                                <?php echo $medyaDetaySag1->metin; ?>

                                            <?php endif; ?>
                                        </div>
                                    <?php endif; ?>

                                    <?php if(!empty($medyaDetaySag2)): ?>
                                        <div class="sidebar-widget mb-15">
                                            <?php if($medyaDetaySag2->tip == 1): ?>
                                                <a target="_blank" href="<?php echo e($medyaDetaySag2->link); ?>">
                                                    <img src="<?php echo e(url('images/reklamlar/'.$medyaDetaySag2->resim)); ?>" alt="<?php echo e($medyaDetaySag2->baslik); ?>">
                                                </a>
                                            <?php else: ?>
                                                <?php echo $medyaDetaySag2->metin; ?>

                                            <?php endif; ?>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>

                            <div class="col-md-12 item">
                                <div class="bar">
                                    <?php if($galeriDetay->tip == 2): ?>
                                    <span class="page"><span><?php echo e($galeriResimler->currentPage()); ?><small><?php echo e($galeriResimlerToplam); ?></small></span></span>
                                    <?php endif; ?>
                                    <div class="sharing">
                                        <a onclick="myPopup('https://www.facebook.com/share.php?u=<?php echo e(URL::current()); ?>', 'facebook', 620, 430);" href="javascript:;" class="facebook" title="Facebook'da paylaş">
                                            <span class="ti-facebook"></span>
                                        </a>
                                        <a onclick="myPopup('https://twitter.com/share?url=<?php echo e(URL::current()); ?>&amp;text=<?php echo e(urlencode(html_entity_decode($galeriDetay->baslik))); ?>', 'twiiter', 620, 430);" href="javascript:;" class="twitter" title="Twitter'da paylaş">
                                            <span class="fa fa-twitter"></span>
                                        </a>
                                        <a href="whatsapp://send?text=<?php echo e($galeriDetay->baslik); ?> - <?php echo e(URL::current()); ?>" class="whatsapp" title="WHATSAPP' da paylaş">
                                            <span class="fa fa-whatsapp"></span>
                                        </a>
                                        <a onclick="myPopup('https://www.linkedin.com/sharing/share-offsite/?url=<?php echo e(URL::current()); ?>', 'linkedin', 620, 430);" href="javascript:;" class="linkedin" title="Linkedin'de paylaş">
                                            <span class="fa fa-linkedin"></span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php if($galeriResimler->nextPageUrl() != null && $galeriDetay->tip == 2): ?>
                        <div class="scroller-status">
                            <div class="loader-ellips infinite-scroll-request">
                                <span class="loader-ellips__dot"></span>
                                <span class="loader-ellips__dot"></span>
                                <span class="loader-ellips__dot"></span>
                                <span class="loader-ellips__dot"></span>
                            </div>
                            <p class="scroller-status__message infinite-scroll-last text-center">Başka resim bulunmuyor!</p>
                        </div>
                        <p class="pagination">
                            <a class="pagination__next" rel="next"
                               href="<?php echo e($galeriResimler->nextPageUrl()); ?>"></a>
                        </p>
                    <?php endif; ?>

                </div>
            </div>
        </div>
    </section>

    <?php if(!empty($medyaSonEklenenler)): ?>
        <section class="block-wrapper text-center reklam mt-0 pb-0 pt-0 mb-3">
            <?php if($medyaSonEklenenler->tip == 1): ?>
                <a target="_blank" href="<?php echo e($medyaSonEklenenler->link); ?>">
                    <img src="<?php echo e(url('images/reklamlar/'.$medyaSonEklenenler->resim)); ?>" alt="<?php echo e($medyaSonEklenenler->baslik); ?>">
                </a>
            <?php else: ?>
                <?php echo $medyaSonEklenenler->metin; ?>

            <?php endif; ?>
        </section>
    <?php endif; ?>
    <section class="block-wrapper pt-20 pb-10">
            <div class="row">
                <div class="col-md-12">
                    <div class="sidebar-widget loop-grid">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="widget-header position-relative mb-30">
                                    <h5 class="widget-title mb-30 text-uppercase color1 font-weight-ultra">Son Eklenen</h5>
                                    <div class="letter-background">Galeriler</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12 col-sm-12">
                    <div class="loop-metro post-module-1 row">
                        <?php if(count($galeriler) != 0): ?>
                            <?php $__currentLoopData = $galeriler; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $galeri): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <article class="col-lg-4 col-md-6 col-sm-12 mb-30">
                                    <div class="post-thumb position-relative">
                                        <div class="thumb-overlay img-hover-slide border-radius-5 position-relative" style="background-image: url(<?php echo e(url('images/galeriler/'.$galeri->resim)); ?>)">
                                            <a class="img-link yenisekme" href="<?php echo e(url('galeri/'.Illuminate\Support\Str::slug($galeri->baslik).'-'. $galeri->id)); ?>"></a>
                                            <div class="post-content-overlay">
                                                <h6 class="post-title">
                                                    <a class="color-white yenisekme" href="<?php echo e(url('galeri/'.Illuminate\Support\Str::slug($galeri->baslik).'-'. $galeri->id)); ?>"><?php echo e($galeri->baslik); ?></a>
                                                </h6>
                                            </div>
                                        </div>
                                    </div>
                                </article>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                            <div class="col-lg-12">
                                <div class="alert alert-danger" role="alert">
                                    Foto galeri bulunamadı!
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
    </section>
    <?php if(!empty($medyaDetayAlt)): ?>
        <section class="block-wrapper text-center reklam mt-0 pb-0 mb-3">
                <?php if($medyaDetayAlt->tip == 1): ?>
                    <a target="_blank" href="<?php echo e($medyaDetayAlt->link); ?>">
                        <img src="<?php echo e(url('images/reklamlar/'.$medyaDetayAlt->resim)); ?>" alt="<?php echo e($medyaDetayAlt->baslik); ?>">
                    </a>
                <?php else: ?>
                    <?php echo $medyaDetayAlt->metin; ?>

                <?php endif; ?>
        </section>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startPush("customJs"); ?>
    <?php if($galeriDetay->tip == 2): ?>
        <script src="<?php echo e(asset('assets/frontend/'.$temaadi.'/js/infinite-scroll.pkgd.min.js')); ?>"></script>
        <script>
            let nextURL = "";

            function updateNextURL(doc) {
                nextURL = $(doc).find('.pagination__next').attr('href');
                if (!nextURL){
                    nextURL = false;
                }
            }
            updateNextURL(document);
            var $container = $('.photo-detail').infiniteScroll({
                path: function () {
                    if(nextURL !== false){
                        return nextURL;
                    }else{
                        return '';
                    }
                },
                historyTitle: true,
                history: 'push',
                prefill: true,
                append: '.news-detail',
                status: '.scroller-status',
                hideNav: '.pagination'
            });
            $container.on('history.infiniteScroll', function (event, title, path) {
                ga('set', 'page', location.pathname);
                ga('send', 'pageview');
            });

            $container.on('load.infiniteScroll', function (event, response, path) {
                updateNextURL(response);
            });

            $container.on('append.infiniteScroll', function (event, error, path) {


            });
        </script>
    <?php endif; ?>
    <script>
        function myPopup(myURL, title, myWidth, myHeight) {
            var left = (screen.width - myWidth) / 2;
            var top = (screen.height - myHeight) / 4;
            var myWindow = window.open(myURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + myWidth + ', height=' + myHeight + ', top=' + top + ', left=' + left);
        }
    </script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush("customCss"); ?>
    <style>
        .loader-ellips {
            font-size: 20px;
            position: relative;
            width: 4em;
            height: 1em;
            margin: 10px auto;
        }

        .loader-ellips__dot {
            display: block;
            width: 1em;
            height: 1em;
            border-radius: 0.5em;
            background: #555;
            position: absolute;
            animation-duration: 0.5s;
            animation-timing-function: ease;
            animation-iteration-count: infinite;
        }

        .loader-ellips__dot:nth-child(1),
        .loader-ellips__dot:nth-child(2) {
            left: 0;
        }
        .loader-ellips__dot:nth-child(3) { left: 1.5em; }
        .loader-ellips__dot:nth-child(4) { left: 3em; }

        @keyframes  reveal {
            from { transform: scale(0.001); }
            to { transform: scale(1); }
        }

        @keyframes  slide {
            to { transform: translateX(1.5em) }
        }

        .loader-ellips__dot:nth-child(1) {
            animation-name: reveal;
        }

        .loader-ellips__dot:nth-child(2),
        .loader-ellips__dot:nth-child(3) {
            animation-name: slide;
        }

        .loader-ellips__dot:nth-child(4) {
            animation-name: reveal;
            animation-direction: reverse;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('frontend.'.$temaadi.'.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/yeniistik/public_html/resources/views/frontend/tema9/galeriDetay.blade.php ENDPATH**/ ?>