Final comments.php organization and styling. Pings and Trackbacks set with id's and wrap to make it easy to make it expandable with a simple JS or jquery action in custom themes.
This commit is contained in:
parent
1970d387c3
commit
7ff57ed546
48
comments.php
48
comments.php
|
@ -16,12 +16,11 @@ if ( post_password_required() ) { ?>
|
||||||
|
|
||||||
|
|
||||||
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
|
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
|
||||||
<div class="commentsrsslink">[ <?php comments_rss_link('Comments RSS'); ?> ]</div>
|
|
||||||
<h3 id="comments"><?php comments_number(__('Discussion ¬','comicpress'), __('Discussion ¬','comicpress'), __('Discussion (%) ¬','comicpress') );?></h3>
|
|
||||||
|
|
||||||
|
<h3 id="comments"><?php comments_number(__('Discussion ¬','comicpress'), __('Discussion ¬','comicpress'), __('Discussion (%) ¬','comicpress') );?></h3>
|
||||||
|
<div class="commentsrsslink">[ <?php comments_rss_link('Comments RSS'); ?> ]</div>
|
||||||
<ol class="commentlist">
|
<ol class="commentlist">
|
||||||
<?php
|
<?php if (function_exists('comicpress_comments_callback')) {
|
||||||
if (function_exists('comicpress_comments_callback')) {
|
|
||||||
wp_list_comments(array(
|
wp_list_comments(array(
|
||||||
'type' => 'comment',
|
'type' => 'comment',
|
||||||
'reply_text' => __('Reply to %s¬','comicpress'),
|
'reply_text' => __('Reply to %s¬','comicpress'),
|
||||||
|
@ -34,6 +33,28 @@ if ( post_password_required() ) { ?>
|
||||||
wp_list_comments(array('type' => 'comment', 'avatar_size'=>64));
|
wp_list_comments(array('type' => 'comment', 'avatar_size'=>64));
|
||||||
}?>
|
}?>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
|
||||||
|
<div id="pingtrackback-wrap">
|
||||||
|
<h3 id="pingtrackback"><?php _e('Pings & Trackbacks ¬','comicpress'); ?></h3>
|
||||||
|
<ol class="commentlist">
|
||||||
|
<ul>
|
||||||
|
<?php if (function_exists('comicpress_comments_callback')) {
|
||||||
|
wp_list_comments(array(
|
||||||
|
'type' => 'pings',
|
||||||
|
'callback' => 'comicpress_comments_callback',
|
||||||
|
'end-callback' => 'comicpress_comments_end_callback',
|
||||||
|
'avatar_size'=>32
|
||||||
|
)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
wp_list_comments(array('type' => 'pings', 'avatar_size'=>64));
|
||||||
|
}?>
|
||||||
|
</ul>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($comicpress_options['enable_numbered_pagination']) { ?>
|
<?php if ($comicpress_options['enable_numbered_pagination']) { ?>
|
||||||
|
@ -110,26 +131,7 @@ if ( post_password_required() ) { ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
|
|
||||||
|
|
||||||
<h3 id="comments"><?php _e('Pings & Trackbacks ¬','comicpress'); ?></h3>
|
|
||||||
<ol class="commentlist">
|
|
||||||
<ul>
|
|
||||||
<?php
|
|
||||||
if (function_exists('comicpress_comments_callback')) {
|
|
||||||
wp_list_comments(array(
|
|
||||||
'type' => 'pings',
|
|
||||||
'callback' => 'comicpress_comments_callback',
|
|
||||||
'end-callback' => 'comicpress_comments_end_callback',
|
|
||||||
'avatar_size'=>32
|
|
||||||
)
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
wp_list_comments(array('type' => 'pings', 'avatar_size'=>64));
|
|
||||||
}?>
|
|
||||||
</ul>
|
|
||||||
</ol>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="comment-wrapper-foot"></div>
|
<div id="comment-wrapper-foot"></div>
|
35
style.css
35
style.css
|
@ -631,13 +631,6 @@ h3, h3 a {
|
||||||
margin-left: 45px;
|
margin-left: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pingback .comment-content {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.trackback .comment-content {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-author cite {
|
.comment-author cite {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -684,7 +677,6 @@ h3, h3 a {
|
||||||
}
|
}
|
||||||
|
|
||||||
.commentsrsslink {
|
.commentsrsslink {
|
||||||
float: right;
|
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -722,11 +714,27 @@ ul.children {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply {
|
#respond {
|
||||||
padding: 10px 0 0 0;
|
padding: 20px 0 0 0;
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pingbacks and Trackbacks */
|
||||||
|
|
||||||
|
#pingtrackback {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pingback .comment-content, .trackback .comment-content {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.trackback .comment-author cite, .pingback .comment-author cite {
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ARCHIVE */
|
/* ARCHIVE */
|
||||||
/* For the built-in WordPress archive pages (by month or category) as well as search result pages */
|
/* For the built-in WordPress archive pages (by month or category) as well as search result pages */
|
||||||
|
|
||||||
|
@ -1096,11 +1104,6 @@ ul.children {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pingbacks and Trackbacks */
|
|
||||||
|
|
||||||
li.pingback div p, li.trackback div p {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* STORYLINES */
|
/* STORYLINES */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue