Blame view

frontend/widgets/ParthnersList.php 1.22 KB
555c4968   alex   Изменил фото и на...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <?php
  //======================================================================================================================
  //Виджет, который получает массив данных о партнёрах, и делает html код для карусели
  
  namespace frontend\widgets;
  use yii\base\Widget;
  
  
  
  class ParthnersList extends Widget
  {
  	public $filesList=[];
  	public $parthnersLinkList=[];
  	public function init()
  	{
  		parent::init();
  		#$this->filesList=preg_grep('$^customer-\d{1,3}\.(png|jpg|jpeg)$',scandir('../web/img',0));
  
  		$this->filesList=[
5086370d   alex   target blanc + ab...
20
  			['http://www.uspp.ua​','customer-1.png'],
555c4968   alex   Изменил фото и на...
21
  			['http://kiev-chamber.org.ua','customer-2.jpg'],
5086370d   alex   target blanc + ab...
22
23
  			['http://www.traidenis.lt','customer-3.jpg'],
  			['http://www.bod.lt','customer-4.png' ],
5b0d6c15   alex   Партнёры, последн...
24
25
  			#['www.health.gov.ua','customer-5.jpeg'],
  			#['http://www.medved.kiev.ua ','customer-6.jpeg'],
555c4968   alex   Изменил фото и на...
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  			['http://www.unhpa.com.ua ','customer-7.png'],
  			['https://ukrvodokanal.in.ua ','customer-8.png',],
  			['http://soyuz-corp.com.ua ','customer-9.jpg',],
  			['http://www.ltava.com.ua ','customer-10.png',],
  			['http://ittf.kiev.ua ','customer-11.png'],
  		];
  	}
  
  
  	public function run(){
  		parent::run();
  		return $this->render('_parthnerList',['data'=>$this->filesList]);
  	}
  }