Team Members - Version 2.0.3

Version Description

  • SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
  • Style bug fixes
  • Allow HTML in fields (eg. adding anchor tags)
Download this release

Release Info

Developer spwebguy
Plugin Icon 128x128 Team Members
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.3

Files changed (2) hide show
  1. readme.txt +5 -0
  2. tmm.php +14 -9
readme.txt CHANGED
@@ -68,6 +68,11 @@ The [PRO version](http://wpdarko.com/items/team-members-pro/) gives you access t
68
3. Creating members (admin view)
69
70
== Changelog ==
71
= 2.0.2 =
72
* SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
73
* Only show images if there are
68
3. Creating members (admin view)
69
70
== Changelog ==
71
+ = 2.0.3 =
72
+ * SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
73
+ * Style bug fixes
74
+ * Allow HTML in fields (eg. adding anchor tags)
75
+
76
= 2.0.2 =
77
* SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
78
* Only show images if there are
tmm.php CHANGED
@@ -2,8 +2,8 @@
2
/*
3
Plugin Name: Team Members
4
Plugin URI: http://wpdarko.com/support/documentation/get-started-team-members/
5
- Description: A responsive, simple and clean way to display your team. Create new members, add their positions, bios, social links and copy-paste the shortcode into any post/page. Find support and information on the <a href="http://wpdarko.com/team-members/">plugin's page</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/items/team-members-pro/'>PRO version</a> for more great features.
6
- Version: 2.0.2
7
Author: WP Darko
8
Author URI: http://wpdarko.com
9
License: GPL2
@@ -185,6 +185,7 @@ function tmm_register_group_metabox() {
185
'id' => $prefix . 'firstname',
186
'type' => 'text',
187
'row_classes' => 'de_first de_twentyfive de_text de_input',
188
));
189
190
$main_group->add_group_field( $tmm_group, array(
@@ -192,6 +193,7 @@ function tmm_register_group_metabox() {
192
'id' => $prefix . 'lastname',
193
'type' => 'text',
194
'row_classes' => 'de_twentyfive de_text de_input',
195
));
196
197
$main_group->add_group_field( $tmm_group, array(
@@ -199,6 +201,7 @@ function tmm_register_group_metabox() {
199
'id' => $prefix . 'job',
200
'type' => 'text',
201
'row_classes' => 'de_fifty de_text de_input',
202
));
203
204
@@ -220,6 +223,7 @@ function tmm_register_group_metabox() {
220
'rows' => 6,
221
),
222
'row_classes' => 'de_first de_fifty de_textarea de_input',
223
));
224
225
$main_group->add_group_field( $tmm_group, array(
@@ -246,6 +250,7 @@ function tmm_register_group_metabox() {
246
'rows' => 1,
247
),
248
'row_classes' => 'de_fifty de_text de_input',
249
));
250
251
$main_group->add_group_field( $tmm_group, array(
@@ -586,7 +591,7 @@ function tmm_sc($atts) {
586
}
587
588
$output .= '<div class="tmm_member" style="border-top:'.$tmm_color.' solid 5px;">';
589
- if (isset($member['_tmm_photo'])){
590
$output .= '<img src="'.$member['_tmm_photo'].'"/>';
591
}
592
$output .= '<div class="tmm_textblock">';
@@ -601,11 +606,11 @@ function tmm_sc($atts) {
601
if ($member['_tmm_sc_type1'] != 'nada') {
602
if ($member['_tmm_sc_type1'] == 'email') {
603
$output .= '<a class="tmm_sociallink" href="mailto:'.$member['_tmm_sc_url1'].'" title="'.$member['_tmm_sc_title1'].'">';
604
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type1'].'.png"/>';
605
$output .= '</a>';
606
} else {
607
$output .= '<a class="tmm_sociallink" href="'.$member['_tmm_sc_url1'].'" title="'.$member['_tmm_sc_title1'].'">';
608
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type1'].'.png"/>';
609
$output .= '</a>';
610
}
611
}
@@ -613,11 +618,11 @@ function tmm_sc($atts) {
613
if ($member['_tmm_sc_type2'] != 'nada') {
614
if ($member['_tmm_sc_type2'] == 'email') {
615
$output .= '<a class="tmm_sociallink" href="mailto:'.$member['_tmm_sc_url2'].'" title="'.$member['_tmm_sc_title2'].'">';
616
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type2'].'.png"/>';
617
$output .= '</a>';
618
} else {
619
$output .= '<a class="tmm_sociallink" href="'.$member['_tmm_sc_url2'].'" title="'.$member['_tmm_sc_title2'].'">';
620
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type2'].'.png"/>';
621
$output .= '</a>';
622
}
623
}
@@ -625,11 +630,11 @@ function tmm_sc($atts) {
625
if ($member['_tmm_sc_type3'] != 'nada') {
626
if ($member['_tmm_sc_type3'] == 'email') {
627
$output .= '<a class="tmm_sociallink" href="mailto:'.$member['_tmm_sc_url3'].'" title="'.$member['_tmm_sc_title3'].'">';
628
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type3'].'.png"/>';
629
$output .= '</a>';
630
} else {
631
$output .= '<a class="tmm_sociallink" href="'.$member['_tmm_sc_url3'].'" title="'.$member['_tmm_sc_title3'].'">';
632
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type3'].'.png"/>';
633
$output .= '</a>';
634
}
635
}
2
/*
3
Plugin Name: Team Members
4
Plugin URI: http://wpdarko.com/support/documentation/get-started-team-members/
5
+ Description: A responsive, simple and clean way to display your team. Create new members, add their positions, bios, social links and copy-paste the shortcode into any post/page. Find support and information on the <a href="http://wpdarko.com/team-members/">plugin's page</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/items/team-members-pro'>PRO version</a> for more great features.
6
+ Version: 2.0.3
7
Author: WP Darko
8
Author URI: http://wpdarko.com
9
License: GPL2
185
'id' => $prefix . 'firstname',
186
'type' => 'text',
187
'row_classes' => 'de_first de_twentyfive de_text de_input',
188
+ 'sanitization_cb' => false,
189
));
190
191
$main_group->add_group_field( $tmm_group, array(
193
'id' => $prefix . 'lastname',
194
'type' => 'text',
195
'row_classes' => 'de_twentyfive de_text de_input',
196
+ 'sanitization_cb' => false,
197
));
198
199
$main_group->add_group_field( $tmm_group, array(
201
'id' => $prefix . 'job',
202
'type' => 'text',
203
'row_classes' => 'de_fifty de_text de_input',
204
+ 'sanitization_cb' => false,
205
));
206
207
223
'rows' => 6,
224
),
225
'row_classes' => 'de_first de_fifty de_textarea de_input',
226
+ 'sanitization_cb' => false,
227
));
228
229
$main_group->add_group_field( $tmm_group, array(
250
'rows' => 1,
251
),
252
'row_classes' => 'de_fifty de_text de_input',
253
+ 'sanitization_cb' => false,
254
));
255
256
$main_group->add_group_field( $tmm_group, array(
591
}
592
593
$output .= '<div class="tmm_member" style="border-top:'.$tmm_color.' solid 5px;">';
594
+ if (!empty($member['_tmm_photo'])){
595
$output .= '<img src="'.$member['_tmm_photo'].'"/>';
596
}
597
$output .= '<div class="tmm_textblock">';
606
if ($member['_tmm_sc_type1'] != 'nada') {
607
if ($member['_tmm_sc_type1'] == 'email') {
608
$output .= '<a class="tmm_sociallink" href="mailto:'.$member['_tmm_sc_url1'].'" title="'.$member['_tmm_sc_title1'].'">';
609
+ $output .= '<img alt="'.$member['_tmm_sc_title1'].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type1'].'.png"/>';
610
$output .= '</a>';
611
} else {
612
$output .= '<a class="tmm_sociallink" href="'.$member['_tmm_sc_url1'].'" title="'.$member['_tmm_sc_title1'].'">';
613
+ $output .= '<img alt="'.$member['_tmm_sc_title1'].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type1'].'.png"/>';
614
$output .= '</a>';
615
}
616
}
618
if ($member['_tmm_sc_type2'] != 'nada') {
619
if ($member['_tmm_sc_type2'] == 'email') {
620
$output .= '<a class="tmm_sociallink" href="mailto:'.$member['_tmm_sc_url2'].'" title="'.$member['_tmm_sc_title2'].'">';
621
+ $output .= '<img alt="'.$member['_tmm_sc_title2'].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type2'].'.png"/>';
622
$output .= '</a>';
623
} else {
624
$output .= '<a class="tmm_sociallink" href="'.$member['_tmm_sc_url2'].'" title="'.$member['_tmm_sc_title2'].'">';
625
+ $output .= '<img alt="'.$member['_tmm_sc_title2'].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type2'].'.png"/>';
626
$output .= '</a>';
627
}
628
}
630
if ($member['_tmm_sc_type3'] != 'nada') {
631
if ($member['_tmm_sc_type3'] == 'email') {
632
$output .= '<a class="tmm_sociallink" href="mailto:'.$member['_tmm_sc_url3'].'" title="'.$member['_tmm_sc_title3'].'">';
633
+ $output .= '<img alt="'.$member['_tmm_sc_title3'].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type3'].'.png"/>';
634
$output .= '</a>';
635
} else {
636
$output .= '<a class="tmm_sociallink" href="'.$member['_tmm_sc_url3'].'" title="'.$member['_tmm_sc_title3'].'">';
637
+ $output .= '<img alt="'.$member['_tmm_sc_title3'].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type3'].'.png"/>';
638
$output .= '</a>';
639
}
640
}