| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /** |
|---|
| 4 | * Template part for displaying posts |
|---|
| 5 | * |
|---|
| 6 | * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
|---|
| 7 | * |
|---|
| 8 | * @package bridal_jewelry_store |
|---|
| 9 | */ |
|---|
| 10 | |
|---|
| 11 | ?> |
|---|
| 12 | <?php $bridal_jewelry_store_readmore = get_theme_mod( 'bridal_jewelry_store_readmore_button_text','Read More');?> |
|---|
| 13 | |
|---|
| 14 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 15 | <div class="mag-post-single"> |
|---|
| 16 | <div class="mag-post-img"> |
|---|
| 17 | <?php bridal_jewelry_store_post_thumbnail(); ?> |
|---|
| 18 | </div> |
|---|
| 19 | <div class="mag-post-detail"> |
|---|
| 20 | <div class="mag-post-category"> |
|---|
| 21 | <?php bridal_jewelry_store_categories_list(); ?> |
|---|
| 22 | </div> |
|---|
| 23 | <?php |
|---|
| 24 | if ( is_singular() ) : |
|---|
| 25 | the_title( '<h1 class="entry-title mag-post-title">', '</h1>' ); |
|---|
| 26 | else : |
|---|
| 27 | if ( !get_theme_mod( 'bridal_jewelry_store_post_hide_post_heading', false ) ) { |
|---|
| 28 | the_title( '<h2 class="entry-title mag-post-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); |
|---|
| 29 | } |
|---|
| 30 | endif; |
|---|
| 31 | ?> |
|---|
| 32 | <div class="mag-post-meta"> |
|---|
| 33 | <?php |
|---|
| 34 | bridal_jewelry_store_posted_by(); |
|---|
| 35 | bridal_jewelry_store_posted_on(); |
|---|
| 36 | ?> |
|---|
| 37 | </div> |
|---|
| 38 | <?php if ( !get_theme_mod( 'bridal_jewelry_store_post_hide_post_content', false ) ) { ?> |
|---|
| 39 | <div class="mag-post-excerpt"> |
|---|
| 40 | <?php the_excerpt(); ?> |
|---|
| 41 | </div> |
|---|
| 42 | <?php } ?> |
|---|
| 43 | <?php if ( get_theme_mod( 'bridal_jewelry_store_post_readmore_button', true ) === true ) : ?> |
|---|
| 44 | <div class="mag-post-read-more"> |
|---|
| 45 | <a href="<?php the_permalink(); ?>" class="read-more-button"> |
|---|
| 46 | <?php if ( ! empty( $bridal_jewelry_store_readmore ) ) { ?> <?php echo esc_html( $bridal_jewelry_store_readmore ); ?> <?php } ?> |
|---|
| 47 | <i class="<?php echo esc_attr( get_theme_mod( 'bridal_jewelry_store_readmore_btn_icon', 'fas fa-chevron-right' ) ); ?>"></i> |
|---|
| 48 | </a> |
|---|
| 49 | </div> |
|---|
| 50 | <?php endif; ?> |
|---|
| 51 | </div> |
|---|
| 52 | </div> |
|---|
| 53 | |
|---|
| 54 | </article><!-- #post-<?php the_ID(); ?> --> |
|---|