2021-08-01 17:32:46 +00:00
< ? php
// Our action hook widget areas -- only display them if active
// header.php action hooks
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_header' ) == '1' ) :
add_action ( 'portage_before_header' , 'portage_before_header_fc' );
function portage_before_header_fc (){
if ( is_active_sidebar ( 'portage_before_header' ) ) {
echo '<div id="portage_before_header" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_header' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_top_menu' ) == '1' ) :
add_action ( 'portage_after_top_menu' , 'portage_after_top_menu_FC' );
function portage_after_top_menu_FC (){
if ( is_active_sidebar ( 'portage_after_top_menu' ) ) {
echo '<div id="portage_after_top_menu" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_after_top_menu' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_social_media' ) == '1' ) :
add_action ( 'portage_before_social_media' , 'portage_before_social_media_fc' );
function portage_before_social_media_fc (){
if ( is_active_sidebar ( 'portage_before_social_media' ) ) {
echo '<div id="portage_before_social_media" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_social_media' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_primary_menu' ) == '1' ) :
add_action ( 'portage_before_primary_menu' , 'portage_before_primary_menu_fc' );
function portage_before_primary_menu_fc (){
if ( is_active_sidebar ( 'portage_before_primary_menu' ) ) {
echo '<div id="portage_before_primary_menu" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_primary_menu' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_header' ) == '1' ) :
add_action ( 'portage_after_header' , 'portage_after_header_fc' );
function portage_after_header_fc (){
if ( is_active_sidebar ( 'portage_after_header' ) ) {
echo '<div id="portage_after_header" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_after_header' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
// index.php action hooks
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_container_top' ) == '1' ) :
add_action ( 'portage_container_top' , 'portage_container_top_fc' );
function portage_container_top_fc (){
if ( is_active_sidebar ( 'portage_container_top' ) ) {
echo '<div id="portage_container_top" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_container_top' );
2021-08-01 17:32:46 +00:00
echo '</div><div class="clear"></div>' ;
}
}
endif ;
// content.php action hooks
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_post_title' ) == '1' ) :
add_action ( 'portage_before_post_title' , 'portage_before_post_title_fc' );
function portage_before_post_title_fc (){
if ( is_active_sidebar ( 'portage_before_post_title' ) ) {
echo '<div id="portage_before_post_title" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_post_title' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_post_content' ) == '1' ) :
add_action ( 'portage_before_post_content' , 'portage_before_post_content_fc' );
function portage_before_post_content_fc (){
if ( is_active_sidebar ( 'portage_before_post_content' ) ) {
echo '<div id="portage_before_post_content" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_post_content' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_post_top' ) == '1' ) :
add_action ( 'portage_post_top' , 'portage_post_top_fc' );
function portage_post_top_fc (){
if ( is_active_sidebar ( 'portage_post_top' ) ) {
echo '<div id="portage_post_top" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_post_top' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_post_bottom' ) == '1' ) :
add_action ( 'portage_post_bottom' , 'portage_post_bottom_fc' );
function portage_post_bottom_fc (){
if ( is_active_sidebar ( 'portage_post_bottom' ) ) {
echo '<div id="portage_post_bottom" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_post_bottom' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_post_content' ) == '1' ) :
add_action ( 'portage_after_post_content' , 'portage_after_post_content_fc' );
function portage_after_post_content_fc (){
if ( is_active_sidebar ( 'portage_after_post_content' ) ) {
echo '<div id="portage_after_post_content" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_after_post_content' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_post_meta' ) == '1' ) :
add_action ( 'portage_before_post_meta' , 'portage_before_post_meta_fc' );
function portage_before_post_meta_fc (){
if ( is_active_sidebar ( 'portage_before_post_meta' ) ) {
echo '<div id="portage_before_post_meta" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_post_meta' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_post_meta' ) == '1' ) :
add_action ( 'portage_after_post_meta' , 'portage_after_post_meta_fc' );
function portage_after_post_meta_fc (){
if ( is_active_sidebar ( 'portage_after_post_meta' ) ) {
echo '<div id="portage_after_post_meta" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_after_post_meta' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
// comments.php action hooks
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_comments' ) == '1' ) :
add_action ( 'portage_before_comments' , 'portage_before_comments_fc' );
function portage_before_comments_fc (){
if ( is_active_sidebar ( 'portage_before_comments' ) ) {
echo '<div id="portage_before_comments" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_comments' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_comments' ) == '1' ) :
add_action ( 'portage_after_comments' , 'portage_after_comments_fc' );
function portage_after_comments_fc (){
if ( is_active_sidebar ( 'portage_after_comments' ) ) {
echo '<div id="portage_after_comments" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_after_comments' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_comment_form' ) == '1' ) :
add_action ( 'portage_before_comment_form' , 'portage_before_comment_form_fc' );
function portage_before_comment_form_fc (){
2021-08-01 17:32:46 +00:00
if ( comments_open () ) : {
2021-08-01 17:45:36 +00:00
if ( is_active_sidebar ( 'portage_before_comment_form' ) ) {
echo '<div id="portage_before_comment_form" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_comment_form' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_comment_form' ) == '1' ) :
add_action ( 'portage_after_comment_form' , 'portage_after_comment_form_fc' );
function portage_after_comment_form_fc (){
2021-08-01 17:32:46 +00:00
if ( comments_open () ) : {
2021-08-01 17:45:36 +00:00
if ( is_active_sidebar ( 'portage_after_comment_form' ) ) {
echo '<div id="portage_after_comment_form" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_after_comment_form' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
}
endif ;
// footer.php action hooks
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_container_bottom' ) == '1' ) :
add_action ( 'portage_container_bottom' , 'portage_container_bottom_fc' );
function portage_container_bottom_fc (){
if ( is_active_sidebar ( 'portage_container_bottom' ) ) {
echo '<div class="clear"></div><div id="portage_container_bottom" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_container_bottom' );
2021-08-01 17:32:46 +00:00
echo '</div><div class="clear"></div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_footer_menu' ) == '1' ) :
add_action ( 'portage_before_footer_menu' , 'portage_before_footer_menu_fc' );
function portage_before_footer_menu_fc (){
if ( is_active_sidebar ( 'portage_before_footer_menu' ) ) {
echo '<div id="portage_before_footer_menu" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_before_footer_menu' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_footer_top' ) == '1' ) :
add_action ( 'portage_footer_top' , 'portage_footer_top_fc' );
function portage_footer_top_fc (){
if ( is_active_sidebar ( 'portage_footer_top' ) ) {
echo '<div id="portage_footer_top" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_footer_top' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_footer_bottom' ) == '1' ) :
add_action ( 'portage_footer_bottom' , 'portage_footer_bottom_fc' );
function portage_footer_bottom_fc (){
if ( is_active_sidebar ( 'portage_footer_bottom' ) ) {
echo '<div id="portage_footer_bottom" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_footer_bottom' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_footer' ) == '1' ) :
add_action ( 'portage_after_footer' , 'portage_after_footer_fc' );
function portage_after_footer_fc (){
if ( is_active_sidebar ( 'portage_after_footer' ) ) {
echo '<div id="portage_after_footer" class="atticus-finch-action-hook">' ;
dynamic_sidebar ( 'portage_after_footer' );
2021-08-01 17:32:46 +00:00
echo '</div>' ;
}
}
endif ;
// Register our action hooks as widget areas
// codex.wordpress.org/Widgetizing_Themes
function greybox_action_hook_widgets () {
// Header widgets
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_header' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Header' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_header' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages just above the header and the "above header menu" (if you are using one).' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-header-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_top_menu' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'After Top Menu' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_after_top_menu' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages below the top menu and above the site name.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-top-menu-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_social_media' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Social Media' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_social_media' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages to the left of the title and to the right of the social media menu.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-social-media-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_primary_menu' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Primary Menu' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_primary_menu' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages above the primary menu.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-primary-menu-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_header' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'After Header' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_after_header' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages after the header and before the main content and sidebar.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-header-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
// Index widgets
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_container_top' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Top of Container' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_container_top' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages above the sidebar and content.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-container-top-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
// Content widgets
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_post_title' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Post Title' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_post_title' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages before the post title.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-post-title-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_post_content' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Post Content' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_post_content' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages after the title and before the post content.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-post-content-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_post_top' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Top of Post' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_post_top' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages at the top of the post.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-post-top-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_post_bottom' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Bottom of Post' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_post_bottom' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages at the bottom of the post.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-post-bottom-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_post_content' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'After Post Content' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_after_post_content' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages after the post content.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-post-content-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_post_meta' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Post Meta' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_post_meta' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages before the post meta.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-post-meta-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_post_meta' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'After Post Meta' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_after_post_meta' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages after the post meta.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-post-meta-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
// Comments widgets
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_comments' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Comments' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_comments' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages before the comments.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-comments-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_comments' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'After Comments' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_after_comments' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages after the comments.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-comments-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_comment_form' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Comment Form' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_comment_form' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages before the comment form.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-comment-form-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_comment_form' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'After Comment Form' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_after_comment_form' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages after the comment form.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-comment-form-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
// Footer widgets
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_container_bottom' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Bottom of Container' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_container_bottom' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages before the footer.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-container-bottom-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_before_footer_menu' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Before Footer Menu' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_before_footer_menu' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages before the footer menu.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-before-footer-menu-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_footer_top' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Footer Top' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_footer_top' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages at the top of the footer.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-footer-top-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_footer_bottom' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'Footer Bottom' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_footer_bottom' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages at the bottom of the footer.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-footer-bottom-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
2021-08-01 17:45:36 +00:00
if ( get_theme_mod ( 'portage_after_footer' ) == '1' ) :
2021-08-01 17:32:46 +00:00
register_sidebar ( array (
'name' => 'After Footer' ,
2021-08-01 17:45:36 +00:00
'id' => 'portage_after_footer' ,
2021-08-01 17:32:46 +00:00
'description' => __ ( 'Widgets in this area will be shown on all posts and pages after the footer.' , 'atticus-finch' ),
'before_widget' => '<div class="atticus-finch-after-footer-widget">' ,
'after_widget' => '</div>' ,
'before_title' => '<h3>' ,
'after_title' => '</h3>' ,
) );
endif ;
} // end function
add_action ( 'widgets_init' , 'greybox_action_hook_widgets' );