| @@ 209-228 (lines=20) @@ | ||
| 206 | * |
|
| 207 | * @param string $which |
|
| 208 | */ |
|
| 209 | protected function display_tablenav( $which ) { |
|
| 210 | if ( 'top' === $which ) { |
|
| 211 | wp_nonce_field( 'bulk-' . $this->_args['plural'] ); |
|
| 212 | } |
|
| 213 | ?> |
|
| 214 | <div class="tablenav <?php echo esc_attr( $which ); ?>"> |
|
| 215 | ||
| 216 | <div class="alignleft actions bulkactions"> |
|
| 217 | <?php $this->bulk_actions( $which ); ?> |
|
| 218 | </div> |
|
| 219 | ||
| 220 | <?php |
|
| 221 | $this->extra_tablenav( $which ); |
|
| 222 | $this->pagination( $which ); |
|
| 223 | ?> |
|
| 224 | ||
| 225 | <br class="clear"/> |
|
| 226 | </div> |
|
| 227 | <?php |
|
| 228 | } |
|
| 229 | ||
| 230 | /** |
|
| 231 | * Display the key generation form |
|
| @@ 209-227 (lines=19) @@ | ||
| 206 | * |
|
| 207 | * @param string $which |
|
| 208 | */ |
|
| 209 | protected function display_tablenav( $which ) { |
|
| 210 | if ( 'top' === $which ) { |
|
| 211 | wp_nonce_field( 'bulk-' . $this->_args['plural'] ); |
|
| 212 | } |
|
| 213 | ?> |
|
| 214 | <div class="tablenav <?php echo esc_attr( $which ); ?>"> |
|
| 215 | ||
| 216 | <div class="alignleft actions bulkactions"> |
|
| 217 | <?php $this->bulk_actions( $which ); ?> |
|
| 218 | </div> |
|
| 219 | <?php |
|
| 220 | $this->extra_tablenav( $which ); |
|
| 221 | $this->pagination( $which ); |
|
| 222 | ?> |
|
| 223 | ||
| 224 | <br class="clear"/> |
|
| 225 | </div> |
|
| 226 | <?php |
|
| 227 | } |
|
| 228 | ||
| 229 | /** |
|
| 230 | * Gets the meta query for the log query |
|
| @@ 223-241 (lines=19) @@ | ||
| 220 | * |
|
| 221 | * @param string $which |
|
| 222 | */ |
|
| 223 | protected function display_tablenav( $which ) { |
|
| 224 | if ( 'top' === $which ) { |
|
| 225 | wp_nonce_field( 'bulk-' . $this->_args['plural'] ); |
|
| 226 | } |
|
| 227 | ?> |
|
| 228 | <div class="tablenav <?php echo esc_attr( $which ); ?>"> |
|
| 229 | ||
| 230 | <div class="alignleft actions bulkactions"> |
|
| 231 | <?php $this->bulk_actions( $which ); ?> |
|
| 232 | </div> |
|
| 233 | <?php |
|
| 234 | $this->extra_tablenav( $which ); |
|
| 235 | $this->pagination( $which ); |
|
| 236 | ?> |
|
| 237 | ||
| 238 | <br class="clear"/> |
|
| 239 | </div> |
|
| 240 | <?php |
|
| 241 | } |
|
| 242 | ||
| 243 | /** |
|
| 244 | * Setup the final data for the table |
|
| @@ 160-178 (lines=19) @@ | ||
| 157 | * |
|
| 158 | * @param string $which |
|
| 159 | */ |
|
| 160 | protected function display_tablenav( $which ) { |
|
| 161 | if ( 'top' === $which ) { |
|
| 162 | wp_nonce_field( 'bulk-' . $this->_args['plural'] ); |
|
| 163 | } |
|
| 164 | ?> |
|
| 165 | <div class="tablenav <?php echo esc_attr( $which ); ?>"> |
|
| 166 | ||
| 167 | <div class="alignleft actions bulkactions"> |
|
| 168 | <?php $this->bulk_actions( $which ); ?> |
|
| 169 | </div> |
|
| 170 | <?php |
|
| 171 | $this->extra_tablenav( $which ); |
|
| 172 | $this->pagination( $which ); |
|
| 173 | ?> |
|
| 174 | ||
| 175 | <br class="clear"/> |
|
| 176 | </div> |
|
| 177 | <?php |
|
| 178 | } |
|
| 179 | ||
| 180 | /** |
|
| 181 | * Retrieve the current page number |
|
| @@ 358-375 (lines=18) @@ | ||
| 355 | * @access protected |
|
| 356 | * @since 1.8.16 |
|
| 357 | */ |
|
| 358 | protected function display_tablenav( $which ) { |
|
| 359 | if ( 'top' === $which ) { |
|
| 360 | wp_nonce_field( 'bulk-donors','_wpnonce', false ); |
|
| 361 | } |
|
| 362 | ?> |
|
| 363 | <div class="tablenav <?php echo esc_attr( $which ); ?>"> |
|
| 364 | <?php if ( $this->has_items() ) : ?> |
|
| 365 | <div class="alignleft actions bulkactions"> |
|
| 366 | <?php $this->bulk_actions( $which ); ?> |
|
| 367 | </div> |
|
| 368 | <?php endif; |
|
| 369 | $this->extra_tablenav( $which ); |
|
| 370 | $this->pagination( $which ); |
|
| 371 | ?> |
|
| 372 | <br class="clear"/> |
|
| 373 | </div> |
|
| 374 | <?php |
|
| 375 | } |
|
| 376 | ||
| 377 | /** |
|
| 378 | * Retrieves the donor data from db. |
|