give_get_forms_label_singular(), // Singular name of the listed records 'plural' => give_get_forms_label_plural(), // Plural name of the listed records 'ajax' => false,// Does this table support ajax? ) ); } /** * Show the search field * * @since 1.0 * @access public * * @param string $text Label for the search box * @param string $input_id ID of the search box * * @return void */ public function search_box( $text, $input_id ) { $input_id = $input_id . '-search-input'; if ( ! empty( $_REQUEST['orderby'] ) ) { echo ''; } if ( ! empty( $_REQUEST['order'] ) ) { echo ''; } ?>
'search-submit' ) ); ?>
__( 'Log ID', 'give' ), 'ip' => __( 'Request IP', 'give' ), 'date' => __( 'Date', 'give' ), 'details' => __( 'Request Details', 'give' ), ); return $columns; } /** * This function renders most of the columns in the list table. * * @access public * @since 1.0 * * @param array $item Contains all the data of the discount code * @param string $column_name The name of the column * * @return string Column Name */ public function column_default( $item, $column_name ) { switch ( $column_name ) { default: return esc_attr( $item[ $column_name ] ); } } /** * Output Error Message column * * @access public * @since 1.0 * * @param array $item Contains all the data of the log * * @return void */ public function column_details( $item ) { echo Give()->tooltips->render_link( array( 'label' => __( 'View Request', 'give' ), 'tag_content' => '', 'link' => "#TB_inline?width=640&inlineId=log-details-{$item['ID']}", 'attributes' => array( 'class' => 'thickbox give-error-log-details-link button button-small', ), ) ); ?> _args['plural'] ); } ?>