PluginProbe
AWSM Team – Team Showcase Plugin / 1.0
AWSM Team – Team Showcase Plugin v1.0
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 1.0, at templates/cards.php

42 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $flip = false;
3 $flipclass = array("awsm-figcaption");
4 if(in_array($options['preset'], array('style-2'))){
5 $flip = true;
6 $flipclass = array("awsm-flip-back");
7 }
8 ?>
9 <div id="<?php echo $this->add_id(array('awsm-team',$id));?>" class="awsm-grid-wrapper">
10 <?php if ($team->have_posts()): ?>
11 <div class="awsm-grid <?php echo $this->item_style($options);?>">
12 <?php
13 while ($team->have_posts()): $team->the_post();
14 $teamdata = $this->get_options('awsm_team_member', $team->post->ID);?>
15 <div id="<?php echo $this->add_id(array('awsm-member',$id,$team->post->ID));?>" class="awsm-grid-card">
16 <figure>
17 <!-- <span class="awsm-grid-holder"> -->
18 <?php $this->checkprint('<div class="awsm-flip-front">',$flip);?>
19 <img src="<?php echo $this->team_thumbnail($team->post->ID);?>" alt="<?php the_title();?>">
20 <?php $this->checkprint('</div>',$flip);?>
21 <figcaption class="<?php echo $this->addclass($flipclass);?>">
22 <?php $this->checkprint('<div class="awsm-flip-back-inner">',$flip);?>
23 <div class="awsm-personal-info">
24 <h3><?php the_title();?></h3>
25 <span><?php echo $teamdata['awsm-team-designation'];?></span>
26 </div> <!-- .awsm-personal-info -->
27 <div class="awsm-contact-info">
28 <?php
29 $this->checkprint('<p>%s</p>', $teamdata['awsm-team-short-desc']);
30 include( $this->settings['plugin_path'].'templates/partials/social.php' );
31 ?>
32 </div> <!-- .awsm-contact-info -->
33 <?php $this->checkprint('</div><!-- .awsm-flip-back-inner -->',$flip);?>
34 </figcaption>
35 <!-- </span> -->
36 <!-- .awsm-grid-holder -->
37 </figure>
38 </div>
39 <?php endwhile; wp_reset_postdata();?>
40 </div><!-- .grid -->
41 <?php endif;?>
42 </div>