From 149959cb886c07de93dcdf2bcaa78b03fe5d1924 Mon Sep 17 00:00:00 2001 From: dozer111 Date: Thu, 12 Jul 2018 16:35:20 +0300 Subject: [PATCH] Поменял логику работы виджета Parthenr 3 --- frontend/web/css/site.css | 3 ++- frontend/widgets/views/_parthnerList.php | 33 +++++++++++++-------------------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/frontend/web/css/site.css b/frontend/web/css/site.css index 4cd6281..38fdca7 100644 --- a/frontend/web/css/site.css +++ b/frontend/web/css/site.css @@ -122,4 +122,5 @@ a.desc:after { .image_figcapture { font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; -} \ No newline at end of file +} + diff --git a/frontend/widgets/views/_parthnerList.php b/frontend/widgets/views/_parthnerList.php index 90a2c25..1f5b81a 100644 --- a/frontend/widgets/views/_parthnerList.php +++ b/frontend/widgets/views/_parthnerList.php @@ -3,30 +3,23 @@ * @var $data frontend\widgets\ParthnersList */ +use common\models\Partner; use artbox\core\components\imagemanager\models\ImageManager; -use yii\helpers\Url; - +use artbox\core\components\imagemanager\components\ImageManagerGetPath; ?> \ No newline at end of file + +
  • + image->id); + $logo = $logo_img->getImagePathPrivate(); + $logo = stristr($logo, '/storage'); + if ($logo === false) $logo = '/img/no-image.png'; + ?> + +
  • + -- libgit2 0.21.4