summaryrefslogtreecommitdiff
path: root/sidebar.php
blob: f44aabec00f2662c5fe32ecf9bce8aeeedb62317 (plain)
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 primary and secondary widget areas.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?> 

	<div class="sidebar widget-area">
		<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( 'RightSide' ) ) { ?> 
			<p>Default Sidebar</p>
		<?php } ?> 
		</ul>
	</div><!-- .sidebar -->

<?php
	// A second sidebar for widgets, just because.
	if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?> 

	<div class="sidebar-secondary widget-area">
		<ul class="xoxo">
			<?php dynamic_sidebar( 'secondary-widget-area' ); ?> 
		</ul>
	</div><!-- #secondary .widget-area -->

<?php endif; ?>