2021-04-27 22:21:26 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Register widget areas
|
|
|
|
*
|
2021-04-28 01:20:47 +02:00
|
|
|
* @package arcHIVE-theme
|
|
|
|
* @since arcHIVE-theme 1.0.0
|
2021-04-27 22:21:26 +02:00
|
|
|
*/
|
|
|
|
|
2022-04-07 14:47:54 +02:00
|
|
|
if ( ! function_exists( 'arcHIVE_sidebar_widgets' ) ) :
|
|
|
|
function arcHIVE_sidebar_widgets() {
|
2021-04-29 11:47:25 +02:00
|
|
|
register_sidebar(
|
|
|
|
array(
|
2022-04-07 14:47:54 +02:00
|
|
|
'id' => 'home-announcement-widgets-top-primary',
|
|
|
|
'name' => __( 'Home Announcement Top Primary area', 'foundationpress' ),
|
2022-03-30 21:00:42 +02:00
|
|
|
'description' => __( 'Drag widgets to this Home page container that will show at the top of the home page.', 'foundationpress' ),
|
2022-04-07 14:47:54 +02:00
|
|
|
'before_sidebar'=> '<main class="slides top primary">',
|
2022-03-21 12:29:31 +01:00
|
|
|
'after_sidebar' => '</main>',
|
2022-03-17 14:14:25 +01:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget slide home-announcement %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
2022-04-07 14:47:54 +02:00
|
|
|
register_sidebar(
|
|
|
|
array(
|
|
|
|
'id' => 'home-announcement-widgets-top-secondary',
|
|
|
|
'name' => __( 'Home Announcement Top Secondary area', 'foundationpress' ),
|
|
|
|
'description' => __( 'Drag widgets to this Home page container that will show at the top of the home page on the secondary area.', 'foundationpress' ),
|
|
|
|
'before_sidebar'=> '<main class="slides top secondary">',
|
|
|
|
'after_sidebar' => '</main>',
|
|
|
|
'before_widget' => '<section id="%1$s" class="widget home-announcement %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
2022-03-17 14:14:25 +01:00
|
|
|
register_sidebar(
|
|
|
|
array(
|
|
|
|
'id' => 'home-announcement-middle-widgets',
|
2022-04-07 14:47:54 +02:00
|
|
|
'name' => __( 'Home Announcement Middle', 'foundationpress' ),
|
2022-03-30 21:00:42 +02:00
|
|
|
'description' => __( 'Drag widgets to this Home page container that will show in the middle of the home page.', 'foundationpress' ),
|
2022-04-07 14:47:54 +02:00
|
|
|
'before_sidebar'=> '<main class="slides middle">',
|
2022-03-21 12:29:31 +01:00
|
|
|
'after_sidebar' => '</main>',
|
2022-03-17 14:14:25 +01:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget slide home-middle-announcement %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
register_sidebar(
|
|
|
|
array(
|
|
|
|
'id' => 'home-announcement-bottom-widgets',
|
2022-04-07 14:47:54 +02:00
|
|
|
'name' => __( 'Home Announcement Bottom', 'foundationpress' ),
|
2022-03-30 21:00:42 +02:00
|
|
|
'description' => __( 'Drag widgets to this Home page container that will show at the bottom of the home page.', 'foundationpress' ),
|
2022-04-07 14:47:54 +02:00
|
|
|
'before_sidebar'=> '<main class="slides bottom">',
|
2022-03-21 12:29:31 +01:00
|
|
|
'after_sidebar' => '</main>',
|
2022-03-17 14:14:25 +01:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget slide home-bottom-announcement %2$s">',
|
2021-04-29 11:47:25 +02:00
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
2021-04-27 22:21:26 +02:00
|
|
|
register_sidebar(
|
|
|
|
array(
|
2021-04-29 11:47:25 +02:00
|
|
|
'id' => 'announcement-widgets',
|
2022-04-07 14:47:54 +02:00
|
|
|
'name' => __( 'Announcement', 'foundationpress' ),
|
2021-04-29 11:47:25 +02:00
|
|
|
'description' => __( 'Drag widgets to this announcement container.', 'foundationpress' ),
|
2022-04-07 14:47:54 +02:00
|
|
|
'before_sidebar'=> '<main class="slides announcement">',
|
|
|
|
'after_sidebar' => '</main>',
|
2021-04-29 11:47:25 +02:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget slide %2$s">',
|
2021-04-27 22:21:26 +02:00
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
2022-03-30 21:00:42 +02:00
|
|
|
register_sidebar(
|
|
|
|
array(
|
2022-04-07 14:47:54 +02:00
|
|
|
'id' => 'announcement-resources-top-widgets',
|
|
|
|
'name' => __( 'Resources Announcement top', 'foundationpress' ),
|
|
|
|
'description' => __( 'Drag widgets to this announcement container to be displayed in Resources primary area.', 'foundationpress' ),
|
|
|
|
'before_sidebar'=> '<main class="slides announcement top">',
|
|
|
|
'after_sidebar' => '</main>',
|
|
|
|
'before_widget' => '<section id="%1$s" class="widget slide top %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
register_sidebar(
|
|
|
|
array(
|
|
|
|
'id' => 'announcement-resources-middle-widgets',
|
|
|
|
'name' => __( 'Resources Announcement middle', 'foundationpress' ),
|
|
|
|
'description' => __( 'Drag widgets to this announcement container to be displayed in Resources secondary area.', 'foundationpress' ),
|
|
|
|
'before_sidebar'=> '<main class="slides announcement middle">',
|
|
|
|
'after_sidebar' => '</main>',
|
|
|
|
'before_widget' => '<section id="%1$s" class="widget slide middle %2$s">',
|
2022-03-30 21:00:42 +02:00
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
2021-04-27 22:21:26 +02:00
|
|
|
|
|
|
|
register_sidebar(
|
|
|
|
array(
|
|
|
|
'id' => 'footer-widgets',
|
|
|
|
'name' => __( 'Footer widgets', 'foundationpress' ),
|
2021-04-29 11:47:25 +02:00
|
|
|
'description' => __( 'Drag widgets to this footer container. They will show at the very bottom.', 'foundationpress' ),
|
2021-04-27 22:21:26 +02:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h6>',
|
|
|
|
'after_title' => '</h6>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-04-07 14:47:54 +02:00
|
|
|
add_action( 'widgets_init', 'arcHIVE_sidebar_widgets' );
|
2021-04-27 22:21:26 +02:00
|
|
|
endif;
|