get( 'Version' ); $building_architect_version_string = is_string( $building_architect_theme_version ) ? $building_architect_theme_version : false; wp_enqueue_style( 'building-architect-style', get_template_directory_uri() . '/style.css', array(), $building_architect_version_string ); wp_enqueue_script( 'building-architect-custom-script', get_theme_file_uri( '/assets/custom-script.js' ), array( 'jquery' ), true ); wp_enqueue_style( 'dashicons' ); wp_style_add_data( 'building-architect-style', 'rtl', 'replace' ); } endif; add_action( 'wp_enqueue_scripts', 'building_architect_styles' ); /* Theme Credit link */ define('BUILDING_ARCHITECT_BUY_NOW',__('https://www.cretathemes.com/products/building-renovation-wordpress-theme','building-architect')); define('BUILDING_ARCHITECT_PRO_DEMO',__('https://pattern.cretathemes.com/building-renovation/','building-architect')); define('BUILDING_ARCHITECT_THEME_DOC',__('https://pattern.cretathemes.com/free-guide/building-architect/','building-architect')); define('BUILDING_ARCHITECT_PRO_THEME_DOC',__('https://pattern.cretathemes.com/pro-guide/building-renovation/','building-architect')); define('BUILDING_ARCHITECT_SUPPORT',__('https://wordpress.org/support/theme/building-architect/','building-architect')); define('BUILDING_ARCHITECT_REVIEW',__('https://wordpress.org/support/theme/building-architect/reviews/#new-post','building-architect')); // Add block patterns require get_template_directory() . '/inc/block-patterns.php'; // Add block styles require get_template_directory() . '/inc/block-styles.php'; // Block Filters require get_template_directory() . '/inc/block-filters.php'; // Svg icons require get_template_directory() . '/inc/icon-function.php'; // Customizer require get_template_directory() . '/inc/customizer.php'; // Get Started require get_template_directory() . '/inc/get-started/get-started.php'; // Add Getstart admin notice function building_architect_admin_notice() { global $pagenow; $theme_args = wp_get_theme(); $meta = get_option( 'building_architect_admin_notice' ); $name = $theme_args->__get( 'Name' ); $current_screen = get_current_screen(); if( !$meta ){ if( is_network_admin() ){ return; } if( ! current_user_can( 'manage_options' ) ){ return; } if($current_screen->base != 'appearance_page_building-architect-guide-page' ) { ?>