public static function load_page() { $message = isset($_POST['options_update']) ? self::save() : ''; $options = Footer_Credits::get_options(); $callback_params = array('options' => $options, 'message' => $message); add_meta_box(self::CODE . '-intro', __('Introduction'), array(__CLASS__, 'intro_panel'), self::get_screen_id(), 'normal', 'core', $callback_params); add_meta_box(self::CODE . '-owner', __('Site Owner Details'), array(__CLASS__, 'owner_panel'), self::get_screen_id(), 'normal', 'core', $callback_params); add_meta_box(self::CODE . '-contact', __('Contact Details'), array(__CLASS__, 'contact_panel'), self::get_screen_id(), 'normal', 'core', $callback_params); add_meta_box(self::CODE . '-legal', __('Legal Details'), array(__CLASS__, 'legal_panel'), self::get_screen_id(), 'normal', 'core', $callback_params); add_meta_box(self::CODE . '-return', __('Return To Top'), array(__CLASS__, 'return_panel'), self::get_screen_id(), 'normal', 'core', $callback_params); add_meta_box(self::CODE . '-example', __('Preview Footer Content'), array(__CLASS__, 'preview_panel'), self::get_screen_id(), 'normal', 'core', $callback_params); add_meta_box(self::CODE . '-advanced', __('Advanced'), array(__CLASS__, 'advanced_panel'), self::get_screen_id(), 'normal', 'core', $callback_params); add_action('admin_enqueue_scripts', array(__CLASS__, 'enqueue_styles')); add_action('admin_enqueue_scripts', array(__CLASS__, 'enqueue_scripts')); self::$keys = array_keys(self::$tips); self::$tooltips = new DIY_Tooltip(self::$tips); }