.post .post-comic .post-page and .post-blog are the class wrappers now, .post will always appear unless on is_page()

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-24 17:20:03 -08:00
parent fb985a66e1
commit 97f1f66b2d
3 changed files with 38 additions and 35 deletions

View File

@ -99,13 +99,12 @@ function comicpress_post_class($classes = '') {
$classes[] = 'uentry';
/* if a comic category */
if (in_comic_category()) $classes[] = 'comicpost';
if (is_page()) $classes[] = 'pagepost';
if (!in_comic_category() && !is_page()) $classes[] = 'blogpost';
if (in_comic_category()) $classes[] = 'post-comic';
if (is_page()) $classes[] = 'post-page';
if (!in_comic_category() && !is_page()) $classes[] = 'post-blog';
/* Post alt class. */
if (!is_page()) {
$classes[] = 'postonpage-' . ++$post_alt;
if ( $post_alt % 2 )
@ -127,7 +126,6 @@ function comicpress_post_class($classes = '') {
$class = preg_split( '#\s+#', $class );
$classes = array_merge( $classes, $class );
endif;
}
/* Password-protected posts. */
if ( post_password_required() )

View File

@ -141,9 +141,9 @@ function comicpress_display_the_content() {
function comicpress_display_post() {
global $post, $wp_query; ?>
<div <?php post_class(); ?>>
<?php comicpress_display_blog_navigation(); ?>
<?php comicpress_display_comic_navigation(); ?>
<div <?php post_class(); ?>>
<?php comicpress_display_post_thumbnail(); ?>
<div class="post-head"></div>
<div class="post-content">
@ -169,13 +169,13 @@ function comicpress_display_post() {
<br class="clear-margins" />
</div>
<?php wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">'.__('Pages:','comicpress').'</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
</div>
<div class="post-extras">
<?php comicpress_display_post_tags(); ?>
<?php comicpress_display_comment_link(); ?>
<div class="clear"></div>
<?php comicpress_display_related_posts(); ?>
</div>
</div>
<?php if (is_page()) { edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>'); } ?>
<div class="post-foot"></div>
</div>

View File

@ -477,10 +477,15 @@ h4, h4 a {
.post {
clear: both;
text-align: left;
padding: 2px;
margin-bottom: 20px;
}
.post-content {
padding: 3px;
}
.post-foot {
margin-bottom: 40px;
}
.post-image {