Example #1
0
 /**
  * Initializes the widget.
  * This renders the form open tag.
  */
 public function init()
 {
     if ($classes = ArrayHelper::getValue($this->options, 'class')) {
         $this->options = ArrayHelper::merge($this->options, ['class' => $classes . ' sx-form-admin']);
     } else {
         $this->options = ArrayHelper::merge($this->options, ['class' => 'sx-form-admin']);
     }
     if ($this->usePjax) {
         Pjax::begin(ArrayHelper::merge(['id' => 'sx-pjax-form-' . $this->id], $this->pjaxOptions));
         $this->options = ArrayHelper::merge($this->options, ['data-pjax' => true]);
         echo \skeeks\cms\modules\admin\widgets\Alert::widget();
     }
     parent::init();
 }
Example #2
0
    /**
     * Initializes the widget.
     * This renders the form open tag.
     */
    public function init()
    {
        $breadcrumbs = \yii\widgets\Breadcrumbs::widget(['homeLink' => ['label' => \Yii::t("yii", "Home"), 'url' => ['admin/index', 'namespace' => 'admin']], 'links' => isset(\Yii::$app->view->params['breadcrumbs']) ? \Yii::$app->view->params['breadcrumbs'] : []]);
        $alert = \skeeks\cms\modules\admin\widgets\Alert::widget();
        $actions = \Yii::$app->view->params['actions'];
        echo <<<HTML
        <div class="main">
            <div class="col-lg-12">
                <div class="panel panel-primary sx-panel sx-panel-content">
                    <div class="panel-heading sx-no-icon">
                        <h2>
                            {$breadcrumbs}
                        </h2>
                        <div class="panel-actions"></div>
                    </div><!-- End .panel-heading -->
                    <div class="panel-body">
                            <div class="panel-content-before">
                                {$actions}
                            </div>
                            <div class="panel-content">
                                    {$alert}

HTML;
    }
Example #3
0
            <a href="/" style="width: auto;" data-sx-widget="tooltip-b" data-original-title="<?php 
echo \Yii::t('app', 'To main page of site');
?>
"><i class="glyphicon glyphicon-globe"></i></a>
        </li>

    </ul>
</div>

<!-- begin canvas animation bg -->
      <div id="canvas-wrapper">
        <canvas id="demo-canvas"></canvas>
      </div>

<?php 
echo \skeeks\cms\modules\admin\widgets\Alert::widget();
echo $content;
?>

<div style="display: none;">
    <img src="<?php 
echo $urlBg;
?>
" id="sx-auth-bg"/></div>
</div>

<footer class="sx-admin-footer">
    <div class="row">
        <div class="col-sm-5">
            <div class="sx-footer-copyright">
                <a href="http://cms.skeeks.com" target="_blank" data-sx-widget="tooltip" title="<?php