diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..133c808 --- /dev/null +++ b/archive.php @@ -0,0 +1,122 @@ + + + + + + + +

+
+ + +

+
+ + + +

Browse by date:

+ + + +

Browse by subject:

+ + + +

If all else fails, try searching for it—

+ + + +
+ + + + +posts "; + $sql .= "WHERE DATE_FORMAT(post_date, '%Y') <> '0000'"; + $sql .= " AND post_status = 'publish'"; + $sql .= " AND post_type = 'post' "; + $sql .= "GROUP BY DATE_FORMAT(post_date, '%Y'), DATE_FORMAT(post_date, '%m') "; + $sql .= "ORDER BY DATE_FORMAT(post_date, '%Y') DESC, DATE_FORMAT(post_date, '%m') ASC;"; + + $months = $wpdb->get_results($sql); + + if (!empty($months)) + { + foreach ($months as $month) + { + // Add in the year heading + if (($year == "") || ($year != $month->Year)) + { + if (strlen($output)) + { + $output .= "
\n" . $month->Year . ": "; + } + else + { + $output .= "\n" . $month->Year . ": "; + } + } + + // Add in the monthly archive links + if ($year == $month->Year) + $output .= $month_separator; + + $output .= '' . date($month_format, mktime(0, 0, 0, $month->Month, 1, $month->Year)) . ''; + + $year = $month->Year; + } + } + else + { + $output = "

None available

\n"; + } + + print $output; +} + +?> \ No newline at end of file diff --git a/comments.php b/comments.php index 621a792..4cd4e08 100644 --- a/comments.php +++ b/comments.php @@ -1,14 +1,10 @@ + + -
+
-

Comments: -

+

Comments:

-
\ No newline at end of file +
\ No newline at end of file diff --git a/content.php b/content.php index 08e3816..ee57e1e 100644 --- a/content.php +++ b/content.php @@ -1,6 +1,6 @@
@@ -11,13 +11,4 @@ -
- -
-
diff --git a/footer.php b/footer.php index 142affb..c0b3d95 100644 --- a/footer.php +++ b/footer.php @@ -1,3 +1,8 @@ + +