示例#1
0
 static function admin_menu()
 {
     $intro = sprintf('Intro (v%1$s)', Footer_Credits_Plugin::get_version());
     self::$screen_id = add_menu_page(FOOTER_PUTTER_FRIENDLY_NAME, FOOTER_PUTTER_FRIENDLY_NAME, 'manage_options', Footer_Credits_Plugin::get_slug(), array(__CLASS__, 'settings_panel'));
     add_submenu_page(Footer_Credits_Plugin::get_slug(), FOOTER_PUTTER_FRIENDLY_NAME, $intro, 'manage_options', Footer_Credits_Plugin::get_slug(), array(__CLASS__, 'settings_panel'));
 }
示例#2
0
 public static function enqueue_styles()
 {
     wp_enqueue_style(self::CODE . '-admin', plugins_url('styles/admin.css', dirname(__FILE__)), array(), Footer_Credits_Plugin::get_version());
 }
示例#3
0
 public static function enqueue_styles()
 {
     wp_enqueue_style(__CLASS__, plugins_url('styles/footer-credits.css', dirname(__FILE__)), array(), Footer_Credits_Plugin::get_version());
 }