<?php $this->beginContent('//layouts/main'); ?>


    <div class="main_content">

        <?php
        if (Themes::getParamJson('i_enable_pd')) {
            $this->widget('DolphinPopularDestWidget');
        }
        ?>

        <?php if (issetModule('advertising')) : ?>
            <?php $this->renderPartial('//modules/advertising/views/advert-top', array()); ?>
        <?php endif; ?>

        <?php if (Themes::getParamJson('i_enable_slider_and_pd')) { ?>
            <div class="row">
                <?php if (issetModule('seo')): ?>
                    <div class="col-md-7 col-sm-12 col-xs-12">
                        <?php Yii::app()->controller->renderPartial('//site/_slider_homepage'); ?>
                    </div>

                    <div class="col-md-5 col-sm-12 col-xs-12">
                        <?php $this->widget('DolphinPopularDestWidget') ?>
                    </div>
                <?php else: ?>
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <?php Yii::app()->controller->renderPartial('//site/_slider_homepage'); ?>
                    </div>
                <?php endif; ?>
            </div>
        <?php } ?>

        <div class="content_center main-content-wrapper box">
            <?php
            foreach (Yii::app()->user->getFlashes() as $key => $message) {
                if ($key == 'error' || $key == 'success' || $key == 'notice') {
                    echo "<div class='flash-{$key}'>{$message}</div>";
                }
            }
            ?>

            <?php echo $content ?>
        </div>

        <?php
        if (Themes::getParamJson('i_enable_best_ads')) {
            $this->widget('DolphinHotAdsWidget');
        }

        ?>
    </div>

<?php
if (Themes::getParamJson('i_enable_feature')) {
    Yii::app()->controller->renderPartial('//site/_index_feature_block');
}

?>

<?php if (Themes::getParamJson('i_enable_last_news')) { ?>
    <div class="content news_block">
        <?php $this->widget('DolphinNewsWidget', array('entries' => Entries::getLastNews())) ?>
    </div>
<?php } ?>
<?php if (Themes::getParamJson('i_enable_contact')) { ?>
    <?php $this->widget('DolphinContactWidget') ?>
<?php } ?>


<?php $this->endContent(); ?>