Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/include/menus.php
<?php
/*
 *  Copyright 2008 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

/**
 * <p>Here menus are defined. This includes global menus (like a system menu)
 * and, possibly, menus which are shared by templates.</p>
 * <p>Specific menus (i.e. menus which are used for only one layout) may be
 * defined as inlune in the layouts.php</p>
 *
 * @package     AtleapLite
 * @author      Roman Puchkovskiy
 * @license     http://www.apache.org/licenses/LICENSE-2.0  Apache License, Version 2.0
 */


/**
 * Array of structures that describe the system menu items
 */
$systemMenu = array();

$systemMenu[] = array('link' => buildUrlClearingFilters('logout'),
                      'messageKey' => 'menu.main.logout.title',
                      'permId' => 'logout',
                      'id' => 'logout');
$systemMenu[] = array('link' => ADMIN_PAGE,
                      'messageKey' => 'menu.main.login.title',
                      'permId' => 'login',
                      'id' => 'login');
$systemMenu[] = array('link' => buildUrlClearingFilters('listUsers', array('sortColon' => 'login')),
                      'messageKey' => 'menu.main.manageUsers.title',
                      'permId' => 'listUsers',
                      'id' => 'manageUsers');
$systemMenu[] = array('link' => buildUrlClearingFilters('listRoles', array('sortColon' => 'identifier')),
                      'messageKey' => 'menu.main.manageRoles.title',
                      'permId' => 'listRoles',
                      'id' => 'manageRoles');
$systemMenu[] = array('link' => buildUrlClearingFilters('listMessageBundles'),
                      'messageKey' => 'menu.main.messageBundles.title',
                      'permId' => 'listMessageBundles',
                      'id' => 'listMessageBundles');
$systemMenu[] = array('link' => buildUrlClearingFilters('listPages', array('sortColon' => 'title')),
                      'messageKey' => 'menu.main.managePages.title',
                      'permId' => 'listPages',
                      'id' => 'managePages');
$systemMenu[] = array('link' => buildUrlClearingFilters('listResources', array('sortColon' => 'file_name')),
                      'messageKey' => 'menu.main.manageResources.title',
                      'permId' => 'listResources',
                      'id' => 'manageResources');
$systemMenu[] = array('link' => buildUrlClearingFilters('listCategories', array('sortColon' => 'pos', 'parentId' => '')),
                      'messageKey' => 'menu.main.manageCatalogue.title',
                      'permId' => 'listCategories',
                      'id' => 'manageCatalogue');
$systemMenu[] = array('link' => buildUrlClearingFilters('callUpdateGlobalProperties'),
                      'messageKey' => 'menu.main.globalProperties.title',
                      'permId' => 'updateGlobalProperties',
                      'id' => 'updateGlobalProperties');
/*$systemMenu[] = array('link' => buildUrl(null, array(), 'newsArchive'),
                      'messageKey' => 'menu.main.news.title',
                      'permId' => 'showNewsArchive',
                      'id' => 'showNewsArchive');
$systemMenu[] = array('link' => buildUrl(null, null, 'resources'),
                      'messageKey' => 'menu.main.resources.title',
                      'permId' => 'showResources',
                      'id' => 'showResources');
$systemMenu[] = array('link' => buildUrl(null, null, 'category'),
                      'messageKey' => 'menu.main.catalogue.title',
                      'permId' => 'showCategory',
                      'id' => 'showCatalogue');*/
$systemMenu[] = array('link' => buildUrlClearingFilters('updateMyself'),
                      'messageKey' => 'menu.main.myProfile.title',
                      'permId' => 'updateMyself',
                      'id' => 'updateMyself');
$systemMenu[] = array('link' => buildUrl(null, array('identifier' => WELCOME_PAGE_IDENTIFIER), 'page'),
                      'messageKey' => 'menu.main.start.title',
                      'permId' => 'viewMainPage',
                      'new' => true,
                      'id' => 'viewMainPage');

$browserMenu = array(
    array(
        'id' => 'pages',
        'link' => buildUrl('browsePages', array('clearFilters' => 'yes', 'sortColon' => 'title')),
        'messageKey' => 'browser.pages',
        'permId' => 'listPages'
    ),
    array(
        'id' => 'images',
        'link' => buildUrl('browseImages', array('clearFilters' => 'yes', 'sortColon' => 'file_name')),
        'messageKey' => 'browser.images',
        'permId' => 'listResources'
    ),
    array(
        'id' => 'files',
        'link' => buildUrl('browseFiles', array('clearFilters' => 'yes', 'sortColon' => 'file_name')),
        'messageKey' => 'browser.files',
        'permId' => 'listResources'
    )
);


?>
Return current item: Blandware AtLeap Lite - CMS on PHP