@ -6,7 +6,7 @@ use Sober\Controller\Controller;
class Home extends Controller
{
function sidebar_count() {
function block_count() {
$c = 0;
foreach(['home-block-one', 'home-block-two', 'home-block-three', 'home-block-four', 'home-block-five'] as $block) {
if (is_active_sidebar($block)) {
@ -15,7 +15,6 @@
"watch": [
"app/**/*.php",
"config/**/*.php",
"resources/controllers/**/*.php",
"resources/views/**/*.php"
]
}
@ -1,8 +1,7 @@
@extends('layouts.app')
@section('content')
@debug('controller')
{{ $sidebar_count }}
@debug('dump')
@if(is_active_sidebar('home-block-one') && is_active_sidebar('home-block-two'))
<div class="one-two">
@endif