arc-hive-wordpress-theme/library/widget-areas.php

77 lines
2.8 KiB
PHP
Raw Normal View History

<?php
/**
* Register widget areas
*
2021-04-28 01:20:47 +02:00
* @package arcHIVE-theme
* @since arcHIVE-theme 1.0.0
*/
if ( ! function_exists( 'foundationpress_sidebar_widgets' ) ) :
function foundationpress_sidebar_widgets() {
2021-04-29 11:47:25 +02:00
register_sidebar(
array(
'id' => 'home-announcement-widgets',
'name' => __( 'Home Announcement widgets', 'foundationpress' ),
'description' => __( 'Drag widgets to this Home page container that will show at the top.', 'foundationpress' ),
'before_sidebar'=> '<main class="slides">',
'after_sidebar' => '</main>',
'before_widget' => '<section id="%1$s" class="widget slide home-announcement %2$s">',
'after_widget' => '</section>',
'before_title' => '<h6>',
'after_title' => '</h6>',
)
);
register_sidebar(
array(
'id' => 'home-announcement-middle-widgets',
'name' => __( 'Home Announcement Middle widgets', 'foundationpress' ),
'description' => __( 'Drag widgets to this Home page container that will show in the middle.', 'foundationpress' ),
'before_sidebar'=> '<main class="slides">',
'after_sidebar' => '</main>',
'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',
'name' => __( 'Home Announcement Bottom widgets', 'foundationpress' ),
'description' => __( 'Drag widgets to this Home page container that will show at the bottom.', 'foundationpress' ),
'before_sidebar'=> '<main class="slides">',
'after_sidebar' => '</main>',
'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>',
)
);
register_sidebar(
array(
2021-04-29 11:47:25 +02:00
'id' => 'announcement-widgets',
'name' => __( 'Announcement widgets', 'foundationpress' ),
'description' => __( 'Drag widgets to this announcement container.', 'foundationpress' ),
'before_widget' => '<section id="%1$s" class="widget slide %2$s">',
'after_widget' => '</section>',
'before_title' => '<h6>',
'after_title' => '</h6>',
)
);
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' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h6>',
'after_title' => '</h6>',
)
);
}
add_action( 'widgets_init', 'foundationpress_sidebar_widgets' );
endif;