-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu-config.php
executable file
·36 lines (35 loc) · 1.44 KB
/
menu-config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
*
* @package Menu
* @author Evgeniy S.Zalevskiy <[email protected]>
* @license MIT
*/
return array(
'menu' => array(
'page_title' => __('My Slider Gallery Menu', MYGALLERY_PLUGIN_SLUG),
'menu_title' => __('My Slider Gallery', MYGALLERY_PLUGIN_SLUG),
'capability' => 'edit_posts',
'menu_slug' => MYGALLERY_PLUGIN_SLUG . '-main-menu',
'template' => MYGALLERY_PLUGIN_DIR . 'template/admin-menu/main-menu.php',
'icon'=> 'dashicons-'.MYGALLERY_PLUGIN_SLUG,
'subs' => array(
array(
'page_title' => __('Add gallery', MYGALLERY_PLUGIN_SLUG),
'parent_slug' => MYGALLERY_PLUGIN_SLUG . '-main-menu',
'menu_title' => __('Add gallery', MYGALLERY_PLUGIN_SLUG),
'capability' => 'edit_posts',
'menu_slug' => MYGALLERY_PLUGIN_SLUG . '-main-menu',
'template' => MYGALLERY_PLUGIN_DIR . 'template/menu/add-gallery-menu.php',
),
array(
'page_title' => __('About', MYGALLERY_PLUGIN_SLUG),
'parent_slug' => MYGALLERY_PLUGIN_SLUG . '-main-menu',
'menu_title' => __('About', MYGALLERY_PLUGIN_SLUG),
'capability' => 'manage_options',
'menu_slug' => MYGALLERY_PLUGIN_SLUG . '-menu-about',
'template' => MYGALLERY_PLUGIN_DIR . 'template/menu/about-menu.php',
)
),
),
);