From 78254e6c05babc84f6d1f04c8ca0a2f47849a7b6 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Thu, 5 Jul 2018 11:49:16 +0300 Subject: [PATCH] add alt and title to image --- frontend/views/book/_book.php | 4 ++-- frontend/views/book/view.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/views/book/_book.php b/frontend/views/book/_book.php index 939001e..e0af7b0 100644 --- a/frontend/views/book/_book.php +++ b/frontend/views/book/_book.php @@ -8,9 +8,9 @@
image !== null){?> - + <?=$model->title.' - '.$model->author->name.' '.$model->author->secondname?> - + <?=$model->title.' - '.$model->author->name.' '.$model->author->secondname?>
diff --git a/frontend/views/book/view.php b/frontend/views/book/view.php index d35b308..50dcfea 100644 --- a/frontend/views/book/view.php +++ b/frontend/views/book/view.php @@ -73,10 +73,10 @@ $this->registerJs($js, View::POS_READY);
image !== null){?>
- id.'/'.$model->image)->cropResize(262, 390)->renderImage()?> + id.'/'.$model->image)->cropResize(262, 390)->renderImage([ 'alt'=> $model->title.' - '.$model->author->name.' '.$model->author->secondname, 'title' => $model->title.' - '.$model->author->name.' '.$model->author->secondname])?>
- + <?=$model->title.' - '.$model->author->name.' '.$model->author->secondname?>
-- libgit2 0.21.4