<?php
/**
* Template part for displaying results in search pages
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package coup
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('container container-small'); ?>>
<div class="search-post-type">
<?php echo get_post_type() == 'jetpack-portfolio' ? esc_html__( 'portfolio', 'coup-shop' ) : get_post_type(); ?>
</div>
<?php coup_featured_image(); ?>
<header class="entry-header">
<?php the_title( sprintf( '<h5 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h5>' ); ?>
<?php if ( 'post' === get_post_type() || 'jetpack-portfolio' === get_post_type() ) : ?>
<div class="entry-meta">
<?php coup_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
</article><!-- #post-## -->
<div class="search-post-type">product</div>.search-post-type {
opacity: .4;
text-transform: uppercase;
position: absolute;
text-align: right;
width: 90px;
right: calc(100% + 55px);<?php
/**
* Template part for displaying results in search pages
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package coup
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('container container-small'); ?>>
<div class="search-post-type">
<?php echo get_post_type() == 'jetpack-portfolio' ? esc_html__( 'portfolio', 'coup-shop' ) : get_post_type(); ?>
</div>
<?php coup_featured_image(); ?>
<header class="entry-header">
<?php the_title( sprintf( '<h5 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h5>' ); ?>
<?php if ( 'post' === get_post_type() || 'jetpack-portfolio' === get_post_type() ) : ?>
<div class="entry-meta">
<?php coup_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
</article><!-- #post-## -->
<div class="search-post-type">
<?php echo get_post_type() == 'jetpack-portfolio' ? esc_html__( 'portfolio', 'coup-shop' ) : get_post_type_object( get_post_type() )->labels->name; ?>
</div> <header class="page-header">
<h1 class="page-title"><?php printf( esc_html__( 'Результаты по запросу: %s', 'veni' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header><!-- .page-header -->
<?php
/**
* Template part for displaying results in search pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package veni
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="search-post-type">
<?php echo get_post_type() == 'portfolio' ? esc_html__( 'portfolio', 'veni' ) : get_post_type(); ?>
</div>
<?php veni_featured_image(); ?>
<?php if ( 'link' == get_post_format() || 'quote' == get_post_format() ) : ?>
<div class="holder-icon">
<?php the_content(); ?>
</div>
<?php else : ?>
<a href="<?php echo esc_url( get_permalink() ); ?>">
<?php the_title( '<h2>', '</h2>' ); ?>
</a>
<?php endif; ?>
<div class="entry-header">
<div class="side-meta">
<div class="entry-meta">
<?php veni_posted_on(); ?>
</div><!-- .entry-meta -->
<div class="entry-meta">
<?php veni_entry_footer(); ?>
</div><!-- .entry-meta -->
</div><!-- .side-meta -->
</div>
</article><!-- #post-## -->