12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- if ( ! function_exists( 'quadrat_support' ) ) :
- function quadrat_support() {
- // Enqueue editor styles.
- add_editor_style(
- array(
- '/assets/theme.css',
- )
- );
- // Add support for core custom logo.
- add_theme_support(
- 'custom-logo',
- array(
- 'height' => 35,
- 'width' => 150,
- 'flex-width' => true,
- 'flex-height' => true,
- )
- );
- // Add support for starter content
- include get_stylesheet_directory() . '/inc/starter-content.php';
- add_theme_support(
- 'starter-content',
- $quadrat_starter_content
- );
- // This theme uses wp_nav_menu() in two locations.
- register_nav_menus(
- array(
- 'primary' => __( 'Primary Navigation', 'quadrat' ),
- )
- );
- remove_theme_support( 'block-templates' );
- }
- add_action( 'after_setup_theme', 'quadrat_support' );
- endif;
- /**
- * Enqueue scripts and styles.
- */
- function quadrat_scripts() {
- // Enqueue front-end styles.
- wp_enqueue_style( 'quadrat-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array( 'blockbase-ponyfill' ), wp_get_theme()->get( 'Version' ) );
- }
- add_action( 'wp_enqueue_scripts', 'quadrat_scripts' );
- /**
- * Block Patterns.
- */
- require get_stylesheet_directory() . '/inc/block-patterns.php';
- /**
- * Block Styles.
- */
- require get_stylesheet_directory() . '/inc/block-styles.php';
|