'', 'before_title' => '

', 'after_title' => '

' ); /* Parse the sidebar arguments and defaults. */ $args = wp_parse_args( $core_sidebars[$sidebar], $defaults ); /* If no 'id' was given, use the $sidebar variable and sanitize it. */ $args['id'] = ( isset( $args['id'] ) ? sanitize_key( $args['id'] ) : sanitize_key( $sidebar ) ); /* Register the sidebar. */ register_sidebar( $args ); } } } /* Returns an array of the core framework's available sidebars for use in themes. */ function framework_get_sidebars() { /* Set up an array of sidebars. */ $sidebars = array( 'primary' => array( 'name' => __( 'Primary', 'wordsmith' ), 'description' => __( 'The main (primary) widget area, most often used as a sidebar.', 'wordsmith' ) ), 'secondary' => array( 'name' => __( 'Secondary', 'sidebar', 'wordsmith' ), 'description' => __( 'The second most important widget area, most often used as a secondary sidebar.', 'wordsmith' ), ), 'subsidiary' => array( 'name' => __( 'Subsidiary 3 Columns', 'wordsmith' ), 'description' => __( 'A widget area loaded in the footer of the site.', 'wordsmith' ), ), 'subsidiary-4c' => array( 'name' => __( 'Subsidiary 4 Columns', 'wordsmith' ), 'description' => __( 'A widget area loaded in the footer of the site.', 'wordsmith' ), ), 'before-content' => array( 'name' => __( 'Before Content', 'wordsmith' ), 'description' => __( 'Loaded before the page\'s main content area.', 'wordsmith' ), ), 'after-content' => array( 'name' => __( 'After Content', 'wordsmith' ), 'description' => __( 'Loaded after the page\'s main content area.', 'wordsmith' ), ), 'after-singular' => array( 'name' => __( 'After Singular', 'wordsmith' ), 'description' => __( 'Loaded on singular post views before the comments area.', 'wordsmith' ), ), 'shelf' => array( 'name' => __( 'Shelf', 'wordsmith' ), 'description' => __( 'Loaded at the top of the site, above the header.', 'wordsmith' ), ), 'error-404-template' => array( 'name' => __( '404 Template', 'wordsmith' ), 'description' => __( 'Replaces the default 404 error page content.', 'wordsmith' ), ) ); /* Return the sidebars. */ return $sidebars; } ?>