Ned Zimmerman
7 years ago
8 changed files with 164 additions and 75 deletions
File diff suppressed because one or more lines are too long
@ -1,49 +1,37 @@ |
|||||||
@extends('layouts.app') |
@extends('layouts.app') |
||||||
|
|
||||||
@section('content') |
@section('content') |
||||||
@debug('dump') |
@if($block_count < 5) |
||||||
@if(is_active_sidebar('home-block-one') && is_active_sidebar('home-block-two')) |
@for($i = 0; $i < $block_count; $i++) |
||||||
<div class="one-two"> |
<div class="block block-{{ $i + 1 }}"> |
||||||
@endif |
<div class="inside"> |
||||||
<div class="block one"> |
@php(dynamic_sidebar($home_blocks[$i])) |
||||||
<div class="inside"> |
</div> |
||||||
@if(is_active_sidebar('home-block-one')) |
|
||||||
@php(dynamic_sidebar('home-block-one')) |
|
||||||
@else |
|
||||||
<h3>{{ __('About Pressbooks', 'pressbooks-aldine')}}</h3> |
|
||||||
<p>{{ __('Pressbooks is easy-to-use book writing software that lets you create a book in all the formats you need to publish.', 'pressbooks-aldine')}}</p> |
|
||||||
@endif |
|
||||||
</div> |
</div> |
||||||
|
@endfor |
||||||
|
@elseif($block_count === 5) |
||||||
|
<div class="one-two"> |
||||||
|
@for($i = 0; $i < 2; $i++) |
||||||
|
<div class="block block-{{ $i + 1 }}"> |
||||||
|
<div class="inside"> |
||||||
|
@php(dynamic_sidebar($home_blocks[$i])) |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
@endfor |
||||||
</div> |
</div> |
||||||
@if(is_active_sidebar('home-block-two')) |
@for($i = 2; $i < $block_count; $i++) |
||||||
<div class="block two"> |
<div class="block block-{{ $i + 1 }}"> |
||||||
<div class="inside"> |
<div class="inside"> |
||||||
@php(dynamic_sidebar('home-block-two')) |
@php(dynamic_sidebar($home_blocks[$i])) |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
@endif |
@endfor |
||||||
@if(is_active_sidebar('home-block-one') && is_active_sidebar('home-block-two')) |
@else |
||||||
</div> |
<div class="block block-1"> |
||||||
@endif |
<div class="inside"> |
||||||
@if(is_active_sidebar('home-block-three')) |
<h3>{{ __('About Pressbooks', 'pressbooks-aldine')}}</h3> |
||||||
<div class="block three"> |
<p>{{ __('Pressbooks is easy-to-use book writing software that lets you create a book in all the formats you need to publish.', 'pressbooks-aldine')}}</p> |
||||||
<div class="inside"> |
</div> |
||||||
@php(dynamic_sidebar('home-block-three')) |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
@endif |
|
||||||
@if(is_active_sidebar('home-block-four')) |
|
||||||
<div class="block four"> |
|
||||||
<div class="inside"> |
|
||||||
@php(dynamic_sidebar('home-block-four')) |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
@endif |
|
||||||
@if(is_active_sidebar('home-block-five')) |
|
||||||
<div class="block five"> |
|
||||||
<div class="inside"> |
|
||||||
@php(dynamic_sidebar('home-block-five')) |
|
||||||
</div> |
</div> |
||||||
</div> |
|
||||||
@endif |
@endif |
||||||
@endsection |
@endsection |
||||||
|
Loading…
Reference in new issue