Team Members - Version 1.3.1

Version Description

  • SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
  • Added an email icon for member links
Download this release

Release Info

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

Code changes from version 1.3 to 1.3.1

Files changed (3) hide show
  1. img/links/email.png +0 -0
  2. readme.txt +4 -0
  3. tmm.php +40 -27
img/links/email.png ADDED
Binary file
readme.txt CHANGED
@@ -67,6 +67,10 @@ The [PRO version](http://wpdarko.com/items/team-members-pro/) gives you access t
67
3. Creating members (admin view)
68
69
== Changelog ==
70
= 1.3 =
71
* SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
72
* You can now show 2, 3 or 4 members per line
67
3. Creating members (admin view)
68
69
== Changelog ==
70
+ = 1.3.1 =
71
+ * SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
72
+ * Added an email icon for member links
73
+
74
= 1.3 =
75
* SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
76
* You can now show 2, 3 or 4 members per line
tmm.php CHANGED
@@ -1,13 +1,13 @@
1
<?php
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: 1.3
7
- * Author: WP Darko
8
- * Author URI: http://wpdarko.com
9
- * License: GPL2
10
- */
11
12
function tmm_free_pro_check() {
13
if (is_plugin_active('team-members-pro/tmm-pro.php')) {
@@ -43,15 +43,7 @@ function create_tmm_type() {
43
'public' => true,
44
'has_archive' => false,
45
'hierarchical' => false,
46
- 'capabilities' => array(
47
- 'edit_post' => 'update_core',
48
- 'read_post' => 'update_core',
49
- 'delete_post' => 'update_core',
50
- 'edit_posts' => 'update_core',
51
- 'edit_others_posts' => 'update_core',
52
- 'publish_posts' => 'update_core',
53
- 'read_private_posts' => 'update_core'
54
- ),
55
'supports' => array( 'title' ),
56
'menu_icon' => 'dashicons-plus',
57
)
@@ -87,6 +79,7 @@ function tmm_metaboxes( array $meta_boxes ) {
87
'instagram' => 'Instagram',
88
'tumblr' => 'Tumblr',
89
'pinterest' => 'Pinterest',
90
'website' => 'Website',
91
'customlink' => 'Other links',
92
)
@@ -106,6 +99,7 @@ function tmm_metaboxes( array $meta_boxes ) {
106
'instagram' => 'Instagram',
107
'tumblr' => 'Tumblr',
108
'pinterest' => 'Pinterest',
109
'website' => 'Website',
110
'customlink' => 'Other links',
111
)
@@ -125,6 +119,7 @@ function tmm_metaboxes( array $meta_boxes ) {
125
'instagram' => 'Instagram',
126
'tumblr' => 'Tumblr',
127
'pinterest' => 'Pinterest',
128
'website' => 'Website',
129
'customlink' => 'Other links',
130
)
@@ -283,21 +278,39 @@ function tmm_sc($atts) {
283
$output .= '<div class="tmm_desc">'.$member['tmm_desc'].'</div>';
284
$output .= '<div class="tmm_scblock">';
285
if ($member['tmm_sc_type1'] != 'nada') {
286
- $output .= '<a class="tmm_sociallink" href="'.$member['tmm_sc_url1'].'" title="'.$member['tmm_sc_title1'].'">';
287
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type1'].'.png"/>';
288
- $output .= '</a>';
289
}
290
291
if ($member['tmm_sc_type2'] != 'nada') {
292
- $output .= '<a class="tmm_sociallink" href="'.$member['tmm_sc_url2'].'" title="'.$member['tmm_sc_title2'].'">';
293
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type2'].'.png"/>';
294
- $output .= '</a>';
295
}
296
297
if ($member['tmm_sc_type3'] != 'nada') {
298
- $output .= '<a class="tmm_sociallink" href="'.$member['tmm_sc_url3'].'" title="'.$member['tmm_sc_title3'].'">';
299
- $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type3'].'.png"/>';
300
- $output .= '</a>';
301
}
302
$output .= '</div>';
303
$output .= '</div>';
1
<?php
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: 1.3.1
7
+ Author: WP Darko
8
+ Author URI: http://wpdarko.com
9
+ License: GPL2
10
+ */
11
12
function tmm_free_pro_check() {
13
if (is_plugin_active('team-members-pro/tmm-pro.php')) {
43
'public' => true,
44
'has_archive' => false,
45
'hierarchical' => false,
46
+ 'capability_type' => 'post',
47
'supports' => array( 'title' ),
48
'menu_icon' => 'dashicons-plus',
49
)
79
'instagram' => 'Instagram',
80
'tumblr' => 'Tumblr',
81
'pinterest' => 'Pinterest',
82
+ 'email' => 'Email',
83
'website' => 'Website',
84
'customlink' => 'Other links',
85
)
99
'instagram' => 'Instagram',
100
'tumblr' => 'Tumblr',
101
'pinterest' => 'Pinterest',
102
+ 'email' => 'Email',
103
'website' => 'Website',
104
'customlink' => 'Other links',
105
)
119
'instagram' => 'Instagram',
120
'tumblr' => 'Tumblr',
121
'pinterest' => 'Pinterest',
122
+ 'email' => 'Email',
123
'website' => 'Website',
124
'customlink' => 'Other links',
125
)
278
$output .= '<div class="tmm_desc">'.$member['tmm_desc'].'</div>';
279
$output .= '<div class="tmm_scblock">';
280
if ($member['tmm_sc_type1'] != 'nada') {
281
+ if ($member['tmm_sc_type1'] == 'email') {
282
+ $output .= '<a class="tmm_sociallink" href="mailto:'.$member['tmm_sc_url1'].'" title="'.$member['tmm_sc_title1'].'">';
283
+ $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type1'].'.png"/>';
284
+ $output .= '</a>';
285
+ } else {
286
+ $output .= '<a class="tmm_sociallink" href="'.$member['tmm_sc_url1'].'" title="'.$member['tmm_sc_title1'].'">';
287
+ $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type1'].'.png"/>';
288
+ $output .= '</a>';
289
+ }
290
}
291
292
if ($member['tmm_sc_type2'] != 'nada') {
293
+ if ($member['tmm_sc_type2'] == 'email') {
294
+ $output .= '<a class="tmm_sociallink" href="mailto:'.$member['tmm_sc_url2'].'" title="'.$member['tmm_sc_title2'].'">';
295
+ $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type2'].'.png"/>';
296
+ $output .= '</a>';
297
+ } else {
298
+ $output .= '<a class="tmm_sociallink" href="'.$member['tmm_sc_url2'].'" title="'.$member['tmm_sc_title2'].'">';
299
+ $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type2'].'.png"/>';
300
+ $output .= '</a>';
301
+ }
302
}
303
304
if ($member['tmm_sc_type3'] != 'nada') {
305
+ if ($member['tmm_sc_type3'] == 'email') {
306
+ $output .= '<a class="tmm_sociallink" href="mailto:'.$member['tmm_sc_url3'].'" title="'.$member['tmm_sc_title3'].'">';
307
+ $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type3'].'.png"/>';
308
+ $output .= '</a>';
309
+ } else {
310
+ $output .= '<a class="tmm_sociallink" href="'.$member['tmm_sc_url3'].'" title="'.$member['tmm_sc_title3'].'">';
311
+ $output .= '<img src="'.plugins_url('img/links/', __FILE__).$member['tmm_sc_type3'].'.png"/>';
312
+ $output .= '</a>';
313
+ }
314
}
315
$output .= '</div>';
316
$output .= '</div>';