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 / table.php

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

60 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Table Preset Template.
4 *
5 * @package awsm-team
6 */
7
8 ?>
9 <div id="<?php echo esc_attr( $this->add_id( array( 'awsm-team', $id ) ) ); ?>" class="awsm-grid-wrapper">
10 <?php if ( $team->have_posts() ) : ?>
11 <div class="awsm-table <?php echo esc_attr( $this->item_style( $options ) ); ?>">
12 <div class="awsm-table-row awsm-table-head">
13 <div class="awsm-table-cell">
14 <?php esc_html_e( 'Image', 'awsm-team' ); ?>
15 </div><!-- .awsm-table-cell -->
16 <div class="awsm-table-cell">
17 <?php esc_html_e( 'Name', 'awsm-team' ); ?>
18 </div><!-- .awsm-table-cell -->
19 <div class="awsm-table-cell">
20 <?php esc_html_e( 'Designation', 'awsm-team' ); ?>
21 </div><!-- .awsm-table-cell -->
22 <div class="awsm-table-cell">
23 <?php esc_html_e( 'Short Description', 'awsm-team' ); ?>
24 </div><!-- .awsm-table-cell -->
25 <div class="awsm-table-cell">
26 <?php esc_html_e( 'Social Links', 'awsm-team' ); ?>
27 </div><!-- .awsm-table-cell -->
28 </div>
29 <?php
30 while ( $team->have_posts() ) :
31 $team->the_post();
32 $teamdata = $this->get_options( 'awsm_team_member', $team->post->ID );
33 ?>
34 <div id="<?php echo esc_attr( $this->add_id( array( 'awsm-member', $id, $team->post->ID ) ) ); ?>" class="awsm-table-row">
35 <div class="awsm-table-cell awsm-table-image">
36 <div class="awsm-table-img-holder">
37 <?php echo $this->get_team_thumbnail( $team->post->ID ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
38 </div><!-- .awsm-img-holder -->
39 </div><!-- .awsm-table-cell -->
40 <div class="awsm-table-cell awsm-table-name">
41 <div class="awsm-table-cell-inner"><?php the_title(); ?></div>
42 </div><!-- .awsm-table-cell -->
43 <div class="awsm-table-cell awsm-table-designation">
44 <div class="awsm-table-cell-inner"><?php $this->checkprint( '%s', $teamdata['awsm-team-designation'] ); ?></div>
45 </div><!-- .awsm-table-cell -->
46 <div class="awsm-table-cell awsm-table-description">
47 <div class="awsm-table-cell-inner"><?php $this->checkprint( '<p>%s</p>', $teamdata['awsm-team-short-desc'] ); ?></div>
48 </div><!-- .awsm-table-cell -->
49 <div class="awsm-table-cell">
50 <?php include $this->settings['plugin_path'] . 'templates/partials/social.php'; ?>
51 </div><!-- .awsm-table-cell -->
52 </div><!-- .awsm-table-row -->
53 <?php
54 endwhile;
55 wp_reset_postdata();
56 ?>
57 </div>
58 <?php endif; ?>
59 </div>
60