Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function catchresponsive_child_widgets_init() {
- //Optional Sidebar two for page and post
- register_sidebar( array(
- 'name' => __( 'Optional Sidebar Four', 'catch-responsive-pro' ),
- 'id' => 'sidebar-optional-four',
- 'description' => __( 'This is Optional Sidebar Four', 'catch-responsive-pro' ),
- 'before_widget' => '<section id="%1$s" class="widget %2$s"><div class="widget-wrap">',
- 'after_widget' => '</div><!-- .widget-wrap --></section>',
- 'before_title' => '<h4 class="widget-title">',
- 'after_title' => '</h4>',
- ) );
- //Optional Sidebar Five for page and post
- register_sidebar( array(
- 'name' => __( 'Optional Sidebar Five', 'catch-responsive-pro' ),
- 'id' => 'sidebar-optional-five',
- 'description' => __( 'This is Optional Sidebar Five', 'catch-responsive-pro' ),
- 'before_widget' => '<section id="%1$s" class="widget %2$s"><div class="widget-wrap">',
- 'after_widget' => '</div><!-- .widget-wrap --></section>',
- 'before_title' => '<h4 class="widget-title">',
- 'after_title' => '</h4>',
- ) );
- /* You can add as many widgets as you want to.*/
- }
- add_action( 'widgets_init', 'catchresponsive_child_widgets_init', 99 );
- /**
- * Returns an array of metabox sidebar options registered for catchresponsive.
- *
- * @since Catch Responsive 1.0
- */
- function catchresponsive_metabox_sidebar_options() {
- $sidebar_options = array(
- 'main-sidebar' => array(
- 'id' => 'catchresponsive-sidebar-options',
- 'value' => 'default-sidebar',
- 'label' => esc_html__( 'Default Sidebar', 'catch-responsive-pro' )
- ),
- 'optional-sidebar-one' => array(
- 'id' => 'catchresponsive-sidebar-options',
- 'value' => 'optional-sidebar-one',
- 'label' => esc_html__( 'Optional Sidebar One', 'catch-responsive-pro' )
- ),
- 'optional-sidebar-two' => array(
- 'id' => 'catchresponsive-sidebar-options',
- 'value' => 'optional-sidebar-two',
- 'label' => esc_html__( 'Optional Sidebar Two', 'catch-responsive-pro' )
- ),
- 'optional-sidebar-three' => array(
- 'id' => 'catchresponsive-sidebar-options',
- 'value' => 'optional-sidebar-three',
- 'label' => esc_html__( 'Optional Sidebar three', 'catch-responsive-pro' )
- ),
- 'optional-sidebar-four' => array(
- 'id' => 'catchresponsive-sidebar-options',
- 'value' => 'optional-sidebar-four',
- 'label' => esc_html__( 'Optional Sidebar Four', 'catch-responsive-pro' )
- ),
- 'optional-sidebar-five' => array(
- 'id' => 'catchresponsive-sidebar-options',
- 'value' => 'optional-sidebar-five',
- 'label' => esc_html__( 'Optional Sidebar Five', 'catch-responsive-pro' )
- )
- );
- return apply_filters( 'sidebar_options', $sidebar_options );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement