Ned Zimmerman
7 years ago
1 changed files with 12 additions and 31 deletions
@ -1,37 +1,18 @@ |
|||||||
@extends('layouts.app') |
@extends('layouts.app') |
||||||
|
|
||||||
@section('content') |
@section('content') |
||||||
@if($block_count === 0) |
@include('partials.page-header') |
||||||
<div class="block block-1"> |
|
||||||
<div class="inside"> |
@if (!have_posts()) |
||||||
<h3>{{ __('About Pressbooks', 'aldine')}}</h3> |
<div class="alert alert-warning"> |
||||||
<p>{{ __('Pressbooks is easy-to-use book writing software that lets you create a book in all the formats you need to publish.', 'aldine')}}</p> |
{{ __('Sorry, no results were found.', 'sage') }} |
||||||
</div> |
|
||||||
</div> |
|
||||||
@elseif($block_count < 5) |
|
||||||
@for($i = 0; $i < $block_count; $i++) |
|
||||||
<div class="block block-{{ $i + 1 }}@if($latest_books_block === $home_blocks[$i]) latest-books @endif"> |
|
||||||
<div class="inside"> |
|
||||||
@php(dynamic_sidebar($home_blocks[$i])) |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
@endfor |
|
||||||
@elseif($block_count === 5) |
|
||||||
<div class="one-two"> |
|
||||||
@for($i = 0; $i < 2; $i++) |
|
||||||
<div class="block block-{{ $i + 1 }}@if($latest_books_block === $home_blocks[$i]) latest-books @endif"> |
|
||||||
<div class="inside"> |
|
||||||
@php(dynamic_sidebar($home_blocks[$i])) |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
@endfor |
|
||||||
</div> |
</div> |
||||||
@for($i = 2; $i < $block_count; $i++) |
{!! get_search_form(false) !!} |
||||||
<div class="block block-{{ $i + 1 }}@if($latest_books_block === $home_blocks[$i]) latest-books @endif"> |
|
||||||
<div class="inside"> |
|
||||||
@php(dynamic_sidebar($home_blocks[$i])) |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
@endfor |
|
||||||
@endif |
@endif |
||||||
|
|
||||||
|
@while (have_posts()) @php(the_post()) |
||||||
|
@include('partials.content-'.get_post_type()) |
||||||
|
@endwhile |
||||||
|
|
||||||
|
{!! get_the_posts_navigation() !!} |
||||||
@endsection |
@endsection |
||||||
|
Loading…
Reference in new issue