Version Description
- Fixed minor CSS bugs
Download this release
Release Info
Developer | spwebguy |
Plugin | Team Members |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.0.1
- css/tmm_custom_style.css +31 -30
- css/tmm_custom_style.min.css +1 -1
- img/links/youtube.png +0 -0
- inc/cmb2/.gitignore +0 -0
- inc/cmb2/.scrutinizer.yml +0 -0
- inc/cmb2/.travis.yml +0 -0
- inc/cmb2/bootstrap.php +0 -0
- inc/cmb2/css/cmb2-front.css +0 -0
- inc/cmb2/css/cmb2-front.css.map +0 -0
- inc/cmb2/css/cmb2-front.min.css +0 -0
- inc/cmb2/css/cmb2.css +0 -0
- inc/cmb2/css/cmb2.css.map +0 -0
- inc/cmb2/css/cmb2.min.css +0 -0
- inc/cmb2/css/index.php +0 -0
- inc/cmb2/css/sass/cmb2-front.scss +0 -0
- inc/cmb2/css/sass/cmb2.scss +0 -0
- inc/cmb2/css/sass/index.php +0 -0
- inc/cmb2/css/sass/partials/_collapsible_ui.scss +0 -0
- inc/cmb2/css/sass/partials/_front.scss +0 -0
- inc/cmb2/css/sass/partials/_jquery_ui.scss +0 -0
- inc/cmb2/css/sass/partials/_main_wrap.scss +0 -0
- inc/cmb2/css/sass/partials/_misc.scss +0 -0
- inc/cmb2/css/sass/partials/_mixins.scss +0 -0
- inc/cmb2/css/sass/partials/_post_metaboxes.scss +0 -0
- inc/cmb2/css/sass/partials/_sidebar_placements.scss +0 -0
- inc/cmb2/css/sass/partials/_variables.scss +0 -0
- inc/cmb2/css/sass/partials/index.php +0 -0
- inc/cmb2/images/ico-delete.png +0 -0
- inc/cmb2/images/index.php +0 -0
- inc/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- inc/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- inc/cmb2/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- inc/cmb2/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- inc/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- inc/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- inc/cmb2/images/ui-icons_222222_256x240.png +0 -0
- inc/cmb2/images/ui-icons_2e83ff_256x240.png +0 -0
- inc/cmb2/images/ui-icons_454545_256x240.png +0 -0
- inc/cmb2/images/ui-icons_888888_256x240.png +0 -0
- inc/cmb2/images/ui-icons_cd0a0a_256x240.png +0 -0
- inc/cmb2/includes/CMB2.php +0 -0
- inc/cmb2/includes/CMB2_Ajax.php +0 -0
- inc/cmb2/includes/CMB2_Boxes.php +0 -0
- inc/cmb2/includes/CMB2_Field.php +0 -0
- inc/cmb2/includes/CMB2_JS.php +0 -0
- inc/cmb2/includes/CMB2_Options.php +0 -0
- inc/cmb2/includes/CMB2_Sanitize.php +0 -0
- inc/cmb2/includes/CMB2_Show_Filters.php +0 -0
- inc/cmb2/includes/CMB2_Types.php +0 -0
- inc/cmb2/includes/CMB2_Utils.php +0 -0
- inc/cmb2/includes/CMB2_hookup.php +0 -0
- inc/cmb2/includes/helper-functions.php +0 -0
- inc/cmb2/includes/index.php +0 -0
- inc/cmb2/index.php +0 -0
- inc/cmb2/init.php +0 -0
- inc/cmb2/js/cmb2.js +0 -0
- inc/cmb2/js/cmb2.min.js +0 -0
- inc/cmb2/js/index.php +0 -0
- inc/cmb2/js/jquery-ui-timepicker-addon.min.js +0 -0
- inc/tmm-metaboxes.php +3 -0
- readme.txt +11 -18
- tmm.php +54 -54
css/tmm_custom_style.css
CHANGED
@@ -8,12 +8,13 @@
|
|
8 |
.tmm .tmm_columns_containers_desktop {display:block; clear:both;}
|
9 |
|
10 |
.tmm .tmm_member {
|
|
|
11 |
display:inline-block;
|
12 |
margin-top:70px;
|
13 |
margin-bottom:30px;
|
14 |
height:auto;
|
15 |
-
float: left;
|
16 |
-
text-align:center;
|
17 |
-webkit-box-shadow: 1px 0px 2px 0px rgba(0,0,0,0.05);
|
18 |
-moz-box-shadow: 1px 0px 2px 0px rgba(0,0,0,0.05);
|
19 |
box-shadow: 1px 0px 2px 0px rgba(0,0,0,0.05);
|
@@ -42,8 +43,8 @@
|
|
42 |
.tmm .tmm_4_columns .tmm_member {width: 23%;}
|
43 |
|
44 |
.tmm .tmm_member .tmm_photo {
|
45 |
-
width:150px;
|
46 |
-
height:150px;
|
47 |
border:none;
|
48 |
-webkit-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.10);
|
49 |
-moz-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.10);
|
@@ -54,8 +55,8 @@
|
|
54 |
}
|
55 |
|
56 |
.tmm .tmm_4_columns .tmm_member .tmm_photo {
|
57 |
-
width:100px;
|
58 |
-
height:100px;
|
59 |
margin-top:-50px;
|
60 |
border-radius:40px !important;
|
61 |
border:5px solid whitesmoke;
|
@@ -63,17 +64,17 @@
|
|
63 |
|
64 |
.tmm .tmm_member .tmm_textblock .tmm_scblock {padding-top:10px;}
|
65 |
.tmm .tmm_member .tmm_textblock {padding:10px 12px;}
|
66 |
-
.tmm .tmm_member .tmm_textblock .tmm_sociallink {clear:both; margin-bottom:20px; border:none;}
|
67 |
.tmm .tmm_member .tmm_textblock .tmm_sociallink img {
|
68 |
-
display:inline-block;
|
69 |
-
border:none; width:24px;
|
70 |
-
height:24px;
|
71 |
-
box-shadow: 0 0 0 0;
|
72 |
margin:10px 4px;
|
73 |
}
|
74 |
|
75 |
.tmm .tmm_4_columns .tmm_member .tmm_textblock .tmm_sociallink img {width:21px; height:21px; margin:6px 3px;}
|
76 |
-
.tmm .tmm_member .tmm_textblock .tmm_sociallink img:hover {opacity:0.8;}
|
77 |
|
78 |
.tmm .tmm_names {font-size:21px; margin-bottom:8px; margin-top:10px; font-weight:300; line-height:24px;}
|
79 |
.tmm .tmm_4_columns .tmm_names {font-size:17px;}
|
@@ -89,53 +90,53 @@
|
|
89 |
.tmm .tmm_columns_containers_desktop {display:none; clear:none;}
|
90 |
.tmm_two_containers_tablet {display:block; clear:both;}
|
91 |
|
92 |
-
.tmm .tmm_2_columns .tmm_member,
|
93 |
-
.tmm .tmm_3_columns .tmm_member,
|
94 |
-
.tmm .tmm_4_columns .tmm_member {
|
95 |
width: 40%; margin-left:5%; margin-right:5%;
|
96 |
margin-top:70px;
|
97 |
margin-bottom:30px;
|
98 |
}
|
99 |
-
|
100 |
.tmm .tmm_names {font-size:17px; margin-bottom:8px; margin-top:10px; font-weight:300; line-height:24px;}
|
101 |
.tmm .tmm_4_columns .tmm_names {font-size:17px;}
|
102 |
.tmm .tmm_job {font-size:13px; color:#a2a5a4; text-transform:uppercase;}
|
103 |
-
|
104 |
.tmm .tmm_desc {padding:10px; margin-top:19px; margin-bottom:10px; font-size:15px; line-height:23px;}
|
105 |
.tmm .tmm_4_columns .tmm_desc {margin-top:14px; margin-bottom:8px; font-size:14px; line-height: 23px;}
|
106 |
-
|
107 |
.tmm .tmm_2_columns .tmm_member .tmm_photo,
|
108 |
.tmm .tmm_3_columns .tmm_member .tmm_photo,
|
109 |
.tmm .tmm_4_columns .tmm_member .tmm_photo {
|
110 |
-
width:130px;
|
111 |
-
height:130px;
|
112 |
border-radius:50px !important;
|
113 |
border:8px solid whitesmoke;
|
114 |
margin-top:-65px;
|
115 |
}
|
116 |
-
|
117 |
}
|
118 |
|
119 |
/* MOBILE */
|
120 |
@media only screen and (max-width: 40em) {
|
121 |
.tmm .tmm_columns_containers_desktop {display:none; clear:none;}
|
122 |
.tmm .tmm_member {width: 96%; margin:0 2%; margin-top:70px; margin-bottom:30px;}
|
123 |
-
.tmm .tmm_2_columns .tmm_member,
|
124 |
-
.tmm .tmm_3_columns .tmm_member,
|
125 |
.tmm .tmm_4_columns .tmm_member {
|
126 |
-
width: 96%;
|
127 |
-
margin:0 2%;
|
128 |
margin-top:90px;
|
129 |
margin-bottom:10px;
|
130 |
}
|
131 |
-
|
132 |
.tmm .tmm_4_columns .tmm_names {font-size:20px;}
|
133 |
-
|
134 |
.tmm .tmm_2_columns .tmm_member .tmm_photo,
|
135 |
.tmm .tmm_3_columns .tmm_member .tmm_photo,
|
136 |
.tmm .tmm_4_columns .tmm_member .tmm_photo {
|
137 |
-
width:160px;
|
138 |
-
height:160px;
|
139 |
border-radius:60px !important;
|
140 |
border:8px solid whitesmoke;
|
141 |
margin-top:-80px;
|
@@ -146,4 +147,4 @@
|
|
146 |
}
|
147 |
|
148 |
/* Force original fonts */
|
149 |
-
.tmm .tmm_ori_f .tmm_container .tmm_fname, .tmm .tmm_ori_f .tmm_container .tmm_job, .tmm .tmm_ori_f .tmm_container .tmm_desc, .tmm .tmm_ori_f .tmm_container .tmm_lname {font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-weight:300 !important;}
|
8 |
.tmm .tmm_columns_containers_desktop {display:block; clear:both;}
|
9 |
|
10 |
.tmm .tmm_member {
|
11 |
+
vertical-align:top;
|
12 |
display:inline-block;
|
13 |
margin-top:70px;
|
14 |
margin-bottom:30px;
|
15 |
height:auto;
|
16 |
+
float: left;
|
17 |
+
text-align:center;
|
18 |
-webkit-box-shadow: 1px 0px 2px 0px rgba(0,0,0,0.05);
|
19 |
-moz-box-shadow: 1px 0px 2px 0px rgba(0,0,0,0.05);
|
20 |
box-shadow: 1px 0px 2px 0px rgba(0,0,0,0.05);
|
43 |
.tmm .tmm_4_columns .tmm_member {width: 23%;}
|
44 |
|
45 |
.tmm .tmm_member .tmm_photo {
|
46 |
+
width:150px;
|
47 |
+
height:150px;
|
48 |
border:none;
|
49 |
-webkit-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.10);
|
50 |
-moz-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.10);
|
55 |
}
|
56 |
|
57 |
.tmm .tmm_4_columns .tmm_member .tmm_photo {
|
58 |
+
width:100px;
|
59 |
+
height:100px;
|
60 |
margin-top:-50px;
|
61 |
border-radius:40px !important;
|
62 |
border:5px solid whitesmoke;
|
64 |
|
65 |
.tmm .tmm_member .tmm_textblock .tmm_scblock {padding-top:10px;}
|
66 |
.tmm .tmm_member .tmm_textblock {padding:10px 12px;}
|
67 |
+
.tmm .tmm_member .tmm_textblock .tmm_sociallink {clear:both; margin-bottom:20px; border:none; box-shadow:0 0 0;}
|
68 |
.tmm .tmm_member .tmm_textblock .tmm_sociallink img {
|
69 |
+
display:inline-block;
|
70 |
+
border:none; width:24px;
|
71 |
+
height:24px;
|
72 |
+
box-shadow: 0 0 0 0;
|
73 |
margin:10px 4px;
|
74 |
}
|
75 |
|
76 |
.tmm .tmm_4_columns .tmm_member .tmm_textblock .tmm_sociallink img {width:21px; height:21px; margin:6px 3px;}
|
77 |
+
.tmm .tmm_member .tmm_textblock .tmm_sociallink img:hover {opacity:0.8;}
|
78 |
|
79 |
.tmm .tmm_names {font-size:21px; margin-bottom:8px; margin-top:10px; font-weight:300; line-height:24px;}
|
80 |
.tmm .tmm_4_columns .tmm_names {font-size:17px;}
|
90 |
.tmm .tmm_columns_containers_desktop {display:none; clear:none;}
|
91 |
.tmm_two_containers_tablet {display:block; clear:both;}
|
92 |
|
93 |
+
.tmm .tmm_2_columns .tmm_member,
|
94 |
+
.tmm .tmm_3_columns .tmm_member,
|
95 |
+
.tmm .tmm_4_columns .tmm_member {
|
96 |
width: 40%; margin-left:5%; margin-right:5%;
|
97 |
margin-top:70px;
|
98 |
margin-bottom:30px;
|
99 |
}
|
100 |
+
|
101 |
.tmm .tmm_names {font-size:17px; margin-bottom:8px; margin-top:10px; font-weight:300; line-height:24px;}
|
102 |
.tmm .tmm_4_columns .tmm_names {font-size:17px;}
|
103 |
.tmm .tmm_job {font-size:13px; color:#a2a5a4; text-transform:uppercase;}
|
104 |
+
|
105 |
.tmm .tmm_desc {padding:10px; margin-top:19px; margin-bottom:10px; font-size:15px; line-height:23px;}
|
106 |
.tmm .tmm_4_columns .tmm_desc {margin-top:14px; margin-bottom:8px; font-size:14px; line-height: 23px;}
|
107 |
+
|
108 |
.tmm .tmm_2_columns .tmm_member .tmm_photo,
|
109 |
.tmm .tmm_3_columns .tmm_member .tmm_photo,
|
110 |
.tmm .tmm_4_columns .tmm_member .tmm_photo {
|
111 |
+
width:130px;
|
112 |
+
height:130px;
|
113 |
border-radius:50px !important;
|
114 |
border:8px solid whitesmoke;
|
115 |
margin-top:-65px;
|
116 |
}
|
117 |
+
|
118 |
}
|
119 |
|
120 |
/* MOBILE */
|
121 |
@media only screen and (max-width: 40em) {
|
122 |
.tmm .tmm_columns_containers_desktop {display:none; clear:none;}
|
123 |
.tmm .tmm_member {width: 96%; margin:0 2%; margin-top:70px; margin-bottom:30px;}
|
124 |
+
.tmm .tmm_2_columns .tmm_member,
|
125 |
+
.tmm .tmm_3_columns .tmm_member,
|
126 |
.tmm .tmm_4_columns .tmm_member {
|
127 |
+
width: 96%;
|
128 |
+
margin:0 2%;
|
129 |
margin-top:90px;
|
130 |
margin-bottom:10px;
|
131 |
}
|
132 |
+
|
133 |
.tmm .tmm_4_columns .tmm_names {font-size:20px;}
|
134 |
+
|
135 |
.tmm .tmm_2_columns .tmm_member .tmm_photo,
|
136 |
.tmm .tmm_3_columns .tmm_member .tmm_photo,
|
137 |
.tmm .tmm_4_columns .tmm_member .tmm_photo {
|
138 |
+
width:160px;
|
139 |
+
height:160px;
|
140 |
border-radius:60px !important;
|
141 |
border:8px solid whitesmoke;
|
142 |
margin-top:-80px;
|
147 |
}
|
148 |
|
149 |
/* Force original fonts */
|
150 |
+
.tmm .tmm_ori_f .tmm_container .tmm_fname, .tmm .tmm_ori_f .tmm_container .tmm_job, .tmm .tmm_ori_f .tmm_container .tmm_desc, .tmm .tmm_ori_f .tmm_container .tmm_lname {font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-weight:300 !important;}
|
css/tmm_custom_style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@charset "UTF-8";.tmm .tmm_wrap{width:100%;margin-bottom:30px;text-align:center}.tmm .
|
1 |
+
@charset "UTF-8";.tmm .tmm_wrap{width:100%;margin-bottom:30px;text-align:center}.tmm .clearer{clear:both}.tmm .tmm_container{display:inline}.tmm .tmm_container:last-child{display:block;text-align:center!important}.tmm_last_row_centered .tmm_container:last-child .tmm_member{float:none}.tmm .tmm_columns_containers_desktop{display:block;clear:both}.tmm .tmm_member{vertical-align:top;display:inline-block;margin-top:70px;margin-bottom:30px;height:auto;float:left;text-align:center;-webkit-box-shadow:1px 0 2px 0 rgba(0,0,0,.05);-moz-box-shadow:1px 0 2px 0 rgba(0,0,0,.05);box-shadow:1px 0 2px 0 rgba(0,0,0,.05);border-top:5px solid #d3d3d3;border-bottom:6px solid #f5f5f5;background:#fff}.tmm .tmm_three_entries{clear:both}.tmm .tmm_2_columns .tmm_member{margin-right:4%;margin-left:4%;width:42%}.tmm .tmm_3_columns .tmm_member{margin-right:2%;margin-left:2%;width:29%}.tmm .tmm_4_columns .tmm_member{margin-right:1%;margin-left:1%;width:23%}.tmm .tmm_member .tmm_photo{width:150px;height:150px;-webkit-box-shadow:2px 0 2px 0 rgba(0,0,0,.1);-moz-box-shadow:2px 0 2px 0 rgba(0,0,0,.1);box-shadow:2px 0 2px 0 rgba(0,0,0,.1);border-radius:60px!important;margin-top:-80px;border:8px solid #f5f5f5}.tmm .tmm_4_columns .tmm_member .tmm_photo{width:100px;height:100px;margin-top:-50px;border-radius:40px!important;border:5px solid #f5f5f5}.tmm .tmm_member .tmm_textblock .tmm_scblock{padding-top:10px}.tmm .tmm_member .tmm_textblock{padding:10px 12px}.tmm .tmm_member .tmm_textblock .tmm_sociallink{clear:both;margin-bottom:20px;border:none;box-shadow:0 0 0}.tmm .tmm_member .tmm_textblock .tmm_sociallink img{display:inline-block;border:none;width:24px;height:24px;box-shadow:0 0;margin:10px 4px}.tmm .tmm_4_columns .tmm_member .tmm_textblock .tmm_sociallink img{width:21px;height:21px;margin:6px 3px}.tmm .tmm_member .tmm_textblock .tmm_sociallink img:hover{opacity:.8}.tmm .tmm_names{font-size:21px;margin-bottom:8px;margin-top:10px;font-weight:300;line-height:24px}.tmm .tmm_4_columns .tmm_names{font-size:17px}.tmm .tmm_fname,.tmm .tmm_lname{display:inline}.tmm .tmm_job{font-size:14px;color:#a2a5a4;text-transform:uppercase}.tmm .tmm_desc{padding:0;margin-top:19px;margin-bottom:10px;font-size:14px}.tmm .tmm_4_columns .tmm_desc{margin-top:14px;margin-bottom:8px;font-size:13px;line-height:23px}@media only screen and (max-width:64.063em){.tmm .tmm_columns_containers_desktop{display:none;clear:none}.tmm_two_containers_tablet{display:block;clear:both}.tmm .tmm_2_columns .tmm_member,.tmm .tmm_3_columns .tmm_member,.tmm .tmm_4_columns .tmm_member{width:40%;margin:70px 5% 30px}.tmm .tmm_names{font-size:17px;margin-bottom:8px;margin-top:10px;font-weight:300;line-height:24px}.tmm .tmm_4_columns .tmm_names{font-size:17px}.tmm .tmm_job{font-size:13px;color:#a2a5a4;text-transform:uppercase}.tmm .tmm_desc{padding:10px;margin-top:19px;margin-bottom:10px;font-size:15px;line-height:23px}.tmm .tmm_4_columns .tmm_desc{margin-top:14px;margin-bottom:8px;font-size:14px;line-height:23px}.tmm .tmm_2_columns .tmm_member .tmm_photo,.tmm .tmm_3_columns .tmm_member .tmm_photo,.tmm .tmm_4_columns .tmm_member .tmm_photo{width:130px;height:130px;border-radius:50px!important;border:8px solid #f5f5f5;margin-top:-65px}}@media only screen and (max-width:40em){.tmm .tmm_columns_containers_desktop{display:none;clear:none}.tmm .tmm_member{width:96%;margin:70px 2% 30px}.tmm .tmm_2_columns .tmm_member,.tmm .tmm_3_columns .tmm_member,.tmm .tmm_4_columns .tmm_member{width:96%;margin:90px 2% 10px}.tmm .tmm_4_columns .tmm_names{font-size:20px}.tmm .tmm_2_columns .tmm_member .tmm_photo,.tmm .tmm_3_columns .tmm_member .tmm_photo,.tmm .tmm_4_columns .tmm_member .tmm_photo{width:160px;height:160px;border-radius:60px!important;border:8px solid #f5f5f5;margin-top:-80px}.tmm .tmm_desc{padding:10px;margin-top:19px;margin-bottom:10px;font-size:15px;line-height:23px}.tmm .tmm_4_columns .tmm_desc{margin-top:14px;margin-bottom:8px;font-size:14px;line-height:23px}}.tmm .tmm_ori_f .tmm_container .tmm_desc,.tmm .tmm_ori_f .tmm_container .tmm_fname,.tmm .tmm_ori_f .tmm_container .tmm_job,.tmm .tmm_ori_f .tmm_container .tmm_lname{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif!important;font-weight:300!important}
|
img/links/youtube.png
ADDED
Binary file
|
inc/cmb2/.gitignore
CHANGED
File without changes
|
inc/cmb2/.scrutinizer.yml
CHANGED
File without changes
|
inc/cmb2/.travis.yml
CHANGED
File without changes
|
inc/cmb2/bootstrap.php
CHANGED
File without changes
|
inc/cmb2/css/cmb2-front.css
CHANGED
File without changes
|
inc/cmb2/css/cmb2-front.css.map
CHANGED
File without changes
|
inc/cmb2/css/cmb2-front.min.css
CHANGED
File without changes
|
inc/cmb2/css/cmb2.css
CHANGED
File without changes
|
inc/cmb2/css/cmb2.css.map
CHANGED
File without changes
|
inc/cmb2/css/cmb2.min.css
CHANGED
File without changes
|
inc/cmb2/css/index.php
CHANGED
File without changes
|
inc/cmb2/css/sass/cmb2-front.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/cmb2.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/index.php
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_collapsible_ui.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_front.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_jquery_ui.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_main_wrap.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_misc.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_mixins.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_post_metaboxes.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_sidebar_placements.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/_variables.scss
CHANGED
File without changes
|
inc/cmb2/css/sass/partials/index.php
CHANGED
File without changes
|
inc/cmb2/images/ico-delete.png
CHANGED
File without changes
|
inc/cmb2/images/index.php
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_glass_65_ffffff_1x400.png
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_glass_75_dadada_1x400.png
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png
CHANGED
File without changes
|
inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png
CHANGED
File without changes
|
inc/cmb2/images/ui-icons_222222_256x240.png
CHANGED
File without changes
|
inc/cmb2/images/ui-icons_2e83ff_256x240.png
CHANGED
File without changes
|
inc/cmb2/images/ui-icons_454545_256x240.png
CHANGED
File without changes
|
inc/cmb2/images/ui-icons_888888_256x240.png
CHANGED
File without changes
|
inc/cmb2/images/ui-icons_cd0a0a_256x240.png
CHANGED
File without changes
|
inc/cmb2/includes/CMB2.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Ajax.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Boxes.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Field.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_JS.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Options.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Sanitize.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Show_Filters.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Types.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_Utils.php
CHANGED
File without changes
|
inc/cmb2/includes/CMB2_hookup.php
CHANGED
File without changes
|
inc/cmb2/includes/helper-functions.php
CHANGED
File without changes
|
inc/cmb2/includes/index.php
CHANGED
File without changes
|
inc/cmb2/index.php
CHANGED
File without changes
|
inc/cmb2/init.php
CHANGED
File without changes
|
inc/cmb2/js/cmb2.js
CHANGED
File without changes
|
inc/cmb2/js/cmb2.min.js
CHANGED
File without changes
|
inc/cmb2/js/index.php
CHANGED
File without changes
|
inc/cmb2/js/jquery-ui-timepicker-addon.min.js
CHANGED
File without changes
|
inc/tmm-metaboxes.php
CHANGED
@@ -85,6 +85,7 @@ function tmm_register_group_metabox() {
|
|
85 |
'nada' => '-',
|
86 |
'twitter' => 'Twitter',
|
87 |
'linkedin' => 'LinkedIn',
|
|
|
88 |
'googleplus' => 'Google+',
|
89 |
'facebook' => 'Facebook',
|
90 |
'vk' => 'VK',
|
@@ -122,6 +123,7 @@ function tmm_register_group_metabox() {
|
|
122 |
'nada' => '-',
|
123 |
'twitter' => 'Twitter',
|
124 |
'linkedin' => 'LinkedIn',
|
|
|
125 |
'googleplus' => 'Google+',
|
126 |
'facebook' => 'Facebook',
|
127 |
'vk' => 'VK',
|
@@ -158,6 +160,7 @@ function tmm_register_group_metabox() {
|
|
158 |
'nada' => '-',
|
159 |
'twitter' => 'Twitter',
|
160 |
'linkedin' => 'LinkedIn',
|
|
|
161 |
'googleplus' => 'Google+',
|
162 |
'facebook' => 'Facebook',
|
163 |
'vk' => 'VK',
|
85 |
'nada' => '-',
|
86 |
'twitter' => 'Twitter',
|
87 |
'linkedin' => 'LinkedIn',
|
88 |
+
'youtube' => 'YouTube',
|
89 |
'googleplus' => 'Google+',
|
90 |
'facebook' => 'Facebook',
|
91 |
'vk' => 'VK',
|
123 |
'nada' => '-',
|
124 |
'twitter' => 'Twitter',
|
125 |
'linkedin' => 'LinkedIn',
|
126 |
+
'youtube' => 'YouTube',
|
127 |
'googleplus' => 'Google+',
|
128 |
'facebook' => 'Facebook',
|
129 |
'vk' => 'VK',
|
160 |
'nada' => '-',
|
161 |
'twitter' => 'Twitter',
|
162 |
'linkedin' => 'LinkedIn',
|
163 |
+
'youtube' => 'YouTube',
|
164 |
'googleplus' => 'Google+',
|
165 |
'facebook' => 'Facebook',
|
166 |
'vk' => 'VK',
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
=== Team Members ===
|
2 |
Contributors: spwebguy
|
3 |
Tags: team, teams, meet the team, shortcode, responsive, members, staff, people
|
4 |
Requires at least: 3.6
|
5 |
-
Tested up to: 4.
|
6 |
Stable tag: trunk
|
7 |
License: GPL2
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
@@ -13,15 +13,10 @@ A responsive and clean way to display your team. Create members, add their posit
|
|
13 |
This plugin adds a “Teams” section to the admin panel which allows you to showcase your staff/employees/people on your website the easy way. You can quickly add members to your team(s), add their picture, position, bios, social links, re-order them at anytime and display them anywhere with a simple shortcode. What you see is what you get, and it’s totally free.
|
14 |
|
15 |
= No limitation for the Free version =
|
16 |
-
The free version of the Team Members plugin is **not limited**.
|
17 |
|
18 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, pictures’ shape, enabling/disabling picture borders, picture position It also allows you to show from 1 to 5 members per line, add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). Two more links can be added to each member.
|
19 |
|
20 |
-
= Fully translatable =
|
21 |
-
* POT files included (/lang/)
|
22 |
-
* French translation included
|
23 |
-
* Spanish translation included
|
24 |
-
|
25 |
= Available fields =
|
26 |
* Firstname
|
27 |
* Lastname
|
@@ -30,8 +25,8 @@ The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features:
|
|
30 |
* Social links (FB, Twitter…)
|
31 |
|
32 |
= Available settings =
|
33 |
-
* Number of members to show per line (2, 3, 4)
|
34 |
-
* Color
|
35 |
|
36 |
= Usage =
|
37 |
Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
|
@@ -53,15 +48,10 @@ Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles
|
|
53 |
== Frequently Asked Questions ==
|
54 |
|
55 |
= No limitation for the Free version =
|
56 |
-
The free version of the Team Members plugin is **not limited**.
|
57 |
|
58 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, pictures’ shape, enabling/disabling picture borders, picture position It also allows you to show from 1 to 5 members per line, add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). Two more links can be added to each member.
|
59 |
|
60 |
-
= Ready for translation =
|
61 |
-
* POT files included (/lang/)
|
62 |
-
* French translation included
|
63 |
-
* Spanish translation included
|
64 |
-
|
65 |
= Usage =
|
66 |
Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
|
67 |
|
@@ -77,6 +67,9 @@ Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll
|
|
77 |
6. Finding the shortcode (admin view)
|
78 |
|
79 |
== Changelog ==
|
|
|
|
|
|
|
80 |
= 3.0 =
|
81 |
* Plugin is now translation ready
|
82 |
* Added French translation
|
@@ -86,9 +79,9 @@ Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll
|
|
86 |
* Added link behavior setting for member photos (user request)
|
87 |
* Added ability to center last row if not full (user request)
|
88 |
* Fixed empty members on deleting (ghost member)
|
89 |
-
* Fixed member stacking/alignment issues
|
90 |
* Fixed various PHP errors
|
91 |
-
* Fixed minor CSS bugs
|
92 |
* Cleaner edit screen
|
93 |
* Security update
|
94 |
|
1 |
+
=== Team Members ===
|
2 |
Contributors: spwebguy
|
3 |
Tags: team, teams, meet the team, shortcode, responsive, members, staff, people
|
4 |
Requires at least: 3.6
|
5 |
+
Tested up to: 4.9
|
6 |
Stable tag: trunk
|
7 |
License: GPL2
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
This plugin adds a “Teams” section to the admin panel which allows you to showcase your staff/employees/people on your website the easy way. You can quickly add members to your team(s), add their picture, position, bios, social links, re-order them at anytime and display them anywhere with a simple shortcode. What you see is what you get, and it’s totally free.
|
14 |
|
15 |
= No limitation for the Free version =
|
16 |
+
The free version of the Team Members plugin is **not limited**.
|
17 |
|
18 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, pictures’ shape, enabling/disabling picture borders, picture position It also allows you to show from 1 to 5 members per line, add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). Two more links can be added to each member.
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
= Available fields =
|
21 |
* Firstname
|
22 |
* Lastname
|
25 |
* Social links (FB, Twitter…)
|
26 |
|
27 |
= Available settings =
|
28 |
+
* Number of members to show per line (2, 3, 4)
|
29 |
+
* Color
|
30 |
|
31 |
= Usage =
|
32 |
Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
|
48 |
== Frequently Asked Questions ==
|
49 |
|
50 |
= No limitation for the Free version =
|
51 |
+
The free version of the Team Members plugin is **not limited**.
|
52 |
|
53 |
The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, pictures’ shape, enabling/disabling picture borders, picture position It also allows you to show from 1 to 5 members per line, add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). Two more links can be added to each member.
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
= Usage =
|
56 |
Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
|
57 |
|
67 |
6. Finding the shortcode (admin view)
|
68 |
|
69 |
== Changelog ==
|
70 |
+
= 3.0.1 =
|
71 |
+
* Fixed minor CSS bugs
|
72 |
+
|
73 |
= 3.0 =
|
74 |
* Plugin is now translation ready
|
75 |
* Added French translation
|
79 |
* Added link behavior setting for member photos (user request)
|
80 |
* Added ability to center last row if not full (user request)
|
81 |
* Fixed empty members on deleting (ghost member)
|
82 |
+
* Fixed member stacking/alignment issues
|
83 |
* Fixed various PHP errors
|
84 |
+
* Fixed minor CSS bugs
|
85 |
* Cleaner edit screen
|
86 |
* Security update
|
87 |
|
tmm.php
CHANGED
@@ -3,30 +3,30 @@
|
|
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 help and information on our <a href="http://wpdarko.com/support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/team-members'>PRO version</a> for more great features.
|
6 |
-
* Version: 3.0
|
7 |
* Author: WP Darko
|
8 |
* Author URI: http://wpdarko.com
|
9 |
* Text Domain: team-members
|
10 |
* Domain Path: /lang/
|
11 |
* License: GPL2
|
12 |
-
*/
|
13 |
|
14 |
|
15 |
// Loading text domain
|
16 |
function tmm_load_plugin_textdomain() {
|
17 |
load_plugin_textdomain( 'team-members', FALSE, basename( dirname( __FILE__ ) ) . '/lang/' );
|
18 |
}
|
19 |
-
|
20 |
add_action( 'plugins_loaded', 'tmm_load_plugin_textdomain' );
|
21 |
|
22 |
|
23 |
// Check for an active PRO version and deactivate this plugin
|
24 |
add_action( 'admin_init', 'tmm_free_pro_check' );
|
25 |
function tmm_free_pro_check() {
|
26 |
-
if (is_plugin_active('team-members-pro/tmm-pro.php')) {
|
27 |
add_action('admin_notices', 'my_admin_notice');
|
28 |
-
function my_admin_notice(){ echo '<div class="updated"><p><strong>PRO</strong> version is activated.</p></div>'; }
|
29 |
-
|
30 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
31 |
}
|
32 |
}
|
@@ -36,21 +36,21 @@ function tmm_free_pro_check() {
|
|
36 |
add_action( 'init', 'tmm_old_data' );
|
37 |
|
38 |
function tmm_old_data() {
|
39 |
-
|
40 |
if(!get_option('tmm_is_updated_yn9090')){
|
41 |
-
|
42 |
global $post;
|
43 |
$args = array(
|
44 |
'post_type' => 'tmm',
|
45 |
'posts_per_page' => 9999,
|
46 |
);
|
47 |
-
|
48 |
$get_old = get_posts( $args );
|
49 |
foreach ( $get_old as $post ) : setup_postdata( $post );
|
50 |
-
|
51 |
$current_id = get_the_id();
|
52 |
$old_data_teams = get_post_meta( $current_id, 'tmm_head', false );
|
53 |
-
|
54 |
foreach ($old_data_teams as $key => $odata) {
|
55 |
|
56 |
$old_plugin_data[$key]['_tmm_firstname'] = $odata['tmm_firstname'];
|
@@ -67,36 +67,36 @@ function tmm_old_data() {
|
|
67 |
$old_plugin_data[$key]['_tmm_sc_type3'] = $odata['tmm_sc_type3'];
|
68 |
$old_plugin_data[$key]['_tmm_sc_title3'] = $odata['tmm_sc_title3'];
|
69 |
$old_plugin_data[$key]['_tmm_sc_url3'] = $odata['tmm_sc_url3'];
|
70 |
-
|
71 |
update_post_meta($current_id, '_tmm_head', $old_plugin_data);
|
72 |
wp_reset_postdata();
|
73 |
-
|
74 |
}
|
75 |
-
|
76 |
$test_man = '';
|
77 |
$old_data_settings = get_post_meta( $current_id, 'tmm_settings_head', false );
|
78 |
-
|
79 |
foreach ($old_data_settings as $key => $odata) {
|
80 |
-
|
81 |
$var1 = $odata['tmm_columns'];
|
82 |
$var2 = $odata['tmm_color'];
|
83 |
-
|
84 |
update_post_meta($current_id, '_tmm_columns', $var1);
|
85 |
update_post_meta($current_id, '_tmm_color', $var2);
|
86 |
|
87 |
}
|
88 |
-
|
89 |
endforeach;
|
90 |
-
|
91 |
update_option('tmm_is_updated_yn9090', 'old_data_recovered');
|
92 |
-
|
93 |
}
|
94 |
-
|
95 |
}
|
96 |
|
97 |
|
98 |
// Enqueue styles and scripts
|
99 |
-
add_action( 'wp_enqueue_scripts', 'add_tmm_scripts' );
|
100 |
function add_tmm_scripts() { wp_enqueue_style( 'tmm', plugins_url('css/tmm_custom_style.min.css', __FILE__)); }
|
101 |
|
102 |
|
@@ -136,7 +136,7 @@ function register_tmm_type() {
|
|
136 |
'supports' => array( 'title' ),
|
137 |
'menu_icon' => 'dashicons-plus'
|
138 |
);
|
139 |
-
register_post_type( 'tmm', $args );
|
140 |
}
|
141 |
|
142 |
|
@@ -181,7 +181,7 @@ if ( file_exists( dirname( __FILE__ ) . '/inc/cmb2/init.php' ) ) {
|
|
181 |
|
182 |
// Create the metabox class (CMB2)
|
183 |
add_action( 'cmb2_init', 'tmm_register_group_metabox' );
|
184 |
-
require_once('inc/tmm-metaboxes.php');
|
185 |
|
186 |
|
187 |
// Add shortcode column to post list
|
@@ -194,7 +194,7 @@ function tmm_custom_columns( $column, $post_id ) {
|
|
194 |
$slug = '' ;
|
195 |
$slug = $post->post_name;
|
196 |
$shortcode = '<span style="display:inline-block;border:solid 2px lightgray; background:white; padding:0 8px; font-size:13px; line-height:25px; vertical-align:middle;">[tmm name="'.$slug.'"]</span>';
|
197 |
-
echo $shortcode;
|
198 |
break;
|
199 |
}
|
200 |
}
|
@@ -202,36 +202,36 @@ function add_tmm_columns($columns) { return array_merge($columns, array('shortco
|
|
202 |
|
203 |
|
204 |
// Create the Team shortcode
|
205 |
-
add_shortcode("tmm", "tmm_sc");
|
206 |
function tmm_sc($atts) {
|
207 |
extract(shortcode_atts(array( "name" => ''), $atts));
|
208 |
global $post;
|
209 |
$args = array('post_type' => 'tmm', 'name' => $name);
|
210 |
-
$custom_posts = get_posts($args);
|
211 |
-
|
212 |
foreach($custom_posts as $post) : setup_postdata($post);
|
213 |
-
|
214 |
$members = get_post_meta( get_the_id(), '_tmm_head', true );
|
215 |
$tmm_columns = get_post_meta( $post->ID, '_tmm_columns', true );
|
216 |
$tmm_color = get_post_meta( $post->ID, '_tmm_color', true );
|
217 |
$tmm_bio_alignment = get_post_meta( $post->ID, '_tmm_bio_alignment', true );
|
218 |
-
|
219 |
// Check if member links open in new window
|
220 |
$tmm_piclink_beh = get_post_meta( $post->ID, '_tmm_piclink_beh', true );
|
221 |
($tmm_piclink_beh == 'new' ? $tmm_plb = 'target="_blank"' : $tmm_plb = '');
|
222 |
-
|
223 |
// Check if forcing original fonts
|
224 |
$original_font = get_post_meta( $post->ID, '_tmm_original_font', true );
|
225 |
($original_font == true ? $ori_f = 'tmm_ori_f' : $ori_f = '');
|
226 |
-
|
227 |
// Check if last row centered
|
228 |
$last_row_centered = get_post_meta( $post->ID, '_tmm_last_row_centered', true );
|
229 |
($last_row_centered == true ? $last_r = 'tmm_last_row_centered' : $last_r = '');
|
230 |
-
|
231 |
$output = '';
|
232 |
$output .= '<div class="tmm '.$last_r.' tmm_'.$name.'">';
|
233 |
$output .= '<div class="tmm_'.$tmm_columns.'_columns tmm_wrap '.$ori_f.'">';
|
234 |
-
|
235 |
if (is_array($members) || is_object($members))
|
236 |
foreach ($members as $key => $member) {
|
237 |
// Create Team container
|
@@ -244,21 +244,21 @@ function tmm_sc($atts) {
|
|
244 |
if($key > 0) $output .= '</div><span class="tmm_columns_containers_desktop"></span>';
|
245 |
$output .= '<div class="tmm_container">';
|
246 |
}
|
247 |
-
|
248 |
$output .= '<div class="tmm_member" style="border-top:'.$tmm_color.' solid 5px;">';
|
249 |
-
|
250 |
// Display photo
|
251 |
if (!empty($member['_tmm_photo_url']))
|
252 |
$output .= '<a '.$tmm_plb.' href="'.$member['_tmm_photo_url'].'" title="'.$member['_tmm_firstname'].' '.$member['_tmm_lastname'].'">';
|
253 |
-
|
254 |
if (!empty($member['_tmm_photo']))
|
255 |
$output .= '<div class="tmm_photo tmm_phover_'.$name.'_'.$key.'" style="background: url('.$member['_tmm_photo'].'); margin-left:auto; margin-right:auto; background-size:cover !important;"></div>';
|
256 |
-
|
257 |
if (!empty($member['_tmm_photo_url'])) $output .= '</a>';
|
258 |
-
|
259 |
// Create text block
|
260 |
$output .= '<div class="tmm_textblock">';
|
261 |
-
|
262 |
// Display names
|
263 |
$output .= '<div class="tmm_names">';
|
264 |
if (!empty($member['_tmm_firstname']))
|
@@ -266,44 +266,44 @@ function tmm_sc($atts) {
|
|
266 |
if (!empty($member['_tmm_lastname']))
|
267 |
$output .= '<span class="tmm_lname">'.$member['_tmm_lastname'].'</span>';
|
268 |
$output .= '</div>';
|
269 |
-
|
270 |
// Display jobs
|
271 |
if (!empty($member['_tmm_job']))
|
272 |
$output .= '<div class="tmm_job">'.$member['_tmm_job'].'</div>';
|
273 |
-
|
274 |
// Display bio
|
275 |
if (!empty($member['_tmm_desc']))
|
276 |
-
$output .= '<div class="tmm_desc" style="text-align:'.$tmm_bio_alignment.'">'
|
277 |
-
|
278 |
// Create social block
|
279 |
$output .= '<div class="tmm_scblock">';
|
280 |
-
|
281 |
// Display social links
|
282 |
for ($i = 1; $i <= 3; $i++) {
|
283 |
if ($member['_tmm_sc_type'.$i] != 'nada') {
|
284 |
if ($member['_tmm_sc_type'.$i] == 'email') {
|
285 |
$output .= '
|
286 |
-
<a class="tmm_sociallink" href="mailto:'.(!empty($member['_tmm_sc_url'.$i])?$member['_tmm_sc_url'.$i]:'').'" title="'.$member['_tmm_sc_title'.$i].'"><img alt="'.$member['_tmm_sc_title'.$i].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type'.$i].'.png"/></a>';
|
287 |
} else {
|
288 |
-
$output .= '<a target="_blank" class="tmm_sociallink" href="'.(!empty($member['_tmm_sc_url'.$i])?$member['_tmm_sc_url'.$i]:'').'" title="'.$member['_tmm_sc_title'.$i].'"><img alt="'.$member['_tmm_sc_title'.$i].'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type'.$i].'.png"/></a>';
|
289 |
}
|
290 |
}
|
291 |
}
|
292 |
-
|
293 |
$output .= '</div>'; // Close social block
|
294 |
$output .= '</div>'; // Close text block
|
295 |
$output .= '</div>'; // Close member
|
296 |
-
|
297 |
$page_count = count( $members );
|
298 |
-
if ($key == $page_count - 1) $output .= '<div style="clear:both;"></div>';
|
299 |
}
|
300 |
-
|
301 |
$output .= '</div>'; // Close container
|
302 |
$output .= '</div>'; // Close wrap
|
303 |
$output .= '</div>'; // Close tmm
|
304 |
-
|
305 |
-
endforeach; wp_reset_postdata();
|
306 |
return $output;
|
307 |
}
|
308 |
|
309 |
-
?>
|
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 help and information on our <a href="http://wpdarko.com/support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='http://wpdarko.com/team-members'>PRO version</a> for more great features.
|
6 |
+
* Version: 3.0.1
|
7 |
* Author: WP Darko
|
8 |
* Author URI: http://wpdarko.com
|
9 |
* Text Domain: team-members
|
10 |
* Domain Path: /lang/
|
11 |
* License: GPL2
|
12 |
+
*/
|
13 |
|
14 |
|
15 |
// Loading text domain
|
16 |
function tmm_load_plugin_textdomain() {
|
17 |
load_plugin_textdomain( 'team-members', FALSE, basename( dirname( __FILE__ ) ) . '/lang/' );
|
18 |
}
|
19 |
+
|
20 |
add_action( 'plugins_loaded', 'tmm_load_plugin_textdomain' );
|
21 |
|
22 |
|
23 |
// Check for an active PRO version and deactivate this plugin
|
24 |
add_action( 'admin_init', 'tmm_free_pro_check' );
|
25 |
function tmm_free_pro_check() {
|
26 |
+
if (is_plugin_active('team-members-pro/tmm-pro.php')) {
|
27 |
add_action('admin_notices', 'my_admin_notice');
|
28 |
+
function my_admin_notice(){ echo '<div class="updated"><p><strong>PRO</strong> version is activated.</p></div>'; }
|
29 |
+
|
30 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
31 |
}
|
32 |
}
|
36 |
add_action( 'init', 'tmm_old_data' );
|
37 |
|
38 |
function tmm_old_data() {
|
39 |
+
|
40 |
if(!get_option('tmm_is_updated_yn9090')){
|
41 |
+
|
42 |
global $post;
|
43 |
$args = array(
|
44 |
'post_type' => 'tmm',
|
45 |
'posts_per_page' => 9999,
|
46 |
);
|
47 |
+
|
48 |
$get_old = get_posts( $args );
|
49 |
foreach ( $get_old as $post ) : setup_postdata( $post );
|
50 |
+
|
51 |
$current_id = get_the_id();
|
52 |
$old_data_teams = get_post_meta( $current_id, 'tmm_head', false );
|
53 |
+
|
54 |
foreach ($old_data_teams as $key => $odata) {
|
55 |
|
56 |
$old_plugin_data[$key]['_tmm_firstname'] = $odata['tmm_firstname'];
|
67 |
$old_plugin_data[$key]['_tmm_sc_type3'] = $odata['tmm_sc_type3'];
|
68 |
$old_plugin_data[$key]['_tmm_sc_title3'] = $odata['tmm_sc_title3'];
|
69 |
$old_plugin_data[$key]['_tmm_sc_url3'] = $odata['tmm_sc_url3'];
|
70 |
+
|
71 |
update_post_meta($current_id, '_tmm_head', $old_plugin_data);
|
72 |
wp_reset_postdata();
|
73 |
+
|
74 |
}
|
75 |
+
|
76 |
$test_man = '';
|
77 |
$old_data_settings = get_post_meta( $current_id, 'tmm_settings_head', false );
|
78 |
+
|
79 |
foreach ($old_data_settings as $key => $odata) {
|
80 |
+
|
81 |
$var1 = $odata['tmm_columns'];
|
82 |
$var2 = $odata['tmm_color'];
|
83 |
+
|
84 |
update_post_meta($current_id, '_tmm_columns', $var1);
|
85 |
update_post_meta($current_id, '_tmm_color', $var2);
|
86 |
|
87 |
}
|
88 |
+
|
89 |
endforeach;
|
90 |
+
|
91 |
update_option('tmm_is_updated_yn9090', 'old_data_recovered');
|
92 |
+
|
93 |
}
|
94 |
+
|
95 |
}
|
96 |
|
97 |
|
98 |
// Enqueue styles and scripts
|
99 |
+
add_action( 'wp_enqueue_scripts', 'add_tmm_scripts' );
|
100 |
function add_tmm_scripts() { wp_enqueue_style( 'tmm', plugins_url('css/tmm_custom_style.min.css', __FILE__)); }
|
101 |
|
102 |
|
136 |
'supports' => array( 'title' ),
|
137 |
'menu_icon' => 'dashicons-plus'
|
138 |
);
|
139 |
+
register_post_type( 'tmm', $args );
|
140 |
}
|
141 |
|
142 |
|
181 |
|
182 |
// Create the metabox class (CMB2)
|
183 |
add_action( 'cmb2_init', 'tmm_register_group_metabox' );
|
184 |
+
require_once('inc/tmm-metaboxes.php');
|
185 |
|
186 |
|
187 |
// Add shortcode column to post list
|
194 |
$slug = '' ;
|
195 |
$slug = $post->post_name;
|
196 |
$shortcode = '<span style="display:inline-block;border:solid 2px lightgray; background:white; padding:0 8px; font-size:13px; line-height:25px; vertical-align:middle;">[tmm name="'.$slug.'"]</span>';
|
197 |
+
echo $shortcode;
|
198 |
break;
|
199 |
}
|
200 |
}
|
202 |
|
203 |
|
204 |
// Create the Team shortcode
|
205 |
+
add_shortcode("tmm", "tmm_sc");
|
206 |
function tmm_sc($atts) {
|
207 |
extract(shortcode_atts(array( "name" => ''), $atts));
|
208 |
global $post;
|
209 |
$args = array('post_type' => 'tmm', 'name' => $name);
|
210 |
+
$custom_posts = get_posts($args);
|
211 |
+
|
212 |
foreach($custom_posts as $post) : setup_postdata($post);
|
213 |
+
|
214 |
$members = get_post_meta( get_the_id(), '_tmm_head', true );
|
215 |
$tmm_columns = get_post_meta( $post->ID, '_tmm_columns', true );
|
216 |
$tmm_color = get_post_meta( $post->ID, '_tmm_color', true );
|
217 |
$tmm_bio_alignment = get_post_meta( $post->ID, '_tmm_bio_alignment', true );
|
218 |
+
|
219 |
// Check if member links open in new window
|
220 |
$tmm_piclink_beh = get_post_meta( $post->ID, '_tmm_piclink_beh', true );
|
221 |
($tmm_piclink_beh == 'new' ? $tmm_plb = 'target="_blank"' : $tmm_plb = '');
|
222 |
+
|
223 |
// Check if forcing original fonts
|
224 |
$original_font = get_post_meta( $post->ID, '_tmm_original_font', true );
|
225 |
($original_font == true ? $ori_f = 'tmm_ori_f' : $ori_f = '');
|
226 |
+
|
227 |
// Check if last row centered
|
228 |
$last_row_centered = get_post_meta( $post->ID, '_tmm_last_row_centered', true );
|
229 |
($last_row_centered == true ? $last_r = 'tmm_last_row_centered' : $last_r = '');
|
230 |
+
|
231 |
$output = '';
|
232 |
$output .= '<div class="tmm '.$last_r.' tmm_'.$name.'">';
|
233 |
$output .= '<div class="tmm_'.$tmm_columns.'_columns tmm_wrap '.$ori_f.'">';
|
234 |
+
|
235 |
if (is_array($members) || is_object($members))
|
236 |
foreach ($members as $key => $member) {
|
237 |
// Create Team container
|
244 |
if($key > 0) $output .= '</div><span class="tmm_columns_containers_desktop"></span>';
|
245 |
$output .= '<div class="tmm_container">';
|
246 |
}
|
247 |
+
|
248 |
$output .= '<div class="tmm_member" style="border-top:'.$tmm_color.' solid 5px;">';
|
249 |
+
|
250 |
// Display photo
|
251 |
if (!empty($member['_tmm_photo_url']))
|
252 |
$output .= '<a '.$tmm_plb.' href="'.$member['_tmm_photo_url'].'" title="'.$member['_tmm_firstname'].' '.$member['_tmm_lastname'].'">';
|
253 |
+
|
254 |
if (!empty($member['_tmm_photo']))
|
255 |
$output .= '<div class="tmm_photo tmm_phover_'.$name.'_'.$key.'" style="background: url('.$member['_tmm_photo'].'); margin-left:auto; margin-right:auto; background-size:cover !important;"></div>';
|
256 |
+
|
257 |
if (!empty($member['_tmm_photo_url'])) $output .= '</a>';
|
258 |
+
|
259 |
// Create text block
|
260 |
$output .= '<div class="tmm_textblock">';
|
261 |
+
|
262 |
// Display names
|
263 |
$output .= '<div class="tmm_names">';
|
264 |
if (!empty($member['_tmm_firstname']))
|
266 |
if (!empty($member['_tmm_lastname']))
|
267 |
$output .= '<span class="tmm_lname">'.$member['_tmm_lastname'].'</span>';
|
268 |
$output .= '</div>';
|
269 |
+
|
270 |
// Display jobs
|
271 |
if (!empty($member['_tmm_job']))
|
272 |
$output .= '<div class="tmm_job">'.$member['_tmm_job'].'</div>';
|
273 |
+
|
274 |
// Display bio
|
275 |
if (!empty($member['_tmm_desc']))
|
276 |
+
$output .= '<div class="tmm_desc" style="text-align:'.$tmm_bio_alignment.'">'.do_shortcode($member['_tmm_desc']).'</div>';
|
277 |
+
|
278 |
// Create social block
|
279 |
$output .= '<div class="tmm_scblock">';
|
280 |
+
|
281 |
// Display social links
|
282 |
for ($i = 1; $i <= 3; $i++) {
|
283 |
if ($member['_tmm_sc_type'.$i] != 'nada') {
|
284 |
if ($member['_tmm_sc_type'.$i] == 'email') {
|
285 |
$output .= '
|
286 |
+
<a class="tmm_sociallink" href="mailto:'.(!empty($member['_tmm_sc_url'.$i])?$member['_tmm_sc_url'.$i]:'').'" title="'.(!empty($member['_tmm_sc_title'.$i])?$member['_tmm_sc_title'.$i]:'').'"><img alt="'.(!empty($member['_tmm_sc_title'.$i])?$member['_tmm_sc_title'.$i]:'').'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type'.$i].'.png"/></a>';
|
287 |
} else {
|
288 |
+
$output .= '<a target="_blank" class="tmm_sociallink" href="'.(!empty($member['_tmm_sc_url'.$i])?$member['_tmm_sc_url'.$i]:'').'" title="'.(!empty($member['_tmm_sc_title'.$i])?$member['_tmm_sc_title'.$i]:'').'"><img alt="'.(!empty($member['_tmm_sc_title'.$i])?$member['_tmm_sc_title'.$i]:'').'" src="'.plugins_url('img/links/', __FILE__).$member['_tmm_sc_type'.$i].'.png"/></a>';
|
289 |
}
|
290 |
}
|
291 |
}
|
292 |
+
|
293 |
$output .= '</div>'; // Close social block
|
294 |
$output .= '</div>'; // Close text block
|
295 |
$output .= '</div>'; // Close member
|
296 |
+
|
297 |
$page_count = count( $members );
|
298 |
+
if ($key == $page_count - 1) $output .= '<div style="clear:both;"></div>';
|
299 |
}
|
300 |
+
|
301 |
$output .= '</div>'; // Close container
|
302 |
$output .= '</div>'; // Close wrap
|
303 |
$output .= '</div>'; // Close tmm
|
304 |
+
|
305 |
+
endforeach; wp_reset_postdata();
|
306 |
return $output;
|
307 |
}
|
308 |
|
309 |
+
?>
|