Commit 858c4bb2df9d84977bb53b78c06d31e75b71cd14

Authored by Eugeny Galkovskiy
1 parent 36d91802

google tag manager

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/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,6 +93,8 @@ JS; @@ -93,6 +93,8 @@ 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 +
96 <!-- Google Tag Manager --> 98 <!-- Google Tag Manager -->
97 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 99 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
98 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 100 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
@@ -100,6 +102,8 @@ JS; @@ -100,6 +102,8 @@ JS;
100 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 102 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
101 })(window,document,'script','dataLayer','GTM-M6MFXLM');</script> 103 })(window,document,'script','dataLayer','GTM-M6MFXLM');</script>
102 <!-- End Google Tag Manager --> 104 <!-- End Google Tag Manager -->
  105 +
  106 +
103 <!-- Google Analytics --> 107 <!-- Google Analytics -->
104 <?php if (!empty($settings->ga_code)) { ?> 108 <?php if (!empty($settings->ga_code)) { ?>
105 <script async src="https://www.googletagmanager.com/gtag/js?id=UA-109405172-1"></script> 109 <script async src="https://www.googletagmanager.com/gtag/js?id=UA-109405172-1"></script>
@@ -111,13 +115,19 @@ JS; @@ -111,13 +115,19 @@ JS;
111 gtag('config', '<?=$settings->ga_code?>'); 115 gtag('config', '<?=$settings->ga_code?>');
112 </script> 116 </script>
113 <?php } ?> 117 <?php } ?>
  118 +
  119 +
114 </head> 120 </head>
115 <body> 121 <body>
116 <?php $this->beginBody() ?> 122 <?php $this->beginBody() ?>
  123 +
  124 +
117 <!-- Google Tag Manager (noscript) --> 125 <!-- Google Tag Manager (noscript) -->
118 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M6MFXLM" 126 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M6MFXLM"
119 height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 127 height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
120 <!-- End Google Tag Manager (noscript) --> 128 <!-- End Google Tag Manager (noscript) -->
  129 +
  130 +
121 <div id="all"> 131 <div id="all">
122 <header> 132 <header>
123 <!-- *** TOP *** 133 <!-- *** TOP ***
@@ -355,7 +365,7 @@ _________________________________________________________ --&gt; @@ -355,7 +365,7 @@ _________________________________________________________ --&gt;
355 365
356 <form class="navbar-form" role="search"> 366 <form class="navbar-form" role="search">
357 <div class="input-group"> 367 <div class="input-group">
358 - <input type="text" class="form-control" placeholder="Поиск"> 368 + <input type="text" class="form-control" placeholder="<?=\Yii::t('app', 'Поиск')?>">
359 <span class="input-group-btn"> 369 <span class="input-group-btn">
360 370
361 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button> 371 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
@@ -386,7 +396,7 @@ _________________________________________________________ --&gt; @@ -386,7 +396,7 @@ _________________________________________________________ --&gt;
386 <div class="forms_wr_"> 396 <div class="forms_wr_">
387 <div class="modal-header"> 397 <div class="modal-header">
388 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button> 398 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
389 - <div class="modal-title" id="Login">Обратная связь</div> 399 + <div class="modal-title" id="Login"><?=\Yii::t('app', 'Обратная связь')?></div>
390 </div> 400 </div>
391 <div class="modal-body"> 401 <div class="modal-body">
392 402
@@ -421,7 +431,7 @@ _________________________________________________________ --&gt; @@ -421,7 +431,7 @@ _________________________________________________________ --&gt;
421 ] 431 ]
422 ) 432 )
423 ->label( 433 ->label(
424 - "Имя" 434 + \Yii::t('app', 'Имя')
425 ); 435 );
426 436
427 echo $formAppointment->field( 437 echo $formAppointment->field(
@@ -442,7 +452,7 @@ _________________________________________________________ --&gt; @@ -442,7 +452,7 @@ _________________________________________________________ --&gt;
442 ] 452 ]
443 ) 453 )
444 ->label( 454 ->label(
445 - "Номер телефона" 455 + \Yii::t('app', 'Номер телефона')
446 ); 456 );
447 457
448 echo $formAppointment->field( 458 echo $formAppointment->field(
@@ -463,7 +473,7 @@ _________________________________________________________ --&gt; @@ -463,7 +473,7 @@ _________________________________________________________ --&gt;
463 ] 473 ]
464 ) 474 )
465 ->label( 475 ->label(
466 - "Дата" 476 + \Yii::t('app', 'Дата')
467 ); 477 );
468 echo "<div class=\"datepicker-wr\"> 478 echo "<div class=\"datepicker-wr\">
469 <div id=\"datepicker\"></div> 479 <div id=\"datepicker\"></div>
@@ -487,10 +497,10 @@ _________________________________________________________ --&gt; @@ -487,10 +497,10 @@ _________________________________________________________ --&gt;
487 ] 497 ]
488 ) 498 )
489 ->label( 499 ->label(
490 - "Время" 500 + \Yii::t('app', 'Время')
491 ); 501 );
492 502
493 - $serviceItems = [ "Услуга не выбрана" => "Выберите услугу"]; 503 + $serviceItems = [ \Yii::t('app', "Услуга не выбрана") => \Yii::t('app', "Выберите услугу")];
494 foreach ($pageCategories as $pageCategory){ 504 foreach ($pageCategories as $pageCategory){
495 /** 505 /**
496 * @var PageCategory $pageCategory 506 * @var PageCategory $pageCategory
@@ -525,7 +535,7 @@ _________________________________________________________ --&gt; @@ -525,7 +535,7 @@ _________________________________________________________ --&gt;
525 $serviceItems, 535 $serviceItems,
526 [ 536 [
527 'options' => [ 537 'options' => [
528 - "Услуга не выбрана" => [ 538 + \Yii::t('app', "Услуга не выбрана") => [
529 'disabled' => true, 539 'disabled' => true,
530 'selected' => true, 540 'selected' => true,
531 ] 541 ]
@@ -533,13 +543,13 @@ _________________________________________________________ --&gt; @@ -533,13 +543,13 @@ _________________________________________________________ --&gt;
533 ] 543 ]
534 ) 544 )
535 ->label( 545 ->label(
536 - "Услуга" 546 + \Yii::t('app', "Услуга")
537 ); 547 );
538 548
539 echo Html::tag( 549 echo Html::tag(
540 "p", 550 "p",
541 Html::button( 551 Html::button(
542 - "Отправить", 552 + \Yii::t('app', "Отправить"),
543 [ 553 [
544 'type' => "submit", 554 'type' => "submit",
545 'class' => "send-form btn btn-lg btn-template-primary" 555 'class' => "send-form btn btn-lg btn-template-primary"
@@ -568,7 +578,7 @@ _________________________________________________________ --&gt; @@ -568,7 +578,7 @@ _________________________________________________________ --&gt;
568 <div class="forms_wr_"> 578 <div class="forms_wr_">
569 <div class="modal-header"> 579 <div class="modal-header">
570 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button> 580 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
571 - <div class="modal-title" id="Login">Обратная связь</div> 581 + <div class="modal-title" id="Login"><?=\Yii::t('app', "Обратная связь")?></div>
572 </div> 582 </div>
573 <div class="modal-body"> 583 <div class="modal-body">
574 584