theme_fields = $fields; add_action ('admin_init' , array( $this, 'admin_scripts' ) ); add_action('admin_menu', array( $this, 'cab_booking_getstart_page_menu' )); } public function admin_scripts() { global $pagenow; $file_dir = get_template_directory_uri() . '/getstarted/assets/'; if ( $pagenow === 'themes.php' && isset($_GET['page']) && $_GET['page'] === 'cab-booking-getstart-page' ) { wp_enqueue_style ( 'cab-booking-getstart-page-style', $file_dir . 'css/getstart-page.css', array(), '1.0.0' ); wp_enqueue_script ( 'cab-booking-getstart-page-functions', $file_dir . 'js/getstart-page.js', array('jquery'), '1.0.0', true ); } } public function theme_info($id, $screenshot = false) { $themedata = wp_get_theme(); return ($screenshot === true) ? esc_url($themedata->get_screenshot()) : esc_html($themedata->get($id)); } public function cab_booking_getstart_page_menu() { add_theme_page( /* translators: 1: Theme Name. */ sprintf(esc_html__('About %1$s', 'cab-booking'), $this->theme_info('Name')), sprintf(esc_html__('About %1$s', 'cab-booking'), $this->theme_info('Name')), 'edit_theme_options', 'cab-booking-getstart-page', array( $this, 'cab_booking_getstart_page' ) ); } public function cab_booking_getstart_page() { $tabs = array( 'cab_booking_getting_started' => esc_html__('Getting Started', 'cab-booking'), 'cab_booking_free_pro' => esc_html__('Free VS Pro', 'cab-booking'), 'changelog' => esc_html__('Changelog', 'cab-booking'), 'support' => esc_html__('Support', 'cab-booking'), 'review' => esc_html__('Rate & Review', 'cab-booking'), ); ?>
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||