<div class="sidebar">
    <div class="sidebar_inner">
        <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>
        <?php if (!isset($this->aData['isUserpanel'])) { ?>
            <div class="search_index">
                <div class="h3 fint"><?php echo Yii::t('common', 'Search form'); ?></div>
                <?php Yii::app()->controller->renderPartial('//site/index-search'); ?>
            </div>
        <?php } else{ ?>


            <div id="slinky_user_menu">
                <?php
                $this->widget('DolphinMenuSlinky', array(
                    'id' => 'user_menu',
                    'items' => HUser::getMenu(),
                    'activeCssClass' => 'current',
                    'htmlOptions' => array(
                        'id' => '',
                        'class' => ''
                    ),
                ));

                ?>
            </div>
            <script>
                $(document).ready(function () {
                    $('#slinky_user_menu').slinky();
                });
            </script>
            <div class="clearfix"></div>
        <br/>

            <?php
            if (issetModule('tariffPlans') && issetModule('paidservices')) {
                $this->widget('application.modules.tariffPlans.components.userTariffInfoWidget', array('userId' => Yii::app()->user->id, 'showChangeTariffLnk' => true));
            }

            ?>
        <?php } ?>
    </div>
    <button type="button" class="close_btn_slide btn"><i class="far fa-times-circle"></i></button>
</div>