Commit bf6f3d0dcdd99f8b6048b9e15fa8326a3891dd8c

Authored by Anastasia
1 parent eec63d62

- avatar

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
frontend/views/book/view.php
... ... @@ -57,12 +57,16 @@
57 57 </div>
58 58 <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
59 59 <div class="style card-title"><?=$model->title?></div>
  60 +
60 61 <div class="style card-autor-wrapp">
  62 + <?php if (!empty($model->author->avatar)){?>
61 63 <div class="autor-img">
62   - <div><img src="/images/card/autor.jpg" alt=""></div>
  64 + <div><?=ImageHelper::set('@storage/author/'.$model->author->id.'/'.$model->author->avatar)->cropResize(84, 84)->renderImage()?></div>
63 65 </div>
  66 + <?php } ?>
64 67 <div class="autor-name"><?=$model->author->name?> <?=$model->author->secondname?></div>
65 68 </div>
  69 +
66 70 <div class="style card-btns-price-wr">
67 71 <?php if ($model->price == null){ ?>
68 72 <div>
... ...