diff --git a/common/models/Partner.php b/common/models/Partner.php
index b4ed42f..75a065b 100644
--- a/common/models/Partner.php
+++ b/common/models/Partner.php
@@ -3,6 +3,7 @@
namespace common\models;
use Yii;
+use artbox\core\components\imagemanager\models\ImageManager;
/**
* This is the model class for table "partner".
@@ -49,4 +50,13 @@ class Partner extends \yii\db\ActiveRecord
'link' => Yii::t('app', 'Link'),
];
}
+
+
+ public function getImage()
+ {
+ return $this->hasOne(ImageManager::className(),['id'=>'image_id']);
+ }
+
+
+
}
diff --git a/frontend/views/blog/index.php b/frontend/views/blog/index.php
index 1c8bc5b..8be6bd5 100755
--- a/frontend/views/blog/index.php
+++ b/frontend/views/blog/index.php
@@ -15,7 +15,7 @@
*/
$seo = \Yii::$app->get('seo');
- $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Blog');
+ $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'News');
?>
diff --git a/frontend/views/site/about.php b/frontend/views/site/about.php
index f57d48f..ad69440 100755
--- a/frontend/views/site/about.php
+++ b/frontend/views/site/about.php
@@ -9,7 +9,7 @@
* @var SeoComponent $seo
*/
$seo = \Yii::$app->get('seo');
- $this->params[ 'breadcrumbs' ][] = $seo->title;
+ $this->params[ 'breadcrumbs' ][] = \Yii::t('app','About');
?>
diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js
index ab411ac..03585bb 100755
--- a/frontend/web/js/script.js
+++ b/frontend/web/js/script.js
@@ -1,6 +1,6 @@
$(
function() {
- phoneMask('input[name="Feedback[phone]"]');
+ // phoneMask('input[name="Feedback[phone]"]');
// /**
// * Modal form submit code
// */
@@ -12,7 +12,7 @@ $(
// var formData = form.serialize();
// $.ajax(
// {
- // url: form.attr("action"),
+ // url: form.attr("action"),
// type: form.attr("method"),
// data: formData,
// success: function(data) {
diff --git a/frontend/widgets/ParthnersList.php b/frontend/widgets/ParthnersList.php
index 6e7a3e3..7b480f3 100644
--- a/frontend/widgets/ParthnersList.php
+++ b/frontend/widgets/ParthnersList.php
@@ -4,7 +4,7 @@
namespace frontend\widgets;
use yii\base\Widget;
-
+use common\models\Partner;
class ParthnersList extends Widget
@@ -15,20 +15,11 @@ class ParthnersList extends Widget
{
parent::init();
#$this->filesList=preg_grep('$^customer-\d{1,3}\.(png|jpg|jpeg)$',scandir('../web/img',0));
+ $this->filesList=Partner::find()
+ ->where(['status'=>true])
+ ->all();
+
- $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'],
- ];
}
diff --git a/frontend/widgets/views/_parthnerList.php b/frontend/widgets/views/_parthnerList.php
index d2d04d9..19185f4 100644
--- a/frontend/widgets/views/_parthnerList.php
+++ b/frontend/widgets/views/_parthnerList.php
@@ -2,12 +2,25 @@
/**
* @var $data frontend\widgets\ParthnersList
*/
+
+use artbox\core\components\imagemanager\models\ImageManager;
+
+
+
?>
+
+ image->fileName))
+ ?'/img/'.$parthner->image->fileName:'/img/no-image.png';
+ ?>
+
+
+
-
-
+
\ No newline at end of file
--
libgit2 0.21.4