Example #1
0
<?php

/* @var $this app\components\View */
use app\widgets\Box;
$this->title = 'Blank page';
$this->subTitle = 'it all starts here';
?>

<?php 
echo Box::begin(['type' => '', 'header' => ['title' => 'Title', 'class' => 'with-border'], 'footer' => 'Footer']);
?>
Start creating your amazing application!
<?php 
echo Box::end();
Example #2
0
    <?php 
    echo Html::a(Yii::t('app', 'Create'), ['page/create'], ['class' => 'btn btn-flat btn-default']);
    ?>
    <?php 
}
?>
</div>

<?php 
if (!$rootPages) {
    ?>
    <?php 
    echo Yii::t('app', 'Page list is empty.');
}
?>
<ul class="list-unstyled pages">
    <?php 
foreach ($rootPages as $wiki) {
    ?>
    <li class="wiki-page">
        <?php 
    echo Html::a(Icon::icon($wiki->getChildren()->count() ? 'fa fa-book' : 'fa fa-file-text') . e($wiki->title), ['page/view', 'id' => $wiki->id]);
    ?>
    </li>
    <?php 
}
?>
</ul>
<?php 
Box::end();
Example #3
0
                        <?php 
foreach (['red', 'blue', 'green', 'yellow', 'aqua', 'purple'] as $color) {
    ?>
                        <?php 
    echo Slider::widget(['name' => 'price', 'value' => [-100, 100], 'options' => ['class' => ['form-control'], 'data' => ['slider-min' => -200, 'slider-max' => 200, 'slider-step' => 5, 'slider-orientation' => 'horizontal', 'slider-selection' => 'before', 'slider-tooltip' => 'show', 'slider-id' => $color]]]);
    ?>
                        <p>data-slider-id="<?php 
    echo $color;
    ?>
"</p>
                        <?php 
}
?>
                    </div>
                    <div class="col-sm-6 text-center">
                        <?php 
foreach (['red', 'blue', 'green', 'yellow', 'aqua', 'purple'] as $color) {
    ?>
                        <?php 
    echo Slider::widget(['name' => 'price', 'value' => [-100, 100], 'options' => ['class' => ['form-control'], 'data' => ['slider-min' => -200, 'slider-max' => 200, 'slider-step' => 5, 'slider-orientation' => 'vertical', 'slider-selection' => 'before', 'slider-tooltip' => 'show', 'slider-id' => $color]]]);
    ?>
                        <?php 
}
?>
                    </div>
                </div>
        <?php 
echo app\widgets\Box::end();
?>
    </div><!-- /.col -->
</div><!-- /.row -->