Ned Zimmerman
7 years ago
13 changed files with 198 additions and 91 deletions
@ -1,22 +1,27 @@ |
|||||||
<div class="block latest-books"> |
<div class="block latest-books w-100"> |
||||||
<div class="inside"> |
<div class="inside"> |
||||||
<h3>{{ $latest_books_title }}</h3> |
<h3 class="tc ttu">{{ $latest_books_title }}</h3> |
||||||
<div class="books"> |
<div class="books flex flex-column justify-center flex-row-m justify-between-m" data-total-pages="{{ $total_pages }}" data-next-page="2"> |
||||||
@foreach( FrontPage::latestBooks( $current_page ) as $book ) |
@foreach(FrontPage::latestBooks( $current_page, 3 ) as $book) |
||||||
<div class="book"> |
<div class="book w-100"> |
||||||
<a class="subject" href="">Fiction</a> |
<p class="subject tc ma0"> |
||||||
<a class="title" href="{{ $book['link'] }}">{{ $book['metadata']['name'] }}</a> |
<a href="">Fiction</a> |
||||||
<a class="read-more" href="{{ $book['link'] }}">{{ __('About this book →', 'aldine') }}</a> |
</p> |
||||||
|
<p class="title tc ma0"> |
||||||
|
<a href="{{ $book['link'] }}">{{ $book['metadata']['name'] }}</a> |
||||||
|
</p> |
||||||
|
<p class="read-more tl ma0"> |
||||||
|
<a href="{{ $book['link'] }}">{{ __('About this book →', 'aldine') }}</a> |
||||||
|
</p> |
||||||
</div> |
</div> |
||||||
@endforeach |
@endforeach |
||||||
</div> |
</div> |
||||||
<nav class="navigation mt2" data-total="{{ $total_pages }}"> |
<nav class="navigation flex flex-row justify-between mt2 tr" data-total="{{ $total_pages }}"> |
||||||
@if($previous_page) |
<a class="previous f1 @if(!$previous_page) slick-disabled @endif" data-page="{{ $previous_page }}" href="{{ network_home_url("/page/$previous_page/") }}">←</a> |
||||||
<a class="previous f1" data-page="{{ $previous_page }}" href="{{ network_home_url("/page/$previous_page/") }}">←</a> |
|
||||||
@endif |
|
||||||
@if($next_page) |
|
||||||
<a class="next f1" data-page="{{ $next_page }}" href="{{ network_home_url("/page/$next_page/") }}">→</a> |
<a class="next f1" data-page="{{ $next_page }}" href="{{ network_home_url("/page/$next_page/") }}">→</a> |
||||||
@endif |
|
||||||
</nav> |
</nav> |
||||||
|
<div class="catalog-link tc"> |
||||||
|
<a class="button button-outline button-wide" href="{{ network_home_url('/catalog/') }}">{{ __('View Complete Catalog', 'aldine') }}</a> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue