Skip to content

Commit

Permalink
better fix for module image
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 3, 2017
1 parent b6023b2 commit b7eff98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/views/partials/modules/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
<div class="box-body text-center">
<a href="{{ url('apps/' . $module->slug) }}">
@foreach ($module->files as $file)
@if (($file->media_type != 'image') || ($file->pivot->zone != 'thumbnail'))
@php continue; @endphp
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="item-image">
@endif
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="item-image">
@endforeach
</a>
</div>
Expand Down

0 comments on commit b7eff98

Please sign in to comment.