mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- member directory;
This commit is contained in:
@@ -244,11 +244,12 @@ function um_build_template( directory, data ) {
|
||||
|
||||
if ( directory.find('.um-members').length ) {
|
||||
UM_Member_Grid( directory.find('.um-members') );
|
||||
jQuery( window ).trigger( 'resize' );
|
||||
}
|
||||
|
||||
jQuery( document ).trigger( "um_build_template", [ directory, data ] );
|
||||
jQuery( window ).trigger( "resize" );
|
||||
jQuery( document ).trigger( 'um_build_template', [ directory, data ] );
|
||||
jQuery( window ).trigger( 'resize' );
|
||||
|
||||
init_tipsy();
|
||||
}
|
||||
|
||||
|
||||
@@ -279,12 +280,8 @@ function um_change_tag( directory ) {
|
||||
directory.find('.um-search-filter').each( function() {
|
||||
|
||||
var filter = jQuery(this);
|
||||
var hoper,
|
||||
filter_name,
|
||||
query_value,
|
||||
filter_title,
|
||||
filter_range,
|
||||
filter_value_title;
|
||||
var filter_name,
|
||||
filter_title;
|
||||
|
||||
var filter_type;
|
||||
if ( filter.find('input.um-datepicker-filter').length ) {
|
||||
@@ -468,6 +465,7 @@ jQuery(document).ready( function() {
|
||||
|
||||
um_build_template( directory, data.users );
|
||||
}
|
||||
um_members_hide_preloader( directory );
|
||||
});
|
||||
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
|
||||
@@ -21,6 +21,9 @@ if ( is_user_logged_in() ) {
|
||||
}
|
||||
|
||||
|
||||
$args = apply_filters( 'um_member_directory_agruments_on_load', $args );
|
||||
|
||||
|
||||
// Views
|
||||
$single_view = false;
|
||||
$current_view = 'grid';
|
||||
|
||||
Reference in New Issue
Block a user