| @@ 477-503 (lines=27) @@ | ||
| 474 | /** |
|
| 475 | * Formats the row for output on the screen. |
|
| 476 | */ |
|
| 477 | public function format_row( $row = false ) { |
|
| 478 | if ( false !== $row ) { |
|
| 479 | $status = 'import'; |
|
| 480 | ||
| 481 | if ( 0 !== $row['post_id'] ) { |
|
| 482 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 483 | } |
|
| 484 | ||
| 485 | $row_html = ' |
|
| 486 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 487 | <th class="check-column" scope="row"> |
|
| 488 | <label for="cb-select-' . $row['identifier'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 489 | <input type="checkbox" data-identifier="' . $row['identifier'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['identifier'] . '"> |
|
| 490 | </th> |
|
| 491 | <td class="post-title page-title column-title"> |
|
| 492 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 493 | </td> |
|
| 494 | <td class="date column-date"> |
|
| 495 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 496 | </td> |
|
| 497 | <td class="ssid column-ssid"> |
|
| 498 | ' . $row['identifier'] . ' |
|
| 499 | </td> |
|
| 500 | </tr>'; |
|
| 501 | return $row_html; |
|
| 502 | } |
|
| 503 | } |
|
| 504 | ||
| 505 | /** |
|
| 506 | * Connect to wetu |
|
| @@ 390-416 (lines=27) @@ | ||
| 387 | /** |
|
| 388 | * Formats the row for output on the screen. |
|
| 389 | */ |
|
| 390 | public function format_row( $row = false ) { |
|
| 391 | if ( false !== $row ) { |
|
| 392 | ||
| 393 | $status = 'import'; |
|
| 394 | if ( 0 !== $row['post_id'] ) { |
|
| 395 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 396 | } |
|
| 397 | ||
| 398 | $row_html = ' |
|
| 399 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 400 | <th class="check-column" scope="row"> |
|
| 401 | <label for="cb-select-' . $row['id'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 402 | <input type="checkbox" data-identifier="' . $row['id'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['id'] . '"> |
|
| 403 | </th> |
|
| 404 | <td class="post-title page-title column-title"> |
|
| 405 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 406 | </td> |
|
| 407 | <td class="date column-date"> |
|
| 408 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 409 | </td> |
|
| 410 | <td class="ssid column-ssid"> |
|
| 411 | ' . $row['id'] . ' |
|
| 412 | </td> |
|
| 413 | </tr>'; |
|
| 414 | return $row_html; |
|
| 415 | } |
|
| 416 | } |
|
| 417 | ||
| 418 | /** |
|
| 419 | * Saves the queue to the option. |
|
| @@ 439-465 (lines=27) @@ | ||
| 436 | /** |
|
| 437 | * Formats the row for output on the screen. |
|
| 438 | */ |
|
| 439 | public function format_row( $row = false ) { |
|
| 440 | if ( false !== $row ) { |
|
| 441 | ||
| 442 | $status = 'import'; |
|
| 443 | if ( 0 !== $row['post_id'] ) { |
|
| 444 | $status = '<a href="' . admin_url( '/post.php?post=' . $row['post_id'] . '&action=edit' ) . '" target="_blank">' . get_post_status( $row['post_id'] ) . '</a>'; |
|
| 445 | } |
|
| 446 | ||
| 447 | $row_html = ' |
|
| 448 | <tr class="post-' . $row['post_id'] . ' type-tour" id="post-' . $row['post_id'] . '"> |
|
| 449 | <th class="check-column" scope="row"> |
|
| 450 | <label for="cb-select-' . $row['id'] . '" class="screen-reader-text">' . $row['name'] . '</label> |
|
| 451 | <input type="checkbox" data-identifier="' . $row['id'] . '" value="' . $row['post_id'] . '" name="post[]" id="cb-select-' . $row['id'] . '"> |
|
| 452 | </th> |
|
| 453 | <td class="post-title page-title column-title"> |
|
| 454 | <strong>' . $row['name'] . '</strong> - ' . $status . ' |
|
| 455 | </td> |
|
| 456 | <td class="date column-date"> |
|
| 457 | <abbr title="' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '">' . date( 'Y/m/d',strtotime( $row['last_modified'] ) ) . '</abbr><br>Last Modified |
|
| 458 | </td> |
|
| 459 | <td class="ssid column-ssid"> |
|
| 460 | ' . $row['id'] . ' |
|
| 461 | </td> |
|
| 462 | </tr>'; |
|
| 463 | return $row_html; |
|
| 464 | } |
|
| 465 | } |
|
| 466 | ||
| 467 | /** |
|
| 468 | * Connect to wetu |
|