mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Profile view made responsive (Stage 1)
This commit is contained in:
@@ -96,9 +96,9 @@
|
||||
</div>
|
||||
|
||||
<div class="um-meta">
|
||||
<span>Web designer</span>
|
||||
<span>Chief Executive Officer of Ultimate Member</span>
|
||||
<span class="b">•</span>
|
||||
<span>28 years</span>
|
||||
<span>28 Years Old</span>
|
||||
<span class="b">•</span>
|
||||
<span>United Kingdom</span>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -92,7 +92,7 @@ class UM_Setup {
|
||||
'_um_profile_cover_ratio' => '2.7:1',
|
||||
'_um_profile_photosize' => '190px',
|
||||
'_um_profile_photocorner' => '1',
|
||||
'_um_profile_header_bg' => '#fff',
|
||||
'_um_profile_header_bg' => '',
|
||||
'_um_profile_header_text' => '#999',
|
||||
'_um_profile_header_link_color' => '#555',
|
||||
'_um_profile_header_link_hcolor' => '#444',
|
||||
@@ -107,7 +107,7 @@ class UM_Setup {
|
||||
'_um_profile_secondary_btn_color' => '#eee',
|
||||
'_um_profile_secondary_btn_hover' => '#e5e5e5',
|
||||
'_um_profile_secondary_btn_text' => '#666',
|
||||
'_um_profile_main_bg' => '#fff',
|
||||
'_um_profile_main_bg' => '',
|
||||
'_um_register_role' => '0',
|
||||
'_um_register_template' => 'register',
|
||||
'_um_register_max_width' => '450px',
|
||||
|
||||
@@ -304,7 +304,7 @@
|
||||
function um_can_edit_field( $data ) {
|
||||
global $ultimatemember;
|
||||
if ( $ultimatemember->fields->editing == true && $ultimatemember->fields->set_mode == 'profile' ) {
|
||||
if ( is_user_logged_in() && $data['editable'] == 0 ) {
|
||||
if ( is_user_logged_in() && isset( $data['editable'] ) && $data['editable'] == 0 ) {
|
||||
|
||||
if ( um_is_user_himself() && !um_user('can_edit_everyone') )
|
||||
return false;
|
||||
@@ -565,6 +565,8 @@
|
||||
$default_avatar_uri = um_url . 'assets/img/default_avatar.png';
|
||||
}
|
||||
|
||||
$default_avatar_uri = um_url . 'assets/img/Dollarphotoclub_57189843.jpg';
|
||||
|
||||
return '<img src="' . $default_avatar_uri . '" class="avatar avatar-'.$attrs.' um-avatar" width="'.$attrs.'" height="'.$attrs.'" alt="" />';
|
||||
|
||||
}
|
||||
@@ -574,6 +576,7 @@
|
||||
if ( um_profile('cover_photo') ) {
|
||||
return '<a href="#"><img src="'.um_profile('cover_photo').'" alt="" /></a>';
|
||||
}
|
||||
return '<a href="#"><img src="'.um_url . 'assets/img/best-hd-wallpapers-2.jpg" alt="" /></a>';
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user