Version Description
- SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
- Major bug fix (the sidebar ended up inside the content on some themes when a certain number of members was reached)
Download this release
Release Info
Developer | spwebguy |
Plugin | Team Members |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.1
- readme.txt +8 -4
- tmm.php +23 -13
readme.txt
CHANGED
@@ -16,8 +16,8 @@ This plugin adds a “Teams” section to the admin panel which allows you to sh
|
|
16 |
= Rate and review =
|
17 |
We love to hear from our users, please take the time to rate this plugin and tell us what you think about it!
|
18 |
|
19 |
-
=
|
20 |
-
The
|
21 |
|
22 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) gives you access to a lot of new features: Pictures’ shape, enabling/disabling picture borders, picture position. It also allows you to add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). One more link can be added to each member.
|
23 |
|
@@ -57,8 +57,8 @@ Go to [the plugin's page](http://wpdarko.com/team-members/) for information on h
|
|
57 |
= Where can I get help with this plugin? =
|
58 |
Find help in [our forums](http://wpdarko.com/forum/plugins/team-members/) for this plugin (we’ll answer you fast, promise).
|
59 |
|
60 |
-
=
|
61 |
-
The
|
62 |
|
63 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) gives you access to a lot of new features: Pictures’ shape, enabling/disabling picture borders, picture position. It also allows you to add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). One more link can be added to each member.
|
64 |
|
@@ -68,6 +68,10 @@ The [PRO version](http://wpdarko.com/items/team-members-pro/) gives you access t
|
|
68 |
3. Creating members (admin view)
|
69 |
|
70 |
== Changelog ==
|
|
|
|
|
|
|
|
|
71 |
= 1.0.1 =
|
72 |
* SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
|
73 |
* Preparing for PRO version
|
16 |
= Rate and review =
|
17 |
We love to hear from our users, please take the time to rate this plugin and tell us what you think about it!
|
18 |
|
19 |
+
= No limitation for the Free version =
|
20 |
+
The Free version of the Team Members plugin is **not limited** and does not contain any ad.
|
21 |
|
22 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) gives you access to a lot of new features: Pictures’ shape, enabling/disabling picture borders, picture position. It also allows you to add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). One more link can be added to each member.
|
23 |
|
57 |
= Where can I get help with this plugin? =
|
58 |
Find help in [our forums](http://wpdarko.com/forum/plugins/team-members/) for this plugin (we’ll answer you fast, promise).
|
59 |
|
60 |
+
= No limitation for the Free version =
|
61 |
+
The Free version of the Team Members plugin is **not limited** and does not contain any ad.
|
62 |
|
63 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) gives you access to a lot of new features: Pictures’ shape, enabling/disabling picture borders, picture position. It also allows you to add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). One more link can be added to each member.
|
64 |
|
68 |
3. Creating members (admin view)
|
69 |
|
70 |
== Changelog ==
|
71 |
+
= 1.1 =
|
72 |
+
* SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
|
73 |
+
* Major bug fix (the sidebar ended up inside the content on some themes when a certain number of members was reached)
|
74 |
+
|
75 |
= 1.0.1 =
|
76 |
* SAFE UPDATE: No data loss for those upgrading from version 1.0 or higher
|
77 |
* Preparing for PRO version
|
tmm.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* Plugin Name: Team Members
|
4 |
* Plugin URI: http://wpdarko.com/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/team-members-pro/'>PRO version</a> for more great features.
|
6 |
-
* Version: 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/
|
14 |
|
15 |
function my_admin_notice(){
|
16 |
echo '<div class="updated">
|
@@ -174,7 +174,7 @@ function tmm_metaboxes( array $meta_boxes ) {
|
|
174 |
}
|
175 |
|
176 |
$meta_boxes[] = array(
|
177 |
-
'title' => '
|
178 |
'pages' => 'tmm',
|
179 |
'context' => 'side',
|
180 |
'priority' => 'low',
|
@@ -244,14 +244,19 @@ function tmm_sc($atts) {
|
|
244 |
<div class="tmm_wrap">
|
245 |
';
|
246 |
|
247 |
-
$
|
248 |
-
$cols = $tmm_columns;
|
249 |
|
250 |
foreach ($members as $key => $member) {
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
|
256 |
$output .= '<div class="tmm_member" style="border-top:'.$tmm_color.' solid 5px;">';
|
257 |
$output .= wp_get_attachment_image( $member['tmm_photo'] );
|
@@ -285,12 +290,17 @@ function tmm_sc($atts) {
|
|
285 |
$output .= '</div>';
|
286 |
$output .= '</div>';
|
287 |
|
288 |
-
|
289 |
-
$
|
|
|
290 |
}
|
291 |
-
|
|
|
|
|
292 |
}
|
293 |
-
|
|
|
|
|
294 |
$output .= '</div>';
|
295 |
$output .= '</div>';
|
296 |
|
3 |
* Plugin Name: Team Members
|
4 |
* Plugin URI: http://wpdarko.com/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/team-members-pro/'>PRO version</a> for more great features.
|
6 |
+
* Version: 1.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')) {
|
14 |
|
15 |
function my_admin_notice(){
|
16 |
echo '<div class="updated">
|
174 |
}
|
175 |
|
176 |
$meta_boxes[] = array(
|
177 |
+
'title' => 'Team Members PRO',
|
178 |
'pages' => 'tmm',
|
179 |
'context' => 'side',
|
180 |
'priority' => 'low',
|
244 |
<div class="tmm_wrap">
|
245 |
';
|
246 |
|
247 |
+
$i = 0;
|
|
|
248 |
|
249 |
foreach ($members as $key => $member) {
|
250 |
+
|
251 |
+
if($i%$tmm_columns == 0) {
|
252 |
+
if($i > 0) {
|
253 |
+
$output .= "</div>";
|
254 |
+
$output .= '<div class="clearer"></div>';
|
255 |
+
} // close div if it's not the first
|
256 |
+
|
257 |
+
|
258 |
+
$output .= "<div class='tmm_container'>";
|
259 |
+
}
|
260 |
|
261 |
$output .= '<div class="tmm_member" style="border-top:'.$tmm_color.' solid 5px;">';
|
262 |
$output .= wp_get_attachment_image( $member['tmm_photo'] );
|
290 |
$output .= '</div>';
|
291 |
$output .= '</div>';
|
292 |
|
293 |
+
$pages_count = count( $members );
|
294 |
+
if ($key == $pages_count - 1) {
|
295 |
+
$output .= '<div class="clearer"></div>';
|
296 |
}
|
297 |
+
|
298 |
+
$i++;
|
299 |
+
|
300 |
}
|
301 |
+
|
302 |
+
$output .= '</div>';
|
303 |
+
$output .= '</div>';
|
304 |
$output .= '</div>';
|
305 |
$output .= '</div>';
|
306 |
|