wordcamp-bristol-2019/wp-content/themes/twentynineteen-tailwindcss/template-parts/footer/footer-widgets.php
Oliver Davies 91cdf824f2 Rename sidebar to sidebar-1
Matches the parent theme, so widgets should be pre-placed.
2019-04-16 20:25:28 +01:00

25 lines
510 B
PHP

<?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 flex flex-wrap -mx-6">
<?php dynamic_sidebar('sidebar-1'); ?>
</div>
<?php
}
?>
</aside><!-- .widget-area -->
<?php endif; ?>