PluginProbe
AWSM Team – Team Showcase Plugin / trunk
AWSM Team – Team Showcase Plugin vtrunk
trunk 1.0 1.1 1.1.2 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4
awsm-team / templates / cards.php

cards.php in AWSM Team – Team Showcase Plugin trunk, at templates/cards.php

58 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Cards Preset Template.
4 *
5 * @package awsm-team
6 */
7
8 $flip = false;
9 $flipclass = array( 'awsm-figcaption' );
10 if ( in_array( $options['preset'], array( 'style-2' ) ) ) {
11 $flip = true;
12 $flipclass = array( 'awsm-flip-back' );
13 }
14 ?>
15 <div id="<?php echo esc_attr( $this->add_id( array( 'awsm-team', $id ) ) ); ?>" class="awsm-grid-wrapper">
16 <?php if ( $team->have_posts() ) : ?>
17 <div class="awsm-grid <?php echo esc_attr( $this->item_style( $options ) ); ?>">
18 <?php
19 while ( $team->have_posts() ) :
20 $team->the_post();
21 $teamdata = $this->get_options( 'awsm_team_member', $team->post->ID );
22
23 $personal_info = sprintf( '<div class="awsm-personal-info"><h3>%1$s</h3><span>%2$s</span></div>', get_the_title(), wp_kses( $teamdata['awsm-team-designation'], 'post' ) );
24 ?>
25 <div id="<?php echo esc_attr( $this->add_id( array( 'awsm-member', $id, $team->post->ID ) ) ); ?>" class="awsm-grid-card">
26 <figure>
27 <?php
28 $this->checkprint( '<div class="awsm-flip-front">', $flip );
29 echo $this->get_team_thumbnail( $team->post->ID ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
30 if ( $flip ) {
31 echo $personal_info; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
32 }
33 $this->checkprint( '</div>', $flip );
34 ?>
35 <figcaption class="<?php echo esc_attr( $this->addclass( $flipclass ) ); ?>">
36 <?php
37 $this->checkprint( '<div class="awsm-flip-back-inner">', $flip );
38 echo $personal_info; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
39 ?>
40 <div class="awsm-contact-info">
41 <?php
42 $this->checkprint( '<p>%s</p>', wp_kses( $teamdata['awsm-team-short-desc'], 'post' ) );
43 include $this->settings['plugin_path'] . 'templates/partials/social.php';
44 ?>
45 </div> <!-- .awsm-contact-info -->
46 <?php $this->checkprint( '</div><!-- .awsm-flip-back-inner -->', $flip ); ?>
47 </figcaption>
48 <!-- </span> -->
49 </figure>
50 </div>
51 <?php
52 endwhile;
53 wp_reset_postdata();
54 ?>
55 </div><!-- .grid -->
56 <?php endif; ?>
57 </div>
58