<?php if ( !defined( 'ABSPATH' ) ) exit;
global
$birdhouse_,
$birdhouse_Settings;
// Sidebar name
$birdhouse_['sidebar'] = esc_html( !empty( $birdhouse_['sidebar'] ) ? $birdhouse_['sidebar'] : 'default-sidebar' );
// Sidebar sticky
$birdhouse_['sidebar_primary_sticky'] = esc_html( !empty( $birdhouse_Settings['sidebar_primary_sticky'] ) ? ' st-sticky' : '' );
if(is_front_page()){ $only_if_is_front_page = $birdhouse_['sidebar_primary_sticky']; }
echo '<div role="complementary" class="sidebar-primary' . $only_if_is_front_page . '" data-master="content-box"><div class="sidebar">';
dynamic_sidebar( $birdhouse_['sidebar'] );
echo '</div></div>';
?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.