Example #1
0
    <div class="row">
        <?php 
$items = \dmstr\modules\pages\models\Tree::getMenuItems('backend', true, \dmstr\modules\pages\models\Tree::GLOBAL_ACCESS_DOMAIN);
foreach ($items as $item) {
    if ($item['visible']) {
        echo '<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">';
        echo \insolita\wgadminlte\SmallBox::widget(['head' => substr(trim(strip_tags($item['label'])), 0, 2), 'icon' => isset($item['icon']) ? $item['icon'] : '', 'footer' => $item['label'], 'footer_link' => $item['url']]);
        echo '</div>';
    }
}
?>
    </div>


<?php 
if (\Yii::$app->user->identity->isAdmin) {
    ?>
    <div class="row">
    <?php 
    foreach ($allModulesMenuItems as $item) {
        if ($item['visible']) {
            echo '<div class="col-xs-6 col-sm-3 col-lg-2">';
            echo \insolita\wgadminlte\SmallBox::widget(['head' => ucfirst(substr(trim(strip_tags($item['label'])), 0, 2)), 'icon' => 'fa fa-cog', 'type' => \insolita\wgadminlte\SmallBox::TYPE_GRAY, 'footer' => $item['label'], 'footer_link' => $item['url']]);
            echo '</div>';
        }
    }
    ?>
    <div>
<?php 
}
Example #2
0
// In case you are extending this form, it is mandatory to set
// all these hidden inputs as defined below.
echo Html::hiddenInput("Tree[{$keyAttribute}]", $node->id);
echo Html::hiddenInput('treeNodeModify', $node->isNewRecord);
echo Html::hiddenInput('parentKey', $parentKey);
echo Html::hiddenInput('currUrl', $currUrl);
echo Html::hiddenInput('modelClass', $modelClass);
echo Html::hiddenInput('softDelete', $softDelete);
?>
<div class="vertical-spacer"></div>

<?php 
if ($nodeUrl !== null) {
    ?>
    <?php 
    echo SmallBox::widget(['head' => $node->name, 'text' => $nodeUrl, 'icon' => 'fa fa-' . $node->icon, 'footer' => 'Open', 'footer_link' => $nodeUrl]);
}
?>
<div class="clearfix"></div>

<?php 
if ($iconsList == 'text' || $iconsList == 'none') {
    ?>
        <?php 
    Box::begin(['title' => Yii::t('kvtree', 'General'), 'collapse' => true]);
    ?>
        <div class="row">
            <div class="col-sm-12">

                <?php 
    echo $form->field($node, $nameAttribute, ['addon' => ['prepend' => ['content' => Inflector::titleize('menu_name')]]])->textInput($inputOpts)->label(false);
Example #3
0
?>

<div class="row">
    <div class="col-sm-4">
        <?php 
echo \insolita\wgadminlte\SmallBox::widget(['head' => 'Less', 'type' => SmallBox::TYPE_LBLUE, 'icon' => 'fa fa-' . FA::_PENCIL_SQUARE, 'footer' => 'Themes', 'footer_link' => ['/prototype/less']]);
?>
    </div>
    <div class="col-sm-4">
        <?php 
echo \insolita\wgadminlte\SmallBox::widget(['head' => 'Twig', 'type' => SmallBox::TYPE_ORANGE, 'icon' => 'fa fa-' . FA::_STICKY_NOTE, 'footer' => 'Layouts', 'footer_link' => ['/prototype/twig']]);
?>
    </div>
    <div class="col-sm-4">
        <?php 
echo \insolita\wgadminlte\SmallBox::widget(['head' => 'HTML', 'type' => SmallBox::TYPE_MAR, 'icon' => 'fa fa-' . FA::_STICKY_NOTE_O, 'footer' => 'Snippets', 'footer_link' => ['/prototype/html']]);
?>
    </div>
</div>

<hr/>

<p>
    This module provides routes for rendering dynamic views. Content can be varied by request parameter <code>id</code>.
</p>

<h3>Frontend</h3>

<ul>
    <li><?php 
echo Html::a('/prototype/render/twig', ['/prototype/render/twig']);