XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
menu.php
Go to the documentation of this file.
1 <?php
2 // $Id: menu.php 884 2011-12-28 02:09:44Z i.bitcero $
3 // --------------------------------------------------------------
4 // Red México Common Utilities
5 // A framework for Red México Modules
6 // Author: Eduardo Cortés <i.bitcero@gmail.com>
7 // Email: i.bitcero@gmail.com
8 // License: GPL 2.0
9 // --------------------------------------------------------------
10 
11 if (!function_exists('__'))
12  include_once XOOPS_ROOT_PATH.'/modules/rmcommon/loader.php';
13 
14 $adminmenu[] = array(
15  'title' => __('Dashboard','rmcommon'),
16  'link' => "index.php",
17  'icon' => "images/dashboard.png",
18  'location' => "dashboard"
19 );
20 
21 $adminmenu[] = array(
22  'title' => __('Modules','rmcommon'),
23  'link' => "modules.php",
24  'icon' => "images/modules.png",
25  'location' => "modules"
26 );
27 
28 $adminmenu[] = array(
29  'title' => __('Blocks','rmcommon'),
30  'link' => "blocks.php",
31  'icon' => "images/blocks.png",
32  'location' => "blocks"
33 );
34 
35 $adminmenu[] = array(
36  'title' => __('Users','rmcommon'),
37  'link' => 'users.php',
38  'icon' => 'images/users.png',
39  'location' => 'users',
40  'options' => array(
41  array('title'=>__('All users','rmcommon'),'link'=>'users.php','selected'=>'allusers'),
42  array('title'=>__('New user','rmcommon'),'link'=>'users.php?action=new','selected'=>'newuser'),
43  )
44 );
45 
46 $adminmenu[] = array(
47  'title' => __('Images','rmcommon'),
48  'link' => "images.php",
49  'icon' => "images/images.png",
50  'location' => "imgmanager",
51  'options' => array(0 => array(
52  'title' => __('Categories','rmcommon'),
53  'link' => 'images.php?action=showcats',
54  'selected' => 'rmc_imgcats' // RMSUBLOCATION constant defines wich submenu options is selected
55  ), 1 => array(
56  'title' => __('New category','rmcommon'),
57  'link' => 'images.php?action=newcat',
58  'selected' => 'rmc_imgnewcat' // RMSUBLOCATION constant defines wich submenu options is selected
59  ), 2 => array(
60  'title' => __('Images','rmcommon'),
61  'link' => 'images.php',
62  'selected' => 'rmc_images' // RMSUBLOCATION constant defines wich submenu options is selected
63  ), 4 => array(
64  'title' => __('Add images','rmcommon'),
65  'link' => 'images.php?action=new',
66  'selected' => 'rmc_newimages' // RMSUBLOCATION constant defines wich submenu options is selected
67  )
68  )
69 );
70 
71 $adminmenu[] = array(
72  'title' => __('Comments','rmcommon'),
73  'link' => "comments.php",
74  'icon' => "images/comments.png",
75  'location' => "comments"
76 );
77 
78 $adminmenu[] = array(
79  'title' => __('Plugins','rmcommon'),
80  'link' => "plugins.php",
81  'icon' => "images/plugin.png",
82  'location' => "plugins"
83 );
84 
85 $adminmenu[] = array(
86  'title' => __('Updates','rmcommon'),
87  'link' => "updates.php",
88  'icon' => "images/updates.png",
89  'location' => "updates"
90 );