240, 'width' => 240, 'flex-height' => true, ) ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); add_theme_support('woocommerce'); // Enqueue editor styles. add_editor_style( array( 'assets/css/editor-style.css' ) ); require get_parent_theme_file_path( '/inc/dashboard/dashboard.php' ); require get_parent_theme_file_path( '/inc/customizer/customizer.php' ); } endif; // automobile_repair_blocks_setup add_action( 'after_setup_theme', 'automobile_repair_blocks_setup' ); function automobile_repair_blocks_scripts() { wp_enqueue_style( 'automobile-repair-blocks-basic-style', get_stylesheet_uri() ); $automobile_repair_blocks_enable_animations = get_option( 'automobile_repair_blocks_enable_animations', true ); if ( $automobile_repair_blocks_enable_animations ) { //animation wp_enqueue_script( 'wow-js', get_theme_file_uri( '/assets/js/wow.js' ), array( 'jquery' ), true ); wp_enqueue_style( 'animate-css', get_template_directory_uri().'/assets/css/animate.css' ); } //font-awesome wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/assets/font-awesome/css/all.css', array(), '5.15.3' ); // script.js wp_enqueue_script('automobile-repair-blocks-main-script', get_template_directory_uri() . '/assets/js/script.js', array('jquery'), '1.0.0', true); wp_style_add_data( 'automobile-repair-blocks-basic-style', 'rtl', 'replace' ); } add_action( 'wp_enqueue_scripts', 'automobile_repair_blocks_scripts' ); // Get start function function automobile_repair_blocks_enqueue_admin_script($hook) { // Admin JS wp_enqueue_script('automobile-repair-blocks-admin-js', get_theme_file_uri('/inc/dashboard/admin.js'), array('jquery'), true); wp_localize_script( 'automobile-repair-blocks-admin-js', 'automobile_repair_blocks', array( 'admin_ajax' => admin_url('admin-ajax.php'), 'wpnonce' => wp_create_nonce('automobile_repair_blocks_dismissed_notice_nonce') ) ); wp_enqueue_script('automobile-repair-blocks-admin-js'); wp_localize_script( 'automobile-repair-blocks-admin-js', 'automobile_repair_blocks_scripts_localize', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); } add_action('admin_enqueue_scripts', 'automobile_repair_blocks_enqueue_admin_script'); //dismiss function add_action( 'wp_ajax_automobile_repair_blocks_dismissed_notice_handler', 'automobile_repair_blocks_ajax_notice_dismiss_fuction' ); function automobile_repair_blocks_ajax_notice_dismiss_fuction() { if (!wp_verify_nonce($_POST['wpnonce'], 'automobile_repair_blocks_dismissed_notice_nonce')) { exit; } if ( isset( $_POST['type'] ) ) { $type = sanitize_text_field( wp_unslash( $_POST['type'] ) ); update_option( 'dismissed-' . $type, TRUE ); } } //get start box function automobile_repair_blocks_custom_admin_notice() { // Check if the notice is dismissed if ( ! get_option('dismissed-get_started_notice', FALSE ) ) { // Check if not on the theme documentation page $automobile_repair_blocks_current_screen = get_current_screen(); if ($automobile_repair_blocks_current_screen && $automobile_repair_blocks_current_screen->id !== 'appearance_page_automobile-repair-blocks-guide-page') { $automobile_repair_blocks_theme = wp_get_theme(); ?>
get('Name')); ?>