mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
- member directory;
This commit is contained in:
@@ -227,6 +227,12 @@ jQuery(document).ready( function() {
|
||||
if ( typeof condition_fields[0].parents('.um-forms-line').data('conditional') !== 'undefined' ) {
|
||||
parent_condition = check_condition( condition_fields[0].parents('.um-forms-line') );
|
||||
}
|
||||
} else if ( condition === '><' ) {
|
||||
var condition_field = jQuery( '#' + prefix + '_' + conditional[0] + '_' + conditional[2] );
|
||||
|
||||
if ( typeof condition_field.parents('.um-forms-line').data('conditional') !== 'undefined' ) {
|
||||
parent_condition = check_condition( condition_field.parents('.um-forms-line') );
|
||||
}
|
||||
}
|
||||
|
||||
var own_condition = false;
|
||||
@@ -374,6 +380,19 @@ jQuery(document).ready( function() {
|
||||
}
|
||||
|
||||
return ( own_condition && parent_condition );
|
||||
} else if ( condition === '><' ) {
|
||||
|
||||
var tagName = condition_field.prop("tagName").toLowerCase();
|
||||
|
||||
if ( tagName == 'input' ) {
|
||||
var input_type = condition_field.attr('type');
|
||||
if ( input_type == 'checkbox' ) {
|
||||
own_condition = condition_field.is(':checked');
|
||||
}
|
||||
}
|
||||
|
||||
return ( own_condition && parent_condition );
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -1583,7 +1583,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
$data_array = apply_filters( 'um_ajax_get_members_data', $data_array, $user_id );
|
||||
$data_array = apply_filters( 'um_ajax_get_members_data', $data_array, $user_id, $directory_data );
|
||||
um_reset_user_clean();
|
||||
|
||||
return $data_array;
|
||||
|
||||
@@ -184,6 +184,8 @@ if ( ! class_exists( 'um\core\Setup' ) ) {
|
||||
$content = '[ultimatemember form_id="' . $setup_shortcodes[ $slug ] . '"]';
|
||||
}
|
||||
|
||||
$content = apply_filters( 'um_setup_predefined_page_content', $content, $slug );
|
||||
|
||||
$user_page = array(
|
||||
'post_title' => $array['title'],
|
||||
'post_content' => $content,
|
||||
|
||||
Reference in New Issue
Block a user