Your IP : 216.73.216.1


Current Path : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/template-parts/
Upload File :
Current File : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/template-parts/content-search.php

<?php
/**
 * Template part for displaying results in search pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package pally
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
		<?php if ( 'post' === get_post_type() ) : ?>
		<div class="entry-meta">
				<?php
				pally_posted_on();
				pally_posted_by();
				?>
		</div><!-- .entry-meta -->
		<?php endif; ?>
	</header><!-- .entry-header -->
	<div class="entry-summary">
		<?php the_excerpt(); ?>
		<?php 
			if ( ! is_single() && (! empty( $post->post_title ) ) ) {

				$more = sprintf( '<p><a class="read-more" href="%1$s">%4$s %2$s <span class="screen-reader-text">%3$s</span></a></p>',
					get_permalink( get_the_ID() ),
					__( 'Read more', 'pally' ),
								get_the_title (),
								'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M20,10c0-.206-.042-.412-.122-.606-.08-.194-.196-.369-.342-.515L14.138,3.464c-.617-.619-1.617-.619-2.234,0s-.617,1.622,0,2.241l2.702,2.71H1.58c-.872,0-1.58,.709-1.58,1.585s.707,1.585,1.58,1.585H14.607l-2.702,2.711c-.617,.618-.617,1.622,0,2.241,.309,.31,.712,.464,1.117,.464s.808-.155,1.117-.464l5.398-5.415c.146-.146,.261-.321,.342-.515,.08-.194,.122-.399,.122-.606h0Z"/></svg>'
				);
				echo $more;
				}

				else if ( ! is_single() && (empty( $post->post_title ) ) ) {
				$more = sprintf( '<p><a class="read-more" href="%1$s">%4$s %2$s <span class="screen-reader-text">' . esc_html__( 'of post from', 'pally' ) .' %3$s</span></a></p>',
					get_permalink( get_the_ID() ),
					__( 'Read more', 'pally' ),
								get_the_date (),
								'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M20,10c0-.206-.042-.412-.122-.606-.08-.194-.196-.369-.342-.515L14.138,3.464c-.617-.619-1.617-.619-2.234,0s-.617,1.622,0,2.241l2.702,2.71H1.58c-.872,0-1.58,.709-1.58,1.585s.707,1.585,1.58,1.585H14.607l-2.702,2.711c-.617,.618-.617,1.622,0,2.241,.309,.31,.712,.464,1.117,.464s.808-.155,1.117-.464l5.398-5.415c.146-.146,.261-.321,.342-.515,.08-.194,.122-.399,.122-.606h0Z"/></svg>'
				);
				echo $more;
				}
			?>

</div><!-- .entry-summary -->
</article><!-- #post-<?php the_ID(); ?> -->