@ -1,48 +1,36 @@
@extends('layouts.app')
@section('content')
@debug('dump')
@if(is_active_sidebar('home-block-one') & & is_active_sidebar('home-block-two'))
< div class = "one-two" >
@endif
< div class = "block one" >
@if($block_count < 5 )
@for($i = 0; $i < $block_count; $i++)
< div class = "block block-{{ $i + 1 }}" >
< div class = "inside" >
@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
@php(dynamic_sidebar($home_blocks[$i]))
< / div >
< / div >
@if(is_active_sidebar('home-block-two'))
< div class = "block two" >
@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-block-two'))
@php(dynamic_sidebar($home_blocks[$i] ))
< / div >
< / div >
@endif
@if(is_active_sidebar('home-block-one') & & is_active_sidebar('home-block-two'))
@endfor
< / div >
@endif
@if(is_active_sidebar('home-block-three'))
< div class = "block three" >
@for($i = 2; $i < $block_count; $i++)
< div class = "block block-{{ $i + 1 }}" >
< div class = "inside" >
@php(dynamic_sidebar('home-block-three' ))
@php(dynamic_sidebar($home_blocks[$i] ))
< / 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" >
@endfor
@else
< div class = "block block-1" >
< div class = "inside" >
@php(dynamic_sidebar('home-block-five'))
< 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 >
< / div >
< / div >
@endif