$this->head(); ?> </head> <body> <?php $this->beginBody(); echo \gromver\platform\core\modules\main\widgets\PlatformPanel::widget(); ?> <div class="wrap"> <div class="container"> <?php echo \yii\widgets\Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php foreach (Yii::$app->session->getAllFlashes() as $type => $body) { echo \kartik\alert\Alert::widget(['type' => $type, 'body' => $body]); } ?> <div class="row"> <div class="col-md-3 col-sm-4"> <?php echo \gromver\platform\core\modules\menu\widgets\Menu::widget(['id' => 'top-menu', 'widgetConfig' => ['heading' => Yii::t('gromver.platform', 'Navigation'), 'class' => \kartik\widgets\SideNav::className(), 'activeCssClass' => 'active', 'firstItemCssClass' => 'first', 'lastItemCssClass' => 'last', 'activateItems' => false, 'activateParents' => false, 'options' => ['class' => 'level-1']]]); ?> </div> <div class="col-md-9 col-sm-8"> <?php echo $content; ?> </div> </div> </div>
/** * Renders manually set alerts */ public function renderAlerts() { $type = $this->type == self::TYPE_GROWL ? self::TYPE_GROWL : self::TYPE_ALERT; foreach ($this->alertSettings as $alert => $settings) { if (!empty($settings['body'])) { echo $type == self::TYPE_GROWL ? Growl::widget($settings) : Alert::widget($settings); } } }
$this->title = Module::t('main', 'Blog'); $this->params['breadcrumbs'][] = $this->title; $assetPath = BlogAsset::register($this)->baseUrl; ?> <div class="blog-default-index"> <h1><?php echo Module::t('main', 'Blog module'); ?> </h1> <?php if (Helper::isJustInstalled()) { ?> <?php echo Alert::widget(['type' => Alert::TYPE_SUCCESS, 'title' => Module::t('main', 'Welcome to the module “Blog”!'), 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Module::t('main', 'You have successfully installed the module “Blog” is now to create a record, you need to create your first post type and category'), 'showSeparator' => true]); ?> <?php } ?> <div class="row"> <div class="col-md-4"> <div class="text-center"> <h2> <?php echo Html::a(Module::t('main', 'Posts'), ['post/index']); ?> </h2> <?php
use kartik\alert\Alert; /* @var $this yii\web\View */ /* @var $model pendalf89\blog\models\Post */ $this->title = Module::t('main', 'Update post “{title}”', ['title' => $model->title]); $this->params['breadcrumbs'][] = ['label' => Module::t('main', 'Blog'), 'url' => ['default/index']]; $this->params['breadcrumbs'][] = ['label' => Module::t('main', 'Posts'), 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->title, 'url' => ['view', 'id' => $model->id]]; $this->params['breadcrumbs'][] = Module::t('main', 'Update post'); ?> <div class="post-update"> <?php if (Yii::$app->session->getFlash('postSaved')) { ?> <?php echo Alert::widget(['type' => Alert::TYPE_SUCCESS, 'title' => Module::t('main', 'Post “{title}” has been saved successfully!', ['title' => $model->title]), 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Module::t('main', 'You can watch this post {on the site}, or go to see {all posts}.', ['on the site' => Html::a(Helper::strtolower(Module::t('main', 'On the site')), $this->context->getViewPostUrl($model), ['target' => '_blank']), 'all posts' => Html::a(Helper::strtolower(Module::t('main', 'All posts')), ['post/index'])]), 'showSeparator' => true]); ?> <?php } else { ?> <h1><?php echo Html::encode($this->title); ?> </h1> <?php } ?> <?php echo $this->render('_form', ['model' => $model]); ?>
<h1><?php echo $this->title; ?> </h1> <div class="panel panel-default"> <div class="panel-heading"><?php echo Module::t('main', 'Thumbnails settings'); ?> </div> <div class="panel-body"> <?php if (Yii::$app->session->getFlash('successResize')) { ?> <?php echo Alert::widget(['type' => Alert::TYPE_SUCCESS, 'title' => Module::t('main', 'Thumbnails sizes has been resized successfully!'), 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Module::t('main', 'Do not forget every time you change thumbnails presets to make them resize.'), 'showSeparator' => true]); ?> <?php } ?> <p><?php echo Module::t('main', 'Now using next thumbnails presets'); ?> :</p> <ul> <?php foreach ($this->context->module->thumbs as $preset) { ?> <li><strong><?php echo $preset['name']; ?>
$sortImg= SortableInput::widget([ //'model' => $model, //'attribute' => 'EMP_IMG', 'hideInput' => false, 'delimiter' => '~', 'items' => [['content' =>$Combo_Corp]] ]); */ use kartik\affix\Affix; $content = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.'; $items = [['url' => '#sec-1', 'label' => 'Section 1', 'icon' => 'play-circle', 'content' => $content, 'items' => [['url' => '#sec-1-1', 'label' => 'Section 1.1', 'content' => $content], ['url' => '#sec-1-2', 'label' => 'Section 1.2', 'content' => $content], ['url' => '#sec-1-3', 'label' => 'Section 1.3', 'content' => $content], ['url' => '#sec-1-4', 'label' => 'Section 1.4', 'content' => $content], ['url' => '#sec-1-5', 'label' => 'Section 1.5', 'content' => $content]]], ['url' => '#sec-2', 'label' => 'Section 2', 'icon' => 'play-circle', 'content' => $content, 'items' => [['url' => '#sec-2-1', 'label' => 'Section 2.1', 'content' => $content], ['url' => '#sec-2-2', 'label' => 'Section 2.2', 'content' => $content], ['url' => '#sec-2-3', 'label' => 'Section 2.3', 'content' => $content], ['url' => '#sec-2-4', 'label' => 'Section 2.4', 'content' => $content], ['url' => '#sec-2-5', 'label' => 'Section 2.5', 'content' => $content]]]]; $KiriMenu = Affix::widget(['items' => $items, 'type' => 'menu']); $affk = Affix::widget(['items' => $items, 'type' => 'body']); use kartik\alert\Alert; $ingatan = Alert::widget(['type' => Alert::TYPE_INFO, 'title' => 'Note', 'titleOptions' => ['icon' => 'info-sign'], 'body' => 'This is an informative alert sss']); use kartik\alert\AlertBlock; $ingatanBlock = AlertBlock::widget(['type' => AlertBlock::TYPE_ALERT, 'useSessionFlash' => true]); // Usage with ActiveForm and model /*echo $form->field($model, 'rating')->widget(StarRating::classname(), [ 'pluginOptions' => ['size'=>'lg'] ]); */ ?> <?php /* echo Breadcrumbs::widget([ 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], ]); */ $items = [['label' => '<i class="glyphicon glyphicon-home"></i> Employe Active', 'content' => $tab_employe], ['label' => '<i class="glyphicon glyphicon-home"></i> Employe Resign', 'content' => $tab_employe_resign]];