2009-08-21 19:29:45 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Display post
|
|
|
|
* Displays the post info
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
function display_blog_post() {
|
2009-11-06 05:27:52 +00:00
|
|
|
global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts; ?>
|
2009-11-06 02:56:36 +00:00
|
|
|
<?php if (is_single()) { ?>
|
|
|
|
<div class="blognav">
|
|
|
|
<div class="nav-single">
|
|
|
|
<?php previous_post_link('%link',__(' ‹ Previous ','comicpress'), TRUE); ?>
|
|
|
|
<?php next_post_link('%link',__(' Next › ','comicpress'), TRUE); ?>
|
2009-10-05 06:08:01 +00:00
|
|
|
</div>
|
2009-11-06 02:56:36 +00:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="<?php comicpress_post_class(); ?>">
|
|
|
|
<div class="post-head"></div>
|
2009-11-07 04:36:53 +00:00
|
|
|
<div class="post" id="post-<?php the_ID() ?>">
|
2009-11-06 02:56:36 +00:00
|
|
|
<div class="post-info">
|
|
|
|
<?php if ($enable_post_author_gravatar == 'yes') { ?>
|
|
|
|
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),comicpress_get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
|
|
|
|
<?php if ($enable_post_calendar == 'yes') { ?>
|
|
|
|
<div class="post-date">
|
|
|
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
2009-10-05 06:08:01 +00:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2009-11-06 02:56:36 +00:00
|
|
|
<div class="post-text">
|
|
|
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
|
|
<div class="post-author"> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?></div>
|
|
|
|
<?php if ($disable_categories_in_posts != 'yes') { ?>
|
|
|
|
<div class="post-cat"><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></div>
|
|
|
|
<?php } ?>
|
|
|
|
<div class="post-edit"><?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
|
|
|
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
|
|
|
</div>
|
2009-10-05 06:08:01 +00:00
|
|
|
<div class="clear"></div>
|
2009-11-06 02:56:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="entry">
|
|
|
|
<?php if (!is_single()) { global $more; $more = 0; } ?>
|
|
|
|
<?php the_content(__('↓ Read the rest of this entry...','comicpress')); ?>
|
|
|
|
<?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
</div>
|
2009-10-05 06:08:01 +00:00
|
|
|
<br class="clear-margins" />
|
2009-11-06 02:56:36 +00:00
|
|
|
<div class="post-extras">
|
|
|
|
<?php if ($disable_tags_in_posts != 'yes') { ?>
|
|
|
|
<div class="post-tags">
|
|
|
|
<?php the_tags(__('└ Tags: ','comicpress'), ', ', '<br />'); ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php
|
2009-11-10 13:44:30 +00:00
|
|
|
if ('open' == $post->comment_status) {
|
2009-11-06 02:56:36 +00:00
|
|
|
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
|
|
|
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
|
|
|
<?php }
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<?php if ($enable_related_posts == 'yes') echo related_posts_shortcode(); ?>
|
2009-10-05 06:08:01 +00:00
|
|
|
</div>
|
2009-11-06 02:56:36 +00:00
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-foot"></div>
|
|
|
|
</div>
|
|
|
|
<?php
|
2009-10-05 06:08:01 +00:00
|
|
|
}
|
2009-08-21 17:45:23 +00:00
|
|
|
?>
|