コード例 #1
0
ファイル: content.php プロジェクト: jqn/uzu
    ?>
    <div class="entry-summary">
        <?php 
    the_excerpt();
    ?>
    </div>
    <?php 
} else {
    ?>
    <div class="entry-content">
        <?php 
    the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', ZEETEXTDOMAIN));
    ?>
    </div>
    <?php 
}
//.entry-content
?>

    <footer>
        <?php 
zee_link_pages();
?>
    </footer>

</article><!--/#post-->

<?php 
if (is_single() && get_the_author_meta('description') && is_multi_author()) {
    get_template_part('author-bio');
}
コード例 #2
0
ファイル: page.php プロジェクト: hugocuqui/paulaferracini2
<?php get_header(); ?>
<section id="page">
    <div class="container-fluid">
        <div id="content" class="site-content" role="main">
            <?php /* The loop */ ?>
            <?php while ( have_posts() ) { the_post(); ?>
            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <?php // edit_post_link( __( 'Edit', ZEETEXTDOMAIN ), '<small class="edit-link pull-right ">', '</small><div class="clearfix"></div>' ); ?>
                <?php if ( has_post_thumbnail() && ! post_password_required() ) { ?>
                <div class="entry-thumbnail">
                    <?php the_post_thumbnail(); ?>
                </div>
                <?php } ?>
                <div class="entry-content">
                    <?php the_content(); ?>
                    <?php zee_link_pages(); ?>
                </div>
            </article>
            <?php comments_page(); ?>
            <?php } ?>
        </div><!--/#content-->
    </div>
</section><!--/#page-->
<?php get_footer();
コード例 #3
0
                <li class="category"><?php echo __('In', ZEETEXTDOMAIN ); ?> <?php echo get_the_category_list(', '); ?></li> 
                <?php if ( comments_open() && ! is_single() ) { ?>
                <li class="comments-link">
                    <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', ZEETEXTDOMAIN ) . '</span>', __( 'One comment so far', ZEETEXTDOMAIN ), __( 'View all % comments', ZEETEXTDOMAIN ) ); ?>
                </li>
                <?php } //.comment-link ?>                       
            </ul>
        </div><!--/.entry-meta -->

    </header><!--/.entry-header -->

    <div class="entry-content">
        <?php 
        if ( is_single() || ! get_post_gallery() ) {
            the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', ZEETEXTDOMAIN ) );
        } else {
            echo get_post_gallery();
        } 
        ?>
    </div><!--/.entry-content -->

    <footer>
        <?php
        if ( is_single() || ! get_post_gallery() ) zee_link_pages();
        ?>
    </footer>
</article><!--/#post -->

<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?>
<?php get_template_part( 'author-bio' ); ?>
<?php } ?>