BookStack/resources/views/books/grid-item.blade.php
2017-09-04 20:27:52 +05:30

18 lines
786 B
PHP

<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 books-grid-div" data-entity-type="book" data-entity-id="{{$book->id}}">
<div class="featured-image-container">
<a href="{{$book->getUrl()}}" title="{{$book->name}}">
<img width="1600" height="900" src="{{$book->getBookCover()}}" alt="{{$book->name}}">
</a>
</div>
<div class="book-content">
<h2><a href="{{$book->getUrl()}}" title="{{$book->name}}" > {{$book->getHeadingExcerpt()}} </a></h2>
@if(isset($book->searchSnippet))
<p >{{!! $book->searchSnippet !!}}</p>
@else
<p >{{ $book->getExcerpt(130) }}</p>
@endif
<div >
<span>@include('partials.entity-meta', ['entity' => $book])</span>
</div>
</div>
</div>