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
awsm-team / includes / member-details.php

member-details.php in AWSM Team – Team Showcase Plugin 1.3.2, at includes/member-details.php

74 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Member Details meta.
4 *
5 * @package awsm-team
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11 ?>
12
13 <div class="member-details-section">
14 <p>
15 <label for="awsm-team-designation"><?php esc_html_e( 'Designation', 'awsm-team' ); ?></label>
16 <input class="widefat" type="text" name="awsm-team-designation" id="awsm-team-designation" value="<?php echo esc_attr( get_post_meta( $post->ID, 'awsm-team-designation', true ) ); ?>"/>
17 </p>
18 <p>
19 <label for="awsm-team-short-desc"><?php esc_html_e( 'Short Description (In 140 characters or less)', 'awsm-team' ); ?></label>
20 <textarea id="awsm-team-short-desc" name="awsm-team-short-desc" class="widefat" type="text" maxlength="140"><?php echo esc_attr( get_post_meta( $post->ID, 'awsm-team-short-desc', true ) ); ?></textarea>
21 </p>
22 </div>
23
24 <p class="awsm-sorable-table-label"><?php esc_html_e( 'Links (Twitter, LinkedIn, etc)', 'awsm-team' ); ?></p>
25 <div class="member-details-section">
26 <table id="repeatable-fieldset-two" width="100%" class="awsm-sorable-table">
27 <thead>
28 <tr>
29 <td width="3%"></td>
30 <td width="45%"><?php esc_html_e( 'Icon', 'awsm-team' ); ?></td>
31 <td width="42%"><?php esc_html_e( 'Link', 'awsm-team' ); ?></td>
32 <td width="10%"></td>
33 </tr>
34 </thead>
35 <tbody>
36 <?php
37 if ( $awsm_social ) :
38 foreach ( $awsm_social as $field ) :
39 ?>
40 <tr>
41 <td><span class="dashicons dashicons-move"></span></td>
42 <td>
43 <?php $this->selectbuilder( 'awsm-team-icon[]', $socialicons, $field['icon'], __( 'Select icon', 'awsm-team' ), 'widefat awsm-icon-select' ); ?>
44 </td>
45 <td><input type="text" placeholder="<?php esc_attr_e( 'ex: http://www.twitter.com/awsmin', 'awsm-team' ); ?>" class="widefat" name="awsm-team-link[]" value="<?php echo isset( $field['link'] ) ? esc_attr( $field['link'] ) : ''; ?>
46 "/></td>
47 <td><a class="button remove-row" href="#"><?php esc_html_e( 'Remove', 'awsm-team' ); ?></a></td>
48 </tr>
49 <?php
50 endforeach;
51 else :
52 ?>
53 <tr>
54 <td><span class="dashicons dashicons-move"></span></td>
55 <td>
56 <?php $this->selectbuilder( 'awsm-team-icon[]', $socialicons, '', __( 'Select icon', 'awsm-team' ), 'widefat awsm-icon-select' ); ?>
57 </td>
58 <td><input type="text" placeholder="<?php esc_attr_e( 'ex: http://www.twitter.com/awsmin', 'awsm-team' ); ?>" class="widefat" name="awsm-team-link[]" value=""/></td>
59 <td><a class="button remove-row" href="#"><?php esc_html_e( 'Remove', 'awsm-team' ); ?></a></td>
60 </tr>
61 <?php endif; ?>
62 <tr class="empty-row screen-reader-text">
63 <td><span class="dashicons dashicons-move"></span></td>
64 <td>
65 <?php $this->selectbuilder( 'awsm-team-icon[]', $socialicons, '', __( 'Select icon', 'awsm-team' ), 'widefat' ); ?>
66 </td>
67 <td><input type="text" placeholder="<?php esc_attr_e( 'ex: http://www.twitter.com/awsmin', 'awsm-team' ); ?>" class="widefat" name="awsm-team-link[]" value=""/></td>
68 <td><a class="button remove-row" href="#"><?php esc_html_e( 'Remove', 'awsm-team' ); ?></a></td>
69 </tr>
70 </tbody>
71 </table>
72 <p><a class="button awsm-add-row" href="#" data-table="repeatable-fieldset-two"><?php esc_html_e( 'Add row', 'awsm-team' ); ?></a></p>
73 </div>
74