Commit 129178be1314e9395e5426cfaf5f85b1eab8bfb0

Authored by Timur Kastemirov
2 parents 54f7313e 9c54f5a0

Merge remote-tracking branch 'origin/master'

backend/views/ajax/_table.php
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <tr> 14 <tr>
15 <th>#</th> 15 <th>#</th>
16 <th><?= $name ?></th> 16 <th><?= $name ?></th>
17 - <th>Сессии</th> 17 + <th><?= \Yii::t('app', 'Сессии') ?></th>
18 </tr> 18 </tr>
19 </thead> 19 </thead>
20 <tbody> 20 <tbody>
backend/views/feedback/view.php
@@ -8,11 +8,11 @@ use yii\widgets\DetailView; @@ -8,11 +8,11 @@ use yii\widgets\DetailView;
8 8
9 $this->title = $model->name; 9 $this->title = $model->name;
10 $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Feedbacks'), 'url' => ['index']]; 10 $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Feedbacks'), 'url' => ['index']];
11 -$this->params['breadcrumbs'][] = $this->title; 11 +$this->params['breadcrumbs'][] = \Yii::t('core', $this->title);
12 ?> 12 ?>
13 <div class="feedback-view"> 13 <div class="feedback-view">
14 14
15 - <h1><?= Html::encode($this->title) ?></h1> 15 + <h1><?= Html::encode(\Yii::t('core', $this->title)) ?></h1>
16 16
17 <p> 17 <p>
18 <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> 18 <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
backend/views/layouts/main.php
@@ -202,9 +202,9 @@ @@ -202,9 +202,9 @@
202 <div class="title_right"> 202 <div class="title_right">
203 <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search"> 203 <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
204 <div class="input-group"> 204 <div class="input-group">
205 - <input type="text" class="form-control" placeholder="Поиск..."> 205 + <input type="text" class="form-control" placeholder="<?= \Yii::t('app', 'Поиск...') ?>">
206 <span class="input-group-btn"> 206 <span class="input-group-btn">
207 - <button class="btn btn-default" type="button">Найти!</button> 207 + <button class="btn btn-default" type="button"><?= \Yii::t('app', 'Найти!') ?></button>
208 </span> 208 </span>
209 </div> 209 </div>
210 </div> 210 </div>
backend/views/settings/_mail_tab.php
@@ -11,10 +11,13 @@ @@ -11,10 +11,13 @@
11 */ 11 */
12 12
13 echo $form->field($mail, 'host') 13 echo $form->field($mail, 'host')
14 - ->textInput(); 14 + ->textInput()
  15 + ->label(\Yii::t('app', 'Host'));
15 16
16 echo $form->field($mail, 'user') 17 echo $form->field($mail, 'user')
17 - ->textInput(); 18 + ->textInput()
  19 + ->label(\Yii::t('app', 'User'));
18 20
19 echo $form->field($mail, 'pass') 21 echo $form->field($mail, 'pass')
20 - ->textInput();  
21 \ No newline at end of file 22 \ No newline at end of file
  23 + ->textInput()
  24 + ->label(\Yii::t('app', 'Pass'));
22 \ No newline at end of file 25 \ No newline at end of file
backend/views/settings/settings.php
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 use yii\web\View; 13 use yii\web\View;
14 use yiister\gentelella\widgets\Panel; 14 use yiister\gentelella\widgets\Panel;
15 15
16 - $this->title = 'Settings'; 16 + $this->title = \Yii::t('app', 'Settings');
17 17
18 $this->params[ 'breadcrumbs' ][] = $this->title; 18 $this->params[ 'breadcrumbs' ][] = $this->title;
19 ?> 19 ?>
backend/views/site/error.php
@@ -22,10 +22,10 @@ @@ -22,10 +22,10 @@
22 </a> 22 </a>
23 </p> 23 </p>
24 24
25 - <h3>Извините, страница не доступна по данному адресу</h3>  
26 - <h4 class="text-muted">Ошибка 404 - Страница не найдена</h4> 25 + <h3><?= \Yii::t('app', 'Извините, страница не доступна по данному адресу') ?></h3>
  26 + <h4 class="text-muted"><?= \Yii::t('app', 'Ошибка 404 - Страница не найдена') ?></h4>
27 27
28 - <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> Вернуться на главную</a> 28 + <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> <?= \Yii::t('app', 'Вернуться на главную') ?></a>
29 </p> 29 </p>
30 </div> 30 </div>
31 31
backend/views/site/gallery.php
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 13
14 Panel::begin( 14 Panel::begin(
15 [ 15 [
16 - 'header' => 'Галерея', 16 + 'header' => \Yii::t('app', 'Галерея'),
17 ] 17 ]
18 ); 18 );
19 19
backend/views/site/index.php
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 use yii\web\View; 9 use yii\web\View;
10 use yiister\gentelella\widgets\Panel; 10 use yiister\gentelella\widgets\Panel;
11 11
12 - $this->title = 'Artbox !'; 12 + $this->title = \Yii::t('app', 'Artbox !');
13 13
14 AnalyticsAsset::register($this); 14 AnalyticsAsset::register($this);
15 ?> 15 ?>
@@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
23 23
24 <div class="count" id="sessions">0</div> 24 <div class="count" id="sessions">0</div>
25 25
26 - <h3>Сессии</h3>  
27 - <p>Lorem ipsum psdea itgum rixt.</p> 26 + <h3><?=\Yii::t('app', 'Сессии')?></h3>
  27 + <p><?=\Yii::t('app', '(подпись для сессий)')?></p>
28 </div> 28 </div>
29 </div> 29 </div>
30 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12"> 30 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
@@ -34,8 +34,8 @@ @@ -34,8 +34,8 @@
34 34
35 <div class="count" id="users">0</div> 35 <div class="count" id="users">0</div>
36 36
37 - <h3>Пользователи</h3>  
38 - <p>Lorem ipsum psdea itgum rixt.</p> 37 + <h3><?=\Yii::t('app', 'Пользователи')?></h3>
  38 + <p><?=\Yii::t('app', '(подпись для пользователей)')?></p>
39 </div> 39 </div>
40 </div> 40 </div>
41 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12"> 41 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
@@ -45,8 +45,8 @@ @@ -45,8 +45,8 @@
45 45
46 <div class="count" id="views">0</div> 46 <div class="count" id="views">0</div>
47 47
48 - <h3>Просмотры страниц</h3>  
49 - <p>Lorem ipsum psdea itgum rixt.</p> 48 + <h3><?=\Yii::t('app', 'Просмотры страниц')?></h3>
  49 + <p><?=\Yii::t('app', '(подпись для просмотра страниц)')?></p>
50 </div> 50 </div>
51 </div> 51 </div>
52 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12"> 52 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
@@ -56,8 +56,8 @@ @@ -56,8 +56,8 @@
56 56
57 <div class="count" id="newusers">0</div> 57 <div class="count" id="newusers">0</div>
58 58
59 - <h3>Новые сессии</h3>  
60 - <p>Lorem ipsum psdea itgum rixt.</p> 59 + <h3><?=\Yii::t('app', 'Новые сессии')?></h3>
  60 + <p><?=\Yii::t('app', '(подпись для новых сессий)')?></p>
61 </div> 61 </div>
62 </div> 62 </div>
63 </div> 63 </div>
@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 <div class="col-md-12"> 66 <div class="col-md-12">
67 <?php $panel = Panel::begin( 67 <?php $panel = Panel::begin(
68 [ 68 [
69 - 'header' => 'Analytic', 69 + 'header' => \Yii::t('app', 'Analytic'),
70 ] 70 ]
71 ) ?> 71 ) ?>
72 72
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> 80 <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
81 <?php $panel = Panel::begin( 81 <?php $panel = Panel::begin(
82 [ 82 [
83 - 'header' => 'Pie chart', 83 + 'header' => \Yii::t('app', 'Pie chart'),
84 ] 84 ]
85 ) ?> 85 ) ?>
86 86
@@ -93,7 +93,7 @@ @@ -93,7 +93,7 @@
93 93
94 <?php $panel = Panel::begin( 94 <?php $panel = Panel::begin(
95 [ 95 [
96 - 'header' => 'Some stats', 96 + 'header' => \Yii::t('app', 'Some stats'),
97 ] 97 ]
98 ); ?> 98 ); ?>
99 99
@@ -105,16 +105,16 @@ @@ -105,16 +105,16 @@
105 ], 105 ],
106 'items' => [ 106 'items' => [
107 [ 107 [
108 - 'label' => 'Браузеры', 108 + 'label' => \Yii::t('app', 'Браузеры'),
109 'content' => '<div id="browsers"></div>', 109 'content' => '<div id="browsers"></div>',
110 'active' => true, 110 'active' => true,
111 ], 111 ],
112 [ 112 [
113 - 'label' => 'Города', 113 + 'label' => \Yii::t('app', 'Города'),
114 'content' => '<div id="cities"></div>', 114 'content' => '<div id="cities"></div>',
115 ], 115 ],
116 [ 116 [
117 - 'label' => 'Страны', 117 + 'label' => \Yii::t('app', 'Страны'),
118 'content' => '<div id="countries"></div>', 118 'content' => '<div id="countries"></div>',
119 ], 119 ],
120 ], 120 ],
backend/views/site/instruction.php
@@ -15,12 +15,12 @@ @@ -15,12 +15,12 @@
15 <div class="row"> 15 <div class="row">
16 <?php $panel = Panel::begin( 16 <?php $panel = Panel::begin(
17 [ 17 [
18 - 'header' => 'Инструкции', 18 + 'header' => \Yii::t('app', 'Инструкции'),
19 ] 19 ]
20 ) ?> 20 ) ?>
21 <div class="jumbotron"> 21 <div class="jumbotron">
22 - <h1>Hello, world!</h1>  
23 - <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p> 22 + <h1><?=\Yii::t('app', 'Hello, world!')?></h1>
  23 + <p><?=\Yii::t('app', '(подпись для приветствия)')?></p>
24 </div> 24 </div>
25 <?php $panel::end(); ?> 25 <?php $panel::end(); ?>
26 </div> 26 </div>
backend/views/site/login.php
@@ -48,7 +48,7 @@ JS; @@ -48,7 +48,7 @@ JS;
48 <div class="x_title"> 48 <div class="x_title">
49 <h1><?= Html::encode($this->title) ?></h1> 49 <h1><?= Html::encode($this->title) ?></h1>
50 50
51 - <p>Пожалуйста, заполните все поля для входа:</p> 51 + <p><?=\Yii::t('app', 'Пожалуйста, заполните все поля для входа:')?></p>
52 </div> 52 </div>
53 <div class="row"> 53 <div class="row">
54 <div> 54 <div>
common/messages/ru/app.php
@@ -22,4 +22,18 @@ @@ -22,4 +22,18 @@
22 'Email' => 'Email', 22 'Email' => 'Email',
23 'Text' => 'Текст сообщения', 23 'Text' => 'Текст сообщения',
24 'Comment posted' => 'Ваш комментарий появится после проверки модератором', 24 'Comment posted' => 'Ваш комментарий появится после проверки модератором',
  25 + 'Hello, world!' => 'Добро пожаловать!',
  26 + 'Create Feedback' => 'Добавить отзыв',
  27 + 'Feedbacks' => 'Отзывы',
  28 + 'Search' => 'Поиск',
  29 + 'Reset' => 'Сброс',
  30 + 'Create' => 'Создать',
  31 + 'Update' => 'Обновить',
  32 + '(подпись для просмотра страниц)' => '',
  33 + '(подпись для новых сессий)' => '',
  34 + '(подпись для пользователей)' => '',
  35 + '(подпись для сессий)' => '',
  36 + '(подпись для приветствия)' => '',
  37 + 'Success' => 'Сообщение отправлено!',
  38 + 'Success Text' => 'Спасибо, мы свяжемся с вами в ближайшее время.',
25 ]; 39 ];
26 \ No newline at end of file 40 \ No newline at end of file
common/messages/ua/app.php 0 → 100644
  1 +<?php
  2 + return [
  3 + 'Home' => 'Головна',
  4 + 'Submit' => 'Застосувати',
  5 + 'Save' => 'Зберегти',
  6 + 'Company name' => 'Назва компанії',
  7 + 'Profile' => 'Профіль',
  8 + 'Host' => 'Сервер',
  9 + 'User' => 'Логін',
  10 + 'Pass' => 'Пароль',
  11 + 'Create Page' => 'Створити сторінку',
  12 + 'Add' => 'Додати',
  13 + 'Blog Articles' => 'Список статей',
  14 + 'Anonymous' => 'Анонім',
  15 + 'Create {modelClass}: ' => 'Створити {modelClass}: ',
  16 + 'Update {modelClass}: ' => 'Оновити {modelClass}: ',
  17 + 'Delete' => 'Видалити',
  18 + 'Are you sure you want to delete this item?' => 'Ви впевнені, що хочете видалити цей елемент?',
  19 + 'Settings' => 'Налаштування',
  20 + 'Submit comment' => 'Надіслати коментар',
  21 + 'Username' => 'Ім\'я',
  22 + 'Email' => 'Email',
  23 + 'Text' => 'Текст повідомлення',
  24 + 'Comment posted' => 'Ваш коментар буде опубліковано після перевірки модератором',
  25 + 'Hello, world!' => 'Вітаємо!',
  26 + 'Create Feedback' => 'Додати відгук',
  27 + 'Feedbacks' => 'Відгуки',
  28 + 'Search' => 'Пошук',
  29 + 'Reset' => 'Скинути',
  30 + 'Create' => 'Створити',
  31 + 'Update' => 'Оновити',
  32 + '(подпись для просмотра страниц)' => '',
  33 + '(подпись для новых сессий)' => '',
  34 + '(подпись для пользователей)' => '',
  35 + '(подпись для сессий)' => '',
  36 + '(подпись для приветствия)' => '',
  37 + 'Success' => 'Повідомлення надіслано!',
  38 + 'Success Text' => 'Дякуємо, ми вам зателефонуємо найближчим часом.',
  39 + 'Читать далее' => 'Читати далі',
  40 + 'комментариев' => 'коментарів',
  41 + 'Связаться с нами ' => 'Зв\'язатися з нами ',
  42 + ' или ' => ' або ',
  43 + 'Обратная связь' => 'Зворотній зв\'язок',
  44 + ];
0 \ No newline at end of file 45 \ No newline at end of file
common/messages/ua/artbox-comment.php 0 → 100644
  1 +<?php
  2 +return [
  3 + 'Guest' => 'Гость',
  4 + 'Comment posted' => 'Ваш комментарий появится после проверки модератором',
  5 +];
0 \ No newline at end of file 6 \ No newline at end of file
common/messages/ua/blog.php 0 → 100644
  1 +<?php
  2 +return [
  3 + 'Tags' => 'Теги',
  4 + 'Create Blog Article' => 'Создать статью',
  5 + 'Blog Articles' => 'Список статей',
  6 + 'create_item' => 'Создать',
  7 + 'Categories' => 'Категории',
  8 + 'Not active' => 'Не активна',
  9 + 'Active' => 'Активна',
  10 + 'Update Blog Article: ' => 'Обновить статью: ',
  11 + 'Update' => 'Обновить',
  12 + 'Delete' => 'Удалить',
  13 + 'Create' => 'Создать',
  14 + 'Comment posted' => 'Ваш комментарий появится после проверки модератором',
  15 +];
0 \ No newline at end of file 16 \ No newline at end of file
common/messages/ua/core.php 0 → 100644
  1 +<?php
  2 +return [
  3 + 'Home' => 'Головна',
  4 + 'Submit' => 'Застосувати',
  5 + 'Save' => 'Зберегти',
  6 + 'Company name' => 'Назва компанії',
  7 + 'Old password' => 'Старий пароль',
  8 + 'New password' => 'Новий пароль',
  9 + 'New password repeat' => 'Повторити новий пароль',
  10 + 'Profile information' => 'Інформація про профіль',
  11 + 'Personal information' => 'Персональна інформація',
  12 + 'Change password' => 'Змінити пароль',
  13 + 'Name' => 'Ім\'я',
  14 + 'Surname' => 'Прізвище',
  15 + 'Profile' => 'Профіль',
  16 + 'Settings' => 'Налаштування',
  17 + 'Company logo' => 'Логотип компанії',
  18 + 'About us' => 'Про компанію',
  19 + 'Phone' => 'Телефон',
  20 + 'Additional phone' => 'Додатковий телефон',
  21 + 'House' => 'Дом',
  22 + 'Street' => 'Вулиця',
  23 + 'Office' => 'Офіс',
  24 + 'City' => 'Місто',
  25 + 'Country' => 'Країна',
  26 + 'Latitude' => 'Широта',
  27 + 'Longitude' => 'Довгота',
  28 + 'Google Analytics Key' => 'Код Google Analytics',
  29 + 'Pages' => 'Сторінки',
  30 + 'Create Page' => 'Створити сторінку',
  31 + 'Categories' => 'Категорії',
  32 + 'Search for a categories ...' => 'Пошук за категоріями',
  33 + 'Update' => 'Оновити',
  34 + 'Search' => 'Знайти',
  35 + 'Reset' => 'Скинути',
  36 + 'Gallery' => 'Галерея',
  37 + 'Add' => 'Додати',
  38 + 'Common' => 'Загальне',
  39 + 'Title' => 'Заголовок',
  40 + 'Body' => 'Тіло',
  41 + 'Aliases' => 'Псевдоніми',
  42 + 'Route' => 'Шлях',
  43 + 'Value' => 'Значення',
  44 + 'Google analytics code' => 'Код Google аналитики',
  45 + 'Yandex metrics code' => 'Код Яндекс метрики',
  46 + 'Tag Manager code' => 'Код Tag Manager',
  47 + 'Sitemap' => 'Мапа сайта',
  48 + 'Blog Articles' => 'Список статей',
  49 + 'Anonymous' => 'Анонім',
  50 + 'User ID' => 'ID користувача',
  51 + 'Image' => 'Зображення',
  52 + 'Email' => 'Email',
  53 + 'Created At' => 'Створено',
  54 + 'Updated At' => 'Оновлено',
  55 + 'Visited At' => 'Останній візит',
  56 + 'page_id' => 'ID сторінки',
  57 + 'Create {item}' => 'Створити {item}',
  58 + 'name' => 'Ім\'я',
  59 + 'email' => 'Email',
  60 + 'phone' => 'Номер телефону',
  61 + 'message' => 'Повідомлення',
  62 + 'Comment posted' => 'Ваш комментар буде опубліковано після перевірки модератором.',
  63 + 'date' => 'Дата',
  64 + 'service' => 'Послуга',
  65 + 'time' => 'Час',
  66 +];
0 \ No newline at end of file 67 \ No newline at end of file
frontend/controllers/SiteController.php
@@ -163,16 +163,15 @@ @@ -163,16 +163,15 @@
163 ->send(); 163 ->send();
164 164
165 $alert = "<div class=\"alert alert-success\"> 165 $alert = "<div class=\"alert alert-success\">
166 - <h3>Success</h3>  
167 - <p>  
168 - Success text  
169 - </p> 166 + <h3>".\Yii::t('app', 'Success')."</h3>
  167 + <p style='margin-bottom: 15px;'>".\Yii::t('app', 'Success Text')."</p>
170 </div>"; 168 </div>";
171 169
172 return [ 170 return [
173 'success' => true, 171 'success' => true,
174 'message' => 'Success message', 172 'message' => 'Success message',
175 'alert' => $alert, 173 'alert' => $alert,
  174 + 'type' => $type,
176 ]; 175 ];
177 } else { 176 } else {
178 Yii::$app->response->setStatusCode(500); 177 Yii::$app->response->setStatusCode(500);
frontend/views/blog/_article.php
@@ -64,7 +64,7 @@ @@ -64,7 +64,7 @@
64 } else { 64 } else {
65 echo '0'; 65 echo '0';
66 } 66 }
67 - ?> комментариев</a> 67 + ?> <?=\Yii::t('app', 'комментариев')?></a>
68 </p> 68 </p>
69 </div> 69 </div>
70 </div> 70 </div>
@@ -93,6 +93,6 @@ @@ -93,6 +93,6 @@
93 'blog/article', 93 'blog/article',
94 'alias' => $model->lang->alias, 94 'alias' => $model->lang->alias,
95 ] 95 ]
96 - ) ?>" class="btn btn-template-main">Читать далее</a> 96 + ) ?>" class="btn btn-template-main"><?=\Yii::t('app', 'Читать далее')?></a>
97 </p> 97 </p>
98 </section> 98 </section>
frontend/views/layouts/main.php
@@ -93,28 +93,40 @@ JS; @@ -93,28 +93,40 @@ JS;
93 <link type="image/x-icon" href="/img/favicon.ico" rel="icon"> 93 <link type="image/x-icon" href="/img/favicon.ico" rel="icon">
94 <title><?= Html::encode($seo->title) ?></title> 94 <title><?= Html::encode($seo->title) ?></title>
95 <?php $this->head() ?> 95 <?php $this->head() ?>
  96 +
  97 +
  98 + <!-- Google Tag Manager -->
  99 + <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  100 + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  101 + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  102 + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  103 + })(window,document,'script','dataLayer','GTM-M6MFXLM');</script>
  104 + <!-- End Google Tag Manager -->
  105 +
  106 + <!-- Global site tag (gtag.js) - Google Analytics -->
  107 + <?php if (!empty($settings->ga_code)) { ?>
  108 + <script async src="https://www.googletagmanager.com/gtag/js?id=UA-109405172-1"></script>
  109 + <script>
  110 + window.dataLayer = window.dataLayer || [];
  111 + function gtag(){dataLayer.push(arguments);}
  112 + gtag('js', new Date());
  113 +
  114 + gtag('config', '<?=$settings->ga_code?>');
  115 + </script>
  116 + <?php } ?>
  117 +
  118 +
96 </head> 119 </head>
97 <body> 120 <body>
98 <?php $this->beginBody() ?> 121 <?php $this->beginBody() ?>
99 - <!-- Google Analytics -->  
100 - <?php if (!empty($settings->ga_code)) { ?>  
101 - <script>  
102 - (function(i, s, o, g, r, a, m) {  
103 - i[ 'GoogleAnalyticsObject' ] = r;  
104 - i[ r ] = i[ r ] || function() {  
105 - (i[ r ].q = i[ r ].q || []).push(arguments)  
106 - }, i[ r ].l = 1 * new Date();  
107 - a = s.createElement(o), m = s.getElementsByTagName(o)[ 0 ];  
108 - a.async = 1;  
109 - a.src = g;  
110 - m.parentNode.insertBefore(a, m)  
111 - })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');  
112 122
113 - ga('create', '<?=$settings->ga_code?>', 'auto');  
114 - ga('send', 'pageview');  
115 -  
116 - </script>  
117 - <?php } ?> 123 +
  124 + <!-- Google Tag Manager (noscript) -->
  125 + <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M6MFXLM"
  126 + height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  127 + <!-- End Google Tag Manager (noscript) -->
  128 +
  129 +
118 <div id="all"> 130 <div id="all">
119 <header> 131 <header>
120 <!-- *** TOP *** 132 <!-- *** TOP ***
@@ -352,7 +364,7 @@ _________________________________________________________ --&gt; @@ -352,7 +364,7 @@ _________________________________________________________ --&gt;
352 364
353 <form class="navbar-form" role="search"> 365 <form class="navbar-form" role="search">
354 <div class="input-group"> 366 <div class="input-group">
355 - <input type="text" class="form-control" placeholder="Поиск"> 367 + <input type="text" class="form-control" placeholder="<?=\Yii::t('app', 'Поиск')?>">
356 <span class="input-group-btn"> 368 <span class="input-group-btn">
357 369
358 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button> 370 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
@@ -383,7 +395,7 @@ _________________________________________________________ --&gt; @@ -383,7 +395,7 @@ _________________________________________________________ --&gt;
383 <div class="forms_wr_"> 395 <div class="forms_wr_">
384 <div class="modal-header"> 396 <div class="modal-header">
385 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button> 397 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
386 - <div class="modal-title" id="Login">Обратная связь</div> 398 + <div class="modal-title" id="Login"><?=\Yii::t('app', 'Обратная связь')?></div>
387 </div> 399 </div>
388 <div class="modal-body"> 400 <div class="modal-body">
389 401
@@ -418,7 +430,7 @@ _________________________________________________________ --&gt; @@ -418,7 +430,7 @@ _________________________________________________________ --&gt;
418 ] 430 ]
419 ) 431 )
420 ->label( 432 ->label(
421 - "Имя" 433 + \Yii::t('app', 'Имя')
422 ); 434 );
423 435
424 echo $formAppointment->field( 436 echo $formAppointment->field(
@@ -439,7 +451,7 @@ _________________________________________________________ --&gt; @@ -439,7 +451,7 @@ _________________________________________________________ --&gt;
439 ] 451 ]
440 ) 452 )
441 ->label( 453 ->label(
442 - "Номер телефона" 454 + \Yii::t('app', 'Номер телефона')
443 ); 455 );
444 456
445 echo $formAppointment->field( 457 echo $formAppointment->field(
@@ -460,7 +472,7 @@ _________________________________________________________ --&gt; @@ -460,7 +472,7 @@ _________________________________________________________ --&gt;
460 ] 472 ]
461 ) 473 )
462 ->label( 474 ->label(
463 - "Дата" 475 + \Yii::t('app', 'Дата')
464 ); 476 );
465 echo "<div class=\"datepicker-wr\"> 477 echo "<div class=\"datepicker-wr\">
466 <div id=\"datepicker\"></div> 478 <div id=\"datepicker\"></div>
@@ -484,10 +496,10 @@ _________________________________________________________ --&gt; @@ -484,10 +496,10 @@ _________________________________________________________ --&gt;
484 ] 496 ]
485 ) 497 )
486 ->label( 498 ->label(
487 - "Время" 499 + \Yii::t('app', 'Время')
488 ); 500 );
489 501
490 - $serviceItems = [ "Услуга не выбрана" => "Выберите услугу"]; 502 + $serviceItems = [ \Yii::t('app', "Услуга не выбрана") => \Yii::t('app', "Выберите услугу")];
491 foreach ($pageCategories as $pageCategory){ 503 foreach ($pageCategories as $pageCategory){
492 /** 504 /**
493 * @var PageCategory $pageCategory 505 * @var PageCategory $pageCategory
@@ -522,7 +534,7 @@ _________________________________________________________ --&gt; @@ -522,7 +534,7 @@ _________________________________________________________ --&gt;
522 $serviceItems, 534 $serviceItems,
523 [ 535 [
524 'options' => [ 536 'options' => [
525 - "Услуга не выбрана" => [ 537 + \Yii::t('app', "Услуга не выбрана") => [
526 'disabled' => true, 538 'disabled' => true,
527 'selected' => true, 539 'selected' => true,
528 ] 540 ]
@@ -530,13 +542,13 @@ _________________________________________________________ --&gt; @@ -530,13 +542,13 @@ _________________________________________________________ --&gt;
530 ] 542 ]
531 ) 543 )
532 ->label( 544 ->label(
533 - "Услуга" 545 + \Yii::t('app', "Услуга")
534 ); 546 );
535 547
536 echo Html::tag( 548 echo Html::tag(
537 "p", 549 "p",
538 Html::button( 550 Html::button(
539 - "Отправить", 551 + \Yii::t('app', "Отправить"),
540 [ 552 [
541 'type' => "submit", 553 'type' => "submit",
542 'class' => "send-form btn btn-lg btn-template-primary" 554 'class' => "send-form btn btn-lg btn-template-primary"
@@ -565,7 +577,7 @@ _________________________________________________________ --&gt; @@ -565,7 +577,7 @@ _________________________________________________________ --&gt;
565 <div class="forms_wr_"> 577 <div class="forms_wr_">
566 <div class="modal-header"> 578 <div class="modal-header">
567 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button> 579 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
568 - <div class="modal-title" id="Login">Обратная связь</div> 580 + <div class="modal-title" id="Login"><?=\Yii::t('app', "Обратная связь")?></div>
569 </div> 581 </div>
570 <div class="modal-body"> 582 <div class="modal-body">
571 583
frontend/web/css/custom.css
@@ -324,6 +324,10 @@ input[type=&quot;text&quot;].form-control{ @@ -324,6 +324,10 @@ input[type=&quot;text&quot;].form-control{
324 } 324 }
325 .price-page{ 325 .price-page{
326 margin-bottom: 50px; 326 margin-bottom: 50px;
  327 + max-wdith:100%;
  328 +}
  329 +.price-page .tab-content .tab-pane .col-md-12{
  330 + max-width:100%;
327 } 331 }
328 .artbox_list_container .artbox_list_container{ 332 .artbox_list_container .artbox_list_container{
329 margin:25px 0px; 333 margin:25px 0px;
@@ -504,6 +508,12 @@ div.modal-title{ @@ -504,6 +508,12 @@ div.modal-title{
504 .pull-left{ 508 .pull-left{
505 margin-top: 15px; 509 margin-top: 15px;
506 } 510 }
  511 + #heading-breadcrumbs h1 {
  512 + text-align: center;
  513 + max-width: 100%;
  514 + word-wrap: break-word;
  515 + font-size: 28px;
  516 + }
507 } 517 }
508 518
509 @media (max-width: 767px) { 519 @media (max-width: 767px) {
@@ -549,4 +559,18 @@ div.modal-title{ @@ -549,4 +559,18 @@ div.modal-title{
549 h1, .header-kristal .container h1{font-size: 30px;} 559 h1, .header-kristal .container h1{font-size: 30px;}
550 .header-kristal .container .header-text-right{font-size:18px;} 560 .header-kristal .container .header-text-right{font-size:18px;}
551 .jumbotron p{font-size:16px;} 561 .jumbotron p{font-size:16px;}
  562 +
  563 + .price-page .tab-content .tab-pane .col-md-12{
  564 + overflow: scroll;
  565 + max-height: calc(100vh - 100px);
  566 + }
  567 + #back-to-top{
  568 + width: 45px;
  569 + height: 45px;
  570 + font-size: 22px;
  571 + line-height: 37px;
  572 + padding-left: 1px;
  573 + right: 25px;
  574 + bottom: 25px;
  575 + }
552 } 576 }
553 \ No newline at end of file 577 \ No newline at end of file
frontend/web/js/modal.js
@@ -59,6 +59,10 @@ $( @@ -59,6 +59,10 @@ $(
59 data: formData, 59 data: formData,
60 success: function(data) { 60 success: function(data) {
61 f.reset(); 61 f.reset();
  62 + if (data.type == 'appointment') {
  63 + console.log('appointment submitted');
  64 + dataLayer.push({'event': 'mainFormSub'});
  65 + }
62 // form.replaceWith(data.alert) 66 // form.replaceWith(data.alert)
63 // $(".modal-dialog").append(data.alert); 67 // $(".modal-dialog").append(data.alert);
64 // setTimeout(function(){location.reload()}, 5000); 68 // setTimeout(function(){location.reload()}, 5000);
@@ -66,8 +70,7 @@ $( @@ -66,8 +70,7 @@ $(
66 $(".success_").animate({opacity: 1, top: '40'}, 200).addClass("done_"); 70 $(".success_").animate({opacity: 1, top: '40'}, 200).addClass("done_");
67 setTimeout(function(){$(".success_").animate({opacity: 0, top: '0'}, 200,function(){ 71 setTimeout(function(){$(".success_").animate({opacity: 0, top: '0'}, 200,function(){
68 $(this).removeClass("done_"); 72 $(this).removeClass("done_");
69 - })}, 4000);  
70 - 73 + })}, 4000)
71 }, 74 },
72 error: function() { 75 error: function() {
73 76
frontend/web/robots.txt 100644 → 100755
1 -User-agent: Google  
2 -Disallow: 123423413 1 +User-agent: *
  2 +Disallow: /en/
  3 +Disallow: /ua/
  4 +Host: https://kristal-estet.com/
  5 +Sitemap: https://kristal-estet.com/sitemap.xml