| @@ 401-427 (lines=27) @@ | ||
| 398 | /** |
|
| 399 | * Formats the row for output on the screen. |
|
| 400 | */ |
|
| 401 | public function format_row( $row = false ) { |
|
| 402 | if ( false !== $row ) { |
|
| 403 | ||
| 404 | $status = 'import'; |
|
| 405 | if ( 0 !== $row['post_id'] ) { |
|
| 406 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 407 | } |
|
| 408 | ||
| 409 | $row_html = ' |
|
| 410 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 411 | <th class="check-column" scope="row"> |
|
| 412 | <label for="cb-select-' . $row['id'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 413 | <input type="checkbox" data-identifier="' . $row['id'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['id'] . '"> |
|
| 414 | </th> |
|
| 415 | <td class="post-title page-title column-title"> |
|
| 416 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 417 | </td> |
|
| 418 | <td class="date column-date"> |
|
| 419 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 420 | </td> |
|
| 421 | <td class="ssid column-ssid"> |
|
| 422 | ' . $row['id'] . ' |
|
| 423 | </td> |
|
| 424 | </tr>'; |
|
| 425 | return $row_html; |
|
| 426 | } |
|
| 427 | } |
|
| 428 | ||
| 429 | /** |
|
| 430 | * Saves the queue to the option. |
|
| @@ 457-483 (lines=27) @@ | ||
| 454 | /** |
|
| 455 | * Formats the row for output on the screen. |
|
| 456 | */ |
|
| 457 | public function format_row( $row = false ) { |
|
| 458 | if ( false !== $row ) { |
|
| 459 | ||
| 460 | $status = 'import'; |
|
| 461 | if ( 0 !== $row['post_id'] ) { |
|
| 462 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 463 | } |
|
| 464 | ||
| 465 | $row_html = ' |
|
| 466 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 467 | <th class="check-column" scope="row"> |
|
| 468 | <label for="cb-select-' . $row['id'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 469 | <input type="checkbox" data-identifier="' . $row['id'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['id'] . '"> |
|
| 470 | </th> |
|
| 471 | <td class="post-title page-title column-title"> |
|
| 472 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 473 | </td> |
|
| 474 | <td class="date column-date"> |
|
| 475 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 476 | </td> |
|
| 477 | <td class="ssid column-ssid"> |
|
| 478 | ' . $row['id'] . ' |
|
| 479 | </td> |
|
| 480 | </tr>'; |
|
| 481 | return $row_html; |
|
| 482 | } |
|
| 483 | } |
|
| 484 | ||
| 485 | /** |
|
| 486 | * Connect to wetu |
|
| @@ 480-506 (lines=27) @@ | ||
| 477 | /** |
|
| 478 | * Formats the row for output on the screen. |
|
| 479 | */ |
|
| 480 | public function format_row( $row = false ) { |
|
| 481 | if ( false !== $row ) { |
|
| 482 | $status = 'import'; |
|
| 483 | ||
| 484 | if ( 0 !== $row['post_id'] ) { |
|
| 485 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 486 | } |
|
| 487 | ||
| 488 | $row_html = ' |
|
| 489 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 490 | <th class="check-column" scope="row"> |
|
| 491 | <label for="cb-select-' . $row['identifier'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 492 | <input type="checkbox" data-identifier="' . $row['identifier'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['identifier'] . '"> |
|
| 493 | </th> |
|
| 494 | <td class="post-title page-title column-title"> |
|
| 495 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 496 | </td> |
|
| 497 | <td class="date column-date"> |
|
| 498 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 499 | </td> |
|
| 500 | <td class="ssid column-ssid"> |
|
| 501 | ' . $row['identifier'] . ' |
|
| 502 | </td> |
|
| 503 | </tr>'; |
|
| 504 | return $row_html; |
|
| 505 | } |
|
| 506 | } |
|
| 507 | ||
| 508 | /** |
|
| 509 | * Connect to wetu |
|