golden hour
/home/phakp/public_html/wp/wp-content/themes/vogue/templates/contents
⬆️ Go Up
Upload
File/Folder
Size
Actions
content-none.php
1.18 KB
Del
OK
content-page.php
704 B
Del
OK
content-search.php
2.5 KB
Del
OK
content-single.php
949 B
Del
OK
content.php
2.58 KB
Del
OK
Edit: content-search.php
<?php /** * The template part for displaying results in search pages. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package Vogue */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="blog-post-inner <?php echo ( get_theme_mod( 'vogue-blog-img-shape' ) == 'blog-img-shape-round' ) ? sanitize_html_class( 'blog-post-img-round' ) : ''; ?>"> <?php if ( has_post_thumbnail() ) : $vogue_image_cut = customizer_library_get_default( 'vogue-blog-list-img-cut' ); if ( get_theme_mod( 'vogue-blog-list-img-cut' ) ) { $vogue_image_cut = get_theme_mod( 'vogue-blog-list-img-cut' ); } ?> <?php if ( get_theme_mod( 'vogue-blog-img-shape' ) == 'blog-img-shape-square' || get_theme_mod( 'vogue-blog-img-shape' ) == 'blog-img-shape-round' ) : ?> <a href="<?php the_permalink() ?>" class="post-loop-thumbnail post-loop-thumbnail-img" <?php echo 'style="background-image: url(' . esc_url( get_the_post_thumbnail_url( $post->ID, $vogue_image_cut ) ) . ');"'; ?>> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/blank_blocks_img.png" alt="<?php the_title(); ?>" /> </a> <?php else : ?> <a href="<?php the_permalink() ?>" class="post-loop-thumbnail"> <?php the_post_thumbnail( $vogue_image_cut ); ?> </a> <?php endif; ?> <?php endif; ?> <div class="post-loop-content"> <header class="entry-header"> <?php the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?> <?php if ( 'post' == get_post_type() ) : ?> <div class="entry-meta"> <?php vogue_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header --> <div class="entry-content"> <?php if ( has_excerpt() ) : the_excerpt(); else : /* translators: %s: Name of current post */ the_content( sprintf( wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'vogue' ), array( 'span' => array( 'class' => array() ) ) ), the_title( '<span class="screen-reader-text">"', '"</span>', false ) ) ); endif; ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'vogue' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php vogue_entry_footer(); ?> </footer><!-- .entry-footer --> </div> <div class="clearboth"></div> </div> </article><!-- #post-## -->
Save