コード例 #1
0
ファイル: functions.php プロジェクト: batyuvitez/manduca
    function manduca_display_excerpt()
    {
        ?>
				<div class="excerpt-wrapper">
	
				<?php 
        /* Start the Loop */
        while (have_posts()) {
            the_post();
            ?>
					
					<article id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
  >
						
						<header class="excerpt-header">
							<?php 
            manduca_display_entry_header();
            ?>
						</header>
						
						<?php 
            edit_post_link(__('Edit', 'manduca'), '<span class="edit-link"><i class="fa fa-pencil" aria-hidden="true"></i> ', '</span>');
            ?>
						
							<?php 
            if (has_post_thumbnail()) {
                ?>
							<div class="crop-height">
								<?php 
                the_post_thumbnail('excerpt-size');
                ?>
							</div>
							
							<div class="excerpt-entry has-thumbnail">
						
						<?php 
            } else {
                ?>
							<div class="excerpt-entry no-thumbnail">
						<?php 
            }
            ?>
				
						
							<?php 
            if (strpos(get_the_content(), 'more-link') === false) {
                the_excerpt();
            } else {
                the_content();
            }
            ?>
							</div>
						<div class='clearfix-content'></div>
					</article>				
				<?php 
        }
        manduca_page_navigation();
        ?>
				</div>
	<?php 
    }
コード例 #2
0
ファイル: content.php プロジェクト: batyuvitez/manduca
 * Manduca
 *
 * @since 1.0 */
?>
		
	<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
		
		<header class="entry-header">
			<?php 
manduca_display_entry_header();
?>
		
			<?php 
do_action('manduca_after_title');
?>
		
		</header><!-- .entry-header -->
		
		
		<?php 
edit_post_link(__('Edit', 'manduca'), '<span class="edit-link"><i class="fa fa-pencil" aria-hidden="true"></i> ', '</span>');
?>
		
		<?php 
if (!post_password_required() && !is_attachment()) {