/** * Adding menus * * */ public static function AttachMagicFieldsMenus() { global $mf_domain; require_once 'RCCWP_OptionsPage.php'; $panelsAndModulesFunctions = RCCWP_Menu::PrepareModulesPanelsMenuItems(); // Add top menu add_menu_page(__('Magic Fields > Manage', $mf_domain), __('Magic Fields', $mf_domain), 'edit_pages', 'MagicFieldsMenu', $panelsAndModulesFunctions->panelsMenuFunction, plugins_url(MF_PLUGIN_DIR . '/images/wand-hat.png')); // Add Magic Fields submenus add_submenu_page('MagicFieldsMenu', __('Write Panels', $mf_domain), __('Write Panels', $mf_domain), 'edit_pages', 'MagicFieldsMenu', $panelsAndModulesFunctions->panelsMenuFunction); }
/** * Adding menus * * */ function AttachMagicFieldsMenus() { global $mf_domain; require_once 'RCCWP_OptionsPage.php'; $panelsAndModulesFunctions = RCCWP_Menu::PrepareModulesPanelsMenuItems(); // Add top menu add_menu_page(__('Magic Fields > Manage', $mf_domain), __('Magic Fields', $mf_domain), 10, __FILE__, $panelsAndModulesFunctions->panelsMenuFunction); // Add Magic Fields submenus add_submenu_page(__FILE__, __('Write Panels', $mf_domain), __('Write Panels', $mf_domain), 10, __FILE__, $panelsAndModulesFunctions->panelsMenuFunction); }
/** * Adding menus * * */ function AttachFlutterMenus() { global $flutter_domain; require_once 'RCCWP_OptionsPage.php'; //if ((!current_user_can(FLUTTER_CAPABILITY_PANELS) && !current_user_can(FLUTTER_CAPABILITY_MODULES))) // return; $panelsAndModulesFunctions = RCCWP_Menu::PrepareModulesPanelsMenuItems(); // Add top menu add_menu_page(__('Flutter > Manage', $flutter_domain), __('Flutter', $flutter_domain), 10, __FILE__, $panelsAndModulesFunctions->panelsMenuFunction); // Add Flutter submenus add_submenu_page(__FILE__, __('Write Panels', $flutter_domain), __('Write Panels', $flutter_domain), 10, __FILE__, $panelsAndModulesFunctions->panelsMenuFunction); add_submenu_page(__FILE__, __('Modules', $flutter_domain), __('Modules', $flutter_domain), 10, 'FlutterManageModules', $panelsAndModulesFunctions->modulesMenuFunction); add_submenu_page(__FILE__, __('Template Options', $flutter_domain), __('Template Options', $flutter_domain), 10, 'RCCWP_ThemeSettingsPage', array('RCCWP_ThemeSettingsPage', 'show_layout_settings')); }