mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-10 14:48:07 +02:00
21 lines
434 B
PHP
21 lines
434 B
PHP
|
<?php
|
||
|
/**
|
||
|
* The sidebar containing the main widget area
|
||
|
*
|
||
|
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||
|
*
|
||
|
* @package WordPress
|
||
|
* @subpackage Twenty_Seventeen
|
||
|
* @since 1.0
|
||
|
* @version 1.0
|
||
|
*/
|
||
|
|
||
|
if ( ! is_active_sidebar( 'sidebar-1' ) ) {
|
||
|
return;
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
<aside id="secondary" class="widget-area" role="complementary">
|
||
|
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||
|
</aside><!-- #secondary -->
|