Inheritance: extends skeeks\cms\base\Module, implements yii\base\BootstrapInterface
Example #1
0
File: User.php Project: Liv1020/cms
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return ['id' => Yii::t('app', 'ID'), 'username' => Yii::t('app', 'Login'), 'auth_key' => Yii::t('app', 'Auth Key'), 'password_hash' => Yii::t('app', 'Password Hash'), 'password_reset_token' => Yii::t('app', 'Password Reset Token'), 'email' => Yii::t('app', 'Email'), 'phone' => Yii::t('app', 'Phone'), 'active' => Yii::t('app', 'Active'), 'created_at' => Yii::t('app', 'Created At'), 'updated_at' => Yii::t('app', 'Updated At'), 'name' => Module::t('user', 'Name'), 'city' => Yii::t('app', 'City'), 'address' => Yii::t('app', 'Address'), 'info' => Yii::t('app', 'Information'), 'gender' => Yii::t('app', 'Gender'), 'logged_at' => Yii::t('app', 'Logged At'), 'last_activity_at' => Yii::t('app', 'Last Activity At'), 'last_admin_activity_at' => Yii::t('app', 'Last Activity In The Admin At'), 'status_of_life' => Yii::t('app', 'Status'), 'image_id' => Yii::t('app', 'Image')];
 }
Example #2
0
<?php

/**
 * @author Semenov Alexander <*****@*****.**>
 * @link http://skeeks.com/
 * @copyright 2010 SkeekS (СкикС)
 * @date 26.06.2015
 */
/* @var $this yii\web\View */
/* @var $widget \skeeks\cms\widgets\SshConsoleWidget */
$items = [];
if ($widget->enabledTabFastCmd == \skeeks\cms\components\Cms::BOOL_Y) {
    $items[] = ['label' => '<i class="glyphicon glyphicon-question-sign"></i> ' . \Yii::t('app', 'quick commands'), 'encode' => false, 'content' => $this->render('_fast-cmd', ['widget' => $this]), 'active' => true];
}
if ($widget->enabledTabHelp == \skeeks\cms\components\Cms::BOOL_Y) {
    $items[] = ['label' => '<i class="glyphicon glyphicon-question-sign"></i> ' . \skeeks\cms\Module::t('v2', 'Help'), 'encode' => false, 'content' => $this->render('_help', ['widget' => $this])];
}
if ($widget->enabledTabCmds == \skeeks\cms\components\Cms::BOOL_Y) {
    $items[] = ['label' => '<i class="glyphicon glyphicon-question-sign"></i> ' . \Yii::t('app', 'Available commands {cms}'), 'encode' => false, 'content' => $this->render('_sx-cms-cmds', ['widget' => $this])];
}
if ($widget->enabledTabs != \skeeks\cms\components\Cms::BOOL_Y) {
    $items = [];
}
?>
<div class="sx-widget-ssh-console" id="<?php 
echo $widget->id;
?>
">
    <div class="sx-blocked-area">
        <iframe id="<?php 
echo $widget->iframeId;