Version Description
- CSS rewrite to match WordPress 5.3's new admin styles
- Improved Instant Preview mode
- Improved member photo sizes (photos needs to be the same size)
- Added Phone link for opening calling apps (Skype etc.)
- Fixed issue with how photos display in the back end
- Fixed issue with photo uploading
- Fixed error when typing in firstname field
- Fixed an issue with biography words being cut
- Fixed various styling issue
Download this release
Release Info
Developer | spwebguy |
Plugin | Team Members |
Version | 5.0.0 |
Comparing to | |
See all releases |
Code changes from version 4.1.2 to 5.0.0
- inc/css/tmm_style.css +95 -66
- inc/css/tmm_style.min.css +1 -1
- inc/dmb/dmb.css +191 -301
- inc/dmb/dmb.js +11 -10
- inc/dmb/dmb.min.css +1 -1
- inc/dmb/dmb.min.js +4 -4
- inc/img/links/phone.png +0 -0
- inc/tmm-metaboxes-help.php +4 -4
- inc/tmm-metaboxes-members.php +47 -49
- inc/tmm-metaboxes-pro.php +24 -19
- inc/tmm-metaboxes-settings.php +13 -23
- inc/tmm-shortcode.php +9 -4
- readme.txt +28 -20
- tmm.php +2 -3
inc/css/tmm_style.css
CHANGED
@@ -14,17 +14,20 @@
|
|
14 |
|
15 |
.tmm .tmm_member {
|
16 |
vertical-align:top;
|
17 |
-
display:
|
18 |
margin-top:70px;
|
19 |
margin-bottom:30px;
|
20 |
height:auto;
|
21 |
float: left;
|
|
|
22 |
text-align:center;
|
23 |
-
-webkit-box-shadow:
|
24 |
-
-moz-box-shadow:
|
25 |
-
box-shadow:
|
26 |
border-top:5px solid lightgrey;
|
27 |
-
border-
|
|
|
|
|
28 |
background:white;
|
29 |
box-sizing:border-box;}
|
30 |
|
@@ -47,29 +50,15 @@
|
|
47 |
.tmm .tmm_5_columns .tmm_member {width: 18%; margin-right:1%; margin-left:1%;}
|
48 |
|
49 |
.tmm .tmm_member .tmm_photo {
|
50 |
-
width:
|
51 |
-
height:
|
52 |
border:none;
|
53 |
-
-webkit-box-shadow: 2px 0px
|
54 |
-
-moz-box-shadow: 2px 0px
|
55 |
-
box-shadow: 2px 0px
|
56 |
border-radius:60px !important;
|
57 |
margin-top:-80px;
|
58 |
-
border:
|
59 |
-
|
60 |
-
.tmm .tmm_4_columns .tmm_member .tmm_photo {
|
61 |
-
width:100px;
|
62 |
-
height:100px;
|
63 |
-
margin-top:-50px;
|
64 |
-
border-radius:40px !important;
|
65 |
-
border:5px solid whitesmoke;}
|
66 |
-
|
67 |
-
.tmm .tmm_5_columns .tmm_member .tmm_photo {
|
68 |
-
width:100px;
|
69 |
-
height:100px;
|
70 |
-
margin-top:-50px;
|
71 |
-
border-radius:40px !important;
|
72 |
-
border:5px solid whitesmoke;}
|
73 |
|
74 |
.tmm .tmm_member .tmm_textblock .tmm_scblock {padding-top:10px;}
|
75 |
.tmm .tmm_member .tmm_textblock {padding:10px 12px;}
|
@@ -85,16 +74,68 @@
|
|
85 |
.tmm .tmm_4_columns .tmm_member .tmm_textblock .tmm_sociallink img {width:21px; height:21px; margin:6px 3px;}
|
86 |
.tmm .tmm_member .tmm_textblock .tmm_sociallink img:hover {opacity:0.8;}
|
87 |
|
88 |
-
.tmm .tmm_names {font-size:21px; margin-bottom:8px; margin-top:10px; font-weight:300; line-height:24px;}
|
89 |
-
.tmm .tmm_4_columns .tmm_names {font-size:17px;}
|
90 |
-
.tmm .tmm_5_columns .tmm_names {font-size:18px;}
|
91 |
.tmm .tmm_fname {display:inline;}
|
92 |
.tmm .tmm_lname {display:inline;}
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
.tmm .
|
97 |
-
.tmm .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
|
100 |
/* TABLETS */
|
@@ -111,23 +152,6 @@
|
|
111 |
margin-top:70px;
|
112 |
margin-bottom:30px;}
|
113 |
|
114 |
-
.tmm .tmm_names {font-size:17px; margin-bottom:8px; margin-top:10px; font-weight:300; line-height:24px;}
|
115 |
-
.tmm .tmm_4_columns .tmm_names, .tmm .tmm_5_columns .tmm_names {font-size:17px;}
|
116 |
-
.tmm .tmm_job {font-size:13px; color:#a2a5a4; text-transform:uppercase;}
|
117 |
-
|
118 |
-
.tmm .tmm_desc {padding:10px; margin-top:19px; margin-bottom:10px; font-size:15px; line-height:23px;}
|
119 |
-
.tmm .tmm_4_columns .tmm_desc, .tmm .tmm_5_columns .tmm_desc {margin-top:14px; margin-bottom:8px; font-size:14px; line-height: 23px;}
|
120 |
-
|
121 |
-
.tmm .tmm_2_columns .tmm_member .tmm_photo,
|
122 |
-
.tmm .tmm_3_columns .tmm_member .tmm_photo,
|
123 |
-
.tmm .tmm_4_columns .tmm_member .tmm_photo,
|
124 |
-
.tmm .tmm_5_columns .tmm_member .tmm_photo {
|
125 |
-
width:130px;
|
126 |
-
height:130px;
|
127 |
-
border-radius:50px !important;
|
128 |
-
border:8px solid whitesmoke;
|
129 |
-
margin-top:-65px;}
|
130 |
-
|
131 |
}
|
132 |
|
133 |
|
@@ -144,23 +168,28 @@
|
|
144 |
margin-top:90px;
|
145 |
margin-bottom:10px;}
|
146 |
|
147 |
-
.tmm .
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
.tmm .tmm_3_columns .tmm_member .tmm_photo,
|
152 |
-
.tmm .tmm_4_columns .tmm_member .tmm_photo,
|
153 |
-
.tmm .tmm_5_columns .tmm_member .tmm_photo {
|
154 |
-
width:160px;
|
155 |
-
height:160px;
|
156 |
-
border-radius:60px !important;
|
157 |
-
border:8px solid whitesmoke;
|
158 |
-
margin-top:-80px;}
|
159 |
-
|
160 |
-
.tmm .tmm_desc {padding:10px; margin-top:19px; margin-bottom:10px; font-size:15px; line-height:23px;}
|
161 |
-
.tmm .tmm_4_columns .tmm_desc, .tmm .tmm_5_columns .tmm_desc {margin-top:14px; margin-bottom:8px; font-size:14px; line-height: 23px;}
|
162 |
|
163 |
}
|
164 |
|
165 |
-
|
166 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
.tmm .tmm_member {
|
16 |
vertical-align:top;
|
17 |
+
display:inline-block;
|
18 |
margin-top:70px;
|
19 |
margin-bottom:30px;
|
20 |
height:auto;
|
21 |
float: left;
|
22 |
+
position:relative;
|
23 |
text-align:center;
|
24 |
+
-webkit-box-shadow: 3px 0px 5px 0px rgba(0,0,0,0.04);
|
25 |
+
-moz-box-shadow: 3px 0px 5px 0px rgba(0,0,0,0.04);
|
26 |
+
box-shadow: 3px 0px 5px 0px rgba(0,0,0,0.04);
|
27 |
border-top:5px solid lightgrey;
|
28 |
+
border-left: solid 1px #eee;
|
29 |
+
border-right: solid 1px #eee;
|
30 |
+
border-bottom:5px solid whitesmoke;
|
31 |
background:white;
|
32 |
box-sizing:border-box;}
|
33 |
|
50 |
.tmm .tmm_5_columns .tmm_member {width: 18%; margin-right:1%; margin-left:1%;}
|
51 |
|
52 |
.tmm .tmm_member .tmm_photo {
|
53 |
+
width:70%;
|
54 |
+
height:70%;
|
55 |
border:none;
|
56 |
+
-webkit-box-shadow: 2px 0px 1px 0px rgba(0,0,0,0.05);
|
57 |
+
-moz-box-shadow: 2px 0px 1px 0px rgba(0,0,0,0.05);
|
58 |
+
box-shadow: 2px 0px 1px 0px rgba(0,0,0,0.05);
|
59 |
border-radius:60px !important;
|
60 |
margin-top:-80px;
|
61 |
+
border:6px solid #eeeeee;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
.tmm .tmm_member .tmm_textblock .tmm_scblock {padding-top:10px;}
|
64 |
.tmm .tmm_member .tmm_textblock {padding:10px 12px;}
|
74 |
.tmm .tmm_4_columns .tmm_member .tmm_textblock .tmm_sociallink img {width:21px; height:21px; margin:6px 3px;}
|
75 |
.tmm .tmm_member .tmm_textblock .tmm_sociallink img:hover {opacity:0.8;}
|
76 |
|
|
|
|
|
|
|
77 |
.tmm .tmm_fname {display:inline;}
|
78 |
.tmm .tmm_lname {display:inline;}
|
79 |
|
80 |
+
|
81 |
+
/* GENERAL */
|
82 |
+
.tmm .tmm_names span,
|
83 |
+
.tmm .tmm_names span.tmm_fname,
|
84 |
+
.tmm .tmm_names span.tmm_lname,
|
85 |
+
.tmm .tmm_names {
|
86 |
+
color: #222222;
|
87 |
+
}
|
88 |
+
|
89 |
+
.tmm .tmm_desc,
|
90 |
+
.tmm .tmm_desc span,
|
91 |
+
.tmm .tmm_desc p {
|
92 |
+
color: #555555;
|
93 |
+
word-break: break-word;
|
94 |
+
}
|
95 |
+
|
96 |
+
.tmm .tmm_job,
|
97 |
+
.tmm .tmm_job p {
|
98 |
+
color: #888888;
|
99 |
+
}
|
100 |
+
|
101 |
+
|
102 |
+
/* FONTS */
|
103 |
+
.tmm .tmm_plugin_f .tmm_names {
|
104 |
+
font-size:20px;
|
105 |
+
font-weight:400;
|
106 |
+
line-height:24px;
|
107 |
+
margin-bottom:8px;
|
108 |
+
margin-top:10px; }
|
109 |
+
|
110 |
+
.tmm .tmm_plugin_f .tmm_job {
|
111 |
+
font-size:16px;
|
112 |
+
font-weight:400;}
|
113 |
+
|
114 |
+
.tmm .tmm_plugin_f .tmm_desc {
|
115 |
+
padding:0px;
|
116 |
+
margin-top:19px;
|
117 |
+
margin-bottom:10px;
|
118 |
+
font-weight:400;
|
119 |
+
font-size:14px;
|
120 |
+
line-height:23px;}
|
121 |
+
|
122 |
+
.tmm .tmm_theme_f .tmm_names {
|
123 |
+
font-size: 1.1em;
|
124 |
+
font-weight:400;
|
125 |
+
margin-bottom:8px;
|
126 |
+
margin-top:10px; }
|
127 |
+
|
128 |
+
.tmm .tmm_theme_f .tmm_job {
|
129 |
+
font-size: 1em;
|
130 |
+
font-weight:400;}
|
131 |
+
|
132 |
+
.tmm .tmm_theme_f .tmm_desc {
|
133 |
+
font-size:0.9em;
|
134 |
+
line-height:165%;
|
135 |
+
padding:0px;
|
136 |
+
font-weight:400;
|
137 |
+
margin-top:19px;
|
138 |
+
margin-bottom:10px; }
|
139 |
|
140 |
|
141 |
/* TABLETS */
|
152 |
margin-top:70px;
|
153 |
margin-bottom:30px;}
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
}
|
156 |
|
157 |
|
168 |
margin-top:90px;
|
169 |
margin-bottom:10px;}
|
170 |
|
171 |
+
.tmm .tmm_plugin_f .tmm_desc {
|
172 |
+
padding: 0 10px;
|
173 |
+
font-size:16px;
|
174 |
+
line-height:27px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
}
|
177 |
|
178 |
+
|
179 |
+
.tmm_plugin_f,
|
180 |
+
.tmm_plugin_f .tmm_names span,
|
181 |
+
.tmm_plugin_f .tmm_job,
|
182 |
+
.tmm_plugin_f .tmm_desc,
|
183 |
+
.tmm_plugin_f .tmm_desc a,
|
184 |
+
.tmm_plugin_f .tmm_desc span,
|
185 |
+
.tmm_plugin_f .tmm_desc p,
|
186 |
+
.tmm_plugin_f .tmm_desc h1,
|
187 |
+
.tmm_plugin_f .tmm_desc h2,
|
188 |
+
.tmm_plugin_f .tmm_desc h3,
|
189 |
+
.tmm_plugin_f .tmm_desc h4,
|
190 |
+
.tmm_plugin_f .tmm_desc h5,
|
191 |
+
.tmm_plugin_f .tmm_desc h6,
|
192 |
+
.tmm_plugin_f .tmm_desc ul li,
|
193 |
+
.tmm_plugin_f .tmm_desc ol li {
|
194 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
195 |
+
}
|
inc/css/tmm_style.min.css
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
* Team Members Front CSS (minified)
|
5 |
*/
|
6 |
|
7 |
-
.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 .tmm_container:last-child .tmm_member{float:none!important}.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:
|
4 |
* Team Members Front CSS (minified)
|
5 |
*/
|
6 |
|
7 |
+
.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 .tmm_container:last-child .tmm_member{float:none!important}.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;position:relative;text-align:center;-webkit-box-shadow:3px 0 5px 0 rgba(0,0,0,.04);-moz-box-shadow:3px 0 5px 0 rgba(0,0,0,.04);box-shadow:3px 0 5px 0 rgba(0,0,0,.04);border-top:5px solid lightgrey;border-left:solid 1px #eee;border-right:solid 1px #eee;border-bottom:5px solid whitesmoke;background:white;box-sizing:border-box}.tmm .tmm_three_entries{clear:both}.tmm .tmm_2_columns .tmm_member{margin-right:4%;margin-left:4%}.tmm .tmm_3_columns .tmm_member{margin-right:2%;margin-left:2%}.tmm .tmm_4_columns .tmm_member{margin-right:1%;margin-left:1%}.tmm .tmm_2_columns .tmm_member{width:42%}.tmm .tmm_3_columns .tmm_member{width:29%}.tmm .tmm_4_columns .tmm_member{width:23%}.tmm .tmm_1_columns .tmm_member{width:96%;margin-right:2%;margin-left:2%}.tmm .tmm_5_columns .tmm_member{width:18%;margin-right:1%;margin-left:1%}.tmm .tmm_member .tmm_photo{width:70%;height:70%;border:none;-webkit-box-shadow:2px 0 1px 0 rgba(0,0,0,.05);-moz-box-shadow:2px 0 1px 0 rgba(0,0,0,.05);box-shadow:2px 0 1px 0 rgba(0,0,0,.05);border-radius:60px!important;margin-top:-80px;border:6px solid #eee}.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 0 0;margin:10px 4px}.tmm .tmm_5_columns .tmm_member .tmm_textblock .tmm_sociallink img{width:19px;height:19px;margin:6px 2px}.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_fname{display:inline}.tmm .tmm_lname{display:inline}.tmm .tmm_names span,.tmm .tmm_names span.tmm_fname,.tmm .tmm_names span.tmm_lname,.tmm .tmm_names{color:#222}.tmm .tmm_desc,.tmm .tmm_desc span,.tmm .tmm_desc p{color:#555;word-break:break-word}.tmm .tmm_job,.tmm .tmm_job p{color:#888}.tmm .tmm_plugin_f .tmm_names{font-size:20px;font-weight:400;line-height:24px;margin-bottom:8px;margin-top:10px}.tmm .tmm_plugin_f .tmm_job{font-size:16px;font-weight:400}.tmm .tmm_plugin_f .tmm_desc{padding:0;margin-top:19px;margin-bottom:10px;font-weight:400;font-size:14px;line-height:23px}.tmm .tmm_theme_f .tmm_names{font-size:1.1em;font-weight:400;margin-bottom:8px;margin-top:10px}.tmm .tmm_theme_f .tmm_job{font-size:1em;font-weight:400}.tmm .tmm_theme_f .tmm_desc{font-size:.9em;line-height:165%;padding:0;font-weight:400;margin-top:19px;margin-bottom:10px}@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,.tmm .tmm_5_columns .tmm_member{width:40%;margin-left:5%;margin-right:5%;margin-top:70px;margin-bottom:30px}}@media only screen and (max-width:40em){.tmm .tmm_columns_containers_desktop{display:none;clear:none}.tmm .tmm_member{width:96%;margin:0 2%;margin-top:70px;margin-bottom:30px}.tmm .tmm_2_columns .tmm_member,.tmm .tmm_3_columns .tmm_member,.tmm .tmm_4_columns .tmm_member,.tmm .tmm_5_columns .tmm_member{width:96%;margin:0 2%;margin-top:90px;margin-bottom:10px}.tmm .tmm_plugin_f .tmm_desc{padding:0 10px;font-size:16px;line-height:27px}}.tmm_plugin_f,.tmm_plugin_f .tmm_names span,.tmm_plugin_f .tmm_job,.tmm_plugin_f .tmm_desc,.tmm_plugin_f .tmm_desc a,.tmm_plugin_f .tmm_desc span,.tmm_plugin_f .tmm_desc p,.tmm_plugin_f .tmm_desc h1,.tmm_plugin_f .tmm_desc h2,.tmm_plugin_f .tmm_desc h3,.tmm_plugin_f .tmm_desc h4,.tmm_plugin_f .tmm_desc h5,.tmm_plugin_f .tmm_desc h6,.tmm_plugin_f .tmm_desc ul li,.tmm_plugin_f .tmm_desc ol li{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif}
|
inc/dmb/dmb.css
CHANGED
@@ -14,25 +14,19 @@
|
|
14 |
clear:both;
|
15 |
height:100px;
|
16 |
border-radius:4px;
|
17 |
-
margin-top:2px;
|
18 |
-
}
|
19 |
|
20 |
/* Fields. */
|
21 |
.dmb_feature_dump{
|
22 |
display:none;}
|
23 |
-
|
24 |
-
.dmb_field,
|
25 |
.dmb_main select,
|
26 |
.dmb_side_select{
|
27 |
-
|
28 |
-
width:100%;
|
29 |
-
border-radius:4px;
|
30 |
margin-bottom:5px;}
|
31 |
|
32 |
.dmb_field{
|
33 |
-
width:100%;
|
34 |
-
padding:4px 8px;
|
35 |
-
font-size:13px;}
|
36 |
|
37 |
.dmb_data_dump{
|
38 |
display:none;}
|
@@ -45,28 +39,30 @@
|
|
45 |
|
46 |
.dmb_img{
|
47 |
max-width:100%;
|
|
|
48 |
margin-top:8px; /* Top space once the img has been updated. */
|
49 |
display:block;}
|
50 |
|
51 |
|
52 |
/* Headings. */
|
53 |
.dmb_section_title{
|
54 |
-
font-size:
|
55 |
-
color:#
|
56 |
padding-bottom:4px;
|
57 |
margin: 15px 2px 2px;
|
58 |
border-bottom:3px dashed #ddd;
|
59 |
text-align: left;}
|
60 |
|
|
|
61 |
.dmb_field_title{
|
62 |
margin-top: 10px;
|
63 |
margin-bottom:3px;
|
64 |
color: #555;
|
65 |
-
font-size:
|
66 |
padding-left: 2px;
|
67 |
display: inline-block;
|
68 |
font-weight: 400;
|
69 |
-
line-height:
|
70 |
|
71 |
|
72 |
/* Placeholders. */
|
@@ -78,62 +74,28 @@
|
|
78 |
|
79 |
/* Metaboxes. */
|
80 |
.dmb_main{ /* Main metabox. */
|
81 |
-
border-radius: 4px;
|
82 |
margin-top: 10px;}
|
83 |
|
84 |
.dmb_main .dmb_inner{
|
85 |
background:whitesmoke;
|
86 |
padding:4px 10px 8px;
|
87 |
border: 1px solid #ddd;
|
88 |
-
border-
|
89 |
-
border-bottom-right-radius:3px;}
|
90 |
|
91 |
.dmb_main .dmb_handle{
|
92 |
-
padding:
|
93 |
-
background:
|
94 |
-
border: 1px solid #
|
95 |
-
display:block;
|
96 |
-
border-top-right-radius:3px;
|
97 |
-
border-top-left-radius:3px}
|
98 |
-
|
99 |
-
.dmb_main .dmb_handle .dmb_big_button_secondary { /* Darker button in the handle. */
|
100 |
-
float:right;
|
101 |
-
margin-left:8px;
|
102 |
-
font-size: 12px; /* Smaller. */
|
103 |
-
line-height: 20px;
|
104 |
-
border-bottom:2px solid #ccc;
|
105 |
-
border-right:1px solid #ccc;}
|
106 |
-
|
107 |
-
.dmb_main .dmb_handle .dmb_move_row_up,
|
108 |
-
.dmb_main .dmb_handle .dmb_move_row_down{
|
109 |
-
padding:3px;
|
110 |
-
float:left;
|
111 |
-
margin-left:0px;
|
112 |
-
margin-right:8px;}
|
113 |
-
|
114 |
-
.dmb_main .dmb_handle .dmb_move_row_up{
|
115 |
-
margin-right:0px;
|
116 |
-
border-bottom-right-radius:0px;
|
117 |
-
border-top-right-radius:0px;}
|
118 |
-
|
119 |
-
.dmb_main .dmb_handle .dmb_move_row_down{
|
120 |
-
border-bottom-left-radius:0px;
|
121 |
-
border-top-left-radius:0px;}
|
122 |
-
|
123 |
-
.dmb_main .dmb_handle.closed{
|
124 |
-
border-radius:3px;
|
125 |
-
border-bottom: none;}
|
126 |
|
127 |
.dmb_main .dmb_handle.closed{
|
128 |
-
border-radius:3px;
|
129 |
border-bottom: none;}
|
130 |
|
131 |
.dmb_main .dmb_handle .dmb_handle_title{
|
132 |
margin-top: 4px;
|
133 |
float:left;
|
134 |
-
color:
|
135 |
-
|
136 |
-
font-weight:300;
|
137 |
font-size: 18px;
|
138 |
box-sizing: border-box;}
|
139 |
|
@@ -147,44 +109,53 @@
|
|
147 |
bottom:0%;
|
148 |
left: 0%;
|
149 |
right: 0%;
|
150 |
-
|
|
|
151 |
z-index: 100000;
|
152 |
padding: 0 15%;
|
153 |
text-align: center;
|
154 |
box-shadow: -1px 0px 204px -6px rgba(0,0,0,0.75);}
|
155 |
|
156 |
.dmb_accuracy_preview_notice{
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
margin-top:60px;
|
166 |
-
margin-bottom:80px;
|
|
|
|
|
167 |
|
168 |
.dmb_no_row_preview_notice{
|
169 |
-
background:white;
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
margin-top:120px;}
|
176 |
|
177 |
|
178 |
/* Tips. */
|
179 |
.dmb_tip{
|
180 |
padding-left:2px;
|
181 |
-
font-size:
|
182 |
color:#999;
|
183 |
-
line-height:
|
184 |
margin-top:8px;}
|
185 |
|
186 |
.dmb_tip .dashicons{
|
187 |
-
font-size:
|
188 |
height:17px;}
|
189 |
|
190 |
.dmb_tip a, .dmb_inline_tip{
|
@@ -192,142 +163,117 @@
|
|
192 |
cursor: pointer;}
|
193 |
|
194 |
|
195 |
-
/* Buttons
|
196 |
-
.
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
border:1px
|
205 |
-
border-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
background-image: none;
|
211 |
outline: 0;
|
212 |
-webkit-box-shadow: none;
|
213 |
box-shadow: none;
|
214 |
-
background: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
color:white;}
|
216 |
-
|
217 |
-
.
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
border-bottom:2px solid #ddd;
|
226 |
-
border-right:1px solid #ddd;}
|
227 |
-
.dmb_big_button_secondary:hover,
|
228 |
-
.dmb_big_button_secondary:focus{
|
229 |
-
background-image: none;
|
230 |
-
outline: 0;
|
231 |
-
-webkit-box-shadow: none;
|
232 |
-
box-shadow: none;
|
233 |
-
color:#555;}
|
234 |
-
.dmb_big_button_secondary.dmb_remove_row_btn{ /* Fixes remove row handle button. */
|
235 |
-
padding: 3px 3px 3px 4px}
|
236 |
-
|
237 |
-
.dmb_small_button_primary{ /* Upload img buttons. */
|
238 |
-
margin:5px 1px;
|
239 |
-
text-shadow: 0 -1px 1px #497bad,1px 0 1px #497bad,0 1px 1px #497bad,-1px 0 1px #497bad;
|
240 |
-
padding:4px 4px 1px;
|
241 |
-
line-height:17px;
|
242 |
-
font-size:12px;
|
243 |
-
background: #5690CA;
|
244 |
-
color:white;
|
245 |
-
text-decoration:none;
|
246 |
-
border-radius:3px;
|
247 |
-
border:1px solid #497bad;
|
248 |
-
border-bottom:2px solid #497bad;
|
249 |
-
border-right:1px solid #497bad;}
|
250 |
-
.dmb_small_button_primary:hover,
|
251 |
-
.dmb_small_button_primary:focus{
|
252 |
-
background-image: none;
|
253 |
-
outline: 0;
|
254 |
-
-webkit-box-shadow: none;
|
255 |
-
box-shadow: none;
|
256 |
-
background: #5a97d4;
|
257 |
color:white;}
|
258 |
|
259 |
-
.
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
text-decoration:none;
|
268 |
-
border-radius:3px;
|
269 |
-
border:1px solid #c39d2c;
|
270 |
-
border-bottom:2px solid #c39d2c;
|
271 |
-
border-right:1px solid #c39d2c;}
|
272 |
-
.dmb_preview_button:hover,
|
273 |
-
.dmb_preview_button:focus{
|
274 |
-
background-image: none;
|
275 |
-
background:#ffcd43;
|
276 |
-
outline: 0;
|
277 |
-
-webkit-box-shadow: none;
|
278 |
-
box-shadow: none;
|
279 |
color:white;}
|
280 |
|
281 |
-
|
|
|
|
|
|
|
|
|
282 |
position:fixed;
|
283 |
top:20px;
|
284 |
right:40px;
|
285 |
-
z-index:1;
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
.
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
.
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
-webkit-box-shadow: none;
|
310 |
-
box-shadow: none;
|
311 |
-
color:#555;}
|
312 |
-
.dmb_small_button_secondary.dmb_remove_feature_btn{
|
313 |
-
position:relative;
|
314 |
-
top:4px;
|
315 |
-
padding:11px 2px 0px 3px;}
|
316 |
-
|
317 |
-
.dmb_upload_img_btn{
|
318 |
-
display:inline-block;
|
319 |
-
cursor:pointer;
|
320 |
-
margin-bottom:0px;}
|
321 |
-
|
322 |
-
.dmb_upload_img_btn .dashicons{ /* Fix for upload button icon. */
|
323 |
-
position:relative;
|
324 |
-
top:-2px;}
|
325 |
-
|
326 |
-
.dmb_remove_img_btn{ /* Uploaded img remove button. */
|
327 |
-
display:inline-block;
|
328 |
-
position:relative;
|
329 |
-
top:-2px;
|
330 |
-
margin-left:3px;}
|
331 |
|
332 |
.dmb_add_row{
|
333 |
margin:0 auto;
|
@@ -336,12 +282,12 @@
|
|
336 |
|
337 |
.dmb_no_row_notice{
|
338 |
background: whitesmoke;
|
339 |
-
|
340 |
-
padding: 30px 10px;
|
341 |
margin-top: 10px;
|
342 |
text-align: center;
|
343 |
-
font-size:
|
344 |
-
line-height:
|
|
|
345 |
border:1px solid #ddd;}
|
346 |
|
347 |
.dmb_add_feature{
|
@@ -366,7 +312,8 @@
|
|
366 |
.dmb_grid_60{width:60%;}
|
367 |
.dmb_grid_100{width:99%;}
|
368 |
|
369 |
-
.dmb_description_of_member{
|
|
|
370 |
|
371 |
.dmb_grid_first{
|
372 |
padding-left:0;}
|
@@ -390,29 +337,21 @@
|
|
390 |
|
391 |
/* Toolbar. */
|
392 |
.dmb_toolbar{
|
|
|
393 |
display:block;
|
394 |
-
text-align:left;
|
395 |
-
background:whitesmoke;
|
396 |
-
margin-top:10px;
|
397 |
-
border-radius: 4px;
|
398 |
-
border:1px solid #ddd;}
|
399 |
-
|
400 |
-
.dmb_toolbar .dmb_toolbar_inner{
|
401 |
-
display:block;
|
402 |
-
padding: 7px 7px 6px;}
|
403 |
|
404 |
-
.dmb_toolbar .
|
405 |
-
.dmb_toolbar .
|
|
|
406 |
float:left;
|
407 |
-
margin-right:7px;
|
|
|
408 |
|
409 |
-
.dmb_toolbar .
|
410 |
float:right;
|
411 |
margin-left:7px;}
|
412 |
|
413 |
-
.dmb_toolbar .dashicons{
|
414 |
-
line-height:20px !important;}
|
415 |
-
|
416 |
|
417 |
/* Side block. */
|
418 |
.dmb_side_block_title,
|
@@ -421,22 +360,22 @@
|
|
421 |
margin-top:4px;
|
422 |
margin-bottom: 2px;
|
423 |
font-weight: 500;
|
424 |
-
color: #
|
|
|
|
|
|
|
|
|
425 |
|
426 |
.dmb_help_title{ /* Fixes title spacing. */
|
427 |
margin-bottom: 10px;}
|
428 |
|
429 |
.dmb_side_block{
|
|
|
430 |
margin-top:10px;}
|
431 |
|
432 |
.dmb_side_block a{
|
433 |
text-decoration:none;}
|
434 |
|
435 |
-
.dmb_see_pro {
|
436 |
-
display:inline-block;
|
437 |
-
margin-top:10px;
|
438 |
-
padding-bottom:8px;}
|
439 |
-
|
440 |
|
441 |
/* Tooltips. */
|
442 |
[data-tooltip] {
|
@@ -510,23 +449,8 @@
|
|
510 |
.dmb_grid_100{
|
511 |
padding-right:0px;
|
512 |
padding-left:0px;
|
513 |
-
width:100%;}
|
514 |
-
}
|
515 |
-
|
516 |
|
517 |
-
/* WordPress CSS tweak (PRO side metabox). */
|
518 |
-
#tmm_pro h2.hndle {
|
519 |
-
background:#ACCE45;
|
520 |
-
color:white;
|
521 |
-
font-weight:400;
|
522 |
-
border: 1px solid #9ebd43 !important;
|
523 |
-
text-shadow: 0 0px 1px #849d3a, 0px 0 1px #849d3a, 0 1px 1px #849d3a, 0px 0 1px #849d3a;}
|
524 |
-
|
525 |
-
#tmm_pro h2.hndle .dashicons{
|
526 |
-
color:white !important;}
|
527 |
-
|
528 |
-
#tmm_pro .toggle-indicator{
|
529 |
-
color:white !important;}
|
530 |
|
531 |
/* Unique editor. */
|
532 |
#dmb_unique_editor {
|
@@ -545,62 +469,10 @@
|
|
545 |
text-align: center;
|
546 |
box-shadow: -1px 0px 204px -6px rgba(0,0,0,0.75);}
|
547 |
|
548 |
-
#wp-dmb_editor-wrap {
|
549 |
padding: 20px;
|
550 |
background: rgba(255,255,255,0.5);}
|
551 |
|
552 |
-
.dmb_ue_update{
|
553 |
-
margin-top:2px;
|
554 |
-
text-shadow: 0 0px 0px #a18023,1px 0 0px #a18023,0 1px 1px #a18023,0px 0 1px #a18023;
|
555 |
-
background: #f5c542;
|
556 |
-
font-weight:400;
|
557 |
-
cursor:pointer;
|
558 |
-
color:white;
|
559 |
-
text-decoration:none;
|
560 |
-
border-radius:3px;
|
561 |
-
border:1px solid #c39d2c;
|
562 |
-
border-bottom:2px solid #c39d2c;
|
563 |
-
border-right:1px solid #c39d2c;
|
564 |
-
padding: 10px 20px;
|
565 |
-
display:inline-block;
|
566 |
-
font-size:20px;}
|
567 |
-
|
568 |
-
.dmb_ue_update:hover,
|
569 |
-
.dmb_ue_update:focus{
|
570 |
-
background-image: none;
|
571 |
-
background:#ffcd43;
|
572 |
-
outline: 0;
|
573 |
-
-webkit-box-shadow: none;
|
574 |
-
box-shadow: none;
|
575 |
-
color:white;}
|
576 |
-
|
577 |
-
.dmb_ue_cancel{
|
578 |
-
margin-top:2px;
|
579 |
-
margin-left:20px;
|
580 |
-
background: #fff;
|
581 |
-
font-weight:400;
|
582 |
-
cursor:pointer;
|
583 |
-
color:#444;
|
584 |
-
text-decoration:none;
|
585 |
-
border-radius:3px;
|
586 |
-
border:1px solid #ccc;
|
587 |
-
border-bottom:2px solid #bbb;
|
588 |
-
border-right:1px solid #ccc;
|
589 |
-
padding: 10px 20px;
|
590 |
-
display:inline-block;
|
591 |
-
font-size:20px;}
|
592 |
-
|
593 |
-
.dmb_ue_cancel:hover,
|
594 |
-
.dmb_ue_cancel:focus{
|
595 |
-
background-image: none;
|
596 |
-
outline: 0;
|
597 |
-
-webkit-box-shadow: none;
|
598 |
-
box-shadow: none;}
|
599 |
-
|
600 |
-
.dmb_edit_description_of_member{
|
601 |
-
display:inline-block;
|
602 |
-
cursor:pointer;}
|
603 |
-
|
604 |
.dmb_description_of_member{
|
605 |
border: 1px solid #e2e2e2;
|
606 |
margin: 5px 0;
|
@@ -610,12 +482,30 @@
|
|
610 |
padding: 10px 20px;
|
611 |
min-height: 30px;
|
612 |
background: white;
|
613 |
-
border-radius: 0;
|
614 |
max-height: 240px;
|
615 |
width:99%;
|
616 |
-
overflow-y: scroll;
|
617 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
618 |
|
619 |
-
|
620 |
-
|
621 |
-
|
14 |
clear:both;
|
15 |
height:100px;
|
16 |
border-radius:4px;
|
17 |
+
margin-top:2px;}
|
|
|
18 |
|
19 |
/* Fields. */
|
20 |
.dmb_feature_dump{
|
21 |
display:none;}
|
22 |
+
|
|
|
23 |
.dmb_main select,
|
24 |
.dmb_side_select{
|
25 |
+
width:100%;
|
|
|
|
|
26 |
margin-bottom:5px;}
|
27 |
|
28 |
.dmb_field{
|
29 |
+
width:100%;}
|
|
|
|
|
30 |
|
31 |
.dmb_data_dump{
|
32 |
display:none;}
|
39 |
|
40 |
.dmb_img{
|
41 |
max-width:100%;
|
42 |
+
max-height: 160px;
|
43 |
margin-top:8px; /* Top space once the img has been updated. */
|
44 |
display:block;}
|
45 |
|
46 |
|
47 |
/* Headings. */
|
48 |
.dmb_section_title{
|
49 |
+
font-size: 20px;
|
50 |
+
color:#7a7a78;
|
51 |
padding-bottom:4px;
|
52 |
margin: 15px 2px 2px;
|
53 |
border-bottom:3px dashed #ddd;
|
54 |
text-align: left;}
|
55 |
|
56 |
+
.dmb_sidebar .dmb_field_title{ font-size:13px; }
|
57 |
.dmb_field_title{
|
58 |
margin-top: 10px;
|
59 |
margin-bottom:3px;
|
60 |
color: #555;
|
61 |
+
font-size: 15px;
|
62 |
padding-left: 2px;
|
63 |
display: inline-block;
|
64 |
font-weight: 400;
|
65 |
+
line-height: 19px;}
|
66 |
|
67 |
|
68 |
/* Placeholders. */
|
74 |
|
75 |
/* Metaboxes. */
|
76 |
.dmb_main{ /* Main metabox. */
|
|
|
77 |
margin-top: 10px;}
|
78 |
|
79 |
.dmb_main .dmb_inner{
|
80 |
background:whitesmoke;
|
81 |
padding:4px 10px 8px;
|
82 |
border: 1px solid #ddd;
|
83 |
+
border-top:none;}
|
|
|
84 |
|
85 |
.dmb_main .dmb_handle{
|
86 |
+
padding: 8px 12px;
|
87 |
+
background: white;
|
88 |
+
border: 1px solid #ccd0d4 !important;
|
89 |
+
display:block;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
.dmb_main .dmb_handle.closed{
|
|
|
92 |
border-bottom: none;}
|
93 |
|
94 |
.dmb_main .dmb_handle .dmb_handle_title{
|
95 |
margin-top: 4px;
|
96 |
float:left;
|
97 |
+
color: #23282d;
|
98 |
+
font-weight:400;
|
|
|
99 |
font-size: 18px;
|
100 |
box-sizing: border-box;}
|
101 |
|
109 |
bottom:0%;
|
110 |
left: 0%;
|
111 |
right: 0%;
|
112 |
+
padding-bottom:90px;
|
113 |
+
background: #eee;
|
114 |
z-index: 100000;
|
115 |
padding: 0 15%;
|
116 |
text-align: center;
|
117 |
box-shadow: -1px 0px 204px -6px rgba(0,0,0,0.75);}
|
118 |
|
119 |
.dmb_accuracy_preview_notice{
|
120 |
+
background: white;
|
121 |
+
padding: 20px 30px;
|
122 |
+
margin-top: 10px;
|
123 |
+
text-align: center;
|
124 |
+
font-size: 17px;
|
125 |
+
line-height: 27px;
|
126 |
+
font-weight: 400;
|
127 |
+
border: 1px solid #ddd;
|
128 |
+
margin-top: 60px;
|
129 |
+
margin-bottom: 80px;
|
130 |
+
max-width: 550px;
|
131 |
+
margin: 0 auto;}
|
132 |
|
133 |
.dmb_no_row_preview_notice{
|
134 |
+
background: white;
|
135 |
+
padding: 20px 30px;
|
136 |
+
margin-top: 10px;
|
137 |
+
text-align: center;
|
138 |
+
font-size: 17px;
|
139 |
+
line-height: 27px;
|
140 |
+
font-weight: 400;
|
141 |
+
border: 1px solid #ddd;
|
142 |
+
margin-top: 60px;
|
143 |
+
margin-bottom: 80px;
|
144 |
+
max-width: 550px;
|
145 |
+
margin: 0 auto;
|
146 |
margin-top:120px;}
|
147 |
|
148 |
|
149 |
/* Tips. */
|
150 |
.dmb_tip{
|
151 |
padding-left:2px;
|
152 |
+
font-size:14px;
|
153 |
color:#999;
|
154 |
+
line-height:23px;
|
155 |
margin-top:8px;}
|
156 |
|
157 |
.dmb_tip .dashicons{
|
158 |
+
font-size:24px;
|
159 |
height:17px;}
|
160 |
|
161 |
.dmb_tip a, .dmb_inline_tip{
|
163 |
cursor: pointer;}
|
164 |
|
165 |
|
166 |
+
/* Buttons */
|
167 |
+
.dmb_button{ /* Upload img buttons. */
|
168 |
+
font-size: 13px;
|
169 |
+
line-height: 2;
|
170 |
+
padding: 2px 10px 3px;
|
171 |
+
display: inline-block;
|
172 |
+
text-decoration: none;
|
173 |
+
margin: 0;
|
174 |
+
cursor: pointer;
|
175 |
+
border-width: 1px;
|
176 |
+
border-style: solid;
|
177 |
+
-webkit-appearance: none;
|
178 |
+
border-radius: 3px;
|
179 |
+
white-space: nowrap;
|
180 |
+
box-sizing: border-box;
|
181 |
+
min-height: 30px;
|
182 |
+
text-decoration: none;
|
183 |
+
text-shadow: none;
|
184 |
+
background: whitesmoke;
|
185 |
+
border-color: lightgrey;
|
186 |
+
color: #23282d;}
|
187 |
+
.dmb_button:hover,
|
188 |
+
.dmb_button:active,
|
189 |
+
.dmb_button:focus{
|
190 |
background-image: none;
|
191 |
outline: 0;
|
192 |
-webkit-box-shadow: none;
|
193 |
box-shadow: none;
|
194 |
+
background: #eceaea;
|
195 |
+
color:#23282d;}
|
196 |
+
|
197 |
+
/* Sizes */
|
198 |
+
.dmb_button_large .dashicons {
|
199 |
+
position: relative; top: 4px;}
|
200 |
+
.dmb_button_large {
|
201 |
+
font-size: 13px;
|
202 |
+
line-height: 2.15384615;
|
203 |
+
padding: 0 12px 2px;}
|
204 |
+
|
205 |
+
.dmb_button_huge {
|
206 |
+
font-size: 16px;
|
207 |
+
line-height: 2.28384615;
|
208 |
+
padding: 0 15px 3px}
|
209 |
+
|
210 |
+
/* i.e. Icon buttons */
|
211 |
+
.dmb_button_compact{
|
212 |
+
padding: 0 4px 2px;}
|
213 |
+
|
214 |
+
/* Colors */
|
215 |
+
.dmb_button_blue {
|
216 |
+
background: #007cba;
|
217 |
+
border-color: #007cba;
|
218 |
+
color: #fff; }
|
219 |
+
.dmb_button_blue:active,
|
220 |
+
.dmb_button_blue:hover,
|
221 |
+
.dmb_button_blue:focus{
|
222 |
+
background: #00669b;
|
223 |
color:white;}
|
224 |
+
|
225 |
+
.dmb_button_green {
|
226 |
+
background: #81c240;
|
227 |
+
border-color: #81c240;
|
228 |
+
color: #fff; }
|
229 |
+
.dmb_button_green:active,
|
230 |
+
.dmb_button_green:hover,
|
231 |
+
.dmb_button_green:focus{
|
232 |
+
background: #75b03a;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
color:white;}
|
234 |
|
235 |
+
.dmb_button_gold {
|
236 |
+
background: #edb50c;
|
237 |
+
border-color: #edb50c;
|
238 |
+
color: #fff; }
|
239 |
+
.dmb_button_gold:hover,
|
240 |
+
.dmb_button_gold:hover,
|
241 |
+
.dmb_button_gold:focus{
|
242 |
+
background: #e3ab02;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
color:white;}
|
244 |
|
245 |
+
/* Specifics */
|
246 |
+
.dmb_ue_update {
|
247 |
+
margin-right:10px;}
|
248 |
+
|
249 |
+
#dmb_preview_team .dmb_preview_team_close{
|
250 |
position:fixed;
|
251 |
top:20px;
|
252 |
right:40px;
|
253 |
+
z-index:1;}
|
254 |
+
|
255 |
+
.dmb_clone_row,
|
256 |
+
.dmb_remove_row_btn {
|
257 |
+
float:right;}
|
258 |
+
|
259 |
+
.dmb_move_row_up,
|
260 |
+
.dmb_move_row_down{
|
261 |
+
float:left;}
|
262 |
+
|
263 |
+
.dmb_move_row_down {
|
264 |
+
margin-left:7px;
|
265 |
+
margin-right:12px;}
|
266 |
+
|
267 |
+
.dmb_remove_row_btn {
|
268 |
+
margin-left:7px;}
|
269 |
+
|
270 |
+
.dmb_see_pro {
|
271 |
+
margin-top:10px;}
|
272 |
+
|
273 |
+
.dmb_upload_img_btn {
|
274 |
+
margin-top:4px;}
|
275 |
+
.dmb_remove_img_btn{
|
276 |
+
margin-left:7px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
.dmb_add_row{
|
279 |
margin:0 auto;
|
282 |
|
283 |
.dmb_no_row_notice{
|
284 |
background: whitesmoke;
|
285 |
+
padding: 50px 10px;
|
|
|
286 |
margin-top: 10px;
|
287 |
text-align: center;
|
288 |
+
font-size: 20px;
|
289 |
+
line-height: 36px;
|
290 |
+
font-weight: 400;
|
291 |
border:1px solid #ddd;}
|
292 |
|
293 |
.dmb_add_feature{
|
312 |
.dmb_grid_60{width:60%;}
|
313 |
.dmb_grid_100{width:99%;}
|
314 |
|
315 |
+
.dmb_description_of_member{
|
316 |
+
width:100% !important;}
|
317 |
|
318 |
.dmb_grid_first{
|
319 |
padding-left:0;}
|
337 |
|
338 |
/* Toolbar. */
|
339 |
.dmb_toolbar{
|
340 |
+
padding-top:4px;
|
341 |
display:block;
|
342 |
+
text-align:left;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
|
344 |
+
.dmb_toolbar .dmb_expand_rows {margin-right:10px;}
|
345 |
+
.dmb_toolbar .dmb_collapse_rows,
|
346 |
+
.dmb_toolbar .dmb_expand_rows {
|
347 |
float:left;
|
348 |
+
margin-right:7px;
|
349 |
+
margin-top:9px;}
|
350 |
|
351 |
+
.dmb_toolbar .dmb_show_preview_team {
|
352 |
float:right;
|
353 |
margin-left:7px;}
|
354 |
|
|
|
|
|
|
|
355 |
|
356 |
/* Side block. */
|
357 |
.dmb_side_block_title,
|
360 |
margin-top:4px;
|
361 |
margin-bottom: 2px;
|
362 |
font-weight: 500;
|
363 |
+
color: #555;}
|
364 |
+
|
365 |
+
.dmb_side_block_title {
|
366 |
+
font-weight: 400;
|
367 |
+
}
|
368 |
|
369 |
.dmb_help_title{ /* Fixes title spacing. */
|
370 |
margin-bottom: 10px;}
|
371 |
|
372 |
.dmb_side_block{
|
373 |
+
padding-bottom: 2px;
|
374 |
margin-top:10px;}
|
375 |
|
376 |
.dmb_side_block a{
|
377 |
text-decoration:none;}
|
378 |
|
|
|
|
|
|
|
|
|
|
|
379 |
|
380 |
/* Tooltips. */
|
381 |
[data-tooltip] {
|
449 |
.dmb_grid_100{
|
450 |
padding-right:0px;
|
451 |
padding-left:0px;
|
452 |
+
width:100%;}}
|
|
|
|
|
453 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
|
455 |
/* Unique editor. */
|
456 |
#dmb_unique_editor {
|
469 |
text-align: center;
|
470 |
box-shadow: -1px 0px 204px -6px rgba(0,0,0,0.75);}
|
471 |
|
472 |
+
#wp-dmb_editor-wrap { /* Container for the editor. */
|
473 |
padding: 20px;
|
474 |
background: rgba(255,255,255,0.5);}
|
475 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
.dmb_description_of_member{
|
477 |
border: 1px solid #e2e2e2;
|
478 |
margin: 5px 0;
|
482 |
padding: 10px 20px;
|
483 |
min-height: 30px;
|
484 |
background: white;
|
|
|
485 |
max-height: 240px;
|
486 |
width:99%;
|
487 |
+
overflow-y: scroll;}
|
488 |
+
|
489 |
+
.dmb_edit_description_of_member {
|
490 |
+
margin-top:7px !important; }
|
491 |
+
|
492 |
+
.dmb_discount_box_pushr {height:60px;}
|
493 |
+
.dmb_discount_box {
|
494 |
+
background: whitesmoke;
|
495 |
+
border-top: 1px solid #ddd;
|
496 |
+
padding: 2px 16px 8px 11px;
|
497 |
+
position: absolute;
|
498 |
+
bottom: 0;
|
499 |
+
left: 0;
|
500 |
+
right: 0;}
|
501 |
+
|
502 |
+
|
503 |
+
#tmm_pro .hndle {
|
504 |
+
padding: 8px 12px;
|
505 |
+
background:#81c240;
|
506 |
+
color:white;
|
507 |
+
}
|
508 |
|
509 |
+
#tmm_pro strong {
|
510 |
+
color:black;
|
511 |
+
}
|
inc/dmb/dmb.js
CHANGED
@@ -112,7 +112,7 @@ $(document).ready(function (){
|
|
112 |
$('.dmb_img_data_url').each(function(i, obj) {
|
113 |
var imgUrl = $(this).attr("data-img");
|
114 |
if (imgUrl != ''){
|
115 |
-
$("<a class='dmb_remove_img_btn
|
116 |
}
|
117 |
});
|
118 |
|
@@ -186,8 +186,9 @@ $(document).ready(function (){
|
|
186 |
},
|
187 |
multiple: false // for multiple image selection set to true
|
188 |
}).on('select', function() { // it also has "open" and "close" events
|
189 |
-
|
190 |
-
|
|
|
191 |
button.siblings('.dmb_img_data_url').attr('data-img', attachment.url).trigger('change');
|
192 |
})
|
193 |
.open();
|
@@ -231,7 +232,7 @@ $(document).ready(function (){
|
|
231 |
});
|
232 |
|
233 |
|
234 |
-
/* Expands/collapses
|
235 |
$('.dmb_handle').click(function(e) {
|
236 |
|
237 |
$(this).siblings('.dmb_inner').slideToggle(50);
|
@@ -355,7 +356,7 @@ $(document).ready(function (){
|
|
355 |
|
356 |
if (!wasCloned) { wasCloned = false; }
|
357 |
|
358 |
-
/*
|
359 |
var firstnameField = firstnameField,
|
360 |
lastname = firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val() || '';
|
361 |
handleTitle = firstnameField.closest('.dmb_main').find('.dmb_handle_title');
|
@@ -371,7 +372,7 @@ $(document).ready(function (){
|
|
371 |
|
372 |
|
373 |
/* Watches member firstname/lastname and updates handle. */
|
374 |
-
$('
|
375 |
$('body').on('keyup', '.dmb_lastname_of_member', function(e) {
|
376 |
firstnameField = $(this).closest('.dmb_main').find('.dmb_firstname_of_member');
|
377 |
updateHandleTitle(firstnameField);
|
@@ -396,7 +397,7 @@ $(document).ready(function (){
|
|
396 |
|
397 |
/* Prepares the output. */
|
398 |
preview_html += '<div class="tmm" style="margin-top: 100px;">';
|
399 |
-
preview_html += '<div class="tmm_' + settings.columns + '_columns tmm_wrap
|
400 |
|
401 |
$('.dmb_main').not('.dmb_empty_row').each(function(i, obj){
|
402 |
|
@@ -444,8 +445,8 @@ $(document).ready(function (){
|
|
444 |
if (fields.photoLinkUrl)
|
445 |
preview_html += '<a ' + settings.piclink_beh + ' href="' + fields.photoLinkUrl + '" title="' + fields.firstname + ' ' + fields.lastname + '">';
|
446 |
|
447 |
-
|
448 |
-
preview_html += '<div class="tmm_photo" style="background: url(' + fields.photoUrl + '); margin-left:auto; margin-right:auto; background-size:cover !important;"
|
449 |
|
450 |
if (fields.photoLinkUrl)
|
451 |
preview_html += '</a>';
|
@@ -583,7 +584,7 @@ $(document).ready(function (){
|
|
583 |
|
584 |
|
585 |
/* Debounce function for fallback keyup. */
|
586 |
-
//http://davidwalsh.name/javascript-debounce-function
|
587 |
function debounce(func, wait, immediate) {
|
588 |
var timeout;
|
589 |
return function() {
|
112 |
$('.dmb_img_data_url').each(function(i, obj) {
|
113 |
var imgUrl = $(this).attr("data-img");
|
114 |
if (imgUrl != ''){
|
115 |
+
$("<a class='dmb_remove_img_btn dmb_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter($(this).parent().find('.dmb_upload_img_btn'));
|
116 |
}
|
117 |
});
|
118 |
|
186 |
},
|
187 |
multiple: false // for multiple image selection set to true
|
188 |
}).on('select', function() { // it also has "open" and "close" events
|
189 |
+
var attachment = custom_uploader.state().get('selection').first().toJSON();
|
190 |
+
button.siblings('img, .dmb_remove_img_btn, .dashicons-trash').remove();
|
191 |
+
$("<a class='dmb_remove_img_btn dmb_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></span></a><img src='"+attachment.url+"' class='dmb_img'/>").insertAfter(button);
|
192 |
button.siblings('.dmb_img_data_url').attr('data-img', attachment.url).trigger('change');
|
193 |
})
|
194 |
.open();
|
232 |
});
|
233 |
|
234 |
|
235 |
+
/* Expands/collapses handle. */
|
236 |
$('.dmb_handle').click(function(e) {
|
237 |
|
238 |
$(this).siblings('.dmb_inner').slideToggle(50);
|
356 |
|
357 |
if (!wasCloned) { wasCloned = false; }
|
358 |
|
359 |
+
/* Makes current title. */
|
360 |
var firstnameField = firstnameField,
|
361 |
lastname = firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val() || '';
|
362 |
handleTitle = firstnameField.closest('.dmb_main').find('.dmb_handle_title');
|
372 |
|
373 |
|
374 |
/* Watches member firstname/lastname and updates handle. */
|
375 |
+
$('body').on('keyup', '.dmb_firstname_of_member', function(e) { updateHandleTitle($(this)); });
|
376 |
$('body').on('keyup', '.dmb_lastname_of_member', function(e) {
|
377 |
firstnameField = $(this).closest('.dmb_main').find('.dmb_firstname_of_member');
|
378 |
updateHandleTitle(firstnameField);
|
397 |
|
398 |
/* Prepares the output. */
|
399 |
preview_html += '<div class="tmm" style="margin-top: 100px;">';
|
400 |
+
preview_html += '<div class="tmm_' + settings.columns + '_columns tmm_wrap tmm_plugin_f">';
|
401 |
|
402 |
$('.dmb_main').not('.dmb_empty_row').each(function(i, obj){
|
403 |
|
445 |
if (fields.photoLinkUrl)
|
446 |
preview_html += '<a ' + settings.piclink_beh + ' href="' + fields.photoLinkUrl + '" title="' + fields.firstname + ' ' + fields.lastname + '">';
|
447 |
|
448 |
+
if (fields.photoUrl)
|
449 |
+
preview_html += '<div class="tmm_photo tmm_pic_' + i + '" style="background: url(' + fields.photoUrl + '); margin-left: auto; margin-right:auto; background-size:cover !important;"><img src="' + fields.photoUrl + '" style="visibility: hidden; width:100%;" /></div>';
|
450 |
|
451 |
if (fields.photoLinkUrl)
|
452 |
preview_html += '</a>';
|
584 |
|
585 |
|
586 |
/* Debounce function for fallback keyup. */
|
587 |
+
// http://davidwalsh.name/javascript-debounce-function
|
588 |
function debounce(func, wait, immediate) {
|
589 |
var timeout;
|
590 |
return function() {
|
inc/dmb/dmb.min.css
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
* Team Members Admin CSS (minified)
|
5 |
*/
|
6 |
|
7 |
-
.dmb_clearfix{clear:both}#acf-fallback-bio{width:100%;clear:both;height:100px;border-radius:4px;margin-top:2px}.dmb_feature_dump{display:none}.dmb_field,.dmb_main select,.dmb_side_select{font-size:12px;width:100%;border-radius:4px;margin-bottom:5px}.dmb_field{width:100%;padding:4px 8px;font-size:13px}.dmb_data_dump{display:none}.dmb_img_field{display:none}.dmb_img_data_url{display:none!important}.dmb_img{max-width:100%;margin-top:8px;display:block}.dmb_section_title{font-size:15px;color:#497bad;padding-bottom:4px;margin:15px 2px 2px;border-bottom:3px dashed #ddd;text-align:left}.dmb_field_title{margin-top:10px;margin-bottom:3px;color:#555;font-size:12px;padding-left:2px;display:inline-block;font-weight:400;line-height:15px}::-webkit-input-placeholder{color:#bbb}::-moz-placeholder{color:#bbb}:-ms-input-placeholder{color:#bbb}:-moz-placeholder{color:#bbb}.dmb_main{border-radius:4px;margin-top:10px}.dmb_main .dmb_inner{background:whitesmoke;padding:4px 10px 8px;border:1px solid #ddd;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.dmb_main .dmb_handle{padding:7px 7px 7px 10px;background:#aea8a0;border:1px solid #96938e!important;display:block;border-top-right-radius:3px;border-top-left-radius:3px}.dmb_main .dmb_handle .dmb_big_button_secondary{float:right;margin-left:8px;font-size:12px;line-height:20px;border-bottom:2px solid #ccc;border-right:1px solid #ccc}.dmb_main .dmb_handle .dmb_move_row_up,.dmb_main .dmb_handle .dmb_move_row_down{padding:3px;float:left;margin-left:0;margin-right:8px}.dmb_main .dmb_handle .dmb_move_row_up{margin-right:0;border-bottom-right-radius:0;border-top-right-radius:0}.dmb_main .dmb_handle .dmb_move_row_down{border-bottom-left-radius:0;border-top-left-radius:0}.dmb_main .dmb_handle.closed{border-radius:3px;border-bottom:none}.dmb_main .dmb_handle.closed{border-radius:3px;border-bottom:none}.dmb_main .dmb_handle .dmb_handle_title{margin-top:4px;float:left;color:white;text-shadow:0 -1px 1px #8b847d,1px 0 1px #8b847d,0 1px 1px #8b847d,-1px 0 1px #8b847d;font-weight:300;font-size:18px;box-sizing:border-box}#dmb_preview_team{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;background:#ddd;z-index:100000;padding:0 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}.dmb_accuracy_preview_notice{text-align:center;line-height:25px;background:white;border-radius:4px;padding:14px 30px;max-width:500px;margin:0 auto;font-size:15px;margin-top:60px;margin-bottom:80px}.dmb_no_row_preview_notice{background:white;border-radius:4px;padding:20px 40px;max-width:500px;margin:0 auto;font-size:20px;margin-top:120px}.dmb_tip{padding-left:2px;font-size:12px;color:#999;line-height:15px;margin-top:8px}.dmb_tip .dashicons{font-size:17px;height:17px}.dmb_tip a,.dmb_inline_tip{color:#0073AA;cursor:pointer}.dmb_big_button_primary{text-shadow:0 -1px 1px #849d3a,1px 0 1px #849d3a,0 1px 1px #849d3a,-1px 0 1px #849d3a;padding:8px 6px 5px 10px;font-size:14px;background:#ACCE45;color:white;text-decoration:none;border-radius:3px;border:1px solid #8ea93d;border-bottom:2px solid #8ea93d;border-right:1px solid #8ea93d;line-height:15px}.dmb_big_button_primary:hover,.dmb_big_button_primary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#b1d34a;color:white}.dmb_big_button_secondary{padding:3px 10px;font-size:13px;background:#fff;font-weight:500;color:#333;text-decoration:none;border-radius:3px;border-bottom:2px solid #ddd;border-right:1px solid #ddd}.dmb_big_button_secondary:hover,.dmb_big_button_secondary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;color:#555}.dmb_big_button_secondary.dmb_remove_row_btn{padding:3px 3px 3px 4px}.dmb_small_button_primary{margin:5px 1px;text-shadow:0 -1px 1px #497bad,1px 0 1px #497bad,0 1px 1px #497bad,-1px 0 1px #497bad;padding:4px 4px 1px;line-height:17px;font-size:12px;background:#5690CA;color:white;text-decoration:none;border-radius:3px;border:1px solid #497bad;border-bottom:2px solid #497bad;border-right:1px solid #497bad}.dmb_small_button_primary:hover,.dmb_small_button_primary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#5a97d4;color:white}.dmb_preview_button{text-shadow:0 0 0 #a18023,1px 0 0 #a18023,0 1px 1px #a18023,0 0 1px #a18023;padding:3px 10px;font-size:13px;background:#f5c542;font-weight:400;cursor:pointer;color:white;text-decoration:none;border-radius:3px;border:1px solid #c39d2c;border-bottom:2px solid #c39d2c;border-right:1px solid #c39d2c}.dmb_preview_button:hover,.dmb_preview_button:focus{background-image:none;background:#ffcd43;outline:0;-webkit-box-shadow:none;box-shadow:none;color:white}.dmb_preview_button.dmb_preview_team_close{position:fixed;top:20px;right:40px;z-index:1;padding:10px 20px 13px;font-size:20px}.dmb_preview_button.dmb_preview_team_close .dashicons{font-size:20px}.dmb_small_button_secondary{padding:2px;margin-top:1px;line-height:18px;font-size:12px;background:#fff;font-weight:500;color:#333;text-decoration:none;border-radius:3px;border-bottom:2px solid #ddd;border-right:1px solid #ddd}.dmb_small_button_secondary:hover,.dmb_small_button_secondary:focus{background-image:none;outline:0;opacity:1;-webkit-box-shadow:none;box-shadow:none;color:#555}.dmb_small_button_secondary.dmb_remove_feature_btn{position:relative;top:4px;padding:11px 2px 0 3px}.dmb_upload_img_btn{display:inline-block;cursor:pointer;margin-bottom:0}.dmb_upload_img_btn .dashicons{position:relative;top:-2px}.dmb_remove_img_btn{display:inline-block;position:relative;top:-2px;margin-left:3px}.dmb_add_row{margin:0 auto;margin-top:10px;display:inline-block}.dmb_no_row_notice{background:whitesmoke;border-radius:4px;padding:30px 10px;margin-top:10px;text-align:center;font-size:14px;line-height:25px;border:1px solid #ddd}.dmb_add_feature{margin-top:5px;margin-bottom:5px;display:inline-block}.dmb_grid{float:left;padding-left:6px;box-sizing:border-box;padding-right:6px}.dmb_grid_20{width:20%}.dmb_grid_25{width:25%}.dmb_grid_33{width:33%}.dmb_grid_35{width:35%}.dmb_grid_40{width:40%}.dmb_grid_50{width:50%}.dmb_grid_60{width:60%}.dmb_grid_100{width:99%}.dmb_description_of_member{width:100%!important}.dmb_grid_first{padding-left:0}.dmb_grid_last{padding-right:0}.dmb_color_picker{padding:3px!important}.wp-picker-container{position:relative}.wp-picker-clear{display:none!important}.wp-picker-container,.wp-picker-container:active{display:block;z-index:9999}.iris-picker{position:absolute!important;bottom:33px!important;left:80!important;background:white!important}.dmb_toolbar{display:block;text-align:left;background:whitesmoke;margin-top:10px;border-radius:4px;border:1px solid #ddd}.dmb_toolbar .dmb_toolbar_inner{display:block;padding:7px 7px 6px}.dmb_toolbar .dmb_toolbar_inner .dmb_collapse_rows,.dmb_toolbar .dmb_toolbar_inner .dmb_expand_rows{float:left;margin-right:7px}.dmb_toolbar .dmb_toolbar_inner .dmb_preview_button{float:right;margin-left:7px}.dmb_toolbar .dashicons{line-height:20px!important}.dmb_side_block_title,.dmb_help_title{font-size:14px;margin-top:4px;margin-bottom:2px;font-weight:500;color:#222}.dmb_help_title{margin-bottom:10px}.dmb_side_block{margin-top:10px}.dmb_side_block a{text-decoration:none}.dmb_see_pro{display:inline-block;margin-top:10px;padding-bottom:8px}[data-tooltip]{position:relative;z-index:2;cursor:pointer}[data-tooltip]:before,[data-tooltip]:after{visibility:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;pointer-events:none}[data-tooltip]:before{position:absolute;bottom:150%;left:50%;margin-bottom:5px;margin-left:-80px;padding:7px;padding-left:14px;width:160px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;background-color:hsla(0,0%,20%,.9);color:#fff;content:attr(data-tooltip);text-align:left;font-size:12px;line-height:16px}.dmb_tooltip_large[data-tooltip]:before{width:320px}.dmb_tooltip_medium[data-tooltip]:before{width:220px}.dmb_tooltip_small[data-tooltip]:before{width:180px}[data-tooltip]:after{position:absolute;bottom:150%;left:50%;margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid hsla(0,0%,20%,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-tooltip]:hover:before,[data-tooltip]:hover:after{visibility:visible;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}@media only screen and (max-width :850px){.dmb_grid_20,.dmb_grid_25,.dmb_grid_33,.dmb_grid_35,.dmb_grid_40,.dmb_grid_50,.dmb_grid_60,.dmb_grid_100{padding-right:0;padding-left:0;width:100%}}#tmm_pro h2.hndle{background:#ACCE45;color:white;font-weight:400;border:1px solid #9ebd43!important;text-shadow:0 0 1px #849d3a,0 0 1px #849d3a,0 1px 1px #849d3a,0 0 1px #849d3a}#tmm_pro h2.hndle .dashicons{color:white!important}#tmm_pro .toggle-indicator{color:white!important}#dmb_unique_editor{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;background:#ddd;z-index:100000;padding:5% 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}#wp-dmb_editor-wrap{padding:20px;background:rgba(255,255,255,.5)}.dmb_ue_update{margin-top:2px;text-shadow:0 0 0 #a18023,1px 0 0 #a18023,0 1px 1px #a18023,0 0 1px #a18023;background:#f5c542;font-weight:400;cursor:pointer;color:white;text-decoration:none;border-radius:3px;border:1px solid #c39d2c;border-bottom:2px solid #c39d2c;border-right:1px solid #c39d2c;padding:10px 20px;display:inline-block;font-size:20px}.dmb_ue_update:hover,.dmb_ue_update:focus{background-image:none;background:#ffcd43;outline:0;-webkit-box-shadow:none;box-shadow:none;color:white}.dmb_ue_cancel{margin-top:2px;margin-left:20px;background:#fff;font-weight:400;cursor:pointer;color:#444;text-decoration:none;border-radius:3px;border:1px solid #ccc;border-bottom:2px solid #bbb;border-right:1px solid #ccc;padding:10px 20px;display:inline-block;font-size:20px}.dmb_ue_cancel:hover,.dmb_ue_cancel:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none}.dmb_edit_description_of_member{display:inline-block;cursor:pointer}.dmb_description_of_member{border:1px solid #e2e2e2;margin:5px 0;margin-left:1px;margin-right:5px;box-sizing:border-box;padding:10px 20px;min-height:30px;background:white;border-radius:0;max-height:240px;width:99%;overflow-y:scroll;border-radius:3px}.dmb_edit_description_of_member .dashicons{position:relative;top:-2px}
|
4 |
* Team Members Admin CSS (minified)
|
5 |
*/
|
6 |
|
7 |
+
.dmb_clearfix{clear:both}#acf-fallback-bio{width:100%;clear:both;height:100px;border-radius:4px;margin-top:2px}.dmb_feature_dump{display:none}.dmb_main select,.dmb_side_select{width:100%;margin-bottom:5px}.dmb_field{width:100%}.dmb_data_dump{display:none}.dmb_img_field{display:none}.dmb_img_data_url{display:none!important}.dmb_img{max-width:100%;max-height:160px;margin-top:8px;display:block}.dmb_section_title{font-size:20px;color:#7a7a78;padding-bottom:4px;margin:15px 2px 2px;border-bottom:3px dashed #ddd;text-align:left}.dmb_sidebar .dmb_field_title{font-size:13px}.dmb_field_title{margin-top:10px;margin-bottom:3px;color:#555;font-size:15px;padding-left:2px;display:inline-block;font-weight:400;line-height:19px}::-webkit-input-placeholder{color:#bbb}::-moz-placeholder{color:#bbb}:-ms-input-placeholder{color:#bbb}:-moz-placeholder{color:#bbb}.dmb_main{margin-top:10px}.dmb_main .dmb_inner{background:whitesmoke;padding:4px 10px 8px;border:1px solid #ddd;border-top:none}.dmb_main .dmb_handle{padding:8px 12px;background:white;border:1px solid #ccd0d4!important;display:block}.dmb_main .dmb_handle.closed{border-bottom:none}.dmb_main .dmb_handle .dmb_handle_title{margin-top:4px;float:left;color:#23282d;font-weight:400;font-size:18px;box-sizing:border-box}#dmb_preview_team{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;padding-bottom:90px;background:#eee;z-index:100000;padding:0 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}.dmb_accuracy_preview_notice{background:white;padding:20px 30px;margin-top:10px;text-align:center;font-size:17px;line-height:27px;font-weight:400;border:1px solid #ddd;margin-top:60px;margin-bottom:80px;max-width:550px;margin:0 auto}.dmb_no_row_preview_notice{background:white;padding:20px 30px;margin-top:10px;text-align:center;font-size:17px;line-height:27px;font-weight:400;border:1px solid #ddd;margin-top:60px;margin-bottom:80px;max-width:550px;margin:0 auto;margin-top:120px}.dmb_tip{padding-left:2px;font-size:14px;color:#999;line-height:23px;margin-top:8px}.dmb_tip .dashicons{font-size:24px;height:17px}.dmb_tip a,.dmb_inline_tip{color:#0073AA;cursor:pointer}.dmb_button{font-size:13px;line-height:2;padding:2px 10px 3px;display:inline-block;text-decoration:none;margin:0;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;min-height:30px;text-decoration:none;text-shadow:none;background:whitesmoke;border-color:lightgrey;color:#23282d}.dmb_button:hover,.dmb_button:active,.dmb_button:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#eceaea;color:#23282d}.dmb_button_large .dashicons{position:relative;top:4px}.dmb_button_large{font-size:13px;line-height:2.15384615;padding:0 12px 2px}.dmb_button_huge{font-size:16px;line-height:2.28384615;padding:0 15px 3px}.dmb_button_compact{padding:0 4px 2px}.dmb_button_blue{background:#007cba;border-color:#007cba;color:#fff}.dmb_button_blue:active,.dmb_button_blue:hover,.dmb_button_blue:focus{background:#00669b;color:white}.dmb_button_green{background:#81c240;border-color:#81c240;color:#fff}.dmb_button_green:active,.dmb_button_green:hover,.dmb_button_green:focus{background:#75b03a;color:white}.dmb_button_gold{background:#edb50c;border-color:#edb50c;color:#fff}.dmb_button_gold:hover,.dmb_button_gold:hover,.dmb_button_gold:focus{background:#e3ab02;color:white}.dmb_ue_update{margin-right:10px}#dmb_preview_team .dmb_preview_team_close{position:fixed;top:20px;right:40px;z-index:1}.dmb_clone_row,.dmb_remove_row_btn{float:right}.dmb_move_row_up,.dmb_move_row_down{float:left}.dmb_move_row_down{margin-left:7px;margin-right:12px}.dmb_remove_row_btn{margin-left:7px}.dmb_see_pro{margin-top:10px}.dmb_upload_img_btn{margin-top:4px}.dmb_remove_img_btn{margin-left:7px}.dmb_add_row{margin:0 auto;margin-top:10px;display:inline-block}.dmb_no_row_notice{background:whitesmoke;padding:50px 10px;margin-top:10px;text-align:center;font-size:20px;line-height:36px;font-weight:400;border:1px solid #ddd}.dmb_add_feature{margin-top:5px;margin-bottom:5px;display:inline-block}.dmb_grid{float:left;padding-left:6px;box-sizing:border-box;padding-right:6px}.dmb_grid_20{width:20%}.dmb_grid_25{width:25%}.dmb_grid_33{width:33%}.dmb_grid_35{width:35%}.dmb_grid_40{width:40%}.dmb_grid_50{width:50%}.dmb_grid_60{width:60%}.dmb_grid_100{width:99%}.dmb_description_of_member{width:100%!important}.dmb_grid_first{padding-left:0}.dmb_grid_last{padding-right:0}.dmb_color_picker{padding:3px!important}.wp-picker-container{position:relative}.wp-picker-clear{display:none!important}.wp-picker-container,.wp-picker-container:active{display:block;z-index:9999}.iris-picker{position:absolute!important;bottom:33px!important;left:80!important;background:white!important}.dmb_toolbar{padding-top:4px;display:block;text-align:left}.dmb_toolbar .dmb_expand_rows{margin-right:10px}.dmb_toolbar .dmb_collapse_rows,.dmb_toolbar .dmb_expand_rows{float:left;margin-right:7px;margin-top:9px}.dmb_toolbar .dmb_show_preview_team{float:right;margin-left:7px}.dmb_side_block_title,.dmb_help_title{font-size:14px;margin-top:4px;margin-bottom:2px;font-weight:500;color:#555}.dmb_side_block_title{font-weight:400}.dmb_help_title{margin-bottom:10px}.dmb_side_block{padding-bottom:2px;margin-top:10px}.dmb_side_block a{text-decoration:none}[data-tooltip]{position:relative;z-index:2;cursor:pointer}[data-tooltip]:before,[data-tooltip]:after{visibility:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;pointer-events:none}[data-tooltip]:before{position:absolute;bottom:150%;left:50%;margin-bottom:5px;margin-left:-80px;padding:7px;padding-left:14px;width:160px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;background-color:hsla(0,0%,20%,.9);color:#fff;content:attr(data-tooltip);text-align:left;font-size:12px;line-height:16px}.dmb_tooltip_large[data-tooltip]:before{width:320px}.dmb_tooltip_medium[data-tooltip]:before{width:220px}.dmb_tooltip_small[data-tooltip]:before{width:180px}[data-tooltip]:after{position:absolute;bottom:150%;left:50%;margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid hsla(0,0%,20%,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-tooltip]:hover:before,[data-tooltip]:hover:after{visibility:visible;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}@media only screen and (max-width :850px){.dmb_grid_20,.dmb_grid_25,.dmb_grid_33,.dmb_grid_35,.dmb_grid_40,.dmb_grid_50,.dmb_grid_60,.dmb_grid_100{padding-right:0;padding-left:0;width:100%}}#dmb_unique_editor{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;background:#ddd;z-index:100000;padding:5% 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}#wp-dmb_editor-wrap{padding:20px;background:rgba(255,255,255,.5)}.dmb_description_of_member{border:1px solid #e2e2e2;margin:5px 0;margin-left:1px;margin-right:5px;box-sizing:border-box;padding:10px 20px;min-height:30px;background:white;max-height:240px;width:99%;overflow-y:scroll}.dmb_edit_description_of_member{margin-top:7px!important}.dmb_discount_box_pushr{height:60px}.dmb_discount_box{background:whitesmoke;border-top:1px solid #ddd;padding:2px 16px 8px 11px;position:absolute;bottom:0;left:0;right:0}#tmm_pro .hndle{padding:8px 12px;background:#81c240;color:white}#tmm_pro strong{color:black}
|
inc/dmb/dmb.min.js
CHANGED
@@ -6,19 +6,19 @@
|
|
6 |
function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
|
7 |
$('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function dmbGatherData(keyUpParam){var member=keyUpParam.closest('.dmb_main'),firstname=member.find('.dmb_firstname_of_member').val()||'',lastname=member.find('.dmb_lastname_of_member').val()||'',job=member.find('.dmb_job_of_member').val()||'';if($('#acf-fallback-bio').length){description=$.trim(member.find('.dmb_description_of_member_fb').text())||''}else{description=$.trim(member.find('.dmb_description_of_member').html())||''}
|
8 |
var sclType1=member.find('.dmb_scl_type1_of_member').val()||'',sclTitle1=member.find('.dmb_scl_title1_of_member').val()||'',sclUrl1=member.find('.dmb_scl_url1_of_member').val()||'',sclType2=member.find('.dmb_scl_type2_of_member').val()||'',sclTitle2=member.find('.dmb_scl_title2_of_member').val()||'',sclUrl2=member.find('.dmb_scl_url2_of_member').val()||'',sclType3=member.find('.dmb_scl_type3_of_member').val()||'',sclTitle3=member.find('.dmb_scl_title3_of_member').val()||'',sclUrl3=member.find('.dmb_scl_url3_of_member').val()||'',memberPhoto=member.find('.dmb_img_data_url').attr('data-img')||'',memberPhotoUrl=member.find('.dmb_photo_url_of_member').val()||'',dataDump=member.find('.dmb_data_dump');dataDump.val(firstname+']--['+lastname+']--['+job+']--['+description+']--['+sclType1+']--['+sclTitle1+']--['+sclUrl1+']--['+sclType2+']--['+sclTitle2+']--['+sclUrl2+']--['+sclType3+']--['+sclTitle3+']--['+sclUrl3+']--['+memberPhoto+']--['+memberPhotoUrl)}
|
9 |
-
$('body').on('keyup','.dmb_field',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_scl_type_select',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_img_data_url',function(e){dmbGatherData($(this))});$('.dmb_img_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-img");if(imgUrl!=''){$("<a class='dmb_remove_img_btn
|
10 |
$(this).html($.parseHTML($(this).text()))});dmbGatherData($(this).find('.dmb_field').first())});function refreshRowCountRelatedUI(){if($('.dmb_main').not('.dmb_empty_row').length>0){$('.dmb_no_row_notice').hide()}else{$('.dmb_no_row_notice').show()}}
|
11 |
-
refreshRowCountRelatedUI();$('body').on('click','.dmb_remove_img_btn',function(e){$(this).parent().find('.dmb_img').remove();$(this).parent().find('.dmb_img_data_url').attr('data-img','').trigger('change');$(this).remove();return!1});$('.dmb_upload_img_btn').click(function(e){e.preventDefault();var button=$(this),custom_uploader=wp.media({title:'Insert image',library:{type:'image'},button:{text:'Use this image'},multiple:!1}).on('select',function(){var attachment=custom_uploader.state().get('selection').first().toJSON();$("<a class='dmb_remove_img_btn
|
12 |
return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertBefore($(this).closest('.dmb_main').prev());$(this).closest('.dmb_main').remove()}
|
13 |
return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_firstname_of_member').val()+' ('+objectL10n.copy+')');clone.find('.dmb_firstname_of_member').focus();updateHandleTitle(clone.find('.dmb_firstname_of_member'),!0);refreshRowCountRelatedUI();return!1});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){if($(this).find('.dmb_firstname_of_member').val()!=''){var handleTitle=$(this).find('.dmb_handle_title'),firstname=$(this).find('.dmb_firstname_of_member').val(),lastname=$(this).find('.dmb_lastname_of_member').val();handleTitle.html(firstname+' '+lastname)}});function updateHandleTitle(firstnameField,wasCloned){if(!wasCloned){wasCloned=!1}
|
14 |
var firstnameField=firstnameField,lastname=firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val()||'';handleTitle=firstnameField.closest('.dmb_main').find('.dmb_handle_title');cloneCopyText='';(wasCloned)?cloneCopyText=' copy':cloneCopyText='';(firstnameField.val()!='')?handleTitle.html(firstnameField.val()+' '+lastname+cloneCopyText):handleTitle.html(objectL10n.untitled+cloneCopyText)}
|
15 |
-
$('
|
16 |
fields.scl_type1=$(this).find(".dmb_scl_type1_of_member").find(":selected").val();fields.scl_title1=$(this).find(".dmb_scl_title1_of_member").val();fields.scl_url1=$(this).find(".dmb_scl_url1_of_member").val();fields.scl_type2=$(this).find(".dmb_scl_type2_of_member").find(":selected").val();fields.scl_title2=$(this).find(".dmb_scl_title2_of_member").val();fields.scl_url2=$(this).find(".dmb_scl_url2_of_member").val();fields.scl_type3=$(this).find(".dmb_scl_type3_of_member").find(":selected").val();fields.scl_title3=$(this).find(".dmb_scl_title3_of_member").val();fields.scl_url3=$(this).find(".dmb_scl_url3_of_member").val();fields.photoUrl=$(this).find(".dmb_img").attr('src');fields.photoLinkUrl=$(this).find(".dmb_photo_url_of_member").val();if(i%2==0){preview_html+='<span class="tmm_two_containers_tablet"></span>'}
|
17 |
if(i%settings.columns==0){if(i>0){preview_html+='</div><span class="tmm_columns_containers_desktop"></span>'}
|
18 |
preview_html+='<div class="tmm_container">'}
|
19 |
preview_html+='<div class="tmm_member" style="border-top:'+settings.color+' solid 5px;">';if(fields.photoLinkUrl)
|
20 |
preview_html+='<a '+settings.piclink_beh+' href="'+fields.photoLinkUrl+'" title="'+fields.firstname+' '+fields.lastname+'">';if(fields.photoUrl)
|
21 |
-
preview_html+='<div class="tmm_photo" style="background: url('+fields.photoUrl+'); margin-left:auto; margin-right:auto; background-size:cover !important;"
|
22 |
preview_html+='</a>';preview_html+='<div class="tmm_textblock">';preview_html+='<div class="tmm_names">';if(fields.firstname){preview_html+='<span class="tmm_fname">'+fields.firstname+'</span> '}
|
23 |
if(fields.lastname){preview_html+='<span class="tmm_lname">'+fields.lastname+'</span>'}
|
24 |
preview_html+='</div>';if(fields.job){preview_html+='<div class="tmm_job">'+fields.job+'</div>'}
|
6 |
function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
|
7 |
$('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function dmbGatherData(keyUpParam){var member=keyUpParam.closest('.dmb_main'),firstname=member.find('.dmb_firstname_of_member').val()||'',lastname=member.find('.dmb_lastname_of_member').val()||'',job=member.find('.dmb_job_of_member').val()||'';if($('#acf-fallback-bio').length){description=$.trim(member.find('.dmb_description_of_member_fb').text())||''}else{description=$.trim(member.find('.dmb_description_of_member').html())||''}
|
8 |
var sclType1=member.find('.dmb_scl_type1_of_member').val()||'',sclTitle1=member.find('.dmb_scl_title1_of_member').val()||'',sclUrl1=member.find('.dmb_scl_url1_of_member').val()||'',sclType2=member.find('.dmb_scl_type2_of_member').val()||'',sclTitle2=member.find('.dmb_scl_title2_of_member').val()||'',sclUrl2=member.find('.dmb_scl_url2_of_member').val()||'',sclType3=member.find('.dmb_scl_type3_of_member').val()||'',sclTitle3=member.find('.dmb_scl_title3_of_member').val()||'',sclUrl3=member.find('.dmb_scl_url3_of_member').val()||'',memberPhoto=member.find('.dmb_img_data_url').attr('data-img')||'',memberPhotoUrl=member.find('.dmb_photo_url_of_member').val()||'',dataDump=member.find('.dmb_data_dump');dataDump.val(firstname+']--['+lastname+']--['+job+']--['+description+']--['+sclType1+']--['+sclTitle1+']--['+sclUrl1+']--['+sclType2+']--['+sclTitle2+']--['+sclUrl2+']--['+sclType3+']--['+sclTitle3+']--['+sclUrl3+']--['+memberPhoto+']--['+memberPhotoUrl)}
|
9 |
+
$('body').on('keyup','.dmb_field',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_scl_type_select',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_img_data_url',function(e){dmbGatherData($(this))});$('.dmb_img_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-img");if(imgUrl!=''){$("<a class='dmb_remove_img_btn dmb_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter($(this).parent().find('.dmb_upload_img_btn'))}});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){$(this).find('.dmb_description_of_member').each(function(i,obj){if($.trim($(this).text())==''){$(this).hide()}else{$(this).show()}
|
10 |
$(this).html($.parseHTML($(this).text()))});dmbGatherData($(this).find('.dmb_field').first())});function refreshRowCountRelatedUI(){if($('.dmb_main').not('.dmb_empty_row').length>0){$('.dmb_no_row_notice').hide()}else{$('.dmb_no_row_notice').show()}}
|
11 |
+
refreshRowCountRelatedUI();$('body').on('click','.dmb_remove_img_btn',function(e){$(this).parent().find('.dmb_img').remove();$(this).parent().find('.dmb_img_data_url').attr('data-img','').trigger('change');$(this).remove();return!1});$('.dmb_upload_img_btn').click(function(e){e.preventDefault();var button=$(this),custom_uploader=wp.media({title:'Insert image',library:{type:'image'},button:{text:'Use this image'},multiple:!1}).on('select',function(){var attachment=custom_uploader.state().get('selection').first().toJSON();button.siblings('img, .dmb_remove_img_btn, .dashicons-trash').remove();$("<a class='dmb_remove_img_btn dmb_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></span></a><img src='"+attachment.url+"' class='dmb_img'/>").insertAfter(button);button.siblings('.dmb_img_data_url').attr('data-img',attachment.url).trigger('change')}).open()});$('.dmb_add_row').on('click',function(){var row=$('.dmb_empty_row').clone(!0);row.removeClass('dmb_empty_row').addClass('dmb_main').show();row.insertBefore($('.dmb_empty_row'));row.find('.dmb_firstname_of_member').focus();row.find('.dmb_color_picker_ready').removeClass('.dmb_color_picker_ready').addClass('.dmb_color_picker').wpColorPicker().css({'padding':'3px'});row.find('.dmb_handle_title').html(objectL10n.untitled);row.find('.dmb_description_of_member').hide();refreshRowCountRelatedUI();return!1});$('.dmb_remove_row_btn').click(function(e){$(this).closest('.dmb_main').remove();refreshRowCountRelatedUI();return!1});$('.dmb_handle').click(function(e){$(this).siblings('.dmb_inner').slideToggle(50);($(this).hasClass('closed'))?$(this).removeClass('closed'):$(this).addClass('closed');return!1});$('.dmb_collapse_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if(!$(this).closest('.dmb_empty_row').length){if($(this).hasClass('closed')){}else{$(this).siblings('.dmb_inner').slideToggle(50);$(this).addClass('closed')}}});return!1});$('.dmb_expand_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if($(this).hasClass('closed')){$(this).siblings('.dmb_inner').slideToggle(50);$(this).removeClass('closed')}});return!1});$('.dmb_move_row_down').click(function(e){if($(this).closest('.dmb_main').next().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertAfter($(this).closest('.dmb_main').next());$(this).closest('.dmb_main').remove()}
|
12 |
return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertBefore($(this).closest('.dmb_main').prev());$(this).closest('.dmb_main').remove()}
|
13 |
return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_firstname_of_member').val()+' ('+objectL10n.copy+')');clone.find('.dmb_firstname_of_member').focus();updateHandleTitle(clone.find('.dmb_firstname_of_member'),!0);refreshRowCountRelatedUI();return!1});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){if($(this).find('.dmb_firstname_of_member').val()!=''){var handleTitle=$(this).find('.dmb_handle_title'),firstname=$(this).find('.dmb_firstname_of_member').val(),lastname=$(this).find('.dmb_lastname_of_member').val();handleTitle.html(firstname+' '+lastname)}});function updateHandleTitle(firstnameField,wasCloned){if(!wasCloned){wasCloned=!1}
|
14 |
var firstnameField=firstnameField,lastname=firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val()||'';handleTitle=firstnameField.closest('.dmb_main').find('.dmb_handle_title');cloneCopyText='';(wasCloned)?cloneCopyText=' copy':cloneCopyText='';(firstnameField.val()!='')?handleTitle.html(firstnameField.val()+' '+lastname+cloneCopyText):handleTitle.html(objectL10n.untitled+cloneCopyText)}
|
15 |
+
$('body').on('keyup','.dmb_firstname_of_member',function(e){updateHandleTitle($(this))});$('body').on('keyup','.dmb_lastname_of_member',function(e){firstnameField=$(this).closest('.dmb_main').find('.dmb_firstname_of_member');updateHandleTitle(firstnameField)});$('.dmb_show_preview_team').click(function(){var settings={};var team={};var preview_html='';settings.columns=$("select[name='team_columns'] option:selected").val();settings.bio_alignment=$("select[name='team_bio_align'] option:selected").val();settings.piclink_beh=$("select[name='team_piclink_beh'] option:selected").val();settings.piclink_beh=='new'?team.plb='target="_blank"':team.plb='';settings.color=dmb_rgb2hex($('.dmb_color_of_team').find(".wp-color-result").css('backgroundColor'))||'#8dba09';team.memberCount=$('.dmb_main').not('.dmb_empty_row').size();preview_html+='<div class="tmm" style="margin-top: 100px;">';preview_html+='<div class="tmm_'+settings.columns+'_columns tmm_wrap tmm_plugin_f">';$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){var fields={};fields.firstname=$(this).find(".dmb_firstname_of_member").val();fields.lastname=$(this).find(".dmb_lastname_of_member").val();fields.job=$(this).find(".dmb_job_of_member").val();if($('#acf-fallback-bio').length){fields.bio=$.trim($(this).find('.dmb_description_of_member_fb').text())||''}else{fields.bio=$.trim($(this).find('.dmb_description_of_member').html())||''}
|
16 |
fields.scl_type1=$(this).find(".dmb_scl_type1_of_member").find(":selected").val();fields.scl_title1=$(this).find(".dmb_scl_title1_of_member").val();fields.scl_url1=$(this).find(".dmb_scl_url1_of_member").val();fields.scl_type2=$(this).find(".dmb_scl_type2_of_member").find(":selected").val();fields.scl_title2=$(this).find(".dmb_scl_title2_of_member").val();fields.scl_url2=$(this).find(".dmb_scl_url2_of_member").val();fields.scl_type3=$(this).find(".dmb_scl_type3_of_member").find(":selected").val();fields.scl_title3=$(this).find(".dmb_scl_title3_of_member").val();fields.scl_url3=$(this).find(".dmb_scl_url3_of_member").val();fields.photoUrl=$(this).find(".dmb_img").attr('src');fields.photoLinkUrl=$(this).find(".dmb_photo_url_of_member").val();if(i%2==0){preview_html+='<span class="tmm_two_containers_tablet"></span>'}
|
17 |
if(i%settings.columns==0){if(i>0){preview_html+='</div><span class="tmm_columns_containers_desktop"></span>'}
|
18 |
preview_html+='<div class="tmm_container">'}
|
19 |
preview_html+='<div class="tmm_member" style="border-top:'+settings.color+' solid 5px;">';if(fields.photoLinkUrl)
|
20 |
preview_html+='<a '+settings.piclink_beh+' href="'+fields.photoLinkUrl+'" title="'+fields.firstname+' '+fields.lastname+'">';if(fields.photoUrl)
|
21 |
+
preview_html+='<div class="tmm_photo tmm_pic_'+i+'" style="background: url('+fields.photoUrl+'); margin-left: auto; margin-right:auto; background-size:cover !important;"><img src="'+fields.photoUrl+'" style="visibility: hidden; width:100%;" /></div>';if(fields.photoLinkUrl)
|
22 |
preview_html+='</a>';preview_html+='<div class="tmm_textblock">';preview_html+='<div class="tmm_names">';if(fields.firstname){preview_html+='<span class="tmm_fname">'+fields.firstname+'</span> '}
|
23 |
if(fields.lastname){preview_html+='<span class="tmm_lname">'+fields.lastname+'</span>'}
|
24 |
preview_html+='</div>';if(fields.job){preview_html+='<div class="tmm_job">'+fields.job+'</div>'}
|
inc/img/links/phone.png
ADDED
Binary file
|
inc/tmm-metaboxes-help.php
CHANGED
@@ -23,8 +23,8 @@ function dmb_tmm_help_display() { ?>
|
|
23 |
global $post;
|
24 |
$slug = '';
|
25 |
$slug = $post->post_name;
|
26 |
-
$shortcode = '<span style="display:inline-block;border:solid 2px
|
27 |
-
$shortcode_unpublished = "<span style='display:inline-block;color:#
|
28 |
echo ($slug != '') ? $shortcode : $shortcode_unpublished;
|
29 |
?>
|
30 |
</p>
|
@@ -37,8 +37,8 @@ function dmb_tmm_help_display() { ?>
|
|
37 |
<div class="dmb_help_title">
|
38 |
Get support
|
39 |
</div>
|
40 |
-
<a target="_blank" href="https://wpdarko.com/
|
41 |
-
<a target="_blank" href="https://wpdarko.com/
|
42 |
</div>
|
43 |
|
44 |
<?php } ?>
|
23 |
global $post;
|
24 |
$slug = '';
|
25 |
$slug = $post->post_name;
|
26 |
+
$shortcode = '<span style="display:inline-block;border:solid 2px #999999; background:white; padding:0 8px 2px; font-size:14px; line-height:25px; vertical-align:middle;">[tmm name="'.$slug.'"]</span>';
|
27 |
+
$shortcode_unpublished = "<span style='display:inline-block;color:#e17055'>" . /* translators: Leave HTML tags */ __("<strong>Publish</strong> your team before you can see you shortcode here!", TMM_TXTDM ) . "</span>";
|
28 |
echo ($slug != '') ? $shortcode : $shortcode_unpublished;
|
29 |
?>
|
30 |
</p>
|
37 |
<div class="dmb_help_title">
|
38 |
Get support
|
39 |
</div>
|
40 |
+
<a target="_blank" href="https://wpdarko.com/support/submit-a-request/">Submit a ticket</a><br/>
|
41 |
+
<a target="_blank" href="https://wpdarko.com/support">View documentation</a>
|
42 |
</div>
|
43 |
|
44 |
<?php } ?>
|
inc/tmm-metaboxes-members.php
CHANGED
@@ -15,7 +15,8 @@ function dmb_tmm_social_links_options() {
|
|
15 |
__('Tumblr', TMM_TXTDM ) => 'tumblr',
|
16 |
__('Research Gate', TMM_TXTDM ) => 'researchgate',
|
17 |
__('Email', TMM_TXTDM ) => 'email',
|
18 |
-
|
|
|
19 |
__('Other links', TMM_TXTDM ) => 'customlink'
|
20 |
);
|
21 |
return $options;
|
@@ -27,7 +28,7 @@ add_action('admin_init', 'dmb_tmm_add_team', 1);
|
|
27 |
function dmb_tmm_add_team() {
|
28 |
add_meta_box(
|
29 |
'tmm',
|
30 |
-
|
31 |
'dmb_tmm_team_display', // Below
|
32 |
'tmm',
|
33 |
'normal',
|
@@ -63,7 +64,7 @@ function dmb_tmm_team_display() {
|
|
63 |
|
64 |
<div id="dmb_preview_team">
|
65 |
<!-- Closes preview button. -->
|
66 |
-
<a class="
|
67 |
<?php _e('Close preview', TMM_TXTDM ) ?>
|
68 |
</a>
|
69 |
</div>
|
@@ -73,10 +74,10 @@ function dmb_tmm_team_display() {
|
|
73 |
<div id="dmb_unique_editor">
|
74 |
<?php wp_editor( '', 'dmb_editor', array('editor_height' => '300px' ) ); ?>
|
75 |
<br/>
|
76 |
-
<a class="
|
77 |
-
<?php _e('Update', TMM_TXTDM ) ?>
|
78 |
</a>
|
79 |
-
<a class="
|
80 |
<?php _e('Cancel', TMM_TXTDM ) ?>
|
81 |
</a>
|
82 |
</div>
|
@@ -85,12 +86,10 @@ function dmb_tmm_team_display() {
|
|
85 |
|
86 |
<!-- Toolbar for member metabox -->
|
87 |
<div class="dmb_toolbar">
|
88 |
-
<
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
<div class="dmb_clearfix"></div>
|
93 |
-
</div>
|
94 |
</div>
|
95 |
|
96 |
<?php if ( $team ) {
|
@@ -115,11 +114,11 @@ function dmb_tmm_team_display() {
|
|
115 |
|
116 |
<!-- Member handle bar -->
|
117 |
<div class="dmb_handle">
|
118 |
-
<a class="
|
119 |
-
<a class="
|
120 |
<div class="dmb_handle_title"></div>
|
121 |
-
<a class="
|
122 |
-
<a class="
|
123 |
<div class="dmb_clearfix"></div>
|
124 |
</div>
|
125 |
|
@@ -178,8 +177,8 @@ function dmb_tmm_team_display() {
|
|
178 |
<div class="dmb_clearfix"></div>
|
179 |
|
180 |
<?php if( !class_exists('acf') ) { ?>
|
181 |
-
<div class="dmb_edit_description_of_member
|
182 |
-
|
183 |
</div>
|
184 |
<?php } ?>
|
185 |
|
@@ -218,7 +217,7 @@ function dmb_tmm_team_display() {
|
|
218 |
<input class="dmb_field dmb_scl_url1_of_member" type="text" value="<?php echo $member['_tmm_sc_url1']; ?>" placeholder="<?php _e('e.g. http://fb.com/member-profile', TMM_TXTDM ) ?>" />
|
219 |
</div>
|
220 |
|
221 |
-
<div class="dmb_clearfix"></div>
|
222 |
|
223 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first">
|
224 |
<select class="dmb_scl_type_select dmb_scl_type2_of_member">
|
@@ -236,7 +235,7 @@ function dmb_tmm_team_display() {
|
|
236 |
<input class="dmb_field dmb_scl_url2_of_member" type="text" value="<?php echo $member['_tmm_sc_url2']; ?>" placeholder="<?php _e('e.g. http://tw.com/member-profile', TMM_TXTDM ) ?>" />
|
237 |
</div>
|
238 |
|
239 |
-
<div class="dmb_clearfix"></div>
|
240 |
|
241 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first dmb_grid_first">
|
242 |
<select class="dmb_scl_type_select dmb_scl_type3_of_member">
|
@@ -257,7 +256,8 @@ function dmb_tmm_team_display() {
|
|
257 |
<div class="dmb_clearfix"></div>
|
258 |
|
259 |
<div class="dmb_tip">
|
260 |
-
<span class="dashicons dashicons-yes"></span> Links with the email type open your visitors' mail client. <a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Your member\'s email address must be entered in the Link URL field. Title attribute can be left blank.', TMM_TXTDM ) ?>">[?]</a>
|
|
|
261 |
</div>
|
262 |
|
263 |
<div class="dmb_clearfix"></div>
|
@@ -270,20 +270,20 @@ function dmb_tmm_team_display() {
|
|
270 |
|
271 |
<div class="dmb_field_title">
|
272 |
<?php _e('Member\'s photo', TMM_TXTDM ) ?>
|
273 |
-
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('We recommend
|
274 |
</div>
|
275 |
|
276 |
-
<div>
|
277 |
-
<div class="dmb_field_title dmb_img_data_url
|
278 |
-
|
279 |
-
|
280 |
-
<?php _e('Upload photo', TMM_TXTDM )
|
281 |
</div>
|
282 |
</div>
|
283 |
|
284 |
</div>
|
285 |
|
286 |
-
<div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last">
|
287 |
<div class="dmb_field_title">
|
288 |
<?php _e('Photo link', TMM_TXTDM ) ?>
|
289 |
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Your visitors will be redirected to this link if they click the member\'s photo.', TMM_TXTDM ) ?>">[?]</a>
|
@@ -291,7 +291,7 @@ function dmb_tmm_team_display() {
|
|
291 |
<input class="dmb_field dmb_photo_url_of_member" type="text" value="<?php echo $member['_tmm_photo_url']; ?>" placeholder="<?php _e('e.g. http://your-site.com/full-member-page/', TMM_TXTDM ) ?>" />
|
292 |
</div>
|
293 |
|
294 |
-
<div class="dmb_clearfix"></div>
|
295 |
|
296 |
<!-- END inner -->
|
297 |
</div>
|
@@ -310,11 +310,11 @@ function dmb_tmm_team_display() {
|
|
310 |
|
311 |
<!-- Member handle bar -->
|
312 |
<div class="dmb_handle">
|
313 |
-
<a class="
|
314 |
-
<a class="
|
315 |
<div class="dmb_handle_title"></div>
|
316 |
-
<a class="
|
317 |
-
<a class="
|
318 |
<div class="dmb_clearfix"></div>
|
319 |
</div>
|
320 |
|
@@ -372,8 +372,8 @@ function dmb_tmm_team_display() {
|
|
372 |
<div class="dmb_clearfix"></div>
|
373 |
|
374 |
<?php if( !class_exists('acf') ) { ?>
|
375 |
-
<div class="dmb_edit_description_of_member
|
376 |
-
|
377 |
</div>
|
378 |
<?php } ?>
|
379 |
|
@@ -415,7 +415,7 @@ function dmb_tmm_team_display() {
|
|
415 |
<input class="dmb_field dmb_scl_url1_of_member" type="text" value="" placeholder="<?php _e('e.g. http://fb.com/member-profile', TMM_TXTDM ) ?>" />
|
416 |
</div>
|
417 |
|
418 |
-
<div class="dmb_clearfix"></div>
|
419 |
|
420 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first">
|
421 |
<select class="dmb_scl_type_select dmb_scl_type2_of_member">
|
@@ -433,7 +433,7 @@ function dmb_tmm_team_display() {
|
|
433 |
<input class="dmb_field dmb_scl_url2_of_member" type="text" value="" placeholder="<?php _e('e.g. http://tw.com/member-profile', TMM_TXTDM ) ?>" />
|
434 |
</div>
|
435 |
|
436 |
-
<div class="dmb_clearfix"></div>
|
437 |
|
438 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first">
|
439 |
<select class="dmb_scl_type_select dmb_scl_type3_of_member">
|
@@ -467,20 +467,19 @@ function dmb_tmm_team_display() {
|
|
467 |
|
468 |
<div class="dmb_field_title">
|
469 |
<?php _e('Member\'s photo', TMM_TXTDM ) ?>
|
470 |
-
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('We recommend
|
471 |
</div>
|
472 |
|
473 |
-
<div>
|
474 |
-
<div class="dmb_field_title dmb_img_data_url
|
475 |
-
<div class="dmb_upload_img_btn
|
476 |
-
|
477 |
-
<?php _e('Upload photo', TMM_TXTDM ) ?>
|
478 |
</div>
|
479 |
</div>
|
480 |
|
481 |
</div>
|
482 |
|
483 |
-
<div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last">
|
484 |
<div class="dmb_field_title">
|
485 |
<?php _e('Photo link', TMM_TXTDM ) ?>
|
486 |
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Your visitors will be redirected to this link if they click the member\'s photo.', TMM_TXTDM ) ?>">[?]</a>
|
@@ -488,7 +487,7 @@ function dmb_tmm_team_display() {
|
|
488 |
<input class="dmb_field dmb_photo_url_of_member" type="text" value="" placeholder="<?php _e('e.g. http://your-site.com/full-member-page/', TMM_TXTDM ) ?>" />
|
489 |
</div>
|
490 |
|
491 |
-
<div class="dmb_clearfix"></div>
|
492 |
|
493 |
<!-- END inner -->
|
494 |
</div>
|
@@ -499,13 +498,12 @@ function dmb_tmm_team_display() {
|
|
499 |
<div class="dmb_clearfix"></div>
|
500 |
|
501 |
<div class="dmb_no_row_notice">
|
502 |
-
<?php /* translators: Leave HTML tags */ _e('
|
503 |
</div>
|
504 |
|
505 |
<!-- Add row button -->
|
506 |
-
<a class="
|
507 |
-
|
508 |
-
<?php _e('Add a member', TMM_TXTDM ) ?>
|
509 |
</a>
|
510 |
|
511 |
<?php }
|
15 |
__('Tumblr', TMM_TXTDM ) => 'tumblr',
|
16 |
__('Research Gate', TMM_TXTDM ) => 'researchgate',
|
17 |
__('Email', TMM_TXTDM ) => 'email',
|
18 |
+
__('Website', TMM_TXTDM ) => 'website',
|
19 |
+
__('Phone', TMM_TXTDM ) => 'phone',
|
20 |
__('Other links', TMM_TXTDM ) => 'customlink'
|
21 |
);
|
22 |
return $options;
|
28 |
function dmb_tmm_add_team() {
|
29 |
add_meta_box(
|
30 |
'tmm',
|
31 |
+
__('Manage your team', TMM_TXTDM ),
|
32 |
'dmb_tmm_team_display', // Below
|
33 |
'tmm',
|
34 |
'normal',
|
64 |
|
65 |
<div id="dmb_preview_team">
|
66 |
<!-- Closes preview button. -->
|
67 |
+
<a class="dmb_button dmb_button_huge dmb_button_gold dmb_preview_team_close" href="#">
|
68 |
<?php _e('Close preview', TMM_TXTDM ) ?>
|
69 |
</a>
|
70 |
</div>
|
74 |
<div id="dmb_unique_editor">
|
75 |
<?php wp_editor( '', 'dmb_editor', array('editor_height' => '300px' ) ); ?>
|
76 |
<br/>
|
77 |
+
<a class="dmb_button dmb_button_huge dmb_button_blue dmb_ue_update" href="#">
|
78 |
+
<?php _e('Update biography', TMM_TXTDM ) ?>
|
79 |
</a>
|
80 |
+
<a class="dmb_button dmb_button_huge dmb_ue_cancel" href="#">
|
81 |
<?php _e('Cancel', TMM_TXTDM ) ?>
|
82 |
</a>
|
83 |
</div>
|
86 |
|
87 |
<!-- Toolbar for member metabox -->
|
88 |
<div class="dmb_toolbar">
|
89 |
+
<a class="dmb_button dmb_button_large dmb_expand_rows" href="#"><span class="dashicons dashicons-editor-expand"></span> <?php _e('Expand all', TMM_TXTDM ) ?></a>
|
90 |
+
<a class="dmb_button dmb_button_large dmb_collapse_rows" href="#"><span class="dashicons dashicons-editor-contract"></span> <?php _e('Collapse all', TMM_TXTDM ) ?></a>
|
91 |
+
<a class="dmb_show_preview_team dmb_button dmb_button_huge dmb_button_gold"><?php _e('Instant preview', TMM_TXTDM ) ?></a>
|
92 |
+
<div class="dmb_clearfix"></div>
|
|
|
|
|
93 |
</div>
|
94 |
|
95 |
<?php if ( $team ) {
|
114 |
|
115 |
<!-- Member handle bar -->
|
116 |
<div class="dmb_handle">
|
117 |
+
<a class="dmb_button dmb_button_large dmb_button_compact dmb_move_row_up" href="#" title="Move up"><span class="dashicons dashicons-arrow-up-alt2"></span></a>
|
118 |
+
<a class="dmb_button dmb_button_large dmb_button_compact dmb_move_row_down" href="#" title="Move down"><span class="dashicons dashicons-arrow-down-alt2"></span></a>
|
119 |
<div class="dmb_handle_title"></div>
|
120 |
+
<a class="dmb_button dmb_button_large dmb_button_compact dmb_remove_row_btn" href="#" title="Remove"><span class="dashicons dashicons-trash"></span></a>
|
121 |
+
<a class="dmb_button dmb_button_large dmb_clone_row" href="#" title="Clone"><span class="dashicons dashicons-admin-page"></span><?php _e('Clone', TMM_TXTDM ); ?></a>
|
122 |
<div class="dmb_clearfix"></div>
|
123 |
</div>
|
124 |
|
177 |
<div class="dmb_clearfix"></div>
|
178 |
|
179 |
<?php if( !class_exists('acf') ) { ?>
|
180 |
+
<div class="dmb_edit_description_of_member dmb_button dmb_button_large dmb_button_blue">
|
181 |
+
<?php _e('Edit biography', TMM_TXTDM ) ?>
|
182 |
</div>
|
183 |
<?php } ?>
|
184 |
|
217 |
<input class="dmb_field dmb_scl_url1_of_member" type="text" value="<?php echo $member['_tmm_sc_url1']; ?>" placeholder="<?php _e('e.g. http://fb.com/member-profile', TMM_TXTDM ) ?>" />
|
218 |
</div>
|
219 |
|
220 |
+
<div class="dmb_clearfix" style="margin-bottom:6px"></div>
|
221 |
|
222 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first">
|
223 |
<select class="dmb_scl_type_select dmb_scl_type2_of_member">
|
235 |
<input class="dmb_field dmb_scl_url2_of_member" type="text" value="<?php echo $member['_tmm_sc_url2']; ?>" placeholder="<?php _e('e.g. http://tw.com/member-profile', TMM_TXTDM ) ?>" />
|
236 |
</div>
|
237 |
|
238 |
+
<div class="dmb_clearfix" style="margin-bottom:6px"></div>
|
239 |
|
240 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first dmb_grid_first">
|
241 |
<select class="dmb_scl_type_select dmb_scl_type3_of_member">
|
256 |
<div class="dmb_clearfix"></div>
|
257 |
|
258 |
<div class="dmb_tip">
|
259 |
+
<span class="dashicons dashicons-yes"></span> <?php _e('Links with the email type open your visitors\' mail client.', TMM_TXTDM ); ?> <a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Your member\'s email address must be entered in the Link URL field. Title attribute can be left blank.', TMM_TXTDM ) ?>">[?]</a>
|
260 |
+
<br/><span class="dashicons dashicons-yes"></span> <?php _e('Links with the <strong>phone</strong> type open your visitors\' default phone app.', TMM_TXTDM ) ?> <a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Your member\'s phone number must be entered in the Link URL field (e.g. tel:+11234567890). Title attribute can be left blank.', TMM_TXTDM ) ?>">[?]</a>
|
261 |
</div>
|
262 |
|
263 |
<div class="dmb_clearfix"></div>
|
270 |
|
271 |
<div class="dmb_field_title">
|
272 |
<?php _e('Member\'s photo', TMM_TXTDM ) ?>
|
273 |
+
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('We recommend that all photos are the same sizes.', TMM_TXTDM ) ?>">[?]</a>
|
274 |
</div>
|
275 |
|
276 |
+
<div class="dmb_photo_of_member">
|
277 |
+
<div class="dmb_field_title dmb_img_data_url" data-img="<?php echo $member['_tmm_photo']; ?>">
|
278 |
+
</div>
|
279 |
+
<div class="dmb_upload_img_btn dmb_button dmb_button_large dmb_button_blue">
|
280 |
+
<?php _e('Upload photo', TMM_TXTDM ) ?>
|
281 |
</div>
|
282 |
</div>
|
283 |
|
284 |
</div>
|
285 |
|
286 |
+
<div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last" style="margin-top:7px;">
|
287 |
<div class="dmb_field_title">
|
288 |
<?php _e('Photo link', TMM_TXTDM ) ?>
|
289 |
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Your visitors will be redirected to this link if they click the member\'s photo.', TMM_TXTDM ) ?>">[?]</a>
|
291 |
<input class="dmb_field dmb_photo_url_of_member" type="text" value="<?php echo $member['_tmm_photo_url']; ?>" placeholder="<?php _e('e.g. http://your-site.com/full-member-page/', TMM_TXTDM ) ?>" />
|
292 |
</div>
|
293 |
|
294 |
+
<div class="dmb_clearfix" style="margin-bottom:6px"></div>
|
295 |
|
296 |
<!-- END inner -->
|
297 |
</div>
|
310 |
|
311 |
<!-- Member handle bar -->
|
312 |
<div class="dmb_handle">
|
313 |
+
<a class="dmb_button dmb_button_large dmb_button_compact dmb_move_row_up" href="#" title="Move up"><span class="dashicons dashicons-arrow-up-alt2"></span></a>
|
314 |
+
<a class="dmb_button dmb_button_large dmb_button_compact dmb_move_row_down" href="#" title="Move down"><span class="dashicons dashicons-arrow-down-alt2"></span></a>
|
315 |
<div class="dmb_handle_title"></div>
|
316 |
+
<a class="dmb_button dmb_button_large dmb_button_compact dmb_remove_row_btn" href="#" title="Remove"><span class="dashicons dashicons-trash"></span></a>
|
317 |
+
<a class="dmb_button dmb_button_large dmb_clone_row" href="#" title="Clone"><span class="dashicons dashicons-admin-page"></span><?php _e('Clone', TMM_TXTDM ); ?></a>
|
318 |
<div class="dmb_clearfix"></div>
|
319 |
</div>
|
320 |
|
372 |
<div class="dmb_clearfix"></div>
|
373 |
|
374 |
<?php if( !class_exists('acf') ) { ?>
|
375 |
+
<div class="dmb_edit_description_of_member dmb_button dmb_button_large dmb_button_blue">
|
376 |
+
<?php _e('Edit biography', TMM_TXTDM ) ?>
|
377 |
</div>
|
378 |
<?php } ?>
|
379 |
|
415 |
<input class="dmb_field dmb_scl_url1_of_member" type="text" value="" placeholder="<?php _e('e.g. http://fb.com/member-profile', TMM_TXTDM ) ?>" />
|
416 |
</div>
|
417 |
|
418 |
+
<div class="dmb_clearfix" style="margin-bottom:6px"></div>
|
419 |
|
420 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first">
|
421 |
<select class="dmb_scl_type_select dmb_scl_type2_of_member">
|
433 |
<input class="dmb_field dmb_scl_url2_of_member" type="text" value="" placeholder="<?php _e('e.g. http://tw.com/member-profile', TMM_TXTDM ) ?>" />
|
434 |
</div>
|
435 |
|
436 |
+
<div class="dmb_clearfix" style="margin-bottom:6px"></div>
|
437 |
|
438 |
<div class="dmb_grid dmb_grid_33 dmb_grid_first">
|
439 |
<select class="dmb_scl_type_select dmb_scl_type3_of_member">
|
467 |
|
468 |
<div class="dmb_field_title">
|
469 |
<?php _e('Member\'s photo', TMM_TXTDM ) ?>
|
470 |
+
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('We recommend that all photos are the same sizes.', TMM_TXTDM ) ?>">[?]</a>
|
471 |
</div>
|
472 |
|
473 |
+
<div class="dmb_photo_of_member">
|
474 |
+
<div class="dmb_field_title dmb_img_data_url" data-img=""></div>
|
475 |
+
<div class="dmb_upload_img_btn dmb_button dmb_button_large dmb_button_blue">
|
476 |
+
<?php _e('Upload photo', TMM_TXTDM ) ?>
|
|
|
477 |
</div>
|
478 |
</div>
|
479 |
|
480 |
</div>
|
481 |
|
482 |
+
<div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last" style="margin-top:7px;">
|
483 |
<div class="dmb_field_title">
|
484 |
<?php _e('Photo link', TMM_TXTDM ) ?>
|
485 |
<a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Your visitors will be redirected to this link if they click the member\'s photo.', TMM_TXTDM ) ?>">[?]</a>
|
487 |
<input class="dmb_field dmb_photo_url_of_member" type="text" value="" placeholder="<?php _e('e.g. http://your-site.com/full-member-page/', TMM_TXTDM ) ?>" />
|
488 |
</div>
|
489 |
|
490 |
+
<div class="dmb_clearfix" style="margin-bottom:6px"></div>
|
491 |
|
492 |
<!-- END inner -->
|
493 |
</div>
|
498 |
<div class="dmb_clearfix"></div>
|
499 |
|
500 |
<div class="dmb_no_row_notice">
|
501 |
+
<?php /* translators: Leave HTML tags */ _e('Click the <strong>Add a member</strong> button below to get started.', TMM_TXTDM ) ?>
|
502 |
</div>
|
503 |
|
504 |
<!-- Add row button -->
|
505 |
+
<a class="dmb_button dmb_button_huge dmb_button_green dmb_add_row" href="#">
|
506 |
+
<?php _e('Add a member', TMM_TXTDM ) ?>
|
|
|
507 |
</a>
|
508 |
|
509 |
<?php }
|
inc/tmm-metaboxes-pro.php
CHANGED
@@ -5,7 +5,7 @@ add_action('admin_init', 'dmb_tmm_add_pro', 1);
|
|
5 |
function dmb_tmm_add_pro() {
|
6 |
add_meta_box(
|
7 |
'tmm_pro',
|
8 |
-
'<span class="dashicons dashicons-
|
9 |
'dmb_tmm_pro_display', // Below
|
10 |
'tmm',
|
11 |
'side',
|
@@ -19,32 +19,37 @@ function dmb_tmm_pro_display() { ?>
|
|
19 |
|
20 |
<div class="dmb_side_block">
|
21 |
<div class="dmb_side_block_title">
|
22 |
-
|
23 |
</div>
|
24 |
-
Add a second photo that will show when hovering over the first one.
|
25 |
-
</div>
|
26 |
-
|
27 |
-
<div class="dmb_side_block">
|
28 |
<div class="dmb_side_block_title">
|
29 |
-
|
|
|
|
|
|
|
30 |
</div>
|
31 |
-
Add complementary info in a hover box.
|
32 |
-
</div>
|
33 |
-
|
34 |
-
<div class="dmb_side_block">
|
35 |
<div class="dmb_side_block_title">
|
36 |
-
|
37 |
</div>
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</div>
|
|
|
40 |
|
41 |
-
<a class="
|
42 |
-
|
43 |
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
-
<span style="display:block;margin-top:15px; font-size:12px; color:#0073AA; line-height:20px;">
|
46 |
-
<span class="dashicons dashicons-cart"></span> Discount code
|
47 |
-
<strong>7884661</strong> (10% OFF)
|
48 |
-
</span>
|
49 |
|
50 |
<?php } ?>
|
5 |
function dmb_tmm_add_pro() {
|
6 |
add_meta_box(
|
7 |
'tmm_pro',
|
8 |
+
'<span class="dashicons dashicons-star-filled"></span> Upgrade to PRO',
|
9 |
'dmb_tmm_pro_display', // Below
|
10 |
'tmm',
|
11 |
'side',
|
19 |
|
20 |
<div class="dmb_side_block">
|
21 |
<div class="dmb_side_block_title">
|
22 |
+
<span class="dashicons dashicons-yes" style="color:#81c240;"></span> <strong>Import/export</strong> members from one team to another.
|
23 |
</div>
|
|
|
|
|
|
|
|
|
24 |
<div class="dmb_side_block_title">
|
25 |
+
<span class="dashicons dashicons-yes" style="color:#81c240;"></span> <strong>Equalizer</strong>: Make the length of your member boxes the same.
|
26 |
+
</div>
|
27 |
+
<div class="dmb_side_block_title">
|
28 |
+
<span class="dashicons dashicons-yes" style="color:#81c240;"></span> Add a <strong>second photo</strong> that will appear when hovering over the first one.
|
29 |
</div>
|
|
|
|
|
|
|
|
|
30 |
<div class="dmb_side_block_title">
|
31 |
+
<span class="dashicons dashicons-yes" style="color:#81c240;"></span> <strong>Hide members</strong> from the team.
|
32 |
</div>
|
33 |
+
<div class="dmb_side_block_title">
|
34 |
+
<span class="dashicons dashicons-yes" style="color:#81c240;"></span> Add a read more <strong>toggle box</strong>.
|
35 |
+
</div>
|
36 |
+
<div class="dmb_side_block_title">
|
37 |
+
<span class="dashicons dashicons-yes" style="color:#81c240;"></span> Many more features.
|
38 |
+
</div>
|
39 |
+
|
40 |
</div>
|
41 |
+
|
42 |
|
43 |
+
<a class="dmb_button dmb_button_huge dmb_button_green dmb_see_pro" target="_blank" href="https://wpdarko.com/items/team-members-pro">
|
44 |
+
See all the new features
|
45 |
</a>
|
46 |
+
<div class="dmb_discount_box_pushr"></div>
|
47 |
+
<div class="dmb_side_block dmb_discount_box">
|
48 |
+
<div class="dmb_side_block_title">
|
49 |
+
Discount code
|
50 |
+
</div>
|
51 |
+
<span style="font-size:14px; color:#75b03a;"><strong>7884661</strong> (10% OFF)</span>
|
52 |
+
</div>
|
53 |
|
|
|
|
|
|
|
|
|
54 |
|
55 |
<?php } ?>
|
inc/tmm-metaboxes-settings.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
/* Defines force font select options. */
|
4 |
function dmb_tmm_force_fonts_options() {
|
5 |
$options = array (
|
6 |
-
__('
|
7 |
-
__('
|
8 |
);
|
9 |
return $options;
|
10 |
}
|
@@ -75,8 +75,10 @@ function dmb_tmm_settings_display() {
|
|
75 |
|
76 |
$settings['_tmm_columns'] = get_post_meta( $post->ID, '_tmm_columns', true );
|
77 |
if (!$settings['_tmm_columns']) { $settings['_tmm_columns'] = '3'; }
|
|
|
78 |
$settings['_tmm_color'] = get_post_meta( $post->ID, '_tmm_color', true );
|
79 |
if (!$settings['_tmm_color']) { $settings['_tmm_color'] = '#333333'; }
|
|
|
80 |
$settings['_tmm_bio_alignment'] = get_post_meta( $post->ID, '_tmm_bio_alignment', true );
|
81 |
|
82 |
/* Checks if member links open in new window. */
|
@@ -85,11 +87,11 @@ function dmb_tmm_settings_display() {
|
|
85 |
|
86 |
/* Checks if forcing original fonts. */
|
87 |
$settings['_tmm_original_font'] = get_post_meta( $post->ID, '_tmm_original_font', true );
|
88 |
-
(
|
89 |
|
90 |
?>
|
91 |
|
92 |
-
<div class="dmb_settings_box">
|
93 |
|
94 |
<div class="dmb_section_title">
|
95 |
<?php /* translators: General settings */ _e('General', TMM_TXTDM) ?>
|
@@ -102,25 +104,13 @@ function dmb_tmm_settings_display() {
|
|
102 |
</div>
|
103 |
<select class="dmb_side_select" name="team_columns">
|
104 |
<?php foreach ( $team_columns as $label => $value ) { ?>
|
105 |
-
<option value="<?php echo $value; ?>"<?php selected( (isset($settings['_tmm_columns'])) ? $settings['_tmm_columns'] : '
|
106 |
-
<?php } ?>
|
107 |
-
</select>
|
108 |
-
</div>
|
109 |
-
|
110 |
-
<!-- Bio alignment -->
|
111 |
-
<div class="dmb_grid dmb_grid_50 dmb_grid_last">
|
112 |
-
<div class="dmb_field_title">
|
113 |
-
<?php _e('Desc. alignment', TMM_TXTDM ) ?>
|
114 |
-
</div>
|
115 |
-
<select class="dmb_side_select" name="team_bio_align">
|
116 |
-
<?php foreach ( $team_bio_align as $label => $value ) { ?>
|
117 |
-
<option value="<?php echo $value; ?>"<?php selected( (isset($settings['_tmm_bio_alignment'])) ? $settings['_tmm_bio_alignment'] : 'center', $value ); ?>><?php echo $label; ?></option>
|
118 |
<?php } ?>
|
119 |
</select>
|
120 |
</div>
|
121 |
|
122 |
<!-- Photo link behavior -->
|
123 |
-
<div class="dmb_grid dmb_grid_50
|
124 |
<div class="dmb_field_title">
|
125 |
<?php _e('Photo link behavior', TMM_TXTDM ) ?>
|
126 |
</div>
|
@@ -131,14 +121,14 @@ function dmb_tmm_settings_display() {
|
|
131 |
</select>
|
132 |
</div>
|
133 |
|
134 |
-
|
135 |
-
|
136 |
<div class="dmb_field_title">
|
137 |
-
<?php _e('
|
138 |
</div>
|
139 |
<select class="dmb_side_select" name="team_force_font">
|
140 |
<?php foreach ( $team_force_font as $label => $value ) { ?>
|
141 |
-
<option value="<?php echo $value; ?>"<?php selected( (isset($settings['_tmm_original_font'])) ? $settings['_tmm_original_font'] : '
|
142 |
<?php } ?>
|
143 |
</select>
|
144 |
</div>
|
@@ -148,7 +138,7 @@ function dmb_tmm_settings_display() {
|
|
148 |
<div class="dmb_field_title">
|
149 |
<?php _e('Main color', TMM_TXTDM) ?>
|
150 |
</div>
|
151 |
-
<input class="dmb_color_picker dmb_field dmb_color_of_team" name="team_color" type="text" value="<?php echo (isset($settings['_tmm_color'])) ? $settings['_tmm_color'] : '#
|
152 |
</div>
|
153 |
|
154 |
<div class="dmb_clearfix"></div>
|
3 |
/* Defines force font select options. */
|
4 |
function dmb_tmm_force_fonts_options() {
|
5 |
$options = array (
|
6 |
+
__('Use plugin defaults', TMM_TXTDM ) => 'yes',
|
7 |
+
__('Use fonts from my theme', TMM_TXTDM ) => 'no'
|
8 |
);
|
9 |
return $options;
|
10 |
}
|
75 |
|
76 |
$settings['_tmm_columns'] = get_post_meta( $post->ID, '_tmm_columns', true );
|
77 |
if (!$settings['_tmm_columns']) { $settings['_tmm_columns'] = '3'; }
|
78 |
+
|
79 |
$settings['_tmm_color'] = get_post_meta( $post->ID, '_tmm_color', true );
|
80 |
if (!$settings['_tmm_color']) { $settings['_tmm_color'] = '#333333'; }
|
81 |
+
|
82 |
$settings['_tmm_bio_alignment'] = get_post_meta( $post->ID, '_tmm_bio_alignment', true );
|
83 |
|
84 |
/* Checks if member links open in new window. */
|
87 |
|
88 |
/* Checks if forcing original fonts. */
|
89 |
$settings['_tmm_original_font'] = get_post_meta( $post->ID, '_tmm_original_font', true );
|
90 |
+
if (!$settings['_tmm_original_font']) { $settings['_tmm_original_font'] = 'yes'; }
|
91 |
|
92 |
?>
|
93 |
|
94 |
+
<div class="dmb_settings_box dmb_sidebar">
|
95 |
|
96 |
<div class="dmb_section_title">
|
97 |
<?php /* translators: General settings */ _e('General', TMM_TXTDM) ?>
|
104 |
</div>
|
105 |
<select class="dmb_side_select" name="team_columns">
|
106 |
<?php foreach ( $team_columns as $label => $value ) { ?>
|
107 |
+
<option value="<?php echo $value; ?>"<?php selected( (isset($settings['_tmm_columns'])) ? $settings['_tmm_columns'] : '3', $value ); ?>><?php echo $label; ?></option>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
<?php } ?>
|
109 |
</select>
|
110 |
</div>
|
111 |
|
112 |
<!-- Photo link behavior -->
|
113 |
+
<div class="dmb_grid dmb_grid_50 dmb_grid_last">
|
114 |
<div class="dmb_field_title">
|
115 |
<?php _e('Photo link behavior', TMM_TXTDM ) ?>
|
116 |
</div>
|
121 |
</select>
|
122 |
</div>
|
123 |
|
124 |
+
<!-- Font option -->
|
125 |
+
<div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last">
|
126 |
<div class="dmb_field_title">
|
127 |
+
<?php _e('Fonts to use', TMM_TXTDM ) ?>
|
128 |
</div>
|
129 |
<select class="dmb_side_select" name="team_force_font">
|
130 |
<?php foreach ( $team_force_font as $label => $value ) { ?>
|
131 |
+
<option value="<?php echo $value; ?>"<?php selected( (isset($settings['_tmm_original_font'])) ? $settings['_tmm_original_font'] : 'yes', $value ); ?>><?php echo $label; ?></option>
|
132 |
<?php } ?>
|
133 |
</select>
|
134 |
</div>
|
138 |
<div class="dmb_field_title">
|
139 |
<?php _e('Main color', TMM_TXTDM) ?>
|
140 |
</div>
|
141 |
+
<input class="dmb_color_picker dmb_field dmb_color_of_team" name="team_color" type="text" value="<?php echo (isset($settings['_tmm_color'])) ? $settings['_tmm_color'] : '#333333'; ?>" />
|
142 |
</div>
|
143 |
|
144 |
<div class="dmb_clearfix"></div>
|
inc/tmm-shortcode.php
CHANGED
@@ -27,7 +27,12 @@ function tmm_sc($atts) {
|
|
27 |
|
28 |
/* Checks if forcing original fonts. */
|
29 |
$original_font = get_post_meta( $post->ID, '_tmm_original_font', true );
|
30 |
-
($original_font
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
$team_view = '';
|
33 |
$team_view .= '<div class="tmm tmm_'.$name.'">';
|
@@ -55,9 +60,9 @@ function tmm_sc($atts) {
|
|
55 |
$team_view .= '<a '.$tmm_plb.' href="'.$member['_tmm_photo_url'].'" title="'.$member['_tmm_firstname'].' '.$member['_tmm_lastname'].'">';
|
56 |
|
57 |
if (!empty($member['_tmm_photo']))
|
58 |
-
$team_view .= '<div class="tmm_photo
|
59 |
-
|
60 |
-
if (!empty($member['_tmm_photo_url']))
|
61 |
$team_view .= '</a>';
|
62 |
|
63 |
/* Creates text block. */
|
27 |
|
28 |
/* Checks if forcing original fonts. */
|
29 |
$original_font = get_post_meta( $post->ID, '_tmm_original_font', true );
|
30 |
+
if ($original_font) {
|
31 |
+
if ($original_font == "no") { $ori_f = 'tmm_theme_f'; }
|
32 |
+
else if ($original_font == "yes") { $ori_f = 'tmm_plugin_f'; }
|
33 |
+
} else {
|
34 |
+
$ori_f = 'tmm_plugin_f';
|
35 |
+
}
|
36 |
|
37 |
$team_view = '';
|
38 |
$team_view .= '<div class="tmm tmm_'.$name.'">';
|
60 |
$team_view .= '<a '.$tmm_plb.' href="'.$member['_tmm_photo_url'].'" title="'.$member['_tmm_firstname'].' '.$member['_tmm_lastname'].'">';
|
61 |
|
62 |
if (!empty($member['_tmm_photo']))
|
63 |
+
$team_view .= '<div class="tmm_photo tmm_pic_'.$name.'_'.$key.'" style="background: url('.$member['_tmm_photo'].'); margin-left: auto; margin-right:auto; background-size:cover !important;"><img src="'.$member['_tmm_photo'].'" style="visibility: hidden; width:100%;" /></div>';
|
64 |
+
|
65 |
+
if (!empty($member['_tmm_photo_url']))
|
66 |
$team_view .= '</a>';
|
67 |
|
68 |
/* Creates text block. */
|
readme.txt
CHANGED
@@ -14,7 +14,7 @@ This plugin adds a “Teams” section to the admin panel which allows you to sh
|
|
14 |
|
15 |
= No limitation for the Free version =
|
16 |
The free version of the Team Members plugin is **not limited**.
|
17 |
-
|
18 |
= Available fields =
|
19 |
* Firstname
|
20 |
* Lastname
|
@@ -37,13 +37,13 @@ The free version of the Team Members plugin is **not limited**.
|
|
37 |
* Per-member color
|
38 |
* Two more social links per member
|
39 |
|
40 |
-
|
41 |
|
42 |
= Usage =
|
43 |
-
Go to [the plugin's documentation](https://wpdarko.
|
44 |
|
45 |
= Support =
|
46 |
-
Find help
|
47 |
|
48 |
== Installation ==
|
49 |
|
@@ -54,10 +54,13 @@ Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin
|
|
54 |
4. Activate the plugin
|
55 |
|
56 |
= Usage =
|
57 |
-
Go to [the plugin's documentation](https://wpdarko.
|
58 |
|
59 |
== Frequently Asked Questions ==
|
60 |
|
|
|
|
|
|
|
61 |
= No limitation for the Free version =
|
62 |
The free version of the Team Members plugin is **not limited**.
|
63 |
|
@@ -72,41 +75,46 @@ The free version of the Team Members plugin is **not limited**.
|
|
72 |
* Per-member color
|
73 |
* Two more social links per member
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
= Ready for translation =
|
78 |
-
* POT files included (/lang/)
|
79 |
-
* French translation included
|
80 |
-
* Spanish translation included
|
81 |
|
82 |
= Usage =
|
83 |
-
Go to [the plugin's documentation](https://wpdarko.
|
84 |
|
85 |
= Support =
|
86 |
-
Find help
|
87 |
|
88 |
== Screenshots ==
|
89 |
1. Team Members (front view - 3 per line)
|
90 |
2. Team Members (front view - 4 per line)
|
91 |
3. Creating members (admin view)
|
92 |
-
4.
|
93 |
-
5. Team settings (admin view)
|
94 |
6. Finding the shortcode (admin view)
|
95 |
|
96 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
= 4.1.2 =
|
98 |
-
*
|
99 |
|
100 |
= 4.1.1 =
|
101 |
-
*
|
102 |
|
103 |
= 4.1.0 =
|
104 |
-
*
|
105 |
-
*
|
106 |
|
107 |
= 4.0.0 =
|
108 |
* Automatically even out your members (just enable the equalizer).
|
109 |
-
*
|
110 |
* Instantly preview your changes (see video below).
|
111 |
* Choose between floating, inside-the-box and full-width pictures.
|
112 |
|
14 |
|
15 |
= No limitation for the Free version =
|
16 |
The free version of the Team Members plugin is **not limited**.
|
17 |
+
|
18 |
= Available fields =
|
19 |
* Firstname
|
20 |
* Lastname
|
37 |
* Per-member color
|
38 |
* Two more social links per member
|
39 |
|
40 |
+
Check out our [PRO version](https://wpdarko.com/items/team-members-pro/), see all these features in action.
|
41 |
|
42 |
= Usage =
|
43 |
+
Go to [the plugin's documentation](https://wpdarko.com/support/docs/get-started-with-the-team-members-plugin/) if you need more information on how to use this plugin.
|
44 |
|
45 |
= Support =
|
46 |
+
Find help on [our support platform](https://wpdarko.com/support) for this plugin (we’ll answer you fast, promise).
|
47 |
|
48 |
== Installation ==
|
49 |
|
54 |
4. Activate the plugin
|
55 |
|
56 |
= Usage =
|
57 |
+
Go to [the plugin's documentation](https://wpdarko.com/support/docs/get-started-with-the-team-members-plugin/) for information on how to use it.
|
58 |
|
59 |
== Frequently Asked Questions ==
|
60 |
|
61 |
+
= Getting your member photos to display nicely =
|
62 |
+
A few things have changed since version 5.0.0, if you have any issue with how you member photos are displaying, check this [article](https://wpdarko.com/support/docs/getting-your-member-photos-to-display-nicely/).
|
63 |
+
|
64 |
= No limitation for the Free version =
|
65 |
The free version of the Team Members plugin is **not limited**.
|
66 |
|
75 |
* Per-member color
|
76 |
* Two more social links per member
|
77 |
|
78 |
+
Check out our [PRO version](https://wpdarko.com/items/team-members-pro/), see all these features in action.
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
= Usage =
|
81 |
+
Go to [the plugin's documentation](https://wpdarko.com/support/docs/get-started-with-the-team-members-plugin/) if you need more information on how to use this plugin.
|
82 |
|
83 |
= Support =
|
84 |
+
Find help on [our support platform](https://wpdarko.com/support) for this plugin (we’ll answer you fast, promise).
|
85 |
|
86 |
== Screenshots ==
|
87 |
1. Team Members (front view - 3 per line)
|
88 |
2. Team Members (front view - 4 per line)
|
89 |
3. Creating members (admin view)
|
90 |
+
4. Team settings (admin view)
|
|
|
91 |
6. Finding the shortcode (admin view)
|
92 |
|
93 |
== Changelog ==
|
94 |
+
= 5.0.0 =
|
95 |
+
* CSS rewrite to match WordPress 5.3's new admin styles
|
96 |
+
* Improved Instant Preview mode
|
97 |
+
* Improved member photo sizes (photos needs to be the same size)
|
98 |
+
* Added Phone link for opening calling apps (Skype etc.)
|
99 |
+
* Fixed issue with how photos display in the back end
|
100 |
+
* Fixed issue with photo uploading
|
101 |
+
* Fixed error when typing in firstname field
|
102 |
+
* Fixed an issue with biography words being cut
|
103 |
+
* Fixed various styling issue
|
104 |
+
|
105 |
= 4.1.2 =
|
106 |
+
* Replaced deprecated jQuery methods.
|
107 |
|
108 |
= 4.1.1 =
|
109 |
+
* Fixed team edit issue for IE browsers.
|
110 |
|
111 |
= 4.1.0 =
|
112 |
+
* Fixed upload media issues with Link URL.
|
113 |
+
* Fixed plugin conflict with ACF.
|
114 |
|
115 |
= 4.0.0 =
|
116 |
* Automatically even out your members (just enable the equalizer).
|
117 |
+
* Added complementary info in a clean toggle box.
|
118 |
* Instantly preview your changes (see video below).
|
119 |
* Choose between floating, inside-the-box and full-width pictures.
|
120 |
|
tmm.php
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Plugin Name: Team Members
|
5 |
* Plugin URI: https://wpdarko.com/team-members
|
6 |
-
* 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="https://wpdarko.com/
|
7 |
-
* Version:
|
8 |
* Author: WP Darko
|
9 |
* Author URI: https://wpdarko.com
|
10 |
* Text Domain: team-members
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Plugin Name: Team Members
|
4 |
* Plugin URI: https://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="https://wpdarko.com/support">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='https://wpdarko.com/team-members'>PRO version</a> for more great features.
|
6 |
+
* Version: 5.0.0
|
7 |
* Author: WP Darko
|
8 |
* Author URI: https://wpdarko.com
|
9 |
* Text Domain: team-members
|