esc_html__( 'Primary Menu', 'bookstore-exhibition' ), ) ); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; add_editor_style( array( '/css/editor-style' . $min . '.css', bookstore_exhibition_fonts_url() ) ); /* * Switch default core markup to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'bookstore_exhibition_custom_background_args', array( 'default-color' => 'f7fcfe', ) ) ); // Enable support for selective refresh of widgets in Customizer. add_theme_support( 'customize-selective-refresh-widgets' ); // Enable support for custom logo. add_theme_support( 'custom-logo' ); // Load default block styles. add_theme_support( 'wp-block-styles' ); // Add support for responsive embeds. add_theme_support( 'responsive-embeds' ); // Enable support for footer widgets. add_theme_support( 'footer-widgets', 4 ); // Load Supports. require_once get_template_directory() . '/inc/support.php'; // Add custom editor font sizes. add_theme_support( 'editor-font-sizes', array( array( 'name' => __( 'Small', 'bookstore-exhibition' ), 'shortName' => __( 'S', 'bookstore-exhibition' ), 'size' => 13, 'slug' => 'small', ), array( 'name' => __( 'Normal', 'bookstore-exhibition' ), 'shortName' => __( 'M', 'bookstore-exhibition' ), 'size' => 14, 'slug' => 'normal', ), array( 'name' => __( 'Large', 'bookstore-exhibition' ), 'shortName' => __( 'L', 'bookstore-exhibition' ), 'size' => 30, 'slug' => 'large', ), array( 'name' => __( 'Huge', 'bookstore-exhibition' ), 'shortName' => __( 'XL', 'bookstore-exhibition' ), 'size' => 36, 'slug' => 'huge', ), ) ); // Editor color palette. add_theme_support( 'editor-color-palette', array( array( 'name' => __( 'Black', 'bookstore-exhibition' ), 'slug' => 'black', 'color' => '#000', ), array( 'name' => __( 'White', 'bookstore-exhibition' ), 'slug' => 'white', 'color' => '#ffffff', ), array( 'name' => __( 'Gray', 'bookstore-exhibition' ), 'slug' => 'gray', 'color' => '#727272', ), array( 'name' => __( 'Blue', 'bookstore-exhibition' ), 'slug' => 'blue', 'color' => '#ff8930', ), array( 'name' => __( 'Navy Blue', 'bookstore-exhibition' ), 'slug' => 'navy-blue', 'color' => '#ff8930', ), array( 'name' => __( 'Light Blue', 'bookstore-exhibition' ), 'slug' => 'light-blue', 'color' => '#f7fcfe', ), array( 'name' => __( 'Orange', 'bookstore-exhibition' ), 'slug' => 'orange', 'color' => '#121212', ), array( 'name' => __( 'Green', 'bookstore-exhibition' ), 'slug' => 'green', 'color' => '#77a464', ), array( 'name' => __( 'Red', 'bookstore-exhibition' ), 'slug' => 'red', 'color' => '#e4572e', ), array( 'name' => __( 'Yellow', 'bookstore-exhibition' ), 'slug' => 'yellow', 'color' => '#f4a024', ), ) ); global $pagenow; if (is_admin() && ('themes.php' == $pagenow) && isset($_GET['activated']) && wp_get_theme()->get('TextDomain') === 'bookstore-exhibition') { wp_redirect(admin_url('themes.php?page=bookstore-exhibition-getting-started')); } } endif; add_action( 'after_setup_theme', 'bookstore_exhibition_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function bookstore_exhibition_content_width() { $GLOBALS['content_width'] = apply_filters( 'bookstore_exhibition_content_width', 771 ); } add_action( 'after_setup_theme', 'bookstore_exhibition_content_width', 0 ); /** * Register widget area. */ function bookstore_exhibition_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Primary Sidebar', 'bookstore-exhibition' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here to appear in your Primary Sidebar.', 'bookstore-exhibition' ), 'before_widget' => '', 'before_title' => '