dashboard
5 months ago
profile-cards
5 years ago
profile-header
6 months ago
already-logged-in.php
5 months ago
auth-forms.css
5 months ago
auth-forms.min.css
5 months ago
clean.php
5 years ago
login-form.php
5 months ago
lost-password-form.php
5 months ago
members.php
6 months ago
modal-login-form.php
5 days ago
public-profile.php
6 months ago
reg-form.php
5 days ago
reset-password-form.php
5 months ago
review-user-status.php
1 week ago
user-favourites.php
5 years ago
public-profile.php
108 lines
| 1 | <?php if(!defined('ABSPATH')) die(); ?> |
| 2 | |
| 3 | <style> |
| 4 | #logo-block img{ |
| 5 | box-shadow: none; |
| 6 | width:128px; |
| 7 | height: 128px; |
| 8 | border-radius: 500px; |
| 9 | background: #ffffff; |
| 10 | } |
| 11 | |
| 12 | #wpdm-user-profile{ |
| 13 | padding-top: 90px; |
| 14 | } |
| 15 | #wpdm-user-profile .profile-card{ |
| 16 | border-radius: 5px; |
| 17 | color: <?php echo (isset($store['txtcolor']) && !empty($store['txtcolor']) ? $store['txtcolor'] : '#333333'); ?> !important; |
| 18 | <?php if($store['banner'] !== ''){ ?> |
| 19 | background: linear-gradient(45deg, rgba(<?php echo $rgb; ?>,0.5), rgba(<?php echo $rgb ?>,0.95)), <?php echo $store['bgcolor']; ?> url("<?php echo $store['banner']; ?>"); |
| 20 | background-size: cover; |
| 21 | background-repeat: repeat-x; |
| 22 | background-position: center; |
| 23 | <?php } else { ?> |
| 24 | background: <?php echo $store['bgcolor']; ?>; |
| 25 | <?php } ?> |
| 26 | } |
| 27 | #wpdm-user-profile .store-intro{ |
| 28 | opacity: 0.7; |
| 29 | } |
| 30 | #profile-buttons .profile-button{ |
| 31 | color: #ffffff; |
| 32 | background: rgba(0,0,0,0.2); |
| 33 | font-size: 12px; |
| 34 | letter-spacing: 1px; |
| 35 | border-radius: 200px; |
| 36 | padding: 5px 15px; |
| 37 | margin: 10px 3px; |
| 38 | text-decoration: none; |
| 39 | transition: all ease-in-out 300ms; |
| 40 | } |
| 41 | #profile-buttons .profile-button:not(.active):hover{ |
| 42 | background: rgba(0,0,0,0.5); |
| 43 | } |
| 44 | #profile-buttons .profile-button.active{ |
| 45 | background: rgba(0,0,0,0.6); |
| 46 | } |
| 47 | #wpdm-profile-contents{ |
| 48 | min-height: 400px; |
| 49 | } |
| 50 | </style> |
| 51 | |
| 52 | |
| 53 | <div class="w3eden" id="wpdm-user-profile"> |
| 54 | <div class="row"> |
| 55 | |
| 56 | <div class="col-md-12"> |
| 57 | <div class="profile-card p-4 text-center bg-light"> |
| 58 | |
| 59 | <?php include \WPDM\__\Template::locate("profile-header/{$header}", (__DIR__)) ?> |
| 60 | |
| 61 | </div> |
| 62 | </div> |
| 63 | |
| 64 | </div> |
| 65 | <div class="row"> |
| 66 | <div class="col-md-12 pt-4" id="wpdm-profile-contents"> |
| 67 | |
| 68 | |
| 69 | </div> |
| 70 | </div> |
| 71 | <?php |
| 72 | foreach ($this->profile_menu as $id => $menu){ |
| 73 | if(isset($menu['static_content'])) |
| 74 | call_user_func($menu['static_content']); |
| 75 | } |
| 76 | ?> |
| 77 | </div> |
| 78 | |
| 79 | <script> |
| 80 | jQuery(function ($) { |
| 81 | $('.profile-button.with-content').on('click', function () { |
| 82 | $('.profile-button').removeClass('active'); |
| 83 | $(this).addClass('active'); |
| 84 | var cc = $(this).children('fa').attr('class'); |
| 85 | $(this).children('fa').removeClass(cc).addClass('fa fa-sun fa-spin'); |
| 86 | var abtn = $(this); |
| 87 | WPDM.blockUI('#wpdm-profile-contents'); |
| 88 | $.get(wpdm_url.ajax, { action: 'wpdm_get_profile_menu_content', __pu: '<?php echo $user_ID; ?>', __pmenu: $(this).data('menu'), __scp: '<?php echo \WPDM\__\Crypt::encrypt($params); ?>'}, function (response) { |
| 89 | $('#wpdm-profile-contents').html(response); |
| 90 | WPDM.unblockUI('#wpdm-profile-contents'); |
| 91 | abtn.attr('class', cc); |
| 92 | }); |
| 93 | }); |
| 94 | $('.profile-button.instant').on('click', function (e) { |
| 95 | e.preventDefault(); |
| 96 | var menu = $(this).data('menu'); |
| 97 | }); |
| 98 | var hash = location.hash.substr(1); |
| 99 | WPDM.blockUI('#wpdm-profile-contents'); |
| 100 | $.get(wpdm_url.ajax, { action: 'wpdm_get_profile_menu_content', __pu: '<?php echo $user_ID; ?>', __pmenu: (hash ? hash : '<?php echo $first_menu; ?>'), __scp: '<?php echo \WPDM\__\Crypt::encrypt($params); ?>'}, function (response) { |
| 101 | $('#wpdm-profile-contents').html(response); |
| 102 | $('#profile-button-'+(hash ? hash : '<?php echo $first_menu; ?>')).addClass('active'); |
| 103 | WPDM.unblockUI('#wpdm-profile-contents'); |
| 104 | }); |
| 105 | }); |
| 106 | </script> |
| 107 | |
| 108 |