File: //home/sescorpcl/www/wp-content/themes/naturelle/content-search.php
<?php
/**
* The template part for displaying results in search pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package llorix-one-lite
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'border-bottom-hover search-article' ); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<div class="entry-meta list-post-entry-meta">
<span class="post-author">
<?php the_author_posts_link(); ?>
</span>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'naturelle' ) );
if ( ! empty( $categories_list ) ) {
?>
<span class="posted-in">
<?php
esc_html_e( 'Posted in ','naturelle' );
$pos = strpos( $categories_list, ',' );
if ( $pos ) {
echo substr( $categories_list, 0, $pos );
} else {
echo $categories_list;
}
echo '</span>';
}
?>
<a href="<?php comments_link(); ?>" class="post-comments">
<?php comments_number( esc_html__( 'No comments','naturelle' ), esc_html__( 'One comment','naturelle' ), esc_html__( '% comments','naturelle' ) ); ?>
</a>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php
$ismore = strpos( $post->post_content, '<!--more-->' );
if ( $ismore ) : the_content( sprintf( esc_html__( 'Read more %s ...','naturelle' ), '<span class="screen-reader-text">' . esc_html__( 'about ', 'naturelle' ) . get_the_title() . '</span>' ) );
else : the_excerpt();
endif;
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'naturelle' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->