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' ); // Enqueue editor styles. add_editor_style( array( 'assets/css/editor-style.css' ) ); } endif; // author_book_writer_setup add_action( 'after_setup_theme', 'author_book_writer_setup' ); function author_book_writer_scripts() { wp_enqueue_style( 'author-book-writer-basic-style', get_stylesheet_uri() ); $author_book_writer_enable_animations = get_option( 'author_book_writer_enable_animations', true ); if ( $author_book_writer_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( 'author-book-writer-fontawesome', get_template_directory_uri() . '/assets/font-awesome/css/all.css', array(), '5.15.3' ); // script.js wp_enqueue_script('author-book-writer-main-script', get_template_directory_uri() . '/assets/js/script.js', array('jquery'), '1.0.0', true); } add_action( 'wp_enqueue_scripts', 'author_book_writer_scripts' ); // Get start function function author_book_writer_custom_admin_notice() { // Check if the notice is dismissed if (!get_user_meta(get_current_user_id(), 'dismissed_admin_notice', true)) { // Check if not on the theme documentation page $author_book_writer_current_screen = get_current_screen(); if ($author_book_writer_current_screen && $author_book_writer_current_screen->id !== 'appearance_page_author-book-writer-guide-page') { $author_book_writer_theme = wp_get_theme(); ?>
esc_url(admin_url('admin-ajax.php')) )); } add_action('admin_enqueue_scripts', 'author_book_writer_enqueue_admin_script'); // Reset the dismissed notice status when the theme is switched function author_book_writer_after_switch_theme() { delete_user_meta(get_current_user_id(), 'dismissed_admin_notice'); } add_action('after_switch_theme', 'author_book_writer_after_switch_theme'); //get-start-function-end// // Block Patterns. require get_template_directory() . '/block-patterns.php'; require get_parent_theme_file_path( '/inc/dashboard/dashboard.php' ); require get_template_directory() . '/custom-setting.php'; require get_parent_theme_file_path( '/inc/customizer/customizer.php' );