From 92767914a311ca4a9d0b5fa74bfe3fbb1865c7b4 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Wed, 9 Sep 2009 10:07:24 -0700 Subject: [PATCH] various things Signed-off-by: Philip M. Hofer (Frumph) --- archive.php | 6 ++++-- comicpress-options-config.php | 7 ++++++- comicpress-options.php | 15 +++++++++++++++ functions.php | 3 ++- functions/membersonly.php | 2 ++ style.css | 4 ---- themepack/silver/notes.php | 1 + themepack/twopointfive/style.css | 1 + 8 files changed, 31 insertions(+), 8 deletions(-) diff --git a/archive.php b/archive.php index 6b60a2d..31f2829 100644 --- a/archive.php +++ b/archive.php @@ -28,14 +28,16 @@
post_count; ?>
Found result.
- +
diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 577a605..b13b622 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -217,7 +217,12 @@ $options = array ( array( "id" => "comicpress-avatar_directory", "default" => "default", - "type" => "comicpress-avatar_directory"), + "type" => "comicpress-avatar_directory"), + + array( + "id" => "comicpress-archive_display_order", + "default" => "desc", + "type" => "comicpress-archive_display_order"), array("type" => "close") ); diff --git a/comicpress-options.php b/comicpress-options.php index 57efbb4..1f24215 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -394,6 +394,21 @@ function comicpress_admin() { + + Display Archive in Ascending or Descending order?

Long time ago or most recent displays first?
+ + + + + + diff --git a/functions.php b/functions.php index 50b4f35..ad478f2 100644 --- a/functions.php +++ b/functions.php @@ -85,7 +85,8 @@ if (get_option('upload_path') !== false) { 'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links', 'disable_footer_text' => 'disable_footer_text', 'themepack_directory' => 'themepack_directory', - 'avatar_directory' => 'avatar_directory' ) as $options => $variable_name) { + 'avatar_directory' => 'avatar_directory', + 'archive_display_order' => 'archive_display_order' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } diff --git a/functions/membersonly.php b/functions/membersonly.php index 9a873aa..1f60259 100644 --- a/functions/membersonly.php +++ b/functions/membersonly.php @@ -26,6 +26,8 @@ function shortcode_for_comicpress_members_only( $atts, $content = null ) { $is_member = get_usermeta($current_user->ID,'comicpress-is-member'); if ( ( $is_member == 'yes' || current_user_can( 'publish_posts' ) ) && !is_feed() ) { return '
'.$content.'
'; + } else { + return '
There is Members Only content here.
'; } } return ''; diff --git a/style.css b/style.css index eac6ebf..563cd19 100644 --- a/style.css +++ b/style.css @@ -447,11 +447,9 @@ a.navi-comments:hover span { .nav a, .pagenav a, .nav-blog a { display: block; float: left; - color: #000; } .nav a:hover, .pagenav a:hover, .nav-blog a:hover { - color: #800; } /* POSTS - PAGES */ @@ -611,11 +609,9 @@ a.navi-comments:hover span { } .comment-link a { - color: #800; } .comment-link a:hover { - color: #ff0000; } .comment-balloon { diff --git a/themepack/silver/notes.php b/themepack/silver/notes.php index e87c211..5ae36ae 100644 --- a/themepack/silver/notes.php +++ b/themepack/silver/notes.php @@ -3,4 +3,5 @@ Layouts: standard, 3c, gn, v, v3c

Installation Notes:
+None.
diff --git a/themepack/twopointfive/style.css b/themepack/twopointfive/style.css index 99388ff..7a3a35f 100644 --- a/themepack/twopointfive/style.css +++ b/themepack/twopointfive/style.css @@ -40,6 +40,7 @@ body { padding: 20px 0; color: #fff; background: #222; + border-bottom: solid 1px #000; } #comic_navi_wrapper, #comic, .pagenav {