first commit
This commit is contained in:
42
wp-content/themes/Bootstrap-for-WordPress-master/sidebar.php
Normal file
42
wp-content/themes/Bootstrap-for-WordPress-master/sidebar.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* The Sidebar containing the primary and secondary widget areas.
|
||||
*
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="primary" class="widget-area" role="complementary">
|
||||
<ul class="xoxo">
|
||||
|
||||
<?php
|
||||
/* When we call the dynamic_sidebar() function, it'll spit out
|
||||
* the widgets for that widget area. If it instead returns false,
|
||||
* then the sidebar simply doesn't exist, so we'll hard-code in
|
||||
* some default sidebar stuff just in case.
|
||||
*/
|
||||
if ( ! dynamic_sidebar( 'sidebar-widget-area' ) ) : ?>
|
||||
|
||||
<li id="search" class="widget-container widget_search">
|
||||
<?php get_search_form(); ?>
|
||||
</li>
|
||||
|
||||
<li id="archives" class="widget-container">
|
||||
<h3 class="widget-title"><?php _e( 'Archives', 'bootstrap' ); ?></h3>
|
||||
<ul>
|
||||
<?php wp_get_archives( 'type=monthly' ); ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li id="meta" class="widget-container">
|
||||
<h3 class="widget-title"><?php _e( 'Meta', 'bootstrap' ); ?></h3>
|
||||
<ul>
|
||||
<?php wp_register(); ?>
|
||||
<li><?php wp_loginout(); ?></li>
|
||||
<?php wp_meta(); ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<?php endif; // end primary widget area ?>
|
||||
</ul>
|
||||
</div><!-- #primary .widget-area -->
|
||||
|
Reference in New Issue
Block a user