<?php

BemmelhorNav::add('cms', array(
    'title' => __('Administration'),
    'url' => array(
        'plugin' => false,
        'admin' => true,
        'controller' => 'menus',
        'action' => 'index',
    ),
    'icon' => '',
    'weight' => 100,
    'children' => array(
        'list' => array(
            'title' => __('Postagens'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'nodes',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 10,
        ),
        'create' => array(
            'title' => __('Novo Post'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'nodes',
                'action' => 'create',
            ),
            'icon' => '',
            'weight' => 20,
        ),
        'comments' => array(
            'title' => __('Comentários'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'comments',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 50,
        ),
        'media' => array(
            'title' => __('File Browser'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'filemanager',
                'action' => 'browse',
            ),
            'icon' => '',
            'weight' => 80,
        ),
        'taxonomy' => array(
            'title' => __('Taxonomia'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'vocabularies',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 90,
        ),
        'menus' => array(
            'title' => __('Menu'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'menus',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 100,
        ),
    ),
));

BemmelhorNav::add('music', array(
    'title' => __('Musics'),
    'url' => array(
        'plugin' => false,
        'admin' => true,
        'controller' => 'musics',
        'action' => 'index',
    ),
    'icon' => '',
    'weight' => 100,
    'children' => array(
        'musics' => array(
            'title' => __('Musics'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'musics',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 10,
        ),
        'fixed_parts' => array(
            'title' => __('Fixed Parts'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'fixed_parts',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 10,
        ),
        'liturgical_weeks' => array(
            'title' => __('Liturgical Weeks'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'liturgical_weeks',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 10,
        ),
        'liturgical_times' => array(
            'title' => __('Liturgical Times'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'liturgical_times',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 10,
        ),
        'repertoires' => array(
            'title' => __('Repertoires'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'repertoires',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 10,
        ),
    ),
));

BemmelhorNav::add('themes', array(
    'type' => 'themes',
    'title' => '',
    'url' => array(
        'plugin' => false,
        'admin' => true,
        'controller' => 'users',
        'action' => 'index',
    ),
    'position' => 'right',
    'icon' => 'fa fa-sun-o',
    'weight' => 800,
    'children' => array(
        'default' => array(
            'title' => 'Default',
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'users',
                'action' => 'themeadmin', 'Default'
            ),
            'icon' => 'fa fa-caret-right',
            'weight' => 20,
        ),
        'ubuntu' => array(
            'title' => 'Ubuntu',
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'users',
                'action' => 'themeadmin', 'Ubuntu'
            ),
            'icon' => 'fa fa-caret-right',
            'weight' => 200,
        ),
)));

BemmelhorNav::add('support', array(
    'type' => 'support',
    'title' => '',
    'url' => array(
        'plugin' => false,
        'admin' => true,
        'controller' => 'users',
        'action' => 'index',
    ),
    'icon' => 'fa fa-comments',
    'weight' => 900,
    'position' => 'right',
    'children' => array(
        'technical_support' => array(
            'title' => __('Suporte Técnico'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'suporte',
                'action' => 'index',
            ),
            'icon' => 'fa fa-question-circle',
            'weight' => 10,
        ),
        'glyphicon' => array(
            'title' => __('Glyphicons'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'suporte',
                'action' => 'icons',
            ),
            'icon' => 'fa fa-th-large',
            'weight' => 20,
        ),
        'awesome' => array(
            'title' => __('Fontawesome'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'suporte',
                'action' => 'fontawesome',
            ),
            'icon' => 'fa fa-th-large',
            'weight' => 30,
        ),
        'ion' => array(
            'title' => __('Ion Icons'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'suporte',
                'action' => 'ionicons',
            ),
            'icon' => 'fa fa-th-large',
            'weight' => 30,
        ),
        'clear_cache' => array(
            'title' => __('Clear Cache'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'suporte',
                'action' => 'clear_cache',
            ),
            'icon' => 'ion ion-trash-a',
            'weight' => 100,
        ),
)));


BemmelhorNav::add('resource', array(
    'title' => 'Recursos',
    'url' => array(
        'plugin' => false,
        'admin' => true,
        'controller' => 'system',
        'action' => 'index',
    ),
    'icon' => '',
    'weight' => 200,
    'children' => array(
        'churches' => array(
            'title' => 'Igrejas',
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'churches',
                'action' => 'index'
            ),
            'icon' => '',
            'weight' => 200,
        ),
        'schedule' => array(
            'title' => 'Agenda',
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'schedules',
                'action' => 'index',
            ),
            'icon' => '',
            'weight' => 300,
        ),
)));

BemmelhorNav::add('system', array(
    'type' => 'system',
    'title' => __('System'),
    'url' => array(
        'plugin' => false,
        'admin' => true,
        'controller' => 'system',
        'action' => 'index',
    ),
    'icon' => 'fa fa-user',
    'weight' => 2000,
    'children' => array(
        'settings' => array(
            'title' => __('Configurações'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'settings',
                'action' => 'prefix', 'Site',
            ),
            'icon' => 'fa fa-gears',
            'weight' => 100,
        ),
        'themes' => array(
            'title' => 'Theme Frontend',
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'extensions',
                'action' => 'extensions_themes',
            ),
            'icon' => 'fa fa-sun-o',
            'weight' => 300,
        ),
        'users' => array(
            'title' => __('Usuários'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'users',
                'action' => 'index',
            ),
            'icon' => 'fa fa-group',
            'weight' => 400,
        ),
        'users_add' => array(
            'title' => __('Novo Usuário'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'users',
                'action' => 'add',
            ),
            'icon' => 'fa fa-user',
            'weight' => 500,
        ),
        'profile' => array(
            'title' => __('Meu Perfil'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'users',
                'action' => 'profile',
            ),
            'icon' => 'fa fa-briefcase',
            'weight' => 1000,
        ),
        'logoff' => array(
            'title' => __('Sair do Sistema'),
            'url' => array(
                'plugin' => false,
                'admin' => true,
                'controller' => 'users',
                'action' => 'logout',
            ),
            'icon' => 'fa fa-power-off',
            'weight' => 10000,
        )
)));
