1 | <?php |
||
2 | /** |
||
3 | * @package lsx-team |
||
4 | */ |
||
5 | ?> |
||
6 | |||
7 | <?php |
||
8 | global $lsx_team; |
||
9 | |||
10 | $thumbnail = $lsx_team->get_thumbnail( get_the_ID(), 'lsx-team-archive' ); |
||
11 | |||
12 | $job_title = get_post_meta( get_the_ID(), 'lsx_job_title', true ); |
||
13 | ?> |
||
14 | |||
15 | <?php lsx_entry_before(); ?> |
||
16 | |||
17 | <div class="col-xs-12 col-sm-6 col-md-3"> |
||
18 | <article class="lsx-team-slot"> |
||
19 | <figure class="lsx-team-avatar"> |
||
20 | <?php if ( empty( team_get_option( 'team_disable_single' ) ) ) : ?> |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
21 | <a href="<?php the_permalink(); ?>"><?php echo wp_kses_post( $thumbnail ); ?></a> |
||
22 | <?php else : ?> |
||
23 | <?php echo wp_kses_post( $thumbnail ); ?> |
||
24 | <?php endif; ?> |
||
25 | </figure> |
||
26 | |||
27 | <h5 class="lsx-team-name"> |
||
28 | <?php if ( empty( team_get_option( 'team_disable_single' ) ) ) : ?> |
||
0 ignored issues
–
show
|
|||
29 | <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> |
||
30 | <?php else : ?> |
||
31 | <?php the_title(); ?> |
||
32 | <?php endif; ?> |
||
33 | </h5> |
||
34 | |||
35 | <?php if ( ! empty( $job_title ) ) : ?> |
||
36 | <small class="lsx-team-job-title"><?php echo wp_kses_post( $job_title ); ?></small> |
||
37 | <?php endif; ?> |
||
38 | |||
39 | <?php if ( empty( team_get_option( 'team_disable_single' ) ) ) : ?> |
||
0 ignored issues
–
show
|
|||
40 | <?php /* translators: %s: search term */ ?> |
||
41 | <a href="<?php the_permalink(); ?>" class="lsx-team-show-more"><?php printf( esc_html__( ' More about %s', 'lsx-team' ), esc_html( strtok( get_the_title(), ' ' ) ) ); ?> <i class="fa fa-long-arrow-right"></i></a> |
||
42 | <?php endif; ?> |
||
43 | </article> |
||
44 | </div> |
||
45 | |||
46 | <?php |
||
47 | lsx_entry_after(); |
||
48 |