query_orders( array( 'fields' => 'ids' ) ); if ( ! $query_orders->get_items() ) { Template::print_message( __( 'No orders!', 'learnpress' ), 'info' ); return; } ?>
| get_order_number() ); ?> | get_formatted_order_total() ); ?> | get_order_status_html() ); ?> | get_order_date() ); ?> | get_profile_order_actions(); if ( $actions ) { foreach ( $actions as $action ) { $action_text = isset( $action['text'] ) ? (string) $action['text'] : ''; $action_url = isset( $action['url'] ) ? (string) $action['url'] : ''; $action_class = isset( $action['class'] ) ? (string) $action['class'] : ''; $action_data_attrs = ''; if ( ! empty( $action['data'] ) && is_array( $action['data'] ) ) { foreach ( $action['data'] as $data_key => $data_value ) { $action_data_attrs .= sprintf( ' data-%1$s="%2$s"', esc_attr( str_replace( '_', '-', (string) $data_key ) ), esc_attr( (string) $data_value ) ); } } $action_attrs = ''; if ( ! empty( $action_class ) ) { $action_attrs .= sprintf( ' class="%s"', esc_attr( $action_class ) ); } $action_attrs .= $action_data_attrs; if ( ! empty( $action_url ) ) { printf( '%s', esc_url_raw( $action_url ), $action_attrs, esc_html( $action_text ) ); } else { printf( '%s', $action_attrs, esc_html( $action_text ) ); } } } ?> |
| get_offset_text() ); ?> | get_nav_numbers( true ); $base_url = LP_Helper::getUrlCurrent(); echo Template::instance()->html_pagination( [ 'total_pages' => $query_orders->get_pages(), 'paged' => $query_orders->get_paged(), 'format' => '%#%/', 'base' => trailingslashit( preg_replace( '~\/[0-9]+\/?$~', '', $base_url ) ) . '%_%' ] ); ?> | |||