PluginProbe
AWSM Team – Team Showcase Plugin / 1.3.2
AWSM Team – Team Showcase Plugin v1.3.2
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
← All changes | templates/table.php +33 -21 1.01.3.2 View file →
@@ -1,32 +1,41 @@
1 -<div id="<?php echo $this->add_id(array('awsm-team',$id));?>" class="awsm-grid-wrapper">
2 - <?php if ($team->have_posts()): ?>
3 - <div class="awsm-table <?php echo $this->item_style($options);?>">
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 ) ); ?>">
4 12 <div class="awsm-table-row awsm-table-head">
5 13 <div class="awsm-table-cell">
6 - <?php _e('Image'); ?>
14 + <?php esc_html_e( 'Image', 'awsm-team' ); ?>
7 15 </div><!-- .awsm-table-cell -->
8 16 <div class="awsm-table-cell">
9 - <?php _e('Name'); ?>
17 + <?php esc_html_e( 'Name', 'awsm-team' ); ?>
10 18 </div><!-- .awsm-table-cell -->
11 19 <div class="awsm-table-cell">
12 - <?php _e('Designaion'); ?>
20 + <?php esc_html_e( 'Designation', 'awsm-team' ); ?>
13 21 </div><!-- .awsm-table-cell -->
14 22 <div class="awsm-table-cell">
15 - <?php _e('Short Description'); ?>
16 - </div><!-- .awsm-table-cell -->
23 + <?php esc_html_e( 'Short Description', 'awsm-team' ); ?>
24 + </div><!-- .awsm-table-cell -->
17 25 <div class="awsm-table-cell">
18 - <?php _e('Social Links'); ?>
26 + <?php esc_html_e( 'Social Links', 'awsm-team' ); ?>
19 27 </div><!-- .awsm-table-cell -->
20 28 </div>
21 - <?php
22 - while ($team->have_posts()): $team->the_post();
23 - $teamdata = $this->get_options('awsm_team_member', $team->post->ID);
24 - ?>
25 - <div id="<?php echo $this->add_id(array('awsm-member',$id,$team->post->ID));?>" class="awsm-table-row">
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">
26 35 <div class="awsm-table-cell awsm-table-image">
27 36 <div class="awsm-table-img-holder">
28 - <img src="<?php echo $this->team_thumbnail($team->post->ID);?>" alt="<?php the_title();?>">
37 + <?php echo $this->get_team_thumbnail( $team->post->ID ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
29 38 </div><!-- .awsm-img-holder -->
30 39 </div><!-- .awsm-table-cell -->
31 40 <div class="awsm-table-cell awsm-table-name">
32 41 <div class="awsm-table-cell-inner"><?php the_title(); ?></div>
@@ -31,17 +40,20 @@
31 40 <div class="awsm-table-cell awsm-table-name">
32 41 <div class="awsm-table-cell-inner"><?php the_title(); ?></div>
33 42 </div><!-- .awsm-table-cell -->
34 43 <div class="awsm-table-cell awsm-table-designation">
35 - <div class="awsm-table-cell-inner"><?php $this->checkprint('%s', $teamdata['awsm-team-designation']);?></div>
44 + <div class="awsm-table-cell-inner"><?php $this->checkprint( '%s', $teamdata['awsm-team-designation'] ); ?></div>
36 45 </div><!-- .awsm-table-cell -->
37 46 <div class="awsm-table-cell awsm-table-description">
38 - <div class="awsm-table-cell-inner"><?php $this->checkprint('<p>%s</p>', $teamdata['awsm-team-short-desc']);?></div>
47 + <div class="awsm-table-cell-inner"><?php $this->checkprint( '<p>%s</p>', $teamdata['awsm-team-short-desc'] ); ?></div>
39 48 </div><!-- .awsm-table-cell -->
40 49 <div class="awsm-table-cell">
41 - <?php include( $this->settings['plugin_path'].'templates/partials/social.php' ); ?>
50 + <?php include $this->settings['plugin_path'] . 'templates/partials/social.php'; ?>
42 51 </div><!-- .awsm-table-cell -->
43 52 </div><!-- .awsm-table-row -->
44 - <?php endwhile; wp_reset_postdata();?>
53 + <?php
54 + endwhile;
55 + wp_reset_postdata();
56 + ?>
45 57 </div>
46 - <?php endif;?>
47 -</div>
58 + <?php endif; ?>
59 +</div>