ParthnersList.php 1.22 KB
<?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]);
	}
}