Exemplo n.º 1
0
 /**
  * Registers required script
  */
 public function registerClientScript()
 {
     $view = $this->getView();
     $assets = ModuleAsset::register($view);
     $assets->js[] = 'js/jquery.threads.js';
     $assetsB = \simplator\base\BaseAssetBundle::register($view);
     $assetsB->js[] = 'js/jquery.tmpl.min.js';
 }
Exemplo n.º 2
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use simplator\staff\Module;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model simplator\staff\models\Structure */
\simplator\base\BaseAssetBundle::register($this);
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Module::t('staff', 'Structure'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="structure-view">

	<div>	
		<?php 
echo Html::img(simplator\medialib\models\File::picture($model->logoid, 'preview', 'stafflogo'), ['style' => 'float:left']);
?>
 <h1><?php 
echo $model->fulltitle;
?>
</h1>
		<div>Адресс: <?php 
echo $model->address;
?>
</div>
	</div>
	<div><?php 
echo $model->about;
?>
Exemplo n.º 3
0
<?php

use yii\helpers\Url;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use simplator\base\BaseAssetBundle;
use simplator\articles\models\Article;
/* @var $this yii\web\View */
/* @var $rev simplator\articles\models\Revision */
/* @var $form yii\widgets\ActiveForm */
BaseAssetBundle::register($this);
$bundle = \simplator\articles\ModuleAsset::register($this);
$this->registerJsFile($bundle->baseUrl . '/js/articles.js', ['depends' => 'yii\\bootstrap\\BootstrapPluginAsset']);
$this->registerJsFile($bundle->baseUrl . '/js/noty/packaged/jquery.noty.packaged.min.js', ['depends' => 'yii\\web\\JqueryAsset']);
$js = ["\$.noty.defaults.layout = 'topRight';", "\$.noty.defaults.theme = 'relax';", "\$.noty.defaults.type = 'alert';", "\$.noty.defaults.timeout = 5000;"];
$this->registerJs(implode(';', $js));
/*
    type: 'alert',
    text: '', // can be html or string
    dismissQueue: true, // If you want to use queue feature set this true
    template: '&lt;div class="noty_message"&gt;&lt;span class="noty_text"&gt;&lt;/span&gt;&lt;div class="noty_close"&gt;&lt;/div&gt;&lt;/div&gt;',
    animation: {
        open: {height: 'toggle'}, // or Animate.css class names like: 'animated bounceInLeft'
        close: {height: 'toggle'}, // or Animate.css class names like: 'animated bounceOutLeft'
        easing: 'swing',
        speed: 500 // opening &amp; closing animation speed
    },
    timeout: false, // delay for closing event. Set false for sticky notifications
    force: false, // adds notification to the beginning of queue when set to true
    modal: false,
    maxVisible: 5, // you can set max visible notification for dismissQueue true option,