content.php (1411B)
1 <?php 2 /** 3 * Template part for displaying posts. 4 * 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 6 * 7 * @package welbim 8 */ 9 10 $blog_single_social = welbim_get_options( 'blog_single_social' ); 11 12 ?> 13 <div class="inner-box"> 14 <?php if ( has_post_thumbnail() ) { ?> 15 <div class="image"> 16 <a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_post_thumbnail( 'welbim-post-size' ); ?></a> 17 <div class="date"><?php echo welbim_posted_on(); ?></div> 18 </div> 19 <?php } ?> 20 <div class="content"> 21 <div class="post-meta"> 22 <?php 23 welbim_posted_by(); 24 welbim_comments_count(); 25 ?> 26 </div> 27 <h4><?php the_title(); ?></h4> 28 <div class="text"><?php the_content(); ?></div> 29 <?php 30 wp_link_pages( 31 array( 32 'before' => '<div class="page-links post-single-link">', 33 'after' => '</div>', 34 ) 35 ); 36 ?> 37 </div> 38 <div class="post-tag"> 39 <?php 40 $tags = get_the_tag_list(); 41 if ( $tags != '' ) { 42 ?> 43 <div> 44 <span class="tag-title"><?php esc_html_e( 'Tags', 'welbim' ); ?></span> 45 <ul class="tag"> 46 <li><?php welbim_tag_list(); ?></li> 47 </ul> 48 </div> 49 <?php 50 } 51 if ( $blog_single_social ) { 52 welbim_blog_social(); 53 } 54 ?> 55 56 </div> 57 </div> 58 <?php 59 do_action( 'welbim_authore_box' ); 60 61 // If comments are open or we have at least one comment, load up the comment template. 62 if ( comments_open() || get_comments_number() ) : 63 comments_template(); 64 endif;