Lines:
1 to 99 of 99
<?php /** * Twenty Nineteen functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package WordPress * @subpackage Twenty_Nineteen * @since Twenty Nineteen 1.0 */ /** * Twenty Nineteen only works in WordPress 4.7 or later. */ if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; return; } if ( ! function_exists( 'twentynineteen_setup' ) ) : /* function twentynineteen_setup() – Sets up theme defaults and registers support for various WordPress features. */ endif; add_action( 'after_setup_theme', 'twentynineteen_setup' ); if ( ! function_exists( 'wp_get_list_item_separator' ) ) : /* function wp_get_list_item_separator() – Retrieves the list item separator based on the locale. */ endif; /* function twentynineteen_widgets_init() – Register widget area. */ add_action( 'widgets_init', 'twentynineteen_widgets_init' ); /* function twentynineteen_excerpt_more() – Replaces "[. */ add_filter( 'excerpt_more', 'twentynineteen_excerpt_more' ); /* function twentynineteen_content_width() – Set the content width in pixels, based on the theme’s design and stylesheet. */ add_action( 'after_setup_theme', 'twentynineteen_content_width', 0 ); /* function twentynineteen_scripts() – Enqueue scripts and styles. */ add_action( 'wp_enqueue_scripts', 'twentynineteen_scripts' ); /* function twentynineteen_skip_link_focus_fix() – Fix skip link focus in IE11. */ add_action( 'wp_print_footer_scripts', 'twentynineteen_skip_link_focus_fix' ); /* function twentynineteen_editor_customizer_styles() – Enqueue supplemental block editor styles. */ add_action( 'enqueue_block_editor_assets', 'twentynineteen_editor_customizer_styles' ); /* function twentynineteen_colors_css_wrap() – Display custom color CSS in customizer and on frontend. */ add_action( 'wp_head', 'twentynineteen_colors_css_wrap' ); /** * SVG Icons class. */ require get_template_directory() . '/classes/class-twentynineteen-svg-icons.php'; /** * Custom Comment Walker template. */ require get_template_directory() . '/classes/class-twentynineteen-walker-comment.php'; /** * Common theme functions. */ require get_template_directory() . '/inc/helper-functions.php'; /** * SVG Icons related functions. */ require get_template_directory() . '/inc/icon-functions.php'; /** * Enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; /** * Custom template tags for the theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Block Patterns. */ require get_template_directory() . '/inc/block-patterns.php';