<?php
namespace Croogo\Blocks\Config;
use Croogo\Core\Nav;
Nav::add('sidebar', 'blocks', [
'icon' => 'columns',
'title' => __d('croogo', 'Blocks'),
'url' => [
'prefix' => 'admin',
'plugin' => 'Croogo/Blocks',
'controller' => 'Blocks',
'action' => 'index',
],
'weight' => 30,
'children' => [
'blocks' => [
'title' => __d('croogo', 'Blocks'),
'url' => [
'prefix' => 'admin',
'plugin' => 'Croogo/Blocks',
'controller' => 'Blocks',
'action' => 'index',
],
],
'regions' => [
'title' => __d('croogo', 'Regions'),
'url' => [
'prefix' => 'admin',
'plugin' => 'Croogo/Blocks',
'controller' => 'Regions',
'action' => 'index',
],
],
],
]);