<?php /** * Content Template. * * @package Delicacy */ ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'list-post-item' ); ?>> <?php the_title( '<h2><a href="' . esc_url( get_permalink() ) . '" rel="bookmark" title="' . the_title_attribute( array( 'echo' => false ) ) . '">', '</a></h2>' ); ?> <div class="entry-meta"> <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) && delicacy_categorized_blog() ) : ?> <span class="cat"><?php the_category( ', ' ); ?></span> <?php endif; ?> <?php if ( is_home() && is_sticky() ) : ?> <span class="sticky-indicator"><?php _e( 'Sticky', 'delicacy' ); ?></span> <?php else : ?> <span class="date"><a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></span> <?php endif; ?> <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> <span class="comments"><?php comments_popup_link( __( 'Leave a comment', 'delicacy' ), __( '1 Comment', 'delicacy' ), __( 'Comments: %', 'delicacy' ) ); ?></span> <?php endif; ?> </div> <div class="entry-content"><?php if ( is_search() ) { the_excerpt(); } else { the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'delicacy' ) ); wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'delicacy' ) . '</span>', 'after' => '</div>' ) ); } ?></div> </div> <?php edit_post_link( __( 'Edit', 'delicacy' ), '<p>', '</p>' ); ?> <div class="deco-line"></div>