芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/ebpt.pulsehost.co.uk/wp-content/themes/maxcoach/framework/class-admin.php
' . MAXCOACH_THEME_NAME . '', '
' . esc_html__( 'Insight Core', 'maxcoach' ) . '
', self::MINIMUM_INSIGHT_CORE_VERSION ); printf( '
%1$s
', $message ); } public function gutenberg_editor() { /** * Enqueue fonts for gutenberg editor. */ wp_enqueue_style( 'font-gilroy', MAXCOACH_THEME_URI . '/assets/fonts/gilroy/font-gilroy.css', null, null ); } public function count_switch_time() { $count = get_option( 'maxcoach_switch_theme_count' ); if ( $count ) { $count++; } else { $count = 1; } update_option( 'maxcoach_switch_theme_count', $count ); } /** * Enqueue scrips & styles. * * @access public */ function enqueue_scripts() { $this->enqueue_fonts_for_rev_slider_page(); wp_enqueue_style( 'maxcoach-admin', MAXCOACH_THEME_URI . '/assets/admin/css/style.min.css' ); } /** * Enqueue fonts for Rev Slider edit page. */ function enqueue_fonts_for_rev_slider_page() { $screen = get_current_screen(); if ( 'toplevel_page_revslider' !== $screen->base ) { return; } $typo_fields = array( 'typography_body', 'typography_heading', 'button_typography', ); if ( ! is_array( $typo_fields ) || empty( $typo_fields ) ) { return; } foreach ( $typo_fields as $field ) { $value = Maxcoach::setting( $field ); if ( is_array( $value ) && isset( $value['font-family'] ) && $value['font-family'] !== '' ) { switch ( $value['font-family'] ) { case 'TTCommons': wp_enqueue_style( 'ttcommons-font', MAXCOACH_THEME_URI . '/assets/fonts/TTCommons/TTCommons.css', null, null ); break; default: do_action( 'maxcoach_enqueue_custom_font', $value['font-family'] ); // hook to custom do enqueue fonts break; } } } } } Maxcoach_Admin::instance()->initialize(); }