team-2.php
36 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | <div class="expert-slider-two" data-rtl="<?php echo esc_attr(spel_rtl()) ?>"> |
| 7 | <?php |
| 8 | if ( ! empty( $team_slider_item ) ) { |
| 9 | foreach ( $team_slider_item as $item ) { ?> |
| 10 | <div class="item"> |
| 11 | <div class="card-style-eight"> |
| 12 | <?php |
| 13 | if ( ! empty( $item['team_slider_image']['id'] ) ) { ?> |
| 14 | <div class="img-meta mb-20"> |
| 15 | <?php spel_dynamic_image( $item['team_slider_image'], 'full', [ 'class' => 'm-auto' ] ) ?> |
| 16 | </div> |
| 17 | <?php |
| 18 | } |
| 19 | if ( ! empty( $item['team_name'] ) ) { ?> |
| 20 | <a <?php spel_button_link( $item['team_link'] ) ?> class="name tran3s fw-500"> |
| 21 | <?php echo esc_html( $item['team_name'] ); ?> |
| 22 | </a> |
| 23 | <?php |
| 24 | } |
| 25 | if ( ! empty( $item['team_job_position'] ) ) { ?> |
| 26 | <div class="post"><?php echo esc_html( $item['team_job_position'] ); ?></div> |
| 27 | <?php |
| 28 | } |
| 29 | ?> |
| 30 | </div> |
| 31 | </div> |
| 32 | <?php |
| 33 | } |
| 34 | } |
| 35 | ?> |
| 36 | </div> |