Esempio n. 1
0
    function comicpress_display_post()
    {
        global $post, $wp_query;
        $is_comic = 0;
        if (comicpress_in_comic_category()) {
            $is_comic = 1;
        }
        ?>
		<?php 
        comicpress_display_blog_navigation($is_comic);
        ?>
		<?php 
        comicpress_display_comic_navigation($is_comic);
        ?>
		<div <?php 
        post_class();
        ?>
>
			<?php 
        comicpress_display_post_thumbnail($is_comic);
        ?>
			<?php 
        if (comicpress_themeinfo('enable_caps')) {
            ?>
<div class="post-head"></div><?php 
        }
        ?>
			<div class="post-content">
				<div class="post-info">
					<?php 
        comicpress_display_author_gravatar($is_comic);
        ?>
					<?php 
        comicpress_display_post_calendar($is_comic);
        ?>
					<?php 
        if (function_exists('comicpress_show_mood_in_post')) {
            comicpress_show_mood_in_post();
        }
        ?>
					<div class="post-text">
						<?php 
        comicpress_display_post_title($is_comic);
        if (!is_page()) {
            comicpress_display_post_author();
            comicpress_display_post_date();
            comicpress_display_post_time();
            if (!is_archive() && !is_search()) {
                edit_post_link(__('Edit', 'comicpress'), ' <span class="pipe">|</span> <span class="post-edit">', '</span>');
            }
            comicpress_display_post_category($is_comic);
            if (function_exists('the_ratings') && $post->post_type == 'post') {
                the_ratings();
            }
        }
        ?>
					</div>
				</div>
				<div class="clear"></div>
				<div class="entry">
					<?php 
        comicpress_display_the_content($is_comic);
        ?>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
				<?php 
        if (!is_page()) {
            ?>
				<div class="post-extras">
					<?php 
            comicpress_display_post_tags();
            ?>
					<?php 
            comicpress_display_comment_link();
            ?>
					<?php 
            if ($is_comic) {
                if (function_exists('comicpress_related_comics_shortcode') && comicpress_themeinfo('enable_related_comics')) {
                    echo comicpress_related_comics_shortcode();
                }
            } else {
                if (function_exists('comicpress_related_posts_shortcode') && comicpress_themeinfo('enable_related_posts')) {
                    echo comicpress_related_posts_shortcode();
                }
            }
            ?>
					<div class="clear"></div>
				</div>
				<?php 
        }
        ?>
				<?php 
        if (is_page()) {
            edit_post_link(__('Edit this page.', 'comicpress'), '', '');
        }
        ?>
			</div>
			<?php 
        if (comicpress_themeinfo('enable_caps')) {
            ?>
<div class="post-foot"></div><?php 
        }
        ?>
		</div>
		<?php 
    }
Esempio n. 2
0
function comicpress_display_post()
{
    global $post, $wp_query;
    $is_comic = 0;
    if (in_comic_category()) {
        $is_comic = 1;
    }
    ?>
	<?php 
    comicpress_display_blog_navigation($is_comic);
    ?>
	<?php 
    comicpress_display_comic_navigation($is_comic);
    ?>
	<div <?php 
    post_class();
    ?>
>
		<?php 
    comicpress_display_post_thumbnail($is_comic);
    ?>
		<div class="post-head"></div>
			<div class="post-content">
				<div class="post-info">
					<?php 
    comicpress_display_author_gravatar($is_comic);
    ?>
					<?php 
    comicpress_display_post_calendar($is_comic);
    ?>
					<?php 
    if (function_exists('comicpress_show_mood_in_post')) {
        comicpress_show_mood_in_post();
    }
    ?>
					<div class="post-text">
						<?php 
    comicpress_display_post_title($is_comic);
    if (!is_page()) {
        comicpress_display_post_author($is_comic);
        comicpress_display_post_category($is_comic);
        if (function_exists('the_ratings')) {
            the_ratings();
        }
        if (!is_archive() && !is_search()) {
            ?>
								<small><?php 
            edit_post_link(__('Edit Post', 'comicpress'), ' [ ', ' ] ');
            ?>
</small>
							<?php 
        }
    }
    ?>
					</div>
				</div>
				<div class="clear"></div>
				<div class="entry">
					<?php 
    comicpress_display_the_content($is_comic);
    ?>
					<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 class="post-extras">
					<?php 
    comicpress_display_post_tags();
    ?>
					<?php 
    comicpress_display_comment_link();
    ?>
					<div class="clear"></div>
					<?php 
    comicpress_display_related_posts($is_comic);
    ?>
					<?php 
    if (is_page()) {
        edit_post_link(__('Edit this page.', 'comicpress'), '<p>', '</p>');
    }
    ?>
				</div>
			</div>
		<div class="post-foot"></div>
	</div>
	<?php 
}