Commit d2edc5606bcad56a1ff0af6cd402837f3f63dd79
1 parent
982c3376
- no book
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
frontend/views/book/_book.php
... | ... | @@ -9,7 +9,9 @@ |
9 | 9 | <div class="col-xs-12 col-sm-4 col-md-5 col-lg-6 books-wrapp-img"> |
10 | 10 | <?php if ($model->image !== null){?> |
11 | 11 | <img src="<?='/storage/books/'.$model->id.'/'.$model->image?>" alt=""> |
12 | - <?php } ?> | |
12 | + <?php }else{ ?> | |
13 | + <img src="<?='/storage/books/nobook_01.png'?>" alt=""> | |
14 | + <?php } ?> | |
13 | 15 | </div> |
14 | 16 | <div class="col-xs-12 col-sm-8 col-md-7 col-lg-6 books-wrapp-text"> |
15 | 17 | <div class="style books-title"><a href="<?=Url::to(['alias' => $model->alias])?>"><?=$model->title?></a></div> | ... | ... |
frontend/views/book/view.php
... | ... | @@ -47,6 +47,8 @@ |
47 | 47 | <div class="card-img"> |
48 | 48 | <?=ImageHelper::set('@storage/books/'.$model->id.'/'.$model->image)->cropResize(262, 390)->renderImage()?> |
49 | 49 | </div> |
50 | + <?php }else{ ?> | |
51 | + <img src="<?='/storage/books/nobook_01.png'?>" alt=""> | |
50 | 52 | <?php } ?> |
51 | 53 | </div> |
52 | 54 | <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4"> | ... | ... |