<div class="header-wrapper">
    <div class="wrapper_top_link">
        <div class="visible-xs">
            <div class="logo text-center">
                <?php if (0) { ?>
                    <a title="<?php echo Yii::t('common', 'Go to main page'); ?>"
                       href="<?php echo Yii::app()->controller->createAbsoluteUrl('/'); ?>">
                        <div class="logo-img"><img width="77" height="70"
                                                   alt="<?php echo CHtml::encode(Yii::app()->name); ?>"
                                                   src="<?php echo Yii::app()->theme->baseUrl; ?>/images/pages/logo-open-ore.png"/>
                        </div>
                        <div class="logo-text"><?php echo CHtml::encode(Yii::app()->name); ?></div>
                    </a>
                <?php } ?>

                <a href="<?= Yii::app()->createAbsoluteUrl('/') ?>">
                    <div class="logo-img"><img src="<?php echo $baseThemeUrl ?>/assets/images/logo.png"
                                               alt="<?php echo CHtml::encode(Yii::app()->name); ?>"></div>
                    <div class="logo-text slow"><?php echo CHtml::encode(Yii::app()->name); ?></div>
                </a>
            </div>
        </div>
        <div class="row hidden-xs">
            <div class="top_link_bl top_link_bl1">
                <?php
                if (issetModule('comparisonList')) {
                    $countComparison = ComparisonList::getCountIn();
                    ?>
                    <div class="compare_block">
                        <div <?php echo !$countComparison ? 'style="display: none"' : '' ?> id="comparison_top">
                            <a href="<?php echo Yii::app()->createUrl('comparisonList/main/index') ?>"
                               class="btn btn-primary">
                                <i class="fa fa-list"></i>
                                <?php echo Yii::t('common', '{n} in the comparison list', array('{n}' => $countComparison)) ?>
                            </a>
                        </div>
                    </div>
                <?php } ?>
                <ul class="list-inline">
                    <li class="currency_block currency_block__header">
                        <?php $this->widget('DolphinCurrencySelector'); ?>
                    </li>
                    <li class="btn-group language_block language_block__header">
                        <?php $this->widget('DolphinLangSelector'); ?>
                    </li>
                    <li class="personal_cabinet personal_cabinet__header">
                        <div class="dropdown">
                            <button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenuButton2"
                                    data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                <i class="fas fa-user-cog"></i> <?= Yii::t('common', 'Control panel') ?> <span
                                        class="caret"></span>
                            </button>
                            <?php
                            $this->widget('DolphinMenu', array(
                                'id' => 'main_menu_nav_2',
                                'items' => DolphinMenuHelper::getControlMenu(),
                                'htmlOptions' => array('class' => 'dropdown-menu'),
                                'encodeLabel' => false,
                                'activateParents' => true,
                            ));

                            ?>

                        </div>
                    </li>
                </ul>
            </div>
            <div class="top_menu top_link_bl">
                <?php
                $headerTopMenuItems = Menu::getMenuItems(false, 3);
                if (!empty($headerTopMenuItems)) {
                    $this->widget('DolphinMenu', array(
                        'id' => 'main_menu_nav_1',
                        'items' => $headerTopMenuItems,
                        'htmlOptions' => array('class' => 'nav navbar-nav'),
                        'encodeLabel' => false,
                        'activateParents' => true,
                    ));
                } //else {
                //  echo '<div style="min-height: 68px; height: 68px;">&nbsp;</div>';
                // }
                ?>
            </div>
        </div>


        <div class="clear"></div>

        <div class="row">

            <?php // переключатель цветовой темы  ?>
            <?php if (0) { ?>
                <div class="col-md-3 col-sm-3 change_color_block">
                    <div class="btn-group" data-toggle="buttons" id="change_color">
                        <label class="btn btn-info">
                            <input type="radio" id="violet" autocomplete="off">
                            <i class="fa fa-check" aria-hidden="true"></i>
                        </label>
                        <label class="btn btn-primary active">
                            <input type="radio" id="blue" autocomplete="off">
                            <i class="fa fa-check" aria-hidden="true"></i>
                        </label>
                        <label class="btn btn-warning">
                            <input type="radio" id="orange" autocomplete="off">
                            <i class="fa fa-check" aria-hidden="true"></i>
                        </label>
                        <label class="btn btn-success">
                            <input type="radio" id="green" autocomplete="off" chacked="">
                            <i class="fa fa-check" aria-hidden="true"></i>
                        </label>
                    </div>
                </div>
            <?php } ?>


        </div>

    </div>
    <div class="wrapper_main_menu">
        <div class="visible-sm hidden-xs">
            <div class="logo text-center">
                <?php if (0) { ?>
                    <a title="<?php echo Yii::t('common', 'Go to main page'); ?>"
                       href="<?php echo Yii::app()->controller->createAbsoluteUrl('/'); ?>">
                        <div class="logo-img"><img width="77" height="70"
                                                   alt="<?php echo CHtml::encode(Yii::app()->name); ?>"
                                                   src="<?php echo Yii::app()->theme->baseUrl; ?>/images/pages/logo-open-ore.png"/>
                        </div>
                        <div class="logo-text"><?php echo CHtml::encode(Yii::app()->name); ?></div>
                    </a>
                <?php } ?>

                <a href="<?= Yii::app()->createAbsoluteUrl('/') ?>">
                    <div class="logo-img"><img src="<?php echo $baseThemeUrl ?>/assets/images/logo.png"
                                               alt="<?php echo CHtml::encode(Yii::app()->name); ?>"></div>
                    <div class="logo-text slow"><?php echo CHtml::encode(Yii::app()->name); ?></div>
                </a>
            </div>
        </div>
        <div class="main_menu">
            <div class="mobile-button">
                <ul class="list-inline">
                    <li>
                        <button class="btn btn-primary btn-main-menu"><i
                                    class="fas fa-bars"></i><span><?= tc('Menu') ?></span>
                        </button>
                    </li>
                    <li>
                        <button class="btn btn-default btn-search"><i
                                    class="fas fa-search"></i><span><?= tc('Search form') ?></span>
                        </button>
                    </li>
                </ul>
            </div>

            <?php
            $this->widget('DolphinMenu', array(
                'id' => 'main_menu_nav_3',
                'items' => Menu::getMenuItems(false, 4),
                'htmlOptions' => array('class' => 'nav nav-pills'),
                'encodeLabel' => false,
                'activateParents' => true,
            ));
            ?>
        </div>
    </div>
</div>
<?php if (0) { ?>
    <div class="m_menu">
        <nav class="mobilemenu navmenu mobcats navmenu-default navmenu-fixed-left offcanvas canvas-slid">
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <?php
                $this->widget('DolphinMenuDropDown', array(
                    'id' => 'sf-menu-id7',
                    'items' => Menu::getMenuItems(false, 3),
                    'htmlOptions' => array('class' => 'nav navbar-nav'), //nav-pills
                    'encodeLabel' => false,
                    'activateParents' => true,
                    'mobile' => true
                ));
                echo '<hr>';
                $this->widget('DolphinMenuDropDown', array(
                    'id' => 'sf-menu-id8',
                    'items' => Menu::getMenuItems(false, 4),
                    'htmlOptions' => array('class' => 'nav navbar-nav'),
                    'encodeLabel' => false,
                    'activateParents' => true,
                    'mobile' => true
                ));

                ?>
            </div>
        </nav>
    </div>
<?php } ?>