tribulant

Slideshow Gallery menu for editors

May 19th, 2011
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. function admin_menu() {
  2.     add_menu_page(__('Slideshow', $this -> plugin_name), __('Slideshow', $this -> plugin_name), 7, "gallery", array($this, 'admin_slides'), $this -> url() . '/images/icon.png');
  3.     $this -> menus['gallery'] = add_submenu_page("gallery", __('Manage Slides', $this -> plugin_name), __('Manage Slides', $this -> plugin_name), 7, "gallery", array($this, 'admin_slides'));
  4.     $this -> menus['gallery-settings'] = add_submenu_page("gallery", __('Configuration', $this -> plugin_name), __('Configuration', $this -> plugin_name), 7, "gallery-settings", array($this, 'admin_settings'));
  5.    
  6.     add_action('admin_head-' . $this -> menus['gallery-settings'], array($this, 'admin_head_gallery_settings'));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment