Changeset 918:7480ab529b0a for admin/media_item.php
- Timestamp:
- 10/26/12 19:22:15 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/media_item.php
r907 r918 429 429 echo '<ul>'; 430 430 while ($rs->fetch()) { 431 echo '<li><a href="'.$core->getPostAdminURL($rs->post_type,$rs->post_id).'">'. 432 $rs->post_title.'</a>'. 433 ($rs->post_type != 'post' ? ' ('.html::escapeHTML($rs->post_type).')' : ''). 434 ' - '.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->post_dt).'</li>'; 431 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 432 switch ($rs->post_status) { 433 case 1: 434 $img_status = sprintf($img,__('published'),'check-on.png'); 435 break; 436 case 0: 437 $img_status = sprintf($img,__('unpublished'),'check-off.png'); 438 break; 439 case -1: 440 $img_status = sprintf($img,__('scheduled'),'scheduled.png'); 441 break; 442 case -2: 443 $img_status = sprintf($img,__('pending'),'check-wrn.png'); 444 break; 445 } 446 echo '<li>'.$img_status.' '.'<a href="'.$core->getPostAdminURL($rs->post_type,$rs->post_id).'">'. 447 $rs->post_title.'</a>'. 448 ($rs->post_type != 'post' ? ' ('.html::escapeHTML($rs->post_type).')' : ''). 449 ' - '.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->post_dt).'</li>'; 435 450 } 436 451 echo '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.