diff options
Diffstat (limited to 'themes/twentynineteen/template-parts/footer/footer-widgets.php')
-rw-r--r-- | themes/twentynineteen/template-parts/footer/footer-widgets.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/themes/twentynineteen/template-parts/footer/footer-widgets.php b/themes/twentynineteen/template-parts/footer/footer-widgets.php new file mode 100644 index 00000000..163cbd89 --- /dev/null +++ b/themes/twentynineteen/template-parts/footer/footer-widgets.php @@ -0,0 +1,24 @@ +<?php +/** + * Displays the footer widget area + * + * @package WordPress + * @subpackage Twenty_Nineteen + * @since 1.0.0 + */ + +if ( is_active_sidebar( 'sidebar-1' ) ) : ?> + + <aside class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'twentynineteen' ); ?>"> + <?php + if ( is_active_sidebar( 'sidebar-1' ) ) { + ?> + <div class="widget-column footer-widget-1"> + <?php dynamic_sidebar( 'sidebar-1' ); ?> + </div> + <?php + } + ?> + </aside><!-- .widget-area --> + +<?php endif; ?> |