mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 02:57:59 +08:00
261e57fc4e
Also cleaned up/moved new CSS and removed redundant new book methods.
18 lines
786 B
PHP
18 lines
786 B
PHP
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 book-grid-item" 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-grid-content">
|
|
<h2><a href="{{$book->getUrl()}}" title="{{$book->name}}" > {{$book->getShortName(35)}} </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> |