-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidebar.php
35 lines (31 loc) · 952 Bytes
/
sidebar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Grocery_Store
*/
?>
<aside id="secondary" class="widget-area sidebar">
<?php
if ( is_active_sidebar( 'sidebar-1' ) ) {
dynamic_sidebar( 'sidebar-1' );
}else{ ?>
<div id="search" class="widget widget_search">
<?php get_search_form(); ?>
</div>
<div id="archives" class="widget">
<h3 class="widget-title"><?php esc_html_e( 'Archives', 'grocery-store' ); ?></h3>
<ul><?php wp_get_archives( array( 'type' => 'monthly' ) ); ?></ul>
</div>
<div id="meta" class="widget">
<h3 class="widget-title"><?php esc_html_e( 'Meta', 'grocery-store' ); ?></h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</div>
<?php }?>
</aside><!-- #secondary -->