1 | <div id="sidebar">
|
---|
2 |
|
---|
3 | <?php
|
---|
4 | $mysitename = get_bloginfo('name');
|
---|
5 | $myfeedid = get_option('feedid');
|
---|
6 | if (get_option('feedid')) {
|
---|
7 | echo "
|
---|
8 | <div class='sidebartop'></div>
|
---|
9 | <div class='sidebarcontent'>
|
---|
10 | <ul>
|
---|
11 | <li>
|
---|
12 | <h2>Get the updates by email</h2>
|
---|
13 | <form action='http://www.feedburner.com/fb/a/emailverify' method='post' target='popupwindow' onsubmit=\"window.open('http://www.feedburner.com/fb/a/emailverifySubmit?feedId=$myfeedid', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\"><p><input type='text' name='email' id='feedbox' /><input type='hidden' value='http://feeds.feedburner.com/~e?ffid=$myfeedid' name='url'/><input type='hidden' value='$mysitename' name='title'/><input type='hidden' name='loc' value='en_US'/><input type='submit' value='Subscribe' class='feedsubmit' /></p></form>
|
---|
14 | </li>
|
---|
15 | </ul>
|
---|
16 | </div>
|
---|
17 | <div class='sidebarbottom'></div>
|
---|
18 |
|
---|
19 | ";
|
---|
20 | }
|
---|
21 | else {echo "";} ?>
|
---|
22 |
|
---|
23 | <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_full') ) : ?>
|
---|
24 | <div class="sidebartop"></div>
|
---|
25 | <div class="sidebarcontent">
|
---|
26 | <ul>
|
---|
27 | <li>
|
---|
28 | <h2>Latest entries</h2>
|
---|
29 | <ul><?php wp_get_archives('type=postbypost&limit=10'); ?></ul>
|
---|
30 | </li>
|
---|
31 | </ul>
|
---|
32 | </div>
|
---|
33 | <div class="sidebarbottom"></div>
|
---|
34 |
|
---|
35 |
|
---|
36 | <div class="sidebartop"></div>
|
---|
37 | <div class="sidebarcontent">
|
---|
38 | <ul>
|
---|
39 | <li>
|
---|
40 | <h2>Browse popular tags</h2>
|
---|
41 | <?php wp_tag_cloud('smallest=8&largest=17&number=30'); ?>
|
---|
42 | </li>
|
---|
43 | </ul>
|
---|
44 | </div>
|
---|
45 | <div class="sidebarbottom"></div>
|
---|
46 | <?php endif; ?>
|
---|
47 |
|
---|
48 |
|
---|
49 | <div class="sidebartop"></div>
|
---|
50 | <div class="sidebarcontent">
|
---|
51 |
|
---|
52 | <div id="sidebarleft">
|
---|
53 | <ul>
|
---|
54 |
|
---|
55 | <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_left') ) : ?>
|
---|
56 | <li>
|
---|
57 | <h2>Categories</h2>
|
---|
58 | <ul>
|
---|
59 | <?php wp_list_categories('orderby=name&title_li=&depth=2'); ?>
|
---|
60 | </ul>
|
---|
61 | </li>
|
---|
62 |
|
---|
63 | <li>
|
---|
64 | <h2>Blogroll</h2>
|
---|
65 | <ul>
|
---|
66 | <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
|
---|
67 | </ul>
|
---|
68 | </li>
|
---|
69 | <?php endif; ?>
|
---|
70 |
|
---|
71 | </ul>
|
---|
72 | </div><!-- Closes Sidebarleft -->
|
---|
73 |
|
---|
74 |
|
---|
75 | <div id="sidebarright">
|
---|
76 | <ul>
|
---|
77 |
|
---|
78 | <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_right') ) : ?>
|
---|
79 | <li>
|
---|
80 | <h2>Archives</h2>
|
---|
81 | <ul>
|
---|
82 | <?php wp_get_archives('type=monthly'); ?>
|
---|
83 | </ul>
|
---|
84 | </li>
|
---|
85 |
|
---|
86 | <li>
|
---|
87 | <h2>Admin</h2>
|
---|
88 | <ul>
|
---|
89 | <?php wp_meta(); ?>
|
---|
90 | <?php wp_register(); ?>
|
---|
91 | <li><?php wp_loginout(); ?></li>
|
---|
92 | <li><a href="http://www.wordpress.org/">WordPress</a></li>
|
---|
93 | <li><a href="http://validator.w3.org/check?uri=referer">XHTML</a></li>
|
---|
94 | </ul>
|
---|
95 | </li>
|
---|
96 | <?php endif; ?>
|
---|
97 |
|
---|
98 | </ul>
|
---|
99 | </div><!-- Closes Sidebarright -->
|
---|
100 |
|
---|
101 | <div class="cleared"></div>
|
---|
102 | </div><!-- Closes Sidebarcontent -->
|
---|
103 | <div class="sidebarbottom"></div>
|
---|
104 |
|
---|
105 |
|
---|
106 | </div> <!-- Closes Sidebar -->
|
---|