mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 22:54:03 +09:00
- fixed JS dropdown at the profile page;
This commit is contained in:
@@ -551,7 +551,7 @@ add_action( 'wp_head', 'um_profile_dynamic_meta_desc', 9999999 );
|
||||
* @param $args
|
||||
*/
|
||||
function um_profile_header_cover_area( $args ) {
|
||||
if ($args['cover_enabled'] == 1) {
|
||||
if ( $args['cover_enabled'] == 1 ) {
|
||||
|
||||
$default_cover = UM()->options()->get( 'default_cover' );
|
||||
|
||||
@@ -603,9 +603,7 @@ function um_profile_header_cover_area( $args ) {
|
||||
UM()->profile()->new_ui( 'bc', 'div.um-cover', 'click', $items );
|
||||
}
|
||||
|
||||
UM()->fields()->add_hidden_field( 'cover_photo' );
|
||||
|
||||
echo $overlay; ?>
|
||||
UM()->fields()->add_hidden_field( 'cover_photo' ); ?>
|
||||
|
||||
<div class="um-cover-e" data-ratio="<?php echo $args['cover_ratio']; ?>">
|
||||
|
||||
@@ -641,6 +639,8 @@ function um_profile_header_cover_area( $args ) {
|
||||
|
||||
</div>
|
||||
|
||||
<?php echo $overlay; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
@@ -727,7 +727,7 @@ function um_profile_header( $args ) {
|
||||
|
||||
UM()->fields()->add_hidden_field( 'profile_photo' );
|
||||
|
||||
if (!um_profile( 'profile_photo' )) { // has profile photo
|
||||
if ( ! um_profile( 'profile_photo' ) ) { // has profile photo
|
||||
|
||||
$items = array(
|
||||
'<a href="javascript:void(0);" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">' . __( 'Upload photo', 'ultimate-member' ) . '</a>',
|
||||
|
||||
Reference in New Issue
Block a user