From c0c8b24e02f1b326d8c83fc224d4afe7c1e9031f Mon Sep 17 00:00:00 2001 From: yarik Date: Thu, 22 Sep 2016 14:20:04 +0300 Subject: [PATCH] Robots, image hint, fonts commit. --- backend/views/category/_form.php | 2 +- common/modules/rubrication/views/tax-option/_form.php | 2 +- frontend/views/layouts/main.php | 5 ++++- frontend/web/fonts/lg.eot | Bin 0 -> 2904 bytes frontend/web/fonts/lg.svg | 42 ++++++++++++++++++++++++++++++++++++++++++ frontend/web/fonts/lg.ttf | Bin 0 -> 2760 bytes frontend/web/fonts/lg.woff | Bin 0 -> 2836 bytes 7 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 frontend/web/fonts/lg.eot create mode 100644 frontend/web/fonts/lg.svg create mode 100644 frontend/web/fonts/lg.ttf create mode 100644 frontend/web/fonts/lg.woff diff --git a/backend/views/category/_form.php b/backend/views/category/_form.php index 3173b67..0c86fc5 100644 --- a/backend/views/category/_form.php +++ b/backend/views/category/_form.php @@ -62,7 +62,7 @@ use kartik\select2\Select2; 'showUpload' => false, 'previewFileType' => 'image', ], - ]); ?> + ])->hint('Для корректного отображения на сайте, размер изображения должен быть 262x144 либо соблюдать соотношение сторон примерно 2:1'); ?> field($model, 'meta_title')->textInput(['maxlength' => true]) ?> diff --git a/common/modules/rubrication/views/tax-option/_form.php b/common/modules/rubrication/views/tax-option/_form.php index aae9077..805b6d2 100644 --- a/common/modules/rubrication/views/tax-option/_form.php +++ b/common/modules/rubrication/views/tax-option/_form.php @@ -48,7 +48,7 @@ 'showUpload' => false, 'previewFileType' => 'image', ], - ]); ?> + ])->hint((($model->tax_group_id == 5)?'Для корректного отображения на сайте, размер изображения должен быть 262x144 либо соблюдать соотношение сторон примерно 2:1':'')); ?> field($model, 'sort')->dropDownList(RubricationHelper::SortArray()) ?>
diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 92741fd..d7b8400 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -13,7 +13,10 @@ use yii\widgets\ActiveForm; use yii\widgets\Breadcrumbs; use yii\widgets\Menu; - + $this->registerMetaTag([ + 'name' => 'robots', + 'content' => 'noindex, nofollow', + ]); AppAsset::register($this); /** * @var Page[] $pages diff --git a/frontend/web/fonts/lg.eot b/frontend/web/fonts/lg.eot new file mode 100644 index 0000000..1eb3916 Binary files /dev/null and b/frontend/web/fonts/lg.eot differ diff --git a/frontend/web/fonts/lg.svg b/frontend/web/fonts/lg.svg new file mode 100644 index 0000000..80ae410 --- /dev/null +++ b/frontend/web/fonts/lg.svg @@ -0,0 +1,42 @@ + + + + + + +{ + "fontFamily": "lg", + "majorVersion": 1, + "minorVersion": 0, + "fontURL": "https://github.com/sachinchoolur/lightGallery", + "copyright": "sachin", + "license": "MLT", + "licenseURL": "http://opensource.org/licenses/MIT", + "version": "Version 1.0", + "fontId": "lg", + "psName": "lg", + "subFamily": "Regular", + "fullName": "lg", + "description": "Font generated by IcoMoon." +} + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/web/fonts/lg.ttf b/frontend/web/fonts/lg.ttf new file mode 100644 index 0000000..d33b8e5 Binary files /dev/null and b/frontend/web/fonts/lg.ttf differ diff --git a/frontend/web/fonts/lg.woff b/frontend/web/fonts/lg.woff new file mode 100644 index 0000000..bd370be Binary files /dev/null and b/frontend/web/fonts/lg.woff differ -- libgit2 0.21.4