This repository was archived by the owner on Apr 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
52 lines (52 loc) · 1.75 KB
/
Copy pathsidebar.php
File metadata and controls
52 lines (52 loc) · 1.75 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
<?php
/**
* sidebar.php
*
* A sidebar is any widgetized area of your theme. Widget areas are
* places in your theme where users can add their own widgets. You do not
* need to include a sidebar in your theme, but including a sidebar means
* users can add content to the widget areas through the Customizer or the
* Widgets Admin Panel.
*/
?>
<?php do_action( 'tvs_before_sidebar' ); ?>
<aside class="col-sm-3 col-sm-offset-1 blog-sidebar">
<?php
/**
* if there are no active widgets then display a search widget,
* archive widget and a "meta" widget which displays login, signup and
* a RSS feed.
*/
if ( ! is_active_sidebar( 'primary' ) ) {
?>
<div class="sidebar-module sidebar-module-inset">
<h4>Info</h4>
<p>This is a default sidebar, please go the <em>Customizer</em> or <em>Widgets Admin Panel</em> to add actual widgets.</p>
</div>
<div class="sidebar-module">
<h4>About</h4>
<?php
bloginfo('description');
// get_search_form(); ?>
</div>
<div class="sidebar-module">
<h4>Archives</h4>
<ol class="list-unstyled">
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ol>
</div>
<div class="sidebar-module">
<h4>Elsewhere</h4>
<ol class="list-unstyled">
<li><a href="#">Github</a></li>
<li><a href="#">Github</a></li>
<li><a href="#">Github</a></li>
</ol>
</div>
<?php
do_action('tvs_after_sidebar_inner');
} else {
dynamic_sidebar( 'primary' );
} ?>
</aside><!-- /.blog-sidebar -->
<?php do_action( 'tvs_after_sidebar' ); ?>