/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/admin/donors
NameSizeModeActions
class-donor-table.php180410644editdlrm
donor-actions.php186000644editdlrm
donor-functions.php49600644editdlrm
donors.php341460644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/admin/donors/donors.php (34146B)
'', 'id' => null, 'index' => null, 'default_address' => false, ) ); $address_id = $address_args['type']; // Bailout. if ( empty( $address ) || ! is_array( $address ) ) { return $address_html; } // Address html. $address_html = ''; $address_html .= sprintf( '%1$s%2$s', $address['line1'], ( ! empty( $address['line2'] ) ? '
' : '' ) ); $address_html .= sprintf( '%1$s%2$s', $address['line2'], ( ! empty( $address['city'] ) ? '
' : '' ) ); $address_html .= sprintf( '%1$s%2$s%3$s%4$s', $address['city'], ( ! empty( $address['state'] ) ? ", {$address['state']}" : '' ), ( ! empty( $address['zip'] ) ? " {$address['zip']}" : '' ), ( ! empty( $address['country'] ) ? '
' : '' ) ); $address_html .= sprintf( '%s
', $address['country'] ); // Address action. $address_html .= sprintf( '
%1$s | %2$s', __( 'Edit', 'give' ), __( 'Remove', 'give' ) ); /** * Filter the address label * * @since 2.0 */ $address_label = apply_filters( "give_donor_{$address_args['type']}_address_label", ucfirst( $address_args['type'] ), $address_args ); // Set unique id and index for multi type address. if ( isset( $address_args['index'] ) ) { $address_label = "{$address_label} #{$address_args['index']}"; } if ( isset( $address_args['id'] ) ) { $address_id = "{$address_id}_{$address_args['id']}"; } // Add address wrapper. $address_html = sprintf( '
%s%s
', $address_id, $address_label, $address_html ); return $address_html; } /** * Donors Page. * * Renders the donors page contents. * * @since 1.0 * @return void */ function give_donors_page() { $default_views = give_donor_views(); $requested_view = isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : 'donors'; if ( array_key_exists( $requested_view, $default_views ) && function_exists( $default_views[ $requested_view ] ) ) { give_render_donor_view( $requested_view, $default_views ); } else { give_donors_list(); } } /** * Register the views for donor management. * * @since 1.0 * @return array Array of views and their callbacks. */ function give_donor_views() { $views = array(); return apply_filters( 'give_donor_views', $views ); } /** * Register the tabs for donor management. * * @since 1.0 * @return array Array of tabs for the donor. */ function give_donor_tabs() { $tabs = array(); return apply_filters( 'give_donor_tabs', $tabs ); } /** * List table of donors. * * @since 1.0 * @return void */ function give_donors_list() { include GIVE_PLUGIN_DIR . 'includes/admin/donors/class-donor-table.php'; $donors_table = new Give_Donor_List_Table(); $donors_table->prepare_items(); ?>


advanced_filters(); $donors_table->display(); ?>
$reconnect_user_id ), array() ); } if ( empty( $donor->id ) ) { give_set_error( 'give-invalid_donor', __( 'Invalid Donor ID.', 'give' ) ); $render = false; } ?>

get_first_name(), $donor->get_last_name() ); ?>


notices->render_frontend_notices( 0 ); ?>
user_id ) { $read_only = 'readonly="readonly"'; } // List of title prefixes. $title_prefixes = give_get_name_title_prefixes(); // Prepend title prefix to name if it is set. $title_prefix = Give()->donor_meta->get_meta( $donor->id, '_give_donor_title_prefix', true ); $donor_name_without_prefix = $donor->name; $donor->name = give_get_donor_name_with_title_prefixes( $title_prefix, $donor->name ); ?>
email ); // Get donor's initials for non-gravatars $donor_name_array = explode( ' ', $donor_name_without_prefix ); $donor_name_args['firstname'] = ! empty( $donor_name_array[0] ) ? $donor_name_array[0] : ''; $donor_name_args['lastname'] = ! empty( $donor_name_array[1] ) ? $donor_name_array[1] : ''; $donor_name_initial = give_get_name_initial( $donor_name_args ); // Gravatars image for donor if ( $validate_gravatar_image ) { $donor_gravatar_image = get_avatar( $donor->email ); } else { $donor_gravatar_image = '
' . $donor_name_initial . '
'; } echo $donor_gravatar_image; ?>
size="15" data-key="first_name" name="donor_info[first_name]" type="text" value="get_first_name() ); ?>" placeholder=""/> user_id ) : ?> size="15" data-key="last_name" name="donor_info[last_name]" type="text" value="get_last_name() ); ?>" placeholder=""/> user_id ) : ?> name ); ?>

date_created ) ); ?>

get_meta( '_give_donor_company', true ); ?>
id ); ?>
user_id > 0 ? $donor->user_id : ''; $data_atts = array( 'key' => 'user_login', 'search-type' => 'user', ); $user_args = array( 'name' => 'donor_info[user_id]', 'class' => 'give-user-dropdown', 'data' => $data_atts, ); if ( ! empty( $user_id ) ) { $userdata = get_userdata( $user_id ); $user_args['selected'] = $user_id; } echo Give()->html->ajax_user_search( $user_args ); ?> #user_id . ' - ' . $userdata->display_name; ?> user_id ) > 0 ) : echo sprintf( '- %2$s | ', esc_html__( 'Disconnects the current user ID from this donor record.', 'give' ), esc_html__( 'Disconnect User', 'give' ), esc_url( 'user-edit.php?user_id=' . $donor->user_id ), esc_html__( 'View User Profile of current user ID.', 'give' ), esc_html__( 'View User Profile', 'give' ) ); endif; ?>

address ) ) : // Default address always will be at zero array index. $is_set_as_default = null; foreach ( $donor->address as $address_type => $addresses ) { switch ( true ) { case is_array( end( $addresses ) ): $index = 1; foreach ( $addresses as $id => $address ) { echo __give_get_format_address( $address, array( 'type' => $address_type, 'id' => $id, 'index' => $index, ) ); $index ++; } break; case is_string( end( $addresses ) ): echo __give_get_format_address( $addresses, array( 'type' => $address_type, ) ); break; } } endif; ?>
html->select( array( 'options' => give_get_country_list(), 'name' => 'country', 'selected' => give_get_option( 'base_country' ), 'show_option_all' => false, 'show_option_none' => false, 'chosen' => true, 'placeholder' => esc_attr__( 'Select a country', 'give' ), 'data' => array( 'search-type' => 'no_ajax' ), 'autocomplete' => 'country', ) ); ?>
'state', 'class' => 'regular-text', 'autocomplete' => 'address-level1', ); if ( empty( $states ) ) { // Show Text field, if empty states. $state_args = wp_parse_args( $state_args, array( 'value' => give_get_option( 'base_state' ), ) ); echo Give()->html->text( $state_args ); } else { // Show Chosen DropDown, if states are not empty. $state_args = wp_parse_args( $state_args, array( 'options' => $states, 'selected' => give_get_option( 'base_state' ), 'show_option_all' => false, 'show_option_none' => false, 'chosen' => true, 'placeholder' => __( 'Select a state', 'give' ), 'data' => array( 'search-type' => 'no_ajax' ), ) ); echo Give()->html->select( $state_args ); } ?>
  

emails ) ) { ?> emails as $key => $email ) : ?>
id ); $promote_url = wp_nonce_url( add_query_arg( array( 'email' => rawurlencode( $email ), 'give_action' => 'set_donor_primary_email', ), $base_url ), 'give-set-donor-primary-email' ); $remove_url = wp_nonce_url( add_query_arg( array( 'email' => rawurlencode( $email ), 'give_action' => 'remove_donor_email', ), $base_url ), 'give-remove-donor-email' ); ?>  | 
   

payment_ids ); $payments = give_get_payments( array( 'post__in' => $payment_ids, ) ); $payments = array_slice( $payments, 0, 10 ); ?>
seq_donation_number->get_serial_code( $payment->ID ); ?> ID, array( 'currency' => true, 'amount' => true, 'type' => 'donor', ) ); ?> post_date ) ); ?> %3$s', admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $payment->ID ), sprintf( /* translators: %s: Donation ID */ esc_attr__( 'View Donation %s.', 'give' ), $payment->ID ), __( 'View Donation', 'give' ) ); ?>

email ); ?>
post_title; ?> %3$s', esc_url( admin_url( 'post.php?action=edit&post=' . $donation->ID ) ), sprintf( /* translators: %s: form name */ esc_attr__( 'View Form %s.', 'give' ), $donation->post_title ), __( 'View Form', 'give' ) ); ?>
get_notes_count(); $per_page = apply_filters( 'give_donor_notes_per_page', 20 ); $total_pages = ceil( $note_count / $per_page ); $donor_notes = $donor->get_notes( $per_page, $paged ); ?>
email, 30 ); ?> name; ?>


'%_%', 'format' => '?paged=%#%', 'total' => $total_pages, 'current' => $paged, 'show_all' => true, ); echo paginate_links( $pagination_args ); ?>
0 ) { ?> $note ) : ?>
email, 30 ); ?> name; ?>

html->checkbox( array( 'name' => 'give-donor-delete-confirm', ) ); ?>

html->checkbox( array( 'name' => 'give-donor-delete-records', 'options' => array( 'disabled' => true, ), ) ); ?>