@@ 464-490 (lines=27) @@ | ||
461 | /** |
|
462 | * Formats the row for output on the screen. |
|
463 | */ |
|
464 | public function format_row($row = false){ |
|
465 | if(false !== $row){ |
|
466 | ||
467 | $status = 'import'; |
|
468 | if(0 !== $row['post_id']){ |
|
469 | $status = '<a href="'.admin_url('/post.php?post='.$row['post_id'].'&action=edit').'" target="_blank">'.get_post_status($row['post_id']).'</a>'; |
|
470 | } |
|
471 | ||
472 | $row_html = ' |
|
473 | <tr class="post-'.$row['post_id'].' type-tour" id="post-'.$row['post_id'].'"> |
|
474 | <th class="check-column" scope="row"> |
|
475 | <label for="cb-select-'.$row['id'].'" class="screen-reader-text">'.$row['name'].'</label> |
|
476 | <input type="checkbox" data-identifier="'.$row['id'].'" value="'.$row['post_id'].'" name="post[]" id="cb-select-'.$row['id'].'"> |
|
477 | </th> |
|
478 | <td class="post-title page-title column-title"> |
|
479 | <strong>'.$row['name'].'</strong> - '.$status.' |
|
480 | </td> |
|
481 | <td class="date column-date"> |
|
482 | <abbr title="'.date('Y/m/d',strtotime($row['last_modified'])).'">'.date('Y/m/d',strtotime($row['last_modified'])).'</abbr><br>Last Modified |
|
483 | </td> |
|
484 | <td class="ssid column-ssid"> |
|
485 | '.$row['id'].' |
|
486 | </td> |
|
487 | </tr>'; |
|
488 | return $row_html; |
|
489 | } |
|
490 | } |
|
491 | ||
492 | /** |
|
493 | * Connect to wetu |
@@ 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 |