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-5.php
39 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | <section class="blog-section-six"> |
| 7 | <div class="card-wrapper category-slider-one" data-rtl="<?php echo esc_attr(spel_rtl()) ?>"> |
| 8 | <?php |
| 9 | while ( $post_query->have_posts() ) { |
| 10 | $post_query->the_post(); |
| 11 | $thumbnail_url = get_the_post_thumbnail_url( get_the_ID(), 'full' ); |
| 12 | $thumbnail_url = $thumbnail_url ? 'style="background-image: url(' . esc_url( $thumbnail_url ) . ');"' : ''; |
| 13 | ?> |
| 14 | <div class="item item-margin"> |
| 15 | <div class="card-style-six position-relative" <?php echo $thumbnail_url ?>> |
| 16 | <a href="<?php the_permalink(); ?>" class="blog-item-six w-100 h-100 d-flex align-items-end"> |
| 17 | <h2 class="blog-six-title text-lg"><?php echo spel_get_title_length( $settings, 'title_length' ) ?></h2> |
| 18 | </a> |
| 19 | </div> |
| 20 | </div> |
| 21 | <?php |
| 22 | } |
| 23 | wp_reset_postdata(); |
| 24 | ?> |
| 25 | </div> |
| 26 | <?php |
| 27 | if ( ! empty( $settings['left_arrow_icon']['value'] ) || ! empty( $settings['right_arrow_icon']['value'] ) ) { ?> |
| 28 | <span class="blog-slider-arrows d-flex justify-content-center"> |
| 29 | <span class="prev_d blog-slick-arrow"> |
| 30 | <?php \Elementor\Icons_Manager::render_icon( $settings['left_arrow_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 31 | </span> |
| 32 | <span class="next_d blog-slick-arrow"> |
| 33 | <?php \Elementor\Icons_Manager::render_icon( $settings['right_arrow_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 34 | </span> |
| 35 | </span> |
| 36 | <?php |
| 37 | } |
| 38 | ?> |
| 39 | </section> |