__( 'Orange', 'blockz' ), 'slug' => 'orange', 'color' => '#dd6b20', ], [ 'name' => __( 'Light orange', 'blockz' ), 'slug' => 'light-orange', 'color' => '#ed8936', ], [ 'name' => __( 'Dark orange', 'blockz' ), 'slug' => 'dark-orange', 'color' => '#c05621', ], [ 'name' => __( 'Dark gray', 'blockz' ), 'slug' => 'dark-gray', 'color' => '#1a202c', ], ) ); add_image_size( 'blockz_featured_image', 1440, 475, true ); add_action( 'init', __NAMESPACE__ . '\register_menus' ); add_action( 'widgets_init', __NAMESPACE__ . '\register_sidebars' ); } /** * Enqueue the styles for the theme. * * @since 0.1.0 * @return void */ function enqueue_styles() { wp_enqueue_style( 'blockz-style', BLOCKZ_TEMPLATE_URL . '/style.css', [], BLOCKZ_VERSION ); } /** * Enqueue the scripts for the theme. * * @since 0.1.0 * @return void */ function enqueue_scripts() { wp_enqueue_script( 'blockz-script', BLOCKZ_TEMPLATE_URL . '/script.js', [], BLOCKZ_VERSION, true ); if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } } /** * Register the menus that the theme uses. * * @since 0.1.0 * @return void */ function register_menus() { register_nav_menus( [ 'primary-menu' => __( 'The primary menu for the theme.', 'blockz' ), 'footer-manu' => __( 'The footer links menu.', 'blockz' ), ] ); } /** * Register the sidebars that the theme uses. * * @since 0.1.0 * @return void */ function register_sidebars() { register_sidebar( [ 'name' => __( 'Footer', 'blockz' ), 'id' => 'footer', 'before_widget' => '
', 'after_widget' => "
\n", 'before_title' => '

', 'after_title' => "

\n", ] ); }