Наследование: extends yii\base\Model, implements skeeks\cms\base\ConfigFormInterface, use trait skeeks\cms\traits\HasComponentDescriptorTrait, use trait skeeks\cms\traits\HasComponentDbSettingsTrait
Пример #1
0
 /**
  * @return $this
  */
 public function getEditUrl()
 {
     $url = parent::getEditUrl();
     if ($this->grid) {
         $columnsData = $this->grid->getColumnsKeyLabels();
         $url->setSystemParam('columns', $columnsData);
         $url->setSystemParam('selectedColumns', array_keys($this->grid->columns));
     }
     return $url;
 }
Пример #2
0
    public function init()
    {
        parent::init();
        \Yii::$app->view->on(View::EVENT_AFTER_RENDER, function (ViewEvent $e) {
            if (\Yii::$app->controller instanceof AdminController) {
                return false;
            }
            if (\Yii::$app->cmsToolbar->editViewFiles == Cms::BOOL_Y && \Yii::$app->cmsToolbar->enabled && \Yii::$app->user->can(CmsManager::PERMISSION_EDIT_VIEW_FILES)) {
                $id = "sx-view-render-md5" . md5($e->viewFile);
                if (in_array($id, $this->viewFiles)) {
                    return;
                }
                $this->viewFiles[$id] = $id;
                $e->sender->registerJs(<<<JS
new sx.classes.toolbar.EditViewBlock({'id' : '{$id}'});
JS
);
                $e->output = Html::tag('div', $e->output, ['class' => 'skeeks-cms-toolbar-edit-view-block', 'id' => $id, 'title' => "Двойной клик по блоку откроек окно управлния настройками", 'data' => ['id' => $id, 'config-url' => UrlHelper::construct(['/cms/admin-tools/view-file-edit', "root-file" => $e->viewFile])->enableAdmin()->setSystemParam(\skeeks\cms\modules\admin\Module::SYSTEM_QUERY_EMPTY_LAYOUT, 'true')->toString()]]);
            }
        });
    }
Пример #3
0
 public function rules()
 {
     return ArrayHelper::merge(parent::rules(), [['multiple', 'string'], ['multiple', 'in', 'range' => array_keys(\Yii::$app->cms->booleanFormat())]]);
 }
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['enabledBeforeApproval' => \skeeks\cms\comments2\Module::t('app', 'Use pre-moderation comments'), 'elementPropertyCountCode' => \skeeks\cms\comments2\Module::t('app', 'Contact number of comments with the property element'), 'notifyEmails' => \skeeks\cms\comments2\Module::t('app', 'Email addresses for notifications'), 'notifyPhones' => \skeeks\cms\comments2\Module::t('app', 'Telephone numbers for notifications'), 'securityEnabledRateLimit' => \skeeks\cms\comments2\Module::t('app', 'Enable IP protection'), 'securityRateLimitRequests' => \skeeks\cms\comments2\Module::t('app', 'Maximum number of comments for a specified time'), 'securityRateLimitTime' => \skeeks\cms\comments2\Module::t('app', 'The time for that will be taken by the maximum number of comments'), 'messageSuccessBeforeApproval' => \skeeks\cms\comments2\Module::t('app', 'Reporting successfully added comments (if the pre-moderation on)'), 'messageSuccess' => \skeeks\cms\comments2\Module::t('app', 'Reporting successfully added comments (without pre-moderation)'), 'enabledFieldsOnGuest' => \skeeks\cms\comments2\Module::t('app', 'The fields in the form to add comments (not authorized)'), 'enabledFieldsOnUser' => \skeeks\cms\comments2\Module::t('app', 'The fields in the form to add comments (user is logged in)'), 'maxCountMessagesForUser' => \skeeks\cms\comments2\Module::t('app', 'Maximum number of replies to the same post from one user (0 - unlimited)')]);
 }
Пример #5
0
 public function attributeHints()
 {
     return ArrayHelper::merge(parent::attributeHints(), ['markupOnUpdate' => \Yii::t('skeeks/money', 'In the process of updating the data currency, this mark-up will be added to price, specify a percentage') . ' (%)']);
 }
Пример #6
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['kladrApiToken' => 'Токен с kladr-api.ru', 'russiaId' => 'Россия', 'kladrRequestLimit' => 'За один запрос к апи, выбирается столько записей']);
 }
Пример #7
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['sessionType' => 'Где хранить сессии']);
 }
Пример #8
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['asset' => \Yii::t('app', 'Additional css and js admin area'), 'enableCustomConfirm' => \Yii::t('app', 'Include stylized window confirmation (confirm)'), 'enableCustomPromt' => \Yii::t('app', 'Include stylized window question with one field (promt)'), 'languageCode' => \Yii::t('app', 'Interface language'), 'pageParamName' => \Yii::t('app', 'Interface language'), 'enabledPjaxPagination' => \Yii::t('app', 'Turning ajax navigation'), 'pageParamName' => \Yii::t('app', 'Parameter name pages, pagination'), 'pageSize' => \Yii::t('app', 'Number of records on one page'), 'ckeditorPreset' => \Yii::t('app', 'Instruments'), 'ckeditorSkin' => \Yii::t('app', 'Theme of formalization'), 'ckeditorHeight' => \Yii::t('app', 'Height'), 'ckeditorCodeSnippetGeshi' => \Yii::t('app', 'Use code highlighting') . ' (Code Snippets Using GeSHi)', 'ckeditorCodeSnippetTheme' => \Yii::t('app', 'Theme of {theme} code', ['theme' => 'hightlight']), 'blockedTime' => \Yii::t('app', 'Time through which block user')]);
 }
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['enabled' => 'Включена', 'jsCompress' => 'Компиляция js в коде html', 'jsCompressFlaggedComments' => 'Обрезание комментариев в (компиляция js в коде html)', 'cssFileCompile' => 'Включить объединение css файлов в один', 'cssFileRemouteCompile' => 'Попытаться скачать файл с удаленного сервера', 'cssFileCompress' => 'Сжимать полученный css файл (удалять комментарии и т.д.)', 'jsFileCompile' => 'Включить объединение js файлов в один', 'jsFileRemouteCompile' => 'Попытаться скачать файл с удаленного сервера', 'jsFileCompress' => 'Сжимать полученный js файл (удалять комментарии и т.д.)', 'jsFileCompressFlaggedComments' => 'Обрезать комментарии', 'cssCompress' => 'Включить сжатие css встречающегося в коде html', 'cssFileBottom' => 'Переносить файлы CSS вниз страницы', 'cssFileBottomLoadOnJs' => 'Переносить файлы CSS вниз страницы и загружать асинхронно при помощи js', 'htmlCompress' => \Yii::t('skeeks/assets-auto', 'Enable compression HTML'), 'htmlCompressExtra' => \Yii::t('skeeks/assets-auto', 'Use more compact HTML compression algorithm'), 'htmlCompressNoComments' => \Yii::t('skeeks/assets-auto', 'During HTML compression, cut out all html comments')]);
 }
 public function attributeHints()
 {
     return ArrayHelper::merge(parent::attributeHints(), ['notify_emails' => \Yii::t('skeeks/reviews2', 'You can specify multiple Email addresses (separated by commas), which will be sent notification of new reviews.')]);
 }
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['levels' => \Yii::t('skeeks/logdb/app', 'Error levels'), 'logVars' => \Yii::t('skeeks/logdb/app', 'Additional information for logging'), 'exceptString' => \Yii::t('skeeks/logdb/app', 'Not logging'), 'categoriesString' => \Yii::t('skeeks/logdb/app', 'Logging only categies'), 'enabled' => \Yii::t('skeeks/logdb/app', 'On or off'), 'storeLogsTime' => \Yii::t('skeeks/logdb/app', 'Time storage of logs (sec.)'), 'exportInterval' => \Yii::t('skeeks/logdb/app', 'How many messages should be accumulated before they are exported')]);
 }
Пример #12
0
 /**
  * Можно задать название и описание компонента
  * @return array
  */
 public static function descriptorConfig()
 {
     return array_merge(parent::descriptorConfig(), ['name' => \Yii::t('skeeks/measure', 'Units of measurement')]);
 }
Пример #13
0
 public function attributeHints()
 {
     return ArrayHelper::merge(parent::attributeHints(), ['notify_emails' => \Yii::t('skeeks/shop/app', 'Enter email addresses, separated by commas, they will come on new orders information')]);
 }
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['enabled' => 'Включена', 'noReplaceLocalDomain' => 'Не менять абсолютные локальные ссылки', 'enabledB64Encode' => 'Преобразовывать в b64', 'noReplaceLinksOnDomainsString' => 'Ссылки с этими доменами не будут подменяться', 'noReplaceLinksOnDomains' => 'Ссылки с этими доменами не будут подменяться']);
 }
Пример #15
0
 public function init()
 {
     parent::init();
     if (!$this->enableKeywordsGenerator) {
         return $this;
     }
     /**
      * Генерация SEO метатегов.
      * */
     \Yii::$app->view->on(View::EVENT_END_PAGE, function (Event $e) {
         if (!\Yii::$app->request->isAjax && !\Yii::$app->request->isPjax) {
             $this->generateBeforeOutputPage($e->sender);
         }
     });
 }
Пример #16
0
 /**
  * @return array
  */
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['enabled' => \Yii::t('app', 'Enable'), 'githubEnabled' => \Yii::t('app', 'Enable authorization through {github}', ['github' => 'GitHub']), 'githubClientId' => 'clientId', 'githubClientSecret' => 'clientSecret', 'githubClass' => \Yii::t('app', 'Handler'), 'vkEnabled' => 'Включить авторизацию через vk', 'vkClientId' => 'clientId', 'vkClientSecret' => 'clientSecret', 'vkClass' => 'Обработчик']);
 }
Пример #17
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['email' => 'Email', 'payAfterConfirmation' => \skeeks\cms\shop\Module::t('app', 'Include payment orders only after the manager approval')]);
 }
Пример #18
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['adminEmail' => 'Основной Email Администратора сайта', 'notifyAdminEmailsHidden' => 'Email адреса уведомлений (скрытая копия)', 'notifyAdminEmails' => 'Email адреса уведомлений', 'noImageUrl' => 'Изображение заглушка', 'appName' => 'Название проекта', 'template' => 'Шаблон', 'templates' => 'Возможные шаблон', 'emailTemplate' => 'Шаблон для email', 'languageCode' => 'Язык по умолчанию', 'passwordResetTokenExpire' => 'Инвалидировать токен пароля через час', 'enabledHitAgents' => 'Выполнение агентов на хитах', 'hitAgentsInterval' => 'Интервал выполнения агентов на хитах', 'registerRoles' => 'При регистрации добавлять в группу', 'enabledHttpAuth' => 'Использовать http авторизацию на сайте', 'enabledHttpAuthAdmin' => 'Использовать http авторизацию в административной части', 'httpAuthLogin' => 'Логин', 'httpAuthPassword' => 'Пароль', 'debugEnabled' => 'Включение режима отладки', 'debugAllowedIPs' => 'Включение режима отладки для ip адресов', 'giiEnabled' => 'Генератор кода включен', 'giiAllowedIPs' => 'Включение генератора кода для ip адресов', 'licenseKey' => 'Лицензионный ключ']);
 }
Пример #19
0
 public function attributeHints()
 {
     $link = urlencode(Url::base(true));
     $a = Html::a('http://www.seogadget.ru/ip?urls=' . $link, 'http://www.seogadget.ru/ip?urls=' . $link, ['target' => '_blank']);
     return ArrayHelper::merge(parent::attributeHints(), ['v3toysIdPropertyName' => 'Как называется свойство товаров, в котором храниться id товара из системы v3toys', 'content_ids' => 'Обновление наличия и цен будет происходить у элементов этого выбранного контента', 'v3toysShopPersonTypeId' => 'Необходимо настроить тип покупателя, и его свойства, для связи с данными v3toys [ <b>php yii v3toys/init/update-person-type</b> ]', 'affiliate_key' => 'Ключ связан с ip адресом сайта, необходимо сообщить свой IP. Проверить IP можно тут: ' . $a, 'notify_emails' => 'Укажите email адреса через запятую, на них будет приходить информация о новых заказах.', 'pickup_discaunt_value' => 'Указывается в рублях.', 'post_discaunt_value' => 'Указывается в рублях.', 'courier_discaunt_value' => 'Указывается в рублях.', 'price_discount_percent' => 'Указывается в процентах, эта сумма будет добавлена или вычтена из цены товара на v3toys']);
 }
Пример #20
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['themeColor' => 'Цветовая схема', 'boxedBgImage' => 'Фоновое изображение', 'boxedLayout' => 'Фиксированный шаблон', 'boxedBgCss' => 'Css стиль для фона']);
 }
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['clientId' => 'CLIENT ID для доступа к API', 'userName' => 'Имя пользователя Instagram', 'tag' => 'Тэг', 'isCacheEnabled' => 'Включить кэширование', 'cacheTime' => 'Время кэширования (в секундах)', 'count' => 'Сколько фотографий показывать']);
 }
Пример #22
0
 /**
  * @param Component $component
  * @return \yii\db\ActiveQuery
  */
 public static function baseQuery($component)
 {
     $query = static::find()->where(['component' => $component->className()]);
     if ($component->namespace) {
         $query->andWhere(['namespace' => $component->namespace]);
     }
     return $query;
 }
Пример #23
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['adminEmail' => 'Основной Email Администратора сайта', 'noImageUrl' => 'Изображение заглушка', 'appName' => 'Название проекта', 'languageCode' => 'Язык по умолчанию', 'passwordResetTokenExpire' => 'Инвалидировать токен пароля через час', 'registerRoles' => 'При регистрации добавлять в группу', 'tree_max_code_length' => 'Максимальная длинна кода (url) разделов', 'element_max_code_length' => 'Максимальная длинна кода (url) элементов']);
 }
Пример #24
0
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['searchQueryParamName' => 'Параметр поискового запроса в адресной строке', 'searchElementFields' => 'Основной набор полей элементов, по которым производить поиск', 'enabledElementProperties' => 'Искать среди дополнительных полей элементов', 'enabledElementPropertiesSearchable' => 'Учитывать настройки дополнительных полей при поиске по ним', 'searchElementContentIds' => 'Искать элементы контента следующих типов', 'phraseLiveTime' => 'Время хранения поисковых запросов']);
 }