mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed dropdown.js handlers;
- fixed account save some fields which were initialized after adding custom; - fixed enqueue members scripts; - small CSS fixes;
This commit is contained in:
@@ -89,6 +89,10 @@ div.uimob800 .um-account-side li a.current:hover
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.um .um-button:before {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.um .um-button.um-alt,
|
||||
.um input[type=submit].um-button.um-alt {
|
||||
background: #eeeeee;
|
||||
@@ -104,6 +108,11 @@ div.uimob800 .um-account-side li a.current:hover
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.um .um-button.um-alt:before,
|
||||
.um input[type=submit].um-button.um-alt:before {
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.um .um-tip {
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ function um_init_new_dropdown() {
|
||||
obj.data( 'um-new-dropdown-show', true );
|
||||
|
||||
jQuery( document.body ).bind( 'click', function( event ) {
|
||||
if ( jQuery('.um-new-dropdown').find( '.' + jQuery( event.target ).attr('class').replace( ' ', '.' ) ).length === 0 &&
|
||||
( '.' + jQuery(event.target).parent().attr('class') ) !== element ) {
|
||||
if ( jQuery('.um-new-dropdown').find( '.' + jQuery( event.target ).attr('class').trim().replace( ' ', '.' ) ).length === 0 &&
|
||||
( '.' + jQuery(event.target).parent().attr('class').trim() ) !== element ) {
|
||||
//event = ev;
|
||||
jQuery('.um-new-dropdown').hide();
|
||||
jQuery('.um-new-dropdown').parent().data( 'um-new-dropdown-show', false );
|
||||
|
||||
@@ -494,7 +494,7 @@ function um_run_search( directory ) {
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready( function() {
|
||||
jQuery(document.body).ready( function() {
|
||||
|
||||
|
||||
jQuery( '.um-search-filter select' ).each( function() {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -204,32 +204,34 @@ if ( ! class_exists( 'um\core\Account' ) ) {
|
||||
$this->current_tab = $args['tab'];
|
||||
|
||||
if ( ! empty( $this->tabs[ $args['tab'] ] ) ) { ?>
|
||||
<div class="um-form">
|
||||
<form method="post" action="">
|
||||
<?php
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_account_page_hidden_fields
|
||||
* @description Make some action before account tab loading
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Account Page Arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_template_part', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_account_page_hidden_fields', 'my_account_page_hidden_fields', 10, 1 );
|
||||
* function my_account_page_hidden_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_account_page_hidden_fields', $args );
|
||||
<div class="um um-custom-shortcode-tab">
|
||||
<div class="um-form">
|
||||
<form method="post" action="">
|
||||
<?php
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_account_page_hidden_fields
|
||||
* @description Make some action before account tab loading
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Account Page Arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_template_part', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_account_page_hidden_fields', 'my_account_page_hidden_fields', 10, 1 );
|
||||
* function my_account_page_hidden_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_account_page_hidden_fields', $args );
|
||||
|
||||
$this->render_account_tab( $args['tab'], $this->tabs[ $args['tab'] ], $args ); ?>
|
||||
</form>
|
||||
$this->render_account_tab( $args['tab'], $this->tabs[ $args['tab'] ], $args ); ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
@@ -506,6 +508,9 @@ if ( ! class_exists( 'um\core\Account' ) ) {
|
||||
|
||||
if ( ! isset( $this->displayed_fields[ $tab_key ] ) ) {
|
||||
$this->displayed_fields[ $tab_key ] = array_keys( $fields );
|
||||
} else {
|
||||
$this->displayed_fields[ $tab_key ] = array_merge( $this->displayed_fields[ $tab_key ], array_keys( $fields ) );
|
||||
$this->displayed_fields[ $tab_key ] = array_unique( $this->displayed_fields[ $tab_key ] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -334,11 +334,7 @@ if ( ! class_exists( 'um\core\Enqueue' ) ) {
|
||||
function load_customjs() {
|
||||
wp_enqueue_script('um_conditional');
|
||||
wp_enqueue_script('um_scripts');
|
||||
if ( is_rtl() ) {
|
||||
wp_enqueue_style( 'um_members_rtl' );
|
||||
} else {
|
||||
wp_enqueue_style( 'um_members' );
|
||||
}
|
||||
wp_enqueue_script('um_members');
|
||||
wp_enqueue_script('um_profile');
|
||||
wp_enqueue_script('um_account');
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ function um_submit_account_details( $args ) {
|
||||
}
|
||||
}
|
||||
|
||||
$arr_fields = array( 'password', 'um_account' );
|
||||
$arr_fields = array();
|
||||
if ( UM()->account()->is_secure_enabled() ) {
|
||||
$account_fields = get_user_meta( um_user( 'ID' ), 'um_account_secure_fields', true );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user