<commit_before><?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Url;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
use kartik\sidenav\SideNav;
use kartik\icons\Icon;
Icon::map($this);

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
     <link rel="shortcut icon" href="<?php echo Yii::$app->request->baseUrl; ?>/images/favicon.ico" type="image/x-icon" /> 
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div class="wrap">
    <?php
    NavBar::begin([
        'brandLabel' => Html::img('@web/images/logo.png', ['alt'=>'myApiary']),
        'brandUrl' => Yii::$app->homeUrl,
        'options' => [
            'class' => 'navbar-inverse navbar-fixed-top',
        ],
    ]);
    if (Yii::$app->user->isGuest) {
        $menuItems[] = ['label' => 'Zaloguj', 'url' => ['/user/security/login']];
    } else {
		$menuItems = [
			['label' => 'Home', 'url' => ['/site/index']],
		];
        $menuItems[] = [
            'label' => Yii::t('app_frontend', 'Logout') . ' (' . Yii::$app->user->identity->username . ')', 
            'url' => ['/user/security/logout'],
            'linkOptions' => ['data-method' => 'post']
        ];
    }
    echo Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-right'],
        'items' => $menuItems,
    ]);
    NavBar::end();
    ?>

    <div class="container">
		<?php if(!Yii::$app->user->isGuest): ?>
		<?= Alert::widget() ?>
        <div class="row">
            <div class="col-md-2">
                <?php 
                if (!Yii::$app->user->isGuest) {
                 echo SideNav::widget([
                    'type' => SideNav::TYPE_DEFAULT,
                    'encodeLabels' => false,
                    'activateItems' => true,
                    'heading' => false,
                    'items' => [
                        [
                            'url' => '/',
                            'label' => 'Home',
                            'icon' => 'home',
                            'active' => Yii::$app->controller->id==='site',
                        ],
                        [
                            'url' => Url::to(['/pasieki/view?id=1']),
                            'label' => Icon::show('cubes') . ucwords(Yii::t('app_frontend','apiaries')),
                            //'icon' => 'glyphicon glyphicon-globe',
                            'active' => Yii::$app->controller->id==='pasieki',
                        ],
                        [
                            'url' => Url::to(['/pnie/index']),
                            'label' => Icon::show('archive') . ucwords(Yii::t('app_frontend','beehives')),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='pnie',
                        ],
                        [
                            'url' => Url::to(['/dokarmiania/index']),
                            'label' => Icon::show('cutlery') . ucwords(Yii::t('app_frontend','feeding')),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='dokarmiania',
                        ],
                        [
                            'url' => Url::to(['/miodobrania/index']),
                            'label' => Icon::show('battery-half') . Yii::t('app_frontend','Honey harvests'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='miodobrania',
                        ],
                        [
                            'url' => Url::to(['/matki/index']),
                            'label' => Icon::show('venus-double') . Yii::t('app_frontend','Queen bees'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='matki',
                        ],
                        [
                            'url' => Url::to(['/czujniki/index']),
                            'label' => Icon::show('thermometer') . Yii::t('app_frontend','Sensors'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='Czujniki',
                        ],
                        [
                            'url' => Url::to(['/koszty/index']),
                            'label' => Icon::show('usd') . Yii::t('app_frontend','Costs'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='koszty',
                        ],
                        [
                            'url' => Url::to(['/leczenia/index']),
                            'label' => Icon::show('medkit') . Yii::t('app_frontend','Treatments'),
                            //'icon' => ,
                            'active' => Yii::$app->controller->id==='Leczenia',
                        ],     
                        [
                            'url' => Url::to(['/ulikiweselne/index']),
                            'label' => Icon::show('venus-mars') . Yii::t('app_frontend','Mating boxes'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='Ulikiweselne',
                        ],                           
                    ],
                ]);}; ?>             
            </div>
            <div class="col-md-10">
                <?php echo Breadcrumbs::widget([
                        'homeLink' => [
                            'label' => '<i class=" glyphicon glyphicon-home"></i>',
                            'url' => Yii::$app->homeUrl,
                            'encode' => false// Requested feature<commit_msg>Added menu translations. Changed main menu order.<commit_after><?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Url;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
use kartik\sidenav\SideNav;
use kartik\icons\Icon;
Icon::map($this);

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
     <link rel="shortcut icon" href="<?php echo Yii::$app->request->baseUrl; ?>/images/favicon.ico" type="image/x-icon" /> 
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div class="wrap">
    <?php
    NavBar::begin([
        'brandLabel' => Html::img('@web/images/logo.png', ['alt'=>'myApiary']),
        'brandUrl' => Yii::$app->homeUrl,
        'options' => [
            'class' => 'navbar-inverse navbar-fixed-top',
        ],
    ]);
    if (Yii::$app->user->isGuest) {
        $menuItems[] = ['label' => 'Zaloguj', 'url' => ['/user/security/login']];
    } else {
		$menuItems = [
			['label' => 'Home', 'url' => ['/site/index']],
		];
        $menuItems[] = [
            'label' => Yii::t('app_frontend', 'Logout') . ' (' . Yii::$app->user->identity->username . ')', 
            'url' => ['/user/security/logout'],
            'linkOptions' => ['data-method' => 'post']
        ];
    }
    echo Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-right'],
        'items' => $menuItems,
    ]);
    NavBar::end();
    ?>

    <div class="container">
		<?php if(!Yii::$app->user->isGuest): ?>
		<?= Alert::widget() ?>
        <div class="row">
            <div class="col-md-2">
                <?php 
                if (!Yii::$app->user->isGuest) {
                 echo SideNav::widget([
                    'type' => SideNav::TYPE_DEFAULT,
                    'encodeLabels' => false,
                    'activateItems' => true,
                    'heading' => false,
                    'items' => [
                        [
                            'url' => '/',
                            'label' => Icon::show('home',['style'=>'width:25px']) . 'Home',
                            //'icon' => 'home',
                            'active' => Yii::$app->controller->id==='site',
                        ],
                        [
                            'url' => Url::to(['/pasieki/view?id=1']),
                            'label' => Icon::show('cubes',['style'=>'width:25px']) . ucwords(Yii::t('app_frontend','apiaries')),
                            //'icon' => 'glyphicon glyphicon-globe',
                            'active' => Yii::$app->controller->id==='pasieki',
                        ],
                        [
                            'url' => Url::to(['/pnie/index']),
                            'label' => Icon::show('archive',['style'=>'width:25px']) . ucwords(Yii::t('app_frontend','beehives')),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='pnie',
                        ],
                        [
                            'url' => Url::to(['/matki/index']),
                            'label' => Icon::show('venus-double',['style'=>'width:25px']) . Yii::t('app_frontend','Queen bees'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='matki',
                        ],
                        [
                            'url' => Url::to(['/ulikiweselne/index']),
                            'label' => Icon::show('venus-mars',['style'=>'width:25px']) . Yii::t('app_frontend','Mating boxes'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='Ulikiweselne',
                        ],     
                        [
                            'url' => Url::to(['/miodobrania/index']),
                            'label' => Icon::show('battery-half',['style'=>'width:25px']) . Yii::t('app_frontend','Honey harvests'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='miodobrania',
                        ],
                        [
                            'url' => Url::to(['/dokarmiania/index']),
                            'label' => Icon::show('cutlery',['style'=>'width:25px']) . ucwords(Yii::t('app_frontend','feeding')),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='dokarmiania',
                        ],
                        [
                            'url' => Url::to(['/leczenia/index']),
                            'label' => Icon::show('medkit',['style'=>'width:25px']) . Yii::t('app_frontend','Treatments'),
                            //'icon' => ,
                            'active' => Yii::$app->controller->id==='Leczenia',
                        ],   
                        [
                            'url' => Url::to(['/czujniki/index']),
                            'label' => Icon::show('thermometer',['style'=>'width:25px']) . Yii::t('app_frontend','Sensors'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='Czujniki',
                        ],
                        [
                            'url' => Url::to(['/koszty/index']),
                            'label' => Icon::show('usd',['style'=>'width:25px']) . Yii::t('app_frontend','Costs'),
                            //'icon' => 'glyphicon glyphicon-book',
                            'active' => Yii::$app->controller->id==='koszty',
                        ],
  
                      
                    ],
                ]);}; ?>             
            </div>
            <div class="col-md-10">
                <?php echo Breadcrumbs::widget([
                        'homeLink' => [
                            'label' => '<i class=" glyphicon glyphicon-home"></i>',
                            'url' => Yii::$app->homeUrl,
                            'encode' => false// Requested feature
{'fraction_non_alphanumeric': 0.198374873036956, 'fraction_numerical': 0.0023439331197749823, 'mean_word_length': 1.323049001814882, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 283, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4016792', 'n_tokens_mistral': 3770, 'n_tokens_neox': 3663, 'n_words': 494}