PluginProbe ʕ •ᴥ•ʔ
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress / trunk
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress vtrunk
4.16.19 4.16.18 4.16.17 4.16.16 trunk 1.0 1.0.1 1.0.2 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5a 1.1.6 1.1.7 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4 1.4.1 1.4.2 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.7 1.7.1 1.7.2 1.8 1.8.1 1.8.10 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.1.9 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.2 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 3.0 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.14 3.2.15 3.2.16 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10.0 4.10.1 4.10.2 4.10.3 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.13.3 4.13.4 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.15.0 4.15.1 4.15.10 4.15.11 4.15.12 4.15.13 4.15.14 4.15.15 4.15.16 4.15.17 4.15.18 4.15.19 4.15.2 4.15.20 4.15.20.1 4.15.21 4.15.22 4.15.23 4.15.24 4.15.25 4.15.3 4.15.4 4.15.5 4.15.6 4.15.7 4.15.8 4.15.9 4.16.0 4.16.1 4.16.10 4.16.11 4.16.12 4.16.13 4.16.14 4.16.15 4.16.2 4.16.3 4.16.4 4.16.5 4.16.6 4.16.7 4.16.8 4.16.9 4.2.0 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.6.0 4.7.0 4.8.0 4.9.0
wp-user-avatar / src / Themes / Shortcode / Userprofile / Daisy.php
wp-user-avatar / src / Themes / Shortcode / Userprofile Last commit date
Daisy.php 4 years ago Dixon.php 5 years ago
Daisy.php
407 lines
1 <?php
2
3 namespace ProfilePress\Core\Themes\Shortcode\Userprofile;
4
5
6 use ProfilePress\Core\Themes\Shortcode\ThemeInterface;
7
8 class Daisy implements ThemeInterface
9 {
10 public function get_name()
11 {
12 return 'Daisy';
13 }
14
15 public function get_structure()
16 {
17 return <<<CODE
18 <div class="daisy-container">
19 <div class="daisy-small-col-4">
20 <div class="daisy-profile-image">
21 <img src="[profile-avatar-url]"/>
22 </div>
23
24 <div class="daisy-user-details">
25 <div class="daisy-user-name">[profile-first-name] [profile-last-name]</div>
26 <div class="daisy-user-url">[profile-website]</div>
27
28 <div class="daisy-user-url">Member since: [profile-date-registered]</div>
29
30
31 <div class="daisy-activity">
32 <a href="mailto:[profile-email]"><span class="daisy-activity-button">MESSAGE<i class="fa fa-envelope"></i></span></a>
33 </div>
34
35 <div class="daisy-more-details">
36 <div class="daisy-more-title"><i class="fa fa-edit"></i>Posts
37 <span class="daisy-more-count"> ([profile-post-count]) </span></div>
38 <div class="daisy-more-title"><i class="fa fa-comments"></i>Comments
39 <span class="daisy-more-count"> ([profile-comment-count]) </span></div>
40
41 </div>
42
43 </div>
44
45 </div>
46
47 <div class="daisy-small-col-8">
48
49 <div class="daisy-user-detail">
50 <div class="daisy-details-header">Profile Information</div>
51
52 <span class="daisy-user-header">Username</span>
53 <span class="daisy-user-header-info">[profile-username]</span>
54
55 <span class="daisy-user-header">Email Address</span>
56 <span class="daisy-user-header-info">[profile-email]</span>
57
58 <span class="daisy-user-header">First name</span>
59 <span class="daisy-user-header-info">[profile-first-name]</span>
60
61 <span class="daisy-user-header">Last name</span>
62 <span class="daisy-user-header-info">[profile-last-name]</span>
63
64 <span class="daisy-user-header">Nickname</span>
65 <span class="daisy-user-header-info">[profile-nickname]</span>
66
67 <span class="daisy-user-header">Website</span>
68 <span class="daisy-user-header-info daisy-site-url">[profile-website]</span>
69
70 <span class="daisy-user-header">Gender</span>
71 <span class="daisy-user-header-info">[profile-cpf key=gender]</span>
72
73 <span class="daisy-user-header">Biography</span>
74 <span class="daisy-user-header-info">[profile-bio]</span>
75 </div>
76 </div>
77 </div>
78 CODE;
79
80 }
81
82 public function get_css()
83 {
84 return <<<CSS
85 @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700|raleway:700|Open+Sans:400,700);
86 @import url(https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);
87
88 .daisy-container * {
89 box-sizing: border-box;
90 }
91
92 .daisy-details-header {
93 font-size: 24px;
94 font-family: 'raleway', sans-serif;
95 font-weight: 700;
96 color: #444;
97 padding-top: 20px;
98 }
99
100 .daisy-user-detail a {
101 text-decoration: none !important;
102 outline: none;
103 box-shadow: none !important;
104 }
105
106 .daisy-user-detail li {
107 list-style: none !important;
108 }
109
110 .daisy-user-header {
111 display: block;
112 margin: 0 0 8px;
113 border-bottom: 2px solid #eee;
114 padding-bottom: 4px;
115 font: 15px roboto !important;
116 font-weight: 500 !important;
117 color: #555;
118 padding-top: 15px;
119 }
120
121 .daisy-user-header-info.daisy-site-url {
122 color: #3ba1da;
123 }
124
125 .daisy-user-detail li {
126 list-style: none !important;
127 font-family: roboto, sans-serif;
128 font-size: 15px;
129 }
130
131 .daisy-small-col-4 {
132 position: relative;
133 float: left;
134 width: 26%;
135 margin-left: 20px;
136 margin-right: 20px;
137 border: 2px solid #eee;
138 }
139
140 .daisy-small-col-8 {
141 position: relative;
142 float: left;
143 width: 58%;
144 margin-left: 20px !important;
145 margin-right: 20px !important;
146 background: #FFF none repeat scroll 0 0;
147 padding: 20px;
148 border: 2px solid #eee;
149 }
150
151 .daisy-activity a {
152 text-decoration: none;
153 }
154
155 .daisy-activity .fa {
156 padding-left: 5px;
157 }
158
159 .daisy-user-name-in-bio {
160 font-family: raleway, sans-serif;
161 font-size: 24px;
162 color: #444;
163 border-bottom: 2px solid #ECF0F1;
164 padding-bottom: 10px;
165 margin-bottom: 20px;
166 font-weight: 700;
167 }
168
169 .daisy-more-details {
170 list-style: none;
171 font-family: roboto, sans-serif !important;
172 line-height: 1.5;
173 padding-top: 30px;
174 color: #555;
175 }
176
177 .daisy-more-details .fa {
178 padding-right: 5px;
179 }
180
181 .daisy-more-count {
182 color: #16A085;
183 }
184
185 .daisy-container {
186 margin-top: 10px;
187 font-size: 16px;
188 }
189
190 .daisy-profile-image img {
191 width: 100%;
192 height: 250px;
193 }
194
195 .daisy-user-details {
196 padding: 30px 20px;
197 }
198
199 .daisy-activity {
200 padding-top: 10px;
201 }
202
203 .daisy-activity {
204 margin-top: 20px;
205 border-top: 2px solid #ECF0F1 !important;
206 padding-top: 20px;
207 }
208
209 .daisy-activity-button {
210 padding: 8px 10px;
211 border: medium none !important;
212 background: #16A085 none repeat scroll 0 0;
213 color: #FFF !important;
214 font-family: roboto, sans-serif !important;
215 font-size: 13px;
216 font-weight: 700;
217 }
218
219 .daisy-user-name {
220 font-family: roboto, sans-serif;
221 font-size: 24px;
222 color: #555;
223 font-weight: 700;
224 padding-bottom: 5px;
225 }
226
227 .daisy-user-url {
228 font-family: roboto, sans-serif !important;
229 color: #ccc;
230 font-weight: 400;
231 font-size: 14px;
232 padding-top: 5px;
233 }
234
235 .daisy-small-col-4 {
236 background: white !important;
237 }
238
239 @media only screen and (max-width: 780px) {
240
241 .daisy-small-col-4 {
242 position: relative;
243 float: none;
244 width: 33% !important;
245 margin: 0 auto !important;
246 text-align: center;
247 background: white;
248 }
249
250 .daisy-user-name {
251 font-family: roboto, sans-serif;
252 font-size: 18px;
253 color: #555;
254 font-weight: 700;
255 padding-bottom: 5px;
256 }
257
258 .daisy-user-details {
259 padding: 20px 20px;
260 }
261
262 .daisy-profile-image img {
263 width: 100%;
264 height: 200px;
265 }
266
267 .daisy-small-col-8 {
268 position: relative;
269 width: 98%;
270 background: transparent none repeat scroll 0 0% !important;
271 padding: 10px;
272 text-align: center;
273 }
274
275 }
276
277 @media only screen and (max-width: 980px) {
278
279 .daisy-container {
280 padding-left: 3%;
281 padding-right: 3%;
282 }
283
284 .daisy-small-col-4 {
285 position: relative;
286 float: left;
287 width: 22%;
288 margin: 0 auto !important;
289 }
290
291 .daisy-small-col-8 {
292 position: relative;
293 float: left;
294 width: 53%;
295 margin-left: 20px !important;
296 margin-right: 20px !important;
297 background: #FFF !important;
298 padding: 20px;
299 }
300
301 .daisy-activity-button {
302 padding: 8px 5px;
303 border: medium none !important;
304 background: #16A085 none repeat scroll 0 0;
305 color: #FFF !important;
306 font-family: roboto, sans-serif !important;
307 font-size: 12px;
308 font-weight: 700;
309 margin-bottom: 5px;
310 }
311
312 .daisy-small-col-4 {
313 position: relative;
314 float: left;
315 width: 35%;
316 margin: 0 auto !important;
317 }
318
319 }
320
321 @media only screen and (min-width: 900px) {
322
323 .daisy-container {
324 padding-top: 50px;
325 padding-left: 50px;
326 padding-right: 50px;
327 }
328
329 .daisy-activity-button {
330 padding: 10px;
331 border: medium none !important;
332 background: #16A085 none repeat scroll 0 0;
333 color: #FFF !important;
334 font-family: roboto, sans-serif !important;
335 font-size: 11px;
336 font-weight: 700;
337 }
338 }
339
340 @media only screen and (max-width: 660px) {
341 .daisy-small-col-4 {
342 position: relative;
343 float: none;
344 width: 100% !important;
345 margin: 0 auto !important;
346 }
347
348 .daisy-small-col-8 {
349 position: relative;
350 float: left;
351 width: 100%;
352 margin-left: 0 !important;
353 margin-right: 0 !important;
354 background: none !important;
355 padding: 0 !important;
356 }
357
358 .daisy-small-col-8 {
359 position: relative;
360 float: left;
361 width: 100%;
362 background: white !important;
363 margin: 20px 0;
364 padding: 4px 11px !important;
365 }
366
367 .daisy-user-name-in-bio {
368 font-size: 20px !important;
369 color: #555 !important;
370 }
371
372 .daisy-profile-image img {
373 width: 100px;
374 height: 100px;
375 border-radius: 100px;
376 }
377
378 .daisy-profile-image {
379 padding-top: 20px;
380 }
381
382 }
383
384 @media only screen and (min-width: 1200px) {
385
386 .daisy-small-col-8 {
387 position: relative;
388 float: left;
389 width: 58%;
390 margin-left: 20px !important;
391 margin-right: 20px !important;
392 background: #FFF none repeat scroll 0 0;
393 padding: 30px 0 30px 50px;
394 }
395
396 .daisy-small-col-4 {
397 position: relative;
398 float: left;
399 width: 22%;
400 margin-left: 20px;
401 margin-right: 20px;
402 }
403 }
404 CSS;
405
406 }
407 }