-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsidebar.php
More file actions
58 lines (46 loc) · 1.24 KB
/
sidebar.php
File metadata and controls
58 lines (46 loc) · 1.24 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* The sidebar containing the main widget area
*
* @package system
* @subpackage AB_Theme
* @since 1.0.0
*/
?>
<aside id="secondary" class="widget-area">
<?php AB_Theme\Tags\theme_mode(); ?>
<?php
if ( is_active_sidebar( 'sidebar' ) ) :
dynamic_sidebar( 'sidebar' );
else : ?>
<?php get_search_form(); ?>
<h3><?php _e( 'Archives', 'antibrand' ); ?></h3>
<ul>
<?php wp_get_archives( 'type=monthly' ); ?>
</ul>
<?php the_widget(
'WP_Widget_Categories',
null,
[
'before_title' => '<h3>',
'after_title' => '</h3>'
]
); ?>
<h3><?php _e( 'Meta', 'antibrand' ); ?></h3>
<ul>
<?php wp_register(); ?>
<?php if ( is_user_logged_in() ) : ?>
<li>
<a href="<?php echo get_edit_user_link(); ?>"><?php _e( 'Your Profile', 'antibrand' ); ?></a>
</li>
<?php endif; ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
<h3><?php _e( 'Subscribe', 'antibrand' ); ?></h3>
<ul>
<li><a href="<?php bloginfo( 'rss2_url' ); ?>"><?php _e( 'Entries RSS', 'antibrand' ); ?></a></li>
<li><a href="<?php bloginfo( 'comments_rss2_url' ); ?>"><?php _e( 'Comments RSS', 'antibrand' ); ?></a></li>
</ul>
<?php endif; ?>
</aside>