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-recent.php
<?php /** * Template part for displaying recent posts from widgets. * * @package Acme Themes * @subpackage Fitness Hub */ global $fitness_hub_read_more_text; ?> <article id="post-<?php the_ID(); ?>" <?php post_class('init-animate'); ?>> <div class="content-wrapper"> <?php $no_blog_image = ''; if ( has_post_thumbnail() ) { ?> <!--post thumbnal options--> <div class="image-wrap"><div class="post-thumb"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail( 'large' ); ?> </a> </div><!-- .post-thumb--> </div> <?php } else{ $no_blog_image = 'no-image'; } ?> <div class="entry-content <?php echo $no_blog_image?>"> <header class="entry-header <?php echo $no_blog_image; ?>"> <div class="entry-meta"> <?php fitness_hub_cats_lists() ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <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> <?php the_excerpt(); if( !empty( $fitness_hub_read_more_text ) ){ ?> <a class="btn btn-primary" href="<?php the_permalink(); ?> "> <?php echo esc_html( $fitness_hub_read_more_text ); ?> </a> <?php } ?> </div><!-- .entry-content --> </div> </article><!-- #post-## -->
Save