ParthnersList.php
1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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=[
['http://www.uspp.ua','customer-1.png'],
['http://kiev-chamber.org.ua','customer-2.jpg'],
['http://www.traidenis.lt','customer-3.jpg'],
['http://www.bod.lt','customer-4.png' ],
#['www.health.gov.ua','customer-5.jpeg'],
#['http://www.medved.kiev.ua ','customer-6.jpeg'],
['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]);
}
}