golden hour
/home/doctorbruno/public_html/doc-noc.com/wp-content/themes/fitness-hub/template-parts
⬆️ Go Up
Upload
File/Folder
Size
Actions
content-none.php
1.15 KB
Del
OK
content-page.php
1.55 KB
Del
OK
content-recent.php
1.76 KB
Del
OK
content-single.php
2.32 KB
Del
OK
content.php
2.81 KB
Del
OK
Edit: content.php
<?php /** * Template part for displaying posts and search results. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package Acme Themes * @subpackage Fitness Hub */ global $fitness_hub_customizer_all_values; $content_from = $fitness_hub_customizer_all_values['fitness-hub-blog-archive-content-from']; $no_blog_image = ''; ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="content-wrapper"> <?php $thumbnail = $fitness_hub_customizer_all_values['fitness-hub-blog-archive-img-size']; if( has_post_thumbnail() && 'disable' != $thumbnail): ?> <!--post thumbnal options--> <div class="image-wrap"> <div class="post-thumb"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail( $thumbnail ); ?> </a> </div><!-- .post-thumb--> </div> <?php else: $no_blog_image = 'no-image'; endif; ?> <div class="entry-content <?php echo $no_blog_image?>"> <div class="blog-header-wrap"> <div class="date"> <?php fitness_hub_entry_footer(1,0,0,0 ); ?> </div> <div class="blog-header"> <?php if ( 'post' === get_post_type() ) : ?> <header class="entry-header <?php echo $no_blog_image; ?>"> <div class="entry-meta"> <?php fitness_hub_cats_lists() ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <?php endif; ?> <div class="entry-header-title"> <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> </div> <footer class="entry-footer"> <?php fitness_hub_entry_footer(0, 1, 1, 1 ); ?> </footer><!-- .entry-footer --> </div> </div><!--.blog-header-wrap--> <?php if ( 'content' == $content_from ) : the_content( sprintf( /* translators: %s: Name of current post. */ wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'fitness-hub' ), array( 'span' => array( 'class' => array() ) ) ), the_title( '<span class="screen-reader-text">"', '"</span>', false ) ) ); wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'fitness-hub' ), 'after' => '</div>', ) ); else : the_excerpt(); endif; ?> </div><!-- .entry-content --> </div> </article><!-- #post-## -->
Save