
<?php $__env->startSection('head_title',  $post->title.' | '.getenvcong('sitename')); ?>
<?php $__env->startSection('head_description', str_limit(str_replace('"', '', $post->body), 150)); ?>
<?php $__env->startSection('head_image', url(makepreview($post->thumb, 'b', 'posts'))); ?>
<?php $__env->startSection('head_url', url(makeposturl($post))); ?>
<?php $__env->startSection("content"); ?>
<div class="content-header hide-mobile">
    <div class="content-header__container">
        <div class="content-header__container__left">
            <div class="content-header__container__left__home">
                <a href="/" title="Anasayfa"><i class="material-icons">&#xE88A;</i></a>
            </div>
            <div class="content-header__container__left__title"></div>
        </div>
        <div class="content-header__container__right">


        </div>
    </div>
    <div class="content-header__progress--container">
        <div class="content-header__progress--container__progress"></div>
    </div>
</div>
<div class="buzz-container">
    <?php echo $__env->make('_particles.ads', ['position' => 'HeaderBelow', 'width' => '728', 'height' => 'auto'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>


    <div class="global-container container" style="padding-top:0!important">
        <div class="content"  style="padding-top:20px;border-right: 1px solid #e3e3e3;">


            <div class="news content-detail-page">

                <?php echo $__env->make('pages.postloadpage', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

            </div>
            <div class="content-spinner">
                <svg class="spinner-container" width="45px" height="45px" viewBox="0 0 52 52">
                    <circle class="path" cx="26px" cy="26px" r="20px" fill="none" stroke-width="4px"></circle>
                </svg>
            </div>
        </div>

        <div class="sidebar hide-mobile">
            <div class="sidebar--fixed">

                <?php echo $__env->make('_particles.ads', ['position' => 'PostPageSidebar', 'width' => '300', 'height' => 'auto'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>


                <?php echo $__env->make('_sidebar.trending', ['name'=> trans('index.posts')], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

                <?php echo $__env->make('_sidebar.follow', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

                <?php echo $__env->make('_particles.ads', ['position' => 'Footer', 'width' => '300', 'height' => 'auto'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>


            </div>
        </div>
    </div>
</div>


<?php $__env->stopSection(); ?>

<?php $__env->startSection('footer'); ?>
    <?php if($post->type=="quiz"): ?>
        <script>
            BuzzyQuizzes = {
                'lang_1': '<?php echo e(trans('buzzyquiz.shareonface')); ?>',
                'lang_2': '<?php echo e(trans('buzzyquiz.shareontwitter')); ?>',
                'lang_3': '<?php echo e(trans('buzzyquiz.shareface')); ?>',
                'lang_4': '<?php echo e(trans('buzzyquiz.sharetweet')); ?>',
                'lang_5': '<?php echo e(trans('buzzyquiz.sharedone')); ?>',
                'lang_6': '<?php echo e(trans('buzzyquiz.sharedonedesc')); ?>'
            };


            $( document ).ready(function() {

                App.initQuizzesClicks();
            });
        </script>
    <?php endif; ?>

        <script>
            $( document ).ready(function() {
                $('.poll_main_color').each(function(i){
                    $(this).css('width', $(this).attr('data-percent')+'%');
                });
            });
        </script>

    <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

    <script>
        $(function(){

            if ($('.content-sticky').length > 0) {
                if ($(window).width() >= 768) {
                    $(window).on('scroll', function () {
                        var scrollTop = $(this).scrollTop();
                        $('article').each(function () {
                            if (scrollTop >= ($(this).find('.content-body').offset().top - 76)) {
                                $(this).find('.content-sticky').addClass('sticky');
                                if (scrollTop >= ($(this).find('.content-body').offset().top + $(this).find('.content-body').height() - ($(this).find('.content-sticky').height() + 92))) {
                                    $(this).find('.content-sticky').removeClass('sticky');
                                    $(this).find('.content-sticky').css({'bottom': '0px', 'top': 'auto'});
                                } else {
                                    $(this).find('.content-sticky').addClass('sticky').css({
                                        'bottom': 'initial',
                                        'top': '80px'
                                    });
                                }
                            } else {
                                $(this).find('.content-sticky').removeClass('sticky').css({'bottom': 'auto', 'top': '10px'});
                            }
                        });
                    });
                }
            }

            $(".news").buzzScroll({item: ".news__item"});


        });

    </script>


<?php $__env->stopSection(); ?>
<?php echo $__env->make("app", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>