Example #1
0
 public static function admin_init()
 {
     $dir = dirname(__FILE__) . '/';
     require_once $dir . 'class-tooltip.php';
     require_once $dir . 'class-admin.php';
     require_once $dir . 'class-credits-admin.php';
     require_once $dir . 'class-trademarks-admin.php';
     Footer_Putter_Admin::init();
     Footer_Credits_Admin::init();
     Footer_Trademarks_Admin::init();
     add_filter('pre_option_link_manager_enabled', '__return_true');
     add_filter('plugin_action_links', array(__CLASS__, 'plugin_action_links'), 10, 2);
 }
Example #2
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'));
 }