get( 'Version' ) ); } /** * Enqueue the CSS files. * * @since 1.0.0 * * @return void */ function bloghive_styles() { wp_enqueue_style( 'bloghive-style', get_stylesheet_uri(), [], wp_get_theme()->get( 'Version' ) ); } add_action( 'wp_enqueue_scripts', 'bloghive_styles' ); if ( ! function_exists( 'bloghive_support' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * @since bloghive 1.0.0 * * @return void */ function bloghive_support() { // Add default posts and comments RSS feed links to head. add_theme_support('automatic-feed-links'); // Add support for title tag add_theme_support( 'title-tag' ); // Add support for block styles. add_theme_support('wp-block-styles'); // Add support for post thumbnails. add_theme_support('post-thumbnails'); // Add support for custom logo size. add_theme_support( 'custom-logo', array( 'height' => 240, 'width' => 240, 'flex-height' => true, ) ); // Enqueue editor styles. add_editor_style('style.css'); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', 'navigation-widgets', ) ); } endif; add_action('after_setup_theme', 'bloghive_support'); /** * Enqueue assets scripts for both backend and frontend */ if ( ! function_exists( 'bloghive_block_assets' ) ) : function bloghive_block_assets() { /** * Enqueue the Block CSS files. * * @since 1.0.0 */ wp_enqueue_style('bloghive-blocks-style', get_template_directory_uri() . '/assets/css/block.css'); } endif; add_action('enqueue_block_assets', 'bloghive_block_assets' ); /** * Load core file. */ require_once get_template_directory() . '/inc/core/init.php'; /** * Load StoreFlex Dashboard */ require get_template_directory() . '/inc/admin/class-bloghive-admin.php'; require get_template_directory() . '/inc/admin/class-bloghive-notice.php'; require get_template_directory() . '/inc/admin/class-bloghive-dashboard.php';