' . esc_html__( 'Skip to the content', 'the-q' ) . ''; } function add_skip_link_focus_fix() { // This does not enqueue the script because it is tiny and because it is only for IE11, thus it does not warrant having an entire dedicated blocking script being loaded. ?> urlencode( $default_font_string ), 'subset' => urlencode( $font_subset_str ), 'display' => 'swap', ); $google_fonts_url = add_query_arg( $fonts_full_list_args, 'https://fonts.googleapis.com/css' ); wp_enqueue_style( 'the-q-google-fonts', esc_url_raw( $google_fonts_url ), array(), '1.0.0' ); } } function set_theme_support() { // Make theme available for translation load_theme_textdomain( 'the-q', THE_Q_ROOT_DIR . '/languages' ); // Add support for feed links add_theme_support( 'automatic-feed-links' ); // Add support for title tag add_theme_support( 'title-tag' ); // Add support for post thumbnails add_theme_support( 'post-thumbnails' ); // Add theme support for Custom Logo add_theme_support( 'custom-logo' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Customize selective refresh widgets add_theme_support( 'customize-selective-refresh-widgets' ); // Set the default content width global $content_width; if ( ! isset( $content_width ) ) { $content_width = apply_filters( 'the_q_filter_set_content_width', 1300 ); } // Add support for post formats add_theme_support( 'post-formats', apply_filters( 'the_q_filter_post_formats', array( 'gallery', 'video', 'audio', 'link', 'quote' ) ) ); // Add theme support for editor style add_editor_style( THE_Q_ASSETS_CSS_ROOT . '/editor-style.css' ); } function editor_customizer_styles() { // Include theme's Google fonts for Gutenberg editor $this->include_google_fonts(); // Add editor customizer style wp_enqueue_style( 'the-q-editor-customizer-styles', THE_Q_ASSETS_CSS_ROOT . '/editor-customizer-style.css' ); // Add Gutenberg blocks style wp_enqueue_style( 'the-q-gutenberg-blocks-style', THE_Q_INC_ROOT . '/gutenberg/assets/admin/css/gutenberg-blocks.css' ); } function add_body_classes( $classes ) { $current_theme = wp_get_theme(); $theme_name = esc_attr( str_replace( ' ', '-', strtolower( $current_theme->get( 'Name' ) ) ) ); $theme_version = esc_attr( $current_theme->get( 'Version' ) ); // Check is child theme activated if ( $current_theme->parent() ) { // Add child theme version $classes[] = $theme_name . '-child-' . $theme_version; // Get main theme variables $current_theme = $current_theme->parent(); $theme_name = esc_attr( str_replace( ' ', '-', strtolower( $current_theme->get( 'Name' ) ) ) ); $theme_version = esc_attr( $current_theme->get( 'Version' ) ); } if ( $current_theme->exists() ) { $classes[] = $theme_name . '-' . $theme_version; } // Set default grid size value if ( ! the_q_is_installed( 'core' ) ) { $classes[] = 'qodef-content-grid-1300'; } return apply_filters( 'the_q_filter_add_body_classes', $classes ); } function include_modules() { // Hook to include additional files before modules inclusion do_action( 'the_q_action_before_include_modules' ); foreach ( glob( THE_Q_INC_ROOT_DIR . '/*/include.php' ) as $module ) { include_once $module; } // Hook to include additional files after modules inclusion do_action( 'the_q_action_after_include_modules' ); } } The_Q_Handler::get_instance(); }