From e0e74052636111f6aaf3f63adc6432123710a19c Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Mon, 24 Aug 2009 17:40:04 -0700 Subject: [PATCH] Footer displays first year to last year copyright, changed html for moods display Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-options.php | 18 ++++++++++++------ footer.php | 2 +- functions.php | 12 ++++++++++++ functions/moods.php | 23 +++++++++++++++-------- widgets/menubar.php | 3 ++- 5 files changed, 42 insertions(+), 16 deletions(-) diff --git a/comicpress-options.php b/comicpress-options.php index 2f39b65..f8d4eb6 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -25,7 +25,13 @@ function comicpress_admin() {
- +
+
+ + +
+
+
@@ -622,7 +628,7 @@ function comicpress_admin() { -
+
ComicPress , created by Tyler Martin, with John Bintz and Philip M. Hofer (Frumph)
If you like the ComicPress theme, please donate. It will help in creating new versions.
diff --git a/footer.php b/footer.php index 6bf4a46..b82b16f 100644 --- a/footer.php +++ b/footer.php @@ -10,7 +10,7 @@

- © . is powered by WordPress with ComicPress + © . is powered by WordPress with ComicPress | Subscribe: RSS Feed | Return to Top  

diff --git a/functions.php b/functions.php index 8455a35..406d073 100644 --- a/functions.php +++ b/functions.php @@ -699,4 +699,16 @@ function comicpress_is_active_sidebar( $name ) { return false; } +function cp_copyright_year() { + $latest_comic = get_terminal_post_in_category('',true); + $archive_year = get_post_time('Y', false, $latest_comic, true); + $current_year = date('Y'); + if ($archive_year == $current_year) { + $return_year = $current_year; + } else { + $return_year = $archive_year . '-' . $current_year; + } + return $return_year; +} + ?> \ No newline at end of file diff --git a/functions/moods.php b/functions/moods.php index 96f3bd2..6de8577 100644 --- a/functions/moods.php +++ b/functions/moods.php @@ -52,18 +52,24 @@ function comicpress_showmood_edit_post() { Using Moods from directory: '.$moods_directory.'
Current Mood: '.$mood.'

'; if (!empty($results)) { ?> -
- None.
- -
+
+ +
+ +
-
-
-
- +
+ +
+ />
@@ -71,6 +77,7 @@ function comicpress_showmood_edit_post() {
]*)>#', '
  • ]*)>#', '