| @@ 449-475 (lines=27) @@ | ||
| 446 | /** |
|
| 447 | * Formats the row for output on the screen. |
|
| 448 | */ |
|
| 449 | public function format_row($row = false){ |
|
| 450 | if(false !== $row){ |
|
| 451 | ||
| 452 | $status = 'import'; |
|
| 453 | if(0 !== $row['post_id']){ |
|
| 454 | $status = '<a href="'.admin_url('/post.php?post='.$row['post_id'].'&action=edit').'" target="_blank">'.get_post_status($row['post_id']).'</a>'; |
|
| 455 | } |
|
| 456 | ||
| 457 | $row_html = ' |
|
| 458 | <tr class="post-'.$row['post_id'].' type-tour" id="post-'.$row['post_id'].'"> |
|
| 459 | <th class="check-column" scope="row"> |
|
| 460 | <label for="cb-select-'.$row['id'].'" class="screen-reader-text">'.$row['name'].'</label> |
|
| 461 | <input type="checkbox" data-identifier="'.$row['id'].'" value="'.$row['post_id'].'" name="post[]" id="cb-select-'.$row['id'].'"> |
|
| 462 | </th> |
|
| 463 | <td class="post-title page-title column-title"> |
|
| 464 | <strong>'.$row['name'].'</strong> - '.$status.' |
|
| 465 | </td> |
|
| 466 | <td class="date column-date"> |
|
| 467 | <abbr title="'.date('Y/m/d',strtotime($row['last_modified'])).'">'.date('Y/m/d',strtotime($row['last_modified'])).'</abbr><br>Last Modified |
|
| 468 | </td> |
|
| 469 | <td class="ssid column-ssid"> |
|
| 470 | '.$row['id'].' |
|
| 471 | </td> |
|
| 472 | </tr>'; |
|
| 473 | return $row_html; |
|
| 474 | } |
|
| 475 | } |
|
| 476 | ||
| 477 | /** |
|
| 478 | * 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['identifier'].'" class="screen-reader-text">'.$row['name'].'</label> |
|
| 402 | <input type="checkbox" data-identifier="'.$row['identifier'].'" value="'.$row['post_id'].'" name="post[]" id="cb-select-'.$row['identifier'].'"> |
|
| 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['identifier'].' |
|
| 412 | </td> |
|
| 413 | </tr>'; |
|
| 414 | return $row_html; |
|
| 415 | } |
|
| 416 | } |
|
| 417 | ||
| 418 | /** |
|
| 419 | * Connect to wetu |
|