| @@ 420-446 (lines=27) @@ | ||
| 417 | /** |
|
| 418 | * Formats the row for output on the screen. |
|
| 419 | */ |
|
| 420 | public function format_row($row = false){ |
|
| 421 | if(false !== $row){ |
|
| 422 | ||
| 423 | $status = 'import'; |
|
| 424 | if(0 !== $row['post_id']){ |
|
| 425 | $status = '<a href="'.admin_url('/post.php?post='.$row['post_id'].'&action=edit').'" target="_blank">'.get_post_status($row['post_id']).'</a>'; |
|
| 426 | } |
|
| 427 | ||
| 428 | $row_html = ' |
|
| 429 | <tr class="post-'.$row['post_id'].' type-tour" id="post-'.$row['post_id'].'"> |
|
| 430 | <th class="check-column" scope="row"> |
|
| 431 | <label for="cb-select-'.$row['identifier'].'" class="screen-reader-text">'.$row['name'].'</label> |
|
| 432 | <input type="checkbox" data-identifier="'.$row['identifier'].'" value="'.$row['post_id'].'" name="post[]" id="cb-select-'.$row['identifier'].'"> |
|
| 433 | </th> |
|
| 434 | <td class="post-title page-title column-title"> |
|
| 435 | <strong>'.$row['name'].'</strong> - '.$status.' |
|
| 436 | </td> |
|
| 437 | <td class="date column-date"> |
|
| 438 | <abbr title="'.date('Y/m/d',strtotime($row['last_modified'])).'">'.date('Y/m/d',strtotime($row['last_modified'])).'</abbr><br>Last Modified |
|
| 439 | </td> |
|
| 440 | <td class="ssid column-ssid"> |
|
| 441 | '.$row['identifier'].' |
|
| 442 | </td> |
|
| 443 | </tr>'; |
|
| 444 | return $row_html; |
|
| 445 | } |
|
| 446 | } |
|
| 447 | ||
| 448 | /** |
|
| 449 | * Connect to wetu |
|
| @@ 478-504 (lines=27) @@ | ||
| 475 | /** |
|
| 476 | * Formats the row for output on the screen. |
|
| 477 | */ |
|
| 478 | public function format_row($row = false){ |
|
| 479 | if(false !== $row){ |
|
| 480 | ||
| 481 | $status = 'import'; |
|
| 482 | if(0 !== $row['post_id']){ |
|
| 483 | $status = '<a href="'.admin_url('/post.php?post='.$row['post_id'].'&action=edit').'" target="_blank">'.get_post_status($row['post_id']).'</a>'; |
|
| 484 | } |
|
| 485 | ||
| 486 | $row_html = ' |
|
| 487 | <tr class="post-'.$row['post_id'].' type-tour" id="post-'.$row['post_id'].'"> |
|
| 488 | <th class="check-column" scope="row"> |
|
| 489 | <label for="cb-select-'.$row['id'].'" class="screen-reader-text">'.$row['name'].'</label> |
|
| 490 | <input type="checkbox" data-identifier="'.$row['id'].'" value="'.$row['post_id'].'" name="post[]" id="cb-select-'.$row['id'].'"> |
|
| 491 | </th> |
|
| 492 | <td class="post-title page-title column-title"> |
|
| 493 | <strong>'.$row['name'].'</strong> - '.$status.' |
|
| 494 | </td> |
|
| 495 | <td class="date column-date"> |
|
| 496 | <abbr title="'.date('Y/m/d',strtotime($row['last_modified'])).'">'.date('Y/m/d',strtotime($row['last_modified'])).'</abbr><br>Last Modified |
|
| 497 | </td> |
|
| 498 | <td class="ssid column-ssid"> |
|
| 499 | '.$row['id'].' |
|
| 500 | </td> |
|
| 501 | </tr>'; |
|
| 502 | return $row_html; |
|
| 503 | } |
|
| 504 | } |
|
| 505 | ||
| 506 | /** |
|
| 507 | * Connect to wetu |
|