Example #1
0
<div class="ui centered padded stackable grid">
    <?php 
echo \Zelenin\yii\SemanticUI\collections\Menu::widget(['topAttached' => true, 'fluid' => true, 'inverted' => true, 'options' => ['class' => 'centered '], 'items' => [['url' => ['/'], 'label' => \insolita\redisman\Redisman::t('redisman', 'Main')], ['url' => ['/site/about'], 'label' => \insolita\redisman\Redisman::t('redisman', 'About')], ['url' => ['/site/logout'], 'options' => ['data-method' => 'post'], 'label' => \insolita\redisman\Redisman::t('redisman', 'Logout'), 'visible' => !Yii::$app->user->isGuest]]]);
?>
</div>
Example #2
0
<div class="ui centered padded stackable grid">
<?php 
echo \Zelenin\yii\SemanticUI\collections\Menu::widget(['topAttached' => true, 'fluid' => true, 'inverted' => true, 'options' => ['class' => 'centered'], 'items' => [['url' => ['/'], 'label' => Yii::t('app', 'Main')], ['url' => ['/site/about'], 'label' => Yii::t('app', 'About')], ['url' => ['/log/index'], 'label' => Yii::t('app', 'Actions Log')], ['label' => Yii::t('app', 'Language'), 'items' => [['url' => ['/redisman/default/index', 'lang' => 'ru'], 'label' => Yii::t('app', 'Russian')], ['url' => ['/redisman/default/index', 'lang' => 'en'], 'label' => Yii::t('app', 'English')]]], ['url' => ['/site/logout'], 'options' => ['data-method' => 'post'], 'label' => Yii::t('app', 'Logout'), 'visible' => !Yii::$app->user->isGuest]]]);
?>
</div>
Example #3
0
            <div class="ui stacked segment">
                <h1 class="ui header">
                    <i class="wifi icon"></i>
                    <div class="content">
                        <?php 
echo $module->getCurrentName();
?>
                        <div class="sub header"><?php 
echo Redisman::t('redisman', 'Current Connection');
?>
</div>
                    </div>
                </h1>

                <?php 
echo Menu::widget(['pointing' => true, 'encodeLabels' => false, 'items' => [['label' => '<i class="info circle icon blue"></i>' . Redisman::t('redisman', 'Info'), 'url' => ['/redisman/default/index'], 'options' => ['class' => 'blue item']], ['label' => '<i class="privacy circle icon orange"></i>' . Redisman::t('redisman', 'List Keys'), 'url' => ['/redisman/default/show'], 'options' => ['class' => 'orange item']], ['label' => '<i class="add circle icon green"></i>' . Redisman::t('redisman', 'Add'), 'options' => ['class' => 'green item'], 'items' => [['label' => Redisman::keyTyper(Redisman::REDIS_STRING), 'url' => ['/redisman/item/create', 'type' => Redisman::REDIS_STRING]], ['label' => Redisman::keyTyper(Redisman::REDIS_LIST), 'url' => ['/redisman/item/create', 'type' => Redisman::REDIS_LIST]], ['label' => Redisman::keyTyper(Redisman::REDIS_HASH), 'url' => ['/redisman/item/create', 'type' => Redisman::REDIS_HASH]], ['label' => Redisman::keyTyper(Redisman::REDIS_SET), 'url' => ['/redisman/item/create', 'type' => Redisman::REDIS_SET]], ['label' => Redisman::keyTyper(Redisman::REDIS_ZSET), 'url' => ['/redisman/item/create', 'type' => Redisman::REDIS_ZSET]]]]]]);
?>

                <?php 
echo \insolita\redisman\widgets\Alert::widget(['encode' => false, 'successTitle' => Redisman::t('redisman', 'Success!'), 'errorTitle' => Redisman::t('redisman', 'Error!'), 'warningTitle' => Redisman::t('redisman', 'Warning!'), 'infoTitle' => Redisman::t('redisman', 'Attention!!')]);
?>
                <?php 
echo $content;
?>
            </div>
        </div>
    </div>
    <?php 
$this->endBody();
?>
    </body>