Example #1
0
File: Cms.php Project: Liv1020/cms
 /**
  * @return ComposerHelper
  */
 public function getComposer()
 {
     $extension = CmsExtension::getInstance('skeeks/cms');
     return $extension->composer;
 }
Example #2
0
<?php

/**
 * @author Semenov Alexander <*****@*****.**>
 * @link http://skeeks.com/
 * @copyright 2010 SkeekS (СкикС)
 * @date 24.06.2015
 */
/* @var $this yii\web\View */
/* @var $model CmsExtension */
use skeeks\cms\components\marketplace\models\PackageModel;
use skeeks\cms\models\CmsExtension;
$self = $this;
$models = CmsExtension::fetchAllWhithMarketplace();
CmsExtension::initCoreExtensions();
$notCoreModels = [];
foreach ($models as $name => $model) {
    if (!$model->isCore()) {
        $notCoreModels[] = $model;
    }
}
$mess = \Yii::t('app', 'The modules included in the kernel {cms} can not be deleted or updated individually.', ['cms' => 'SkeekS CMS']);
$mess2 = \Yii::t('app', 'You also can read the version of the installed extensions, see it in the {market}', ['market' => 'Marketplace']);
if (CmsExtension::$coreExtensions) {
    $items[] = ['label' => '<i class="glyphicon glyphicon-info-sign"></i> ' . \Yii::t('app', 'Core {cms}', ['cms' => 'SkeekS CMS']), 'encode' => false, 'content' => $this->render('_table-extensions', ['models' => CmsExtension::$coreExtensions, 'message' => <<<HTML
                <p>{$mess}</p>
                <p>{$mess2}</p>
HTML
])];
}
$mess3 = \Yii::t('app', 'Additional solutions, successfully installed in your project.');
Example #3
0
}
?>

<div id="sx-search" style="margin-bottom: 10px;">
    <?php 
$form = \skeeks\cms\modules\admin\widgets\ActiveForm::begin(['method' => 'get', 'options' => ['id' => 'sx-package-search', 'class' => 'form-inline']]);
?>
        <?php 
echo \yii\helpers\Html::button('<i class="glyphicon glyphicon-retweet"></i> ' . \Yii::t('app', 'Start update'), \yii\helpers\ArrayHelper::merge(['type' => 'submit', 'class' => 'btn btn-lg ' . ($attrDisabled ?: 'btn-primary'), 'onclick' => new \yii\web\JsExpression(<<<JS
            sx.Installer.update(); return false;
JS
)], $attrDisabled));
?>
    <hr />
    <p><b><a data-pjax="0" href="<?php 
echo \skeeks\cms\models\CmsExtension::getInstance('skeeks/cms')->adminUrl;
?>
"><?php 
echo \Yii::t('app', '{yii} Version', ['yii' => 'SkeekS CMS']);
?>
</a>: </b> <?php 
echo \Yii::$app->cms->moduleCms->descriptor->version;
?>
</p>
    <p><b><?php 
echo \Yii::t('app', '{yii} Version', ['yii' => 'Yii']);
?>
: </b> <?php 
echo Yii::getVersion();
?>
</p>