team-1.php
45 lines
| 1 | <?php |
| 2 | if (!defined('ABSPATH')) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | |
| 7 | <div class="expert-section-one"> |
| 8 | <div class="expert-slider-one slider-<?php echo esc_attr($team_id); ?>"> |
| 9 | <?php |
| 10 | if (!empty($team_slider_item) && is_array($team_slider_item)) { |
| 11 | foreach ( $team_slider_item as $item ) { ?> |
| 12 | <div class="item"> |
| 13 | <div class="card-style-three ezd-text-center"> |
| 14 | <?php |
| 15 | if ( ! empty( $item[ 'team_slider_image' ][ 'id' ] ) ) { ?> |
| 16 | <div class="img-meta mb-40 lg-mb-20"> |
| 17 | <?php spel_dynamic_image($item[ 'team_slider_image' ], 'full', [ 'class' => 'm-auto' ]) ?> |
| 18 | </div> |
| 19 | <?php |
| 20 | } |
| 21 | if ( ! empty( $item[ 'team_name' ] ) ) { |
| 22 | ?> |
| 23 | <a <?php spel_button_link($item[ 'team_link' ]); ?> class="name text-md fw-500"> |
| 24 | <?php echo esc_html($item[ 'team_name' ]); ?> |
| 25 | </a> |
| 26 | <?php |
| 27 | } |
| 28 | if ( ! empty( $item[ 'team_job_position' ] ) ) { |
| 29 | ?> |
| 30 | <div class="post"><?php echo esc_html($item[ 'team_job_position' ]); ?></div> |
| 31 | <?php |
| 32 | } |
| 33 | ?> |
| 34 | </div> |
| 35 | </div> |
| 36 | <?php |
| 37 | } |
| 38 | } |
| 39 | ?> |
| 40 | </div> |
| 41 | <ul class="slider-arrows slick-arrow-one ezd-d-flex ezd-justify-content-center style-none sm-mt-30"> |
| 42 | <li class="prev_a slick-arrow"><i class="arrow_left"></i></li> |
| 43 | <li class="next_a slick-arrow"><i class="arrow_right"></i></li> |
| 44 | </ul> |
| 45 | </div> |