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 14 <tr>
15 15 <th>#</th>
16 16 <th><?= $name ?></th>
17   - <th>Сессии</th>
  17 + <th><?= \Yii::t('app', 'Сессии') ?></th>
18 18 </tr>
19 19 </thead>
20 20 <tbody>
... ...
backend/views/feedback/view.php
... ... @@ -8,11 +8,11 @@ use yii\widgets\DetailView;
8 8  
9 9 $this->title = $model->name;
10 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 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 17 <p>
18 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 202 <div class="title_right">
203 203 <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
204 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 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 208 </span>
209 209 </div>
210 210 </div>
... ...
backend/views/settings/_mail_tab.php
... ... @@ -11,10 +11,13 @@
11 11 */
12 12  
13 13 echo $form->field($mail, 'host')
14   - ->textInput();
  14 + ->textInput()
  15 + ->label(\Yii::t('app', 'Host'));
15 16  
16 17 echo $form->field($mail, 'user')
17   - ->textInput();
  18 + ->textInput()
  19 + ->label(\Yii::t('app', 'User'));
18 20  
19 21 echo $form->field($mail, 'pass')
20   - ->textInput();
21 22 \ No newline at end of file
  23 + ->textInput()
  24 + ->label(\Yii::t('app', 'Pass'));
22 25 \ No newline at end of file
... ...
backend/views/settings/settings.php
... ... @@ -13,7 +13,7 @@
13 13 use yii\web\View;
14 14 use yiister\gentelella\widgets\Panel;
15 15  
16   - $this->title = 'Settings';
  16 + $this->title = \Yii::t('app', 'Settings');
17 17  
18 18 $this->params[ 'breadcrumbs' ][] = $this->title;
19 19 ?>
... ...
backend/views/site/error.php
... ... @@ -22,10 +22,10 @@
22 22 </a>
23 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 29 </p>
30 30 </div>
31 31  
... ...
backend/views/site/gallery.php
... ... @@ -13,7 +13,7 @@
13 13  
14 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 9 use yii\web\View;
10 10 use yiister\gentelella\widgets\Panel;
11 11  
12   - $this->title = 'Artbox !';
  12 + $this->title = \Yii::t('app', 'Artbox !');
13 13  
14 14 AnalyticsAsset::register($this);
15 15 ?>
... ... @@ -23,8 +23,8 @@
23 23  
24 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 28 </div>
29 29 </div>
30 30 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
... ... @@ -34,8 +34,8 @@
34 34  
35 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 39 </div>
40 40 </div>
41 41 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
... ... @@ -45,8 +45,8 @@
45 45  
46 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 50 </div>
51 51 </div>
52 52 <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
... ... @@ -56,8 +56,8 @@
56 56  
57 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 61 </div>
62 62 </div>
63 63 </div>
... ... @@ -66,7 +66,7 @@
66 66 <div class="col-md-12">
67 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 80 <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
81 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 93  
94 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 105 ],
106 106 'items' => [
107 107 [
108   - 'label' => 'Браузеры',
  108 + 'label' => \Yii::t('app', 'Браузеры'),
109 109 'content' => '<div id="browsers"></div>',
110 110 'active' => true,
111 111 ],
112 112 [
113   - 'label' => 'Города',
  113 + 'label' => \Yii::t('app', 'Города'),
114 114 'content' => '<div id="cities"></div>',
115 115 ],
116 116 [
117   - 'label' => 'Страны',
  117 + 'label' => \Yii::t('app', 'Страны'),
118 118 'content' => '<div id="countries"></div>',
119 119 ],
120 120 ],
... ...
backend/views/site/instruction.php
... ... @@ -15,12 +15,12 @@
15 15 <div class="row">
16 16 <?php $panel = Panel::begin(
17 17 [
18   - 'header' => 'Инструкции',
  18 + 'header' => \Yii::t('app', 'Инструкции'),
19 19 ]
20 20 ) ?>
21 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 24 </div>
25 25 <?php $panel::end(); ?>
26 26 </div>
... ...
backend/views/site/login.php
... ... @@ -48,7 +48,7 @@ JS;
48 48 <div class="x_title">
49 49 <h1><?= Html::encode($this->title) ?></h1>
50 50  
51   - <p>Пожалуйста, заполните все поля для входа:</p>
  51 + <p><?=\Yii::t('app', 'Пожалуйста, заполните все поля для входа:')?></p>
52 52 </div>
53 53 <div class="row">
54 54 <div>
... ...
common/messages/ru/app.php
... ... @@ -22,4 +22,18 @@
22 22 'Email' => 'Email',
23 23 'Text' => 'Текст сообщения',
24 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 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 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 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 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 67 \ No newline at end of file
... ...
frontend/controllers/SiteController.php
... ... @@ -163,16 +163,15 @@
163 163 ->send();
164 164  
165 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 168 </div>";
171 169  
172 170 return [
173 171 'success' => true,
174 172 'message' => 'Success message',
175 173 'alert' => $alert,
  174 + 'type' => $type,
176 175 ];
177 176 } else {
178 177 Yii::$app->response->setStatusCode(500);
... ...
frontend/views/blog/_article.php
... ... @@ -64,7 +64,7 @@
64 64 } else {
65 65 echo '0';
66 66 }
67   - ?> комментариев</a>
  67 + ?> <?=\Yii::t('app', 'комментариев')?></a>
68 68 </p>
69 69 </div>
70 70 </div>
... ... @@ -93,6 +93,6 @@
93 93 'blog/article',
94 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 97 </p>
98 98 </section>
... ...
frontend/views/layouts/main.php
... ... @@ -93,28 +93,40 @@ JS;
93 93 <link type="image/x-icon" href="/img/favicon.ico" rel="icon">
94 94 <title><?= Html::encode($seo->title) ?></title>
95 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 119 </head>
97 120 <body>
98 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 130 <div id="all">
119 131 <header>
120 132 <!-- *** TOP ***
... ... @@ -352,7 +364,7 @@ _________________________________________________________ --&gt;
352 364  
353 365 <form class="navbar-form" role="search">
354 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 368 <span class="input-group-btn">
357 369  
358 370 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
... ... @@ -383,7 +395,7 @@ _________________________________________________________ --&gt;
383 395 <div class="forms_wr_">
384 396 <div class="modal-header">
385 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 399 </div>
388 400 <div class="modal-body">
389 401  
... ... @@ -418,7 +430,7 @@ _________________________________________________________ --&gt;
418 430 ]
419 431 )
420 432 ->label(
421   - "Имя"
  433 + \Yii::t('app', 'Имя')
422 434 );
423 435  
424 436 echo $formAppointment->field(
... ... @@ -439,7 +451,7 @@ _________________________________________________________ --&gt;
439 451 ]
440 452 )
441 453 ->label(
442   - "Номер телефона"
  454 + \Yii::t('app', 'Номер телефона')
443 455 );
444 456  
445 457 echo $formAppointment->field(
... ... @@ -460,7 +472,7 @@ _________________________________________________________ --&gt;
460 472 ]
461 473 )
462 474 ->label(
463   - "Дата"
  475 + \Yii::t('app', 'Дата')
464 476 );
465 477 echo "<div class=\"datepicker-wr\">
466 478 <div id=\"datepicker\"></div>
... ... @@ -484,10 +496,10 @@ _________________________________________________________ --&gt;
484 496 ]
485 497 )
486 498 ->label(
487   - "Время"
  499 + \Yii::t('app', 'Время')
488 500 );
489 501  
490   - $serviceItems = [ "Услуга не выбрана" => "Выберите услугу"];
  502 + $serviceItems = [ \Yii::t('app', "Услуга не выбрана") => \Yii::t('app', "Выберите услугу")];
491 503 foreach ($pageCategories as $pageCategory){
492 504 /**
493 505 * @var PageCategory $pageCategory
... ... @@ -522,7 +534,7 @@ _________________________________________________________ --&gt;
522 534 $serviceItems,
523 535 [
524 536 'options' => [
525   - "Услуга не выбрана" => [
  537 + \Yii::t('app', "Услуга не выбрана") => [
526 538 'disabled' => true,
527 539 'selected' => true,
528 540 ]
... ... @@ -530,13 +542,13 @@ _________________________________________________________ --&gt;
530 542 ]
531 543 )
532 544 ->label(
533   - "Услуга"
  545 + \Yii::t('app', "Услуга")
534 546 );
535 547  
536 548 echo Html::tag(
537 549 "p",
538 550 Html::button(
539   - "Отправить",
  551 + \Yii::t('app', "Отправить"),
540 552 [
541 553 'type' => "submit",
542 554 'class' => "send-form btn btn-lg btn-template-primary"
... ... @@ -565,7 +577,7 @@ _________________________________________________________ --&gt;
565 577 <div class="forms_wr_">
566 578 <div class="modal-header">
567 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 581 </div>
570 582 <div class="modal-body">
571 583  
... ...
frontend/web/css/custom.css
... ... @@ -324,6 +324,10 @@ input[type=&quot;text&quot;].form-control{
324 324 }
325 325 .price-page{
326 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 332 .artbox_list_container .artbox_list_container{
329 333 margin:25px 0px;
... ... @@ -504,6 +508,12 @@ div.modal-title{
504 508 .pull-left{
505 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 519 @media (max-width: 767px) {
... ... @@ -549,4 +559,18 @@ div.modal-title{
549 559 h1, .header-kristal .container h1{font-size: 30px;}
550 560 .header-kristal .container .header-text-right{font-size:18px;}
551 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 577 \ No newline at end of file
... ...
frontend/web/js/modal.js
... ... @@ -59,6 +59,10 @@ $(
59 59 data: formData,
60 60 success: function(data) {
61 61 f.reset();
  62 + if (data.type == 'appointment') {
  63 + console.log('appointment submitted');
  64 + dataLayer.push({'event': 'mainFormSub'});
  65 + }
62 66 // form.replaceWith(data.alert)
63 67 // $(".modal-dialog").append(data.alert);
64 68 // setTimeout(function(){location.reload()}, 5000);
... ... @@ -66,8 +70,7 @@ $(
66 70 $(".success_").animate({opacity: 1, top: '40'}, 200).addClass("done_");
67 71 setTimeout(function(){$(".success_").animate({opacity: 0, top: '0'}, 200,function(){
68 72 $(this).removeClass("done_");
69   - })}, 4000);
70   -
  73 + })}, 4000)
71 74 },
72 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
... ...