blog-1.php
1 year ago
blog-2.php
1 year ago
blog-3.php
1 year ago
blog-4.php
1 year ago
blog-5.php
1 year ago
blog-4.php
44 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | <div class="blog_grid_gap ezd-grid ezd-grid-cols-12"> |
| 7 | <?php |
| 8 | if ( $post_query->have_posts() ) { |
| 9 | while ( $post_query->have_posts() ) : |
| 10 | $post_query->the_post(); |
| 11 | ?> |
| 12 | <div class="ezd-lg-col-<?php echo esc_attr( $column_grid ); ?> ezd-sm-col-6 blog-grid"> |
| 13 | <div class="blog-meta-two"> |
| 14 | <figure class="post-img"> |
| 15 | <a href="<?php the_permalink(); ?>" class="img"> |
| 16 | <?php the_post_thumbnail(); ?> |
| 17 | </a> |
| 18 | </figure> |
| 19 | <div class="post-data"> |
| 20 | <div class="date"> |
| 21 | <?php |
| 22 | if ( is_sticky() ) { |
| 23 | echo '<span class="sticky-label fw-500 text-dark">' . esc_html__( 'Featured -', 'spider-elements' ) . '</span>'; |
| 24 | } |
| 25 | ?> |
| 26 | <a href="<?php echo get_day_link( get_post_time( 'Y' ), get_post_time( 'm' ), get_post_time( 'j' ) ); ?>" class="meta-item"> |
| 27 | <?php echo get_the_date('d M Y') ?> |
| 28 | </a> |
| 29 | </div> |
| 30 | <a class="blog-one-title" href="<?php the_permalink(); ?>"> |
| 31 | <h2 class="tran3s blog-title"><?php echo spel_get_title_length( $settings, 'title_length' ) ?></h2> |
| 32 | </a> |
| 33 | <a href="<?php the_permalink(); ?>" class="continue-btn tran3s btn-seven"> |
| 34 | <?php esc_html_e( 'Read More', 'spider-elements' ) ?> |
| 35 | </a> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <?php |
| 40 | endwhile; |
| 41 | wp_reset_postdata(); |
| 42 | } |
| 43 | ?> |
| 44 | </div> |