Commit 555c4968f3cdf929c139ff051f89ec557efbc894

Authored by alex
1 parent a4ffeabb

Изменил фото и надпись для "Наши партнеры" в site/index

common/messages/en/app.php
... ... @@ -40,6 +40,10 @@
40 40 'Читать далее' => 'Read more',
41 41 'Close' => 'Close',
42 42  
  43 + 'Our parthners' => 'Our parthners',
  44 +
  45 +
  46 +
43 47 'Artbox about' =>'Openeurope is your reliable partner in Europe.
44 48 Openeurope (in Lithuanian - Atvira Europa) is a non-profit public organization.
45 49 The organization\'s goal is to create and support economic and cultural ties between Lithuania, as well as other countries of Europe, and the CIS countries.
... ...
common/messages/ru/app.php
1 1 <?php
2 2 return [
3   - 'Home' => 'Главная',
4   - 'Contacts' => 'Контакты',
  3 +
  4 + 'Blog' => 'Блог',
  5 + 'Company Blog' => 'Блог компании',
  6 +
  7 + 'Home' => 'Главная',
  8 + 'Contacts' => 'Контакты',
5 9 'About' => 'О нас',
6   - 'Blog' => 'Блог',
  10 +
7 11 'Events' => 'Мероприятия',
8 12 'You question' => 'Сообщение',
9 13 'Contact us!' => 'Свяжитесь с нами',
... ... @@ -13,7 +17,7 @@ return [
13 17 'News' => 'Новости',
14 18 'Media' => 'Медиа',
15 19 'More' => 'Подробнее',
16   - 'Company Blog' => 'Блог компании',
  20 +
17 21 'Close' => 'Закрыть',
18 22 'Name' => 'Имя',
19 23 'Phone' => 'Телефон',
... ... @@ -27,17 +31,25 @@ return [
27 31 'Without category' =>'Без категории',
28 32 'No results found' =>'Ничего не найдено',
29 33 'Form sends success Header' => 'Форма успешно отправлена ',
30   - 'Our advantages' => 'Наши преимущества',
  34 +
  35 +
  36 + 'Our advantages' => 'Наши преимущества',
31 37 'Our clients' =>'Наши клиенты',
  38 + 'Our parthners' => 'Наши партнёры',
  39 + 'Empty dataProvider' => 'Ничего не найдено',
  40 +
  41 +
  42 +
32 43 'Send' => 'Отправить',
  44 + '<i class="fa fa-envelope-o"></i>Send Message' => 'Отправить сообщение',
33 45 'Empty field' => 'Поле является обязательным для заполнения',
34 46 "Search" => 'Поиск',
35 47 'Search by tag' => 'Поиск по тегам',
36 48 "Search by article" => 'Поиск по статьям',
37 49 'Wrong email' => 'Поле Email не валидное',
38 50 'Message' => 'Сообщение',
39   - '<i class="fa fa-envelope-o"></i>Send Message' => 'Отправить сообщение',
40   - 'Empty dataProvider' => 'Ничего не найдено',
  51 +
  52 +
41 53  
42 54  
43 55 'Artbox about' => 'Openeurope — Ваш надежный партнер в Европе.
... ...
common/messages/ua/app.php
... ... @@ -31,6 +31,7 @@ return [
31 31 'Close' => 'Закрити',
32 32 'Our advantages' => 'Наші переваги',
33 33 'Our clients' =>'Наші клієнти',
  34 + 'Our parthners' => 'Наші партнери',
34 35 'Empty dataProvider' => 'Нічого не знайдено',
35 36 'Search' =>'Пошук',
36 37 'Search by tag' => 'Пошук по тегам',
... ...
frontend/views/site/index.php
... ... @@ -7,6 +7,7 @@
7 7  
8 8 use artbox\core\helpers\ImageHelper;
9 9 use artbox\core\helpers\Url;
  10 + use frontend\widgets\ParthnersList;
10 11  
11 12 $this->title = 'My Yii Application';
12 13 ?>
... ... @@ -184,29 +185,10 @@ _________________________________________________________ --&gt;
184 185 <div class="row">
185 186 <div class="col-md-12">
186 187 <div class="heading text-center">
187   - <h2><?=\Yii::t('app','Our clients');?></h2>
  188 + <h2><?=\Yii::t('app','Our parthners');?></h2>
188 189 </div>
189   -
190   - <ul class="owl-carousel customers">
191   - <li class="item">
192   - <img src="/img/customer-1.png" alt="" class="img-responsive">
193   - </li>
194   - <li class="item">
195   - <img src="/img/customer-2.png" alt="" class="img-responsive">
196   - </li>
197   - <li class="item">
198   - <img src="/img/customer-3.png" alt="" class="img-responsive">
199   - </li>
200   - <li class="item">
201   - <img src="/img/customer-4.png" alt="" class="img-responsive">
202   - </li>
203   - <li class="item">
204   - <img src="/img/customer-5.png" alt="" class="img-responsive">
205   - </li>
206   - <li class="item">
207   - <img src="/img/customer-6.png" alt="" class="img-responsive">
208   - </li>
209   - </ul>
  190 +
  191 + <?=ParthnersList::widget(); ?>
210 192 <!-- /.owl-carousel -->
211 193 </div>
212 194  
... ... @@ -269,5 +251,6 @@ _________________________________________________________ --&gt;
269 251 </div>
270 252 <!-- /.container -->
271 253 </section>
  254 +
272 255 <?php }?>
273 256 <!-- /.bar -->
... ...
frontend/web/img/customer-1.png 100755 → 100644

23.7 KB | W: | H:

25.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
frontend/web/img/customer-10.png 0 → 100644

13.4 KB

frontend/web/img/customer-11.png 0 → 100644

16.5 KB

frontend/web/img/customer-2.jpg 0 → 100644

216 KB

frontend/web/img/customer-2.png renamed to frontend/web/img/customer-2_old.png

33.9 KB

frontend/web/img/customer-3.jpg 0 → 100644

14.3 KB

frontend/web/img/customer-3.png renamed to frontend/web/img/customer-3_old.png

13 KB

frontend/web/img/customer-4.png 100755 → 100644

18.9 KB | W: | H:

3.23 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
frontend/web/img/customer-5.jpeg 0 → 100644

17.6 KB

frontend/web/img/customer-5.png renamed to frontend/web/img/customer-5_old.png

46.1 KB

frontend/web/img/customer-6.jpeg 0 → 100644

30 KB

frontend/web/img/customer-6.png renamed to frontend/web/img/customer-6_old.png

46.5 KB

frontend/web/img/customer-7.png 0 → 100644

35.1 KB

frontend/web/img/customer-8.png 0 → 100644

51.1 KB

frontend/web/img/customer-9.jpg 0 → 100644

46.9 KB

frontend/widgets/ParthnersList.php 0 → 100644
  1 +<?php
  2 +//======================================================================================================================
  3 +//Виджет, который получает массив данных о партнёрах, и делает html код для карусели
  4 +
  5 +namespace frontend\widgets;
  6 +use yii\base\Widget;
  7 +
  8 +
  9 +
  10 +class ParthnersList extends Widget
  11 +{
  12 + public $filesList=[];
  13 + public $parthnersLinkList=[];
  14 + public function init()
  15 + {
  16 + parent::init();
  17 + #$this->filesList=preg_grep('$^customer-\d{1,3}\.(png|jpg|jpeg)$',scandir('../web/img',0));
  18 +
  19 + $this->filesList=[
  20 + ['Www.uspp.ua​','customer-1.png'],
  21 + ['http://kiev-chamber.org.ua','customer-2.jpg'],
  22 + ['www.traidenis.lt','customer-3.jpg'],
  23 + ['www.bod.lt','customer-4.png' ],
  24 + ['www.health.gov.ua','customer-5.jpeg'],
  25 + ['http://www.medved.kiev.ua ','customer-6.jpeg'],
  26 + ['http://www.unhpa.com.ua ','customer-7.png'],
  27 + ['https://ukrvodokanal.in.ua ','customer-8.png',],
  28 + ['http://soyuz-corp.com.ua ','customer-9.jpg',],
  29 + ['http://www.ltava.com.ua ','customer-10.png',],
  30 + ['http://ittf.kiev.ua ','customer-11.png'],
  31 + ];
  32 + }
  33 +
  34 +
  35 + public function run(){
  36 + parent::run();
  37 + return $this->render('_parthnerList',['data'=>$this->filesList]);
  38 + }
  39 +}
  40 +
... ...
frontend/widgets/views/_parthnerList.php 0 → 100644
  1 +<?php
  2 +/**
  3 + * @var $data frontend\widgets\ParthnersList
  4 + */
  5 +?>
  6 +
  7 +<ul class="owl-carousel customers">
  8 + <?php foreach ($data as $parthner):?>
  9 + <li class="item">
  10 + <a href="<?=$parthner[0];?>"><img src="/img/<?=$parthner[1];?>" alt="" class="img-responsive"></a>
  11 + </li>
  12 +<?php endforeach;?>
  13 + </ul>
0 14 \ No newline at end of file
... ...