2009-08-21 19:29:45 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Display post
|
|
|
|
* Displays the post info
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
function display_blog_post() {
|
2009-08-25 12:37:13 +00:00
|
|
|
global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar; ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-head"></div>
|
|
|
|
<div class="post" id="post-<?php the_ID() ?>">
|
|
|
|
<div class="post-info">
|
2009-08-23 00:53:23 +00:00
|
|
|
<?php if ($enable_post_author_gravatar == 'yes') { ?>
|
2009-08-23 07:18:46 +00:00
|
|
|
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
2009-08-23 00:53:23 +00:00
|
|
|
<?php } ?>
|
2009-08-24 07:41:30 +00:00
|
|
|
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
|
2009-08-23 00:53:23 +00:00
|
|
|
<?php if ($enable_post_calendar == 'yes') { ?>
|
|
|
|
<div class="post-date">
|
|
|
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +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>
|
2009-08-23 01:11:14 +00:00
|
|
|
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
|
|
|
|
<?php if ($disable_categories_in_posts != 'yes') { ?>
|
|
|
|
<small> Posted In: <?php the_category(','); ?></small><br />
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<div class="entry">
|
|
|
|
<?php if (!is_single()) { global $more; $more = 0; } ?>
|
|
|
|
<?php the_content('↓ Read the rest of this entry...') ?>
|
|
|
|
</div>
|
|
|
|
<div class="post-extras">
|
2009-08-23 01:11:14 +00:00
|
|
|
<?php if ($disable_tags_in_posts != 'yes') { ?>
|
|
|
|
<div class="tags">
|
2009-08-22 23:22:40 +00:00
|
|
|
<?php the_tags('└ Tags: ', ', ', '<br />'); ?>
|
2009-08-23 01:11:14 +00:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2009-08-27 15:12:08 +00:00
|
|
|
<?php if (!is_single()) { ?>
|
2009-09-06 18:20:41 +00:00
|
|
|
<?php if ('open' == $post->comment_status) { ?><div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> No Comments ', '<span class="comment-balloon">1</span> Comment ', '<span class="comment-balloon">%</span> Comments '); ?></div><?php } ?>
|
2009-08-27 15:12:08 +00:00
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
<?php if ($enable_related_posts == 'yes') echo related_posts_shortcode(); ?>
|
|
|
|
</div>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-foot"></div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
2009-08-21 17:45:23 +00:00
|
|
|
?>
|