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 size=200]"/> |
| 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 | } |