esc_html__( 'Home Banner', 'arwen' ), 'id' => 'sidebar-2', 'description' => esc_html__( 'Add widgets here to appear after header area.', 'arwen' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); // Widget Areas register_sidebar( array( 'name' => esc_html__( 'Footer', 'arwen' ), 'id' => 'footer-1', 'description' => esc_html__( 'Add widgets here to appear footer area.', 'arwen' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'arwen_widgets_init' ); /** * Shim for wp_body_open, ensuring backwards compatibility with versions of WordPress older than 5.2. * @since 1.0.1 */ if ( ! function_exists( 'wp_body_open' ) ) { function wp_body_open() { do_action( 'wp_body_open' ); } } /** * Include a skip to content link at the top of the page so that users can bypass the menu. * @since 1.0.1 */ if ( ! function_exists( 'wp_body_open' ) ) { add_action( 'wp_body_open', 'arwen_skip_link', 5 ); function arwen_skip_link() { echo ''; } } /** * Loads the arwen theme scripts. */ if ( ! function_exists( 'arwen_enqueue_styles' ) ) { add_action( 'wp_enqueue_scripts', 'arwen_enqueue_styles' ); /** * Enqueue Styles. * @since 1.0.0 */ function arwen_enqueue_styles() { // Parent style variable. $parent_style = 'allium-parent-style'; // Enqueue Parent theme's stylesheet. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); // Enqueue Child theme's stylesheet. wp_enqueue_style( 'arwen-style', ARWEN_THEME_URL . '/style.css', array( $parent_style ) ); } } /* * Load All Hooks */ include_once( ARWEN_THEME_HOOKS_PATH . 'top_bar.php' ); include_once( ARWEN_THEME_HOOKS_PATH . 'site_header.php' ); include_once( ARWEN_THEME_HOOKS_PATH . 'footer.php' ); /** * Designer Credits. * * @since 1.0.1 */ function arwen_credits_designer() { // Designer HTML $html = '
'. esc_html__('Arwen Theme by') .' '. esc_html__('WPbin', 'arwen') .' - '. esc_html__('Powered by', 'arwen') .' '. esc_html__('WordPress', 'arwen') .'
'; return $html; // WPCS: XSS OK. } add_filter( 'allium_credits_designer_html', 'arwen_credits_designer' );