From b12cf93083c541e64e206c328c42ed7889aa7fc5 Mon Sep 17 00:00:00 2001 From: mindfaucet Date: Sun, 29 Nov 2009 22:48:02 -0700 Subject: [PATCH 01/86] Comments styling and CSS minimizing. --- functions/comment-functions.php | 65 ++++++----- options/postoptions.php | 2 +- style.css | 156 +++++++++++++------------- widgets/GraphicalNavigationWidget.inc | 12 +- 4 files changed, 120 insertions(+), 115 deletions(-) diff --git a/functions/comment-functions.php b/functions/comment-functions.php index 472357a..09abd52 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -38,7 +38,7 @@ function comicpress_avatar() { $id_or_email = get_comment_author_email(); if (empty($id_or_email)) $id_or_email = get_comment_author(); if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { - echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 72)); + echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 80)); } else { if ($comment_type == 'pingback' || $comment_type == 'trackback') { echo ''; @@ -128,46 +128,51 @@ function comicpress_comments_callback($comment, $args, $depth) {
+ +
+ +
- - -
- + )); + endif; ?> + + '.__('Edit','comicpress').'',' | ',''); ?> + + comment_approved == '0') : ?> +
+ +
- -
+ + +
+ +
+ +
+ +
+ - + /> diff --git a/style.css b/style.css index 5148486..3e8922c 100644 --- a/style.css +++ b/style.css @@ -48,7 +48,7 @@ img { } small { - font-size: 10px; + font-size: 11px; } hr { @@ -68,12 +68,11 @@ blockquote { border-color: #000; } -cite { +blockquote cite { margin: 5px 0 0; display: block; font-weight: bold; font-family: 'Arial', sans-serif; - font-style: normal; font-size: 12px; } @@ -472,7 +471,7 @@ h3, h3 a { .post-info, .post-comic-info { padding-bottom: 5px; - font-size: 10px; + font-size: 11px; } .post-text, .post-comic-text { @@ -594,90 +593,92 @@ h3, h3 a { /* COMMENTS */ -#comment-wrapper { - margin-top: 5px; +.comment { + display: block; + margin-top: 20px; } - .comment { - padding: 2px; - clear: both; - } .comment .comment { - margin-left: 30px; + margin: 10px 0 0 90px; } - .comment .avatar { - margin: 0; - padding: 0; - float: left; + .comment .comment .comment { + margin-left: 45px; } - .comment .comment .avatar { - width: 48px; - height: 48px; - } - - .comment .trackping { - float: left; - } - - #comment-wrapper #respond { - padding: 5px; - } - - .comment-note { - width: 400px; - display: block; - font-size: 11px; - } - - .comment-text { - font-size: 13px; - padding: 10px 5px 5px; - float: left; - } - - .comment-author { - padding-left: 5px; - display: inline; - } - - .comment-author cite { - padding: 0; - margin: 0; - font-size: 16px; - display: inline; - } - - .comment .comment .comment-author cite { - font-size: 14px; - } - - .comment-time { - padding-left: 5px; - } - - .comment-moderated em { - color: #f00; - padding-left: 5px; - } - - li.comment { - margin-top: 10px; - } - -.comment-meta-data { +.comment-avatar { + width: 80px; + height: 80px; + float: left; + overflow: hidden; } + .comment .comment .comment-avatar { + width: 40px; + height: 40px; + } + + .comment .comment .avatar { + width: 40px; + height: 40px; + } + +.comment-author cite { + font-weight: bold; + font-style: normal; + font-size: 16px; +} + + .comment .comment .comment-author cite { + font-size: 14px; + } + + .comment .comment .comment-author { + display: inline; + } + +.comment-meta-data { + font-size: 11px; +} + + .comment .comment .comment-meta-data { + display: inline; + } + + .comment .comment .comment-permalink { + display: none; + } + +.comment-moderated { + font-style: italic; + font-size: 15px; +} + +.comment-content { + margin-left: 90px; +} + + .comment .comment .comment-content { + margin-left: 45px; + } + +.comment-text p { + padding: 5px 0 0 0; + margin: 0; + font-size: 12px; +} + +.comment-note { + width: 400px; + display: block; + font-size: 11px; +} + .comment-meta { display: inline; border-left: 1px solid #000; } -.says { - display: none; -} - .commentsrsslink { float: right; font-size: 11px; @@ -704,7 +705,6 @@ h3, h3 a { ol.commentlist { margin: 0; padding: 10px 0 30px 0; - font-size: 11px; list-style: none; } @@ -863,7 +863,7 @@ ul.children { } #wp-calendar th { - font-size: 10px; + font-size: 11px; font-weight: normal; text-align: center; } @@ -1201,7 +1201,7 @@ li.pingback div p, li.trackback div p { display: block; float: left; text-align: center; - font-size: 10px; + font-size: 11px; line-height: 13px; } @@ -1212,7 +1212,7 @@ li.pingback div p, li.trackback div p { display: block; float: left; text-align: center; - font-size: 10px; + font-size: 11px; line-height: 13px; border: 1px solid #999; } diff --git a/widgets/GraphicalNavigationWidget.inc b/widgets/GraphicalNavigationWidget.inc index 8316407..3835838 100644 --- a/widgets/GraphicalNavigationWidget.inc +++ b/widgets/GraphicalNavigationWidget.inc @@ -356,17 +356,17 @@ class GraphicalNavigationWidget extends WP_Widget { ); $title_defaults = array( - 'first_title' => __('‹‹ First', 'comicpress'), + 'first_title' => __('First', 'comicpress'), 'story_prev_title' => __('Chapter', 'comicpress'), 'story_next_title' => __('Chapter', 'comicpress'), - 'story_prev_in_title' => __('In Chapter', 'comicpress'), - 'story_next_in_title' => __('In Chapter', 'comicpress'), - 'previous_title' => __('‹ Previous', 'comicpress'), + 'story_prev_in_title' => __('In Chapter', 'comicpress'), + 'story_next_in_title' => __('In Chapter', 'comicpress'), + 'previous_title' => __('Previous', 'comicpress'), 'random_title' => __('Random', 'comicpress'), 'archives_title' => __('Archives', 'comicpress'), 'comments_title' => __('Comments', 'comicpress'), - 'next_title' => __('Next ›', 'comicpress'), - 'last_title' => __('Last ››', 'comicpress'), + 'next_title' => __('Next', 'comicpress'), + 'last_title' => __('Last', 'comicpress'), 'buyprint_title' => __('Buy Print', 'comicpress') ); From c32fae115aa05d41757a4eb0c4465dba4e4d79ce Mon Sep 17 00:00:00 2001 From: mindfaucet Date: Mon, 30 Nov 2009 10:40:08 -0700 Subject: [PATCH 02/86] Wasn't displaying comments when comments were closed. With the new WordPress option to expire commenting on old posts (to keep discussion current) its still nice to read the old discussions. --- single.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/single.php b/single.php index eff8de6..fdd1067 100644 --- a/single.php +++ b/single.php @@ -116,9 +116,9 @@ $post = $temppost; $wp_query = $temp_query; $temppost = null; $temp_query = null; } } - if ('open' == $post->comment_status) { - comments_template('', true); - } + + comments_template('', true); + ?> From bf67bcb0826c40922eeb2c4a540ac2b1a8df3af0 Mon Sep 17 00:00:00 2001 From: mindfaucet Date: Mon, 30 Nov 2009 11:43:32 -0700 Subject: [PATCH 03/86] Adjusted for Trackbacks and Pingbacks styling. --- style.css | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/style.css b/style.css index 3e8922c..148738b 100644 --- a/style.css +++ b/style.css @@ -605,7 +605,7 @@ h3, h3 a { .comment .comment .comment { margin-left: 45px; } - + .comment-avatar { width: 80px; height: 80px; @@ -622,7 +622,23 @@ h3, h3 a { width: 40px; height: 40px; } + +.comment-content { + margin-left: 90px; +} + + .comment .comment .comment-content { + margin-left: 45px; + } + + .pingback .comment-content { + margin-left: 0; + } + .trackback .comment-content { + margin-left: 0; + } + .comment-author cite { font-weight: bold; font-style: normal; @@ -654,14 +670,6 @@ h3, h3 a { font-size: 15px; } -.comment-content { - margin-left: 90px; -} - - .comment .comment .comment-content { - margin-left: 45px; - } - .comment-text p { padding: 5px 0 0 0; margin: 0; From 3227c4874245b649f6a1c4a3814f25cd10a6a6f7 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Mon, 30 Nov 2009 13:28:11 -0800 Subject: [PATCH 04/86] Comment Functions CHange removing static images for the pingback and trackback Signed-off-by: Philip M. Hofer (Frumph) --- functions/comment-functions.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/functions/comment-functions.php b/functions/comment-functions.php index 09abd52..72a95c5 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -21,13 +21,7 @@ function comicpress_avatar() { $comment_type = get_comment_type(); - if($comment_type == 'trackback') : - $avatar = '/images/trackback.png'; - - elseif($comment_type == 'pingback') : - $avatar = '/images/pingback.png'; - - elseif(get_settings('avatar_default')): + if(get_settings('avatar_default')): $avatar = get_settings('avatar_default'); endif; @@ -41,7 +35,8 @@ function comicpress_avatar() { echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 80)); } else { if ($comment_type == 'pingback' || $comment_type == 'trackback') { - echo ''; + if ($comment_type == 'pingback') echo '
'; + if ($comment_type == 'trackback') echo '
'; } else { echo ''; } From 6518224239b7f8af13cf8e2af38906cca3636746 Mon Sep 17 00:00:00 2001 From: mindfaucet Date: Mon, 30 Nov 2009 14:43:41 -0700 Subject: [PATCH 05/86] Comment adjustments, back to 64px avatar. ;) --- functions/comment-functions.php | 2 +- sidebar-right.php | 2 -- style.css | 10 +++++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/functions/comment-functions.php b/functions/comment-functions.php index 09abd52..eec4877 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -38,7 +38,7 @@ function comicpress_avatar() { $id_or_email = get_comment_author_email(); if (empty($id_or_email)) $id_or_email = get_comment_author(); if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { - echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 80)); + echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 64)); } else { if ($comment_type == 'pingback' || $comment_type == 'trackback') { echo ''; diff --git a/sidebar-right.php b/sidebar-right.php index f12d23b..61bcac6 100644 --- a/sidebar-right.php +++ b/sidebar-right.php @@ -4,8 +4,6 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>