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

<?php
$this->aData['bodyClass'] = 'inner_page';
$showHideFilter = (isset($showHideFilter)) ? $showHideFilter : true;
$compact = ($showHideFilter == false) ? false : param("useCompactInnerSearchForm", false);
$searchUrl = isset($this->aData['searchUrl']) ? $this->aData['searchUrl'] : Yii::app()->controller->createUrl('/quicksearch/main/mainsearch');
$useTopFullWidthInnerSearchForm = false;
?>

<?php if ($useTopFullWidthInnerSearchForm): ?>
    <div class="search_inner_top custom_search_inner_top">
        <?php Yii::app()->controller->renderPartial('//site/index-search', array('searchUrl' => $searchUrl)); ?>
    </div>
    <div class="clear"></div>
<?php endif; ?>

    <div class="main_content <?php echo ($useTopFullWidthInnerSearchForm) ? 'custom_search_main_content' : '' ?>">
        <div class="content_center box">

            <div class="in_row">
                <div class="property_block">
                    <?php if (isset($this->breadcrumbs) && $this->breadcrumbs): ?>
                        <?php
                        $this->widget('zii.widgets.CBreadcrumbs', array(
                            'tagName' => 'ul',
                            'homeLink' => '<li class="breadcrumb-item">' . CHtml::link(tc('Home'), Yii::app()->homeUrl, array('class' => 'path')) . '</li>',
                            'links' => $this->breadcrumbs,
                            'htmlOptions' => array('class' => 'breadcrumb'),
                            'separator' => false,
                            'activeLinkTemplate' => '<li class="breadcrumb-item"><a  href="{url}">{label}</a></li>',
                            'inactiveLinkTemplate' => '<li class="breadcrumb-item"><a href="javascript: void(0);" >{label}</a></li>',
                        ));

                        ?>
                    <?php endif; ?>

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

                    ?>

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

                    <div class="main-content-wrapper">
                        <?php echo $content; ?>
                    </div>
                </div>

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