function on_load() { $help_message = new help_message(); $current_screen = get_current_screen(); $this->pagehook = $current_screen->id; $admin_screen = WP_Screen::get($current_screen->id); /*Help option*/ $admin_screen->add_help_tab(array('title' => __('help', 'WP-OliveCart'), 'id' => 'help_tab', 'content' => $help_message->message(), 'callback' => false)); wp_enqueue_script('postbox'); add_meta_box('show_box1', __('Other Items No1', 'WP-OliveCart'), array(&$this, 'show_box1'), $this->pagehook, 'normal', 'core'); add_meta_box('show_box2', __('Other Items No2', 'WP-OliveCart'), array(&$this, 'show_box2'), $this->pagehook, 'normal', 'core'); add_meta_box('show_box3', __('Other Items No3', 'WP-OliveCart'), array(&$this, 'show_box3'), $this->pagehook, 'normal', 'core'); }
function on_load() { $help_message = new help_message(); $current_screen = get_current_screen(); $this->pagehook = $current_screen->id; $admin_screen = WP_Screen::get($current_screen->id); /*Help option*/ $admin_screen->add_help_tab(array('title' => __('help', 'WP-OliveCart'), 'id' => 'help_tab', 'content' => $help_message->message(), 'callback' => false)); wp_enqueue_script('postbox'); #add_meta_box( 'show_box1' ,__('Create the "Pay with PayPal" button', 'WP-OliveCart'), #array(&$this, 'show_box1'), $this->pagehook, 'normal', 'core'); add_meta_box('show_box2', __('Custom Message (HTML Tags)', 'WP-OliveCart'), array(&$this, 'show_box2'), $this->pagehook, 'normal', 'core'); }
function on_load() { $help_message = new help_message(); $current_screen = get_current_screen(); $admin_screen = WP_Screen::get($current_screen->id); $this->pagehook = $current_screen->id; /*Help option*/ $admin_screen->add_help_tab(array('title' => __('help', 'WP-OliveCart'), 'id' => 'help_tab', 'content' => $help_message->message(), 'callback' => false)); wp_enqueue_script('postbox'); #if(WPLANG == 'ja'){ #add_meta_box( 'pref_postage_setup' ,__('Pref Postage Setup','WP-OliveCart'), #array(&$this, 'pref_postage_setup'), $this->pagehook, 'normal', 'core'); #} add_meta_box('total_postage_setup', __('Total Postage Setup', 'WP-OliveCart'), array(&$this, 'total_postage_setup'), $this->pagehook, 'normal', 'core'); }
function on_load() { $help_message = new help_message(); $current_screen = get_current_screen(); $this->pagehook = $current_screen->id; $admin_screen = WP_Screen::get($current_screen->id); /*Help option*/ $admin_screen->add_help_tab(array('title' => __('help', 'WP-OliveCart'), 'id' => 'help_tab', 'content' => $help_message->message(), 'callback' => false)); wp_enqueue_script('postbox'); add_meta_box('show_box1', __('Mobile Theme Setup', 'WP-OliveCart'), array(&$this, 'show_box1'), $this->pagehook, 'normal', 'core'); add_meta_box('show_box2', __('Cart Security Setup', 'WP-OliveCart'), array(&$this, 'show_box2'), $this->pagehook, 'normal', 'core'); add_meta_box('show_box3', __('Add to Cart Button Option', 'WP-OliveCart'), array(&$this, 'show_box3'), $this->pagehook, 'normal', 'core'); #add_meta_box( 'show_box4' ,__('Consumption tax Setup', 'WP-OliveCart'), # array(&$this, 'show_box4'), $this->pagehook, 'normal', 'core'); add_meta_box('show_box5', __('SendMail Address', 'WP-OliveCart'), array(&$this, 'show_box5'), $this->pagehook, 'normal', 'core'); }
function add_help_text($contextual_help, $screen_id, $screen) { $help_message = new help_message(); $contextual_help = $help_message->message(); return $contextual_help; }