Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 120 lines (100 sloc) 3.82 kb
03275de @splorp Added Starkers 2.8.5 theme files
authored
1 <?php
2 /**
3 * @package WordPress
7b590ff @splorp Updated @subpackage tags, again
authored
4 * @subpackage Tersus
03275de @splorp Added Starkers 2.8.5 theme files
authored
5 */
6 ?>
3a725b1 @cdharrison Updated files to use searchform.php rather than get_search_form so we co...
cdharrison authored
7
8db915d @splorp Replaced sidebar <section> elements with <aside>
authored
8 <aside id="sidebar-1">
84d2a19 @splorp Code formatting
authored
9 <ul>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
10 <?php
11 // Insert widgetized sidebar
12 // Only appears if the plugin is installed and widgets are active
84d2a19 @splorp Code formatting
authored
13 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'sidebar2' ) ) :
5a0f959 @splorp Archives no longer appear when widgets are active
authored
14
15 // Otherwise insert default sidebar elements
84d2a19 @splorp Code formatting
authored
16 ?>
17 <li>
e43d1d4 @splorp Revert d17ac704cdcb159532374957a8553b4eb3263cfe^..HEAD
authored
18 <h2>Search</h2>
84d2a19 @splorp Code formatting
authored
19 <?php
20 include ( TEMPLATEPATH . '/searchform.php' );
21 /*
22 get_search_form();
3a725b1 @cdharrison Updated files to use searchform.php rather than get_search_form so we co...
cdharrison authored
23
84d2a19 @splorp Code formatting
authored
24 Because we’ve added searchform.php to the theme, using
25 the built-in function isn’t necessary. We’ve left the
26 syntax in place in case you prefer to use it instead.
03275de @splorp Added Starkers 2.8.5 theme files
authored
27
84d2a19 @splorp Code formatting
authored
28 http://codex.wordpress.org/Function_Reference/get_search_form
29 */
30 ?>
31 </li>
03275de @splorp Added Starkers 2.8.5 theme files
authored
32
84d2a19 @splorp Code formatting
authored
33 <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ) { ?>
34 <li>
03275de @splorp Added Starkers 2.8.5 theme files
authored
35
572073d @splorp Removed obvious comments to clean things up
authored
36 <?php if (is_404()) { ?>
84d2a19 @splorp Code formatting
authored
37
572073d @splorp Removed obvious comments to clean things up
authored
38 <?php } elseif (is_category()) { ?>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
39 <p>You are browsing the <strong>“<?php single_cat_title(''); ?>”</strong> category archive.</p>
84d2a19 @splorp Code formatting
authored
40
572073d @splorp Removed obvious comments to clean things up
authored
41 <?php } elseif (is_day()) { ?>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
42 <p>You are browsing the <strong><?php the_time('l, F jS, Y'); ?></strong> archive.</p>
84d2a19 @splorp Code formatting
authored
43
572073d @splorp Removed obvious comments to clean things up
authored
44 <?php } elseif (is_month()) { ?>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
45 <p>You are browsing the <strong><?php the_time('F, Y'); ?></strong> archive.</p>
84d2a19 @splorp Code formatting
authored
46
572073d @splorp Removed obvious comments to clean things up
authored
47 <?php } elseif (is_year()) { ?>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
48 <p>You are browsing the <strong><?php the_time('Y'); ?></strong> archive.</p>
84d2a19 @splorp Code formatting
authored
49
572073d @splorp Removed obvious comments to clean things up
authored
50 <?php } elseif (is_search()) { ?>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
51 <p>You are browsing the search results for <strong>“<?php the_search_query(); ?>”</strong>.</p>
84d2a19 @splorp Code formatting
authored
52
572073d @splorp Removed obvious comments to clean things up
authored
53 <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
54 <p>You are browsing the archive.</p>
84d2a19 @splorp Code formatting
authored
55
5a0f959 @splorp Archives no longer appear when widgets are active
authored
56 <?php } ?>
84d2a19 @splorp Code formatting
authored
57 </li>
58 <?php
59 }
5a0f959 @splorp Archives no longer appear when widgets are active
authored
60
572073d @splorp Removed obvious comments to clean things up
authored
61 if ( is_home() || is_page() ) {
5a0f959 @splorp Archives no longer appear when widgets are active
authored
62 wp_list_bookmarks();
84d2a19 @splorp Code formatting
authored
63 ?>
64 <li>
65 <h2>Meta</h2>
1c3b166 @cdharrison Added 2nd Dynamic Sidebar
cdharrison authored
66 <ul>
84d2a19 @splorp Code formatting
authored
67 <?php wp_register(); ?>
68 <li><?php wp_loginout(); ?></li>
69 <li>Valid <a href="http://validator.w3.org/check/referer" title="This page validates as HTML5"><abbr title="HyperText Markup Language">HTML5</abbr></a></li>
70 <li>Valid <a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo bloginfo('stylesheet_url'); ?>" title="The stylesheet for this page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a></li>
71 <li>Valid <a href="http://validator.w3.org/feed/check.cgi?url=<?php echo bloginfo('rss_url'); ?>" title="The feed for this page validates as RSS"><abbr title="Really Simple Syndication">RSS</abbr></a></li>
16e7fd9 @splorp Added a bunch of missing title attributes
authored
72 <li><a href="http://gmpg.org/xfn/" title="This site uses XFN markup"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
84d2a19 @splorp Code formatting
authored
73 <?php wp_meta(); ?>
1c3b166 @cdharrison Added 2nd Dynamic Sidebar
cdharrison authored
74 </ul>
84d2a19 @splorp Code formatting
authored
75 </li>
76
77 <?php
78 }
5a0f959 @splorp Archives no longer appear when widgets are active
authored
79 endif;
84d2a19 @splorp Code formatting
authored
80 ?>
81 </ul>
8db915d @splorp Replaced sidebar <section> elements with <aside>
authored
82 </aside>
84d2a19 @splorp Code formatting
authored
83
8db915d @splorp Replaced sidebar <section> elements with <aside>
authored
84 <aside id="sidebar-2">
84d2a19 @splorp Code formatting
authored
85 <ul>
86 <?php
5a0f959 @splorp Archives no longer appear when widgets are active
authored
87
88 // Insert widgetized sidebar
89 // Only appears if the plugin is installed and widgets are active
84d2a19 @splorp Code formatting
authored
90 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 'sidebar1' ) ) :
91
5a0f959 @splorp Archives no longer appear when widgets are active
authored
92 // Otherwise insert default sidebar elements
93 global $options;
94 foreach ($options as $value) {
95 if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] );
cb39e40 @splorp New theme options for page and category lists
authored
96 }
5a0f959 @splorp Archives no longer appear when widgets are active
authored
97 }
98
99 // Display a list of pages
100 if ($tersus_page_depth == "1") $depth = '0'; else $depth = '1';
101 wp_list_pages('depth=' . $depth . '&title_li=<h2>Pages</h2>' );
102
103 // Display a list of categories
31c80bd @splorp New theme option for archive lists
authored
104 if ($tersus_category_count == "1") $category_count = '1'; else $category_count = '0';
105 wp_list_categories('show_count=' . $category_count . '&title_li=<h2>Categories</h2>');
9cd6c85 @splorp Adjusted order of sidebar elements
authored
106 ?>
84d2a19 @splorp Code formatting
authored
107 <li><h2>Archives</h2>
108 <ul>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
109 <?php
110 // Display a list of monthly archives
31c80bd @splorp New theme option for archive lists
authored
111 if ($tersus_archive_count == "1") $archive_count = '1'; else $archive_count = '0';
112 wp_get_archives('show_post_count=' . $archive_count . '&type=monthly');
5a0f959 @splorp Archives no longer appear when widgets are active
authored
113 ?>
84d2a19 @splorp Code formatting
authored
114 </ul>
115 </li>
5a0f959 @splorp Archives no longer appear when widgets are active
authored
116 <?php
117 endif;
118 ?>
84d2a19 @splorp Code formatting
authored
119 </ul>
8db915d @splorp Replaced sidebar <section> elements with <aside>
authored
120 </aside>
Something went wrong with that request. Please try again.