| @@ 384-410 (lines=27) @@ | ||
| 381 | * @param boolean $row the current row to format. |
|
| 382 | * @return void |
|
| 383 | */ |
|
| 384 | public function format_row( $row = false ) { |
|
| 385 | if ( false !== $row ) { |
|
| 386 | ||
| 387 | $status = 'import'; |
|
| 388 | if ( 0 !== $row['post_id'] ) { |
|
| 389 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 390 | } |
|
| 391 | ||
| 392 | $row_html = ' |
|
| 393 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 394 | <th class="check-column" scope="row"> |
|
| 395 | <label for="cb-select-' . $row['id'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 396 | <input type="checkbox" data-identifier="' . $row['id'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['id'] . '"> |
|
| 397 | </th> |
|
| 398 | <td class="post-title page-title column-title"> |
|
| 399 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 400 | </td> |
|
| 401 | <td class="date column-date"> |
|
| 402 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 403 | </td> |
|
| 404 | <td class="ssid column-ssid"> |
|
| 405 | ' . $row['id'] . ' |
|
| 406 | </td> |
|
| 407 | </tr>'; |
|
| 408 | return $row_html; |
|
| 409 | } |
|
| 410 | } |
|
| 411 | ||
| 412 | /** |
|
| 413 | * Saves the queue to the option. |
|
| @@ 442-468 (lines=27) @@ | ||
| 439 | /** |
|
| 440 | * Formats the row for output on the screen. |
|
| 441 | */ |
|
| 442 | public function format_row( $row = false ) { |
|
| 443 | if ( false !== $row ) { |
|
| 444 | ||
| 445 | $status = 'import'; |
|
| 446 | if ( 0 !== $row['post_id'] ) { |
|
| 447 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 448 | } |
|
| 449 | ||
| 450 | $row_html = ' |
|
| 451 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 452 | <th class="check-column" scope="row"> |
|
| 453 | <label for="cb-select-' . $row['id'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 454 | <input type="checkbox" data-identifier="' . $row['id'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['id'] . '"> |
|
| 455 | </th> |
|
| 456 | <td class="post-title page-title column-title"> |
|
| 457 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 458 | </td> |
|
| 459 | <td class="date column-date"> |
|
| 460 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 461 | </td> |
|
| 462 | <td class="ssid column-ssid"> |
|
| 463 | ' . $row['id'] . ' |
|
| 464 | </td> |
|
| 465 | </tr>'; |
|
| 466 | return $row_html; |
|
| 467 | } |
|
| 468 | } |
|
| 469 | ||
| 470 | /** |
|
| 471 | * Connect to wetu |
|