Changeset 3118:5c671c6fae8a
- Timestamp:
- 10/18/15 17:28:13 (10 years ago)
- Branch:
- default
- Children:
- 3126:19af5f62e940, 3129:6f41108168cf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.pager.php
r3089 r3118 232 232 233 233 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 234 $sts_class = ''; 234 235 switch ($this->rs->post_status) { 235 236 case 1: 236 237 $img_status = sprintf($img,__('Published'),'check-on.png'); 238 $sts_class = 'sts-online'; 237 239 break; 238 240 case 0: 239 241 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 242 $sts_class = 'sts-offline'; 240 243 break; 241 244 case -1: 242 245 $img_status = sprintf($img,__('Scheduled'),'scheduled.png'); 246 $sts_class = 'sts-scheduled'; 243 247 break; 244 248 case -2: 245 249 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 250 $sts_class = 'sts-pending'; 246 251 break; 247 252 } … … 264 269 } 265 270 266 $res = '<tr class="line '.($this->rs->post_status != 1 ? ' offline' : '').'"'.271 $res = '<tr class="line '.($this->rs->post_status != 1 ? 'offline ' : '').$sts_class.'"'. 267 272 ' id="p'.$this->rs->post_id.'">'; 268 273 … … 342 347 { 343 348 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 349 $sts_class = ''; 344 350 switch ($this->rs->post_status) { 345 351 case 1: 346 352 $img_status = sprintf($img,__('Published'),'check-on.png'); 353 $sts_class = 'sts-online'; 347 354 break; 348 355 case 0: 349 356 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 357 $sts_class = 'sts-offline'; 350 358 break; 351 359 case -1: 352 360 $img_status = sprintf($img,__('Scheduled'),'scheduled.png'); 361 $sts_class = 'sts-scheduled'; 353 362 break; 354 363 case -2: 355 364 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 365 $sts_class = 'sts-pending'; 356 366 break; 357 367 } … … 374 384 } 375 385 376 $res = '<tr class="line '.($this->rs->post_status != 1 ? ' offline' : '').'"'.386 $res = '<tr class="line '.($this->rs->post_status != 1 ? 'offline ' : '').$sts_class.'"'. 377 387 ' id="p'.$this->rs->post_id.'">'; 378 388 … … 507 517 508 518 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 519 $sts_class = ''; 509 520 switch ($this->rs->comment_status) { 510 521 case 1: 511 522 $img_status = sprintf($img,__('Published'),'check-on.png'); 523 $sts_class = 'sts-online'; 512 524 break; 513 525 case 0: 514 526 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 527 $sts_class = 'sts-offline'; 515 528 break; 516 529 case -1: 517 530 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 531 $sts_class = 'sts-pending'; 518 532 break; 519 533 case -2: 520 534 $img_status = sprintf($img,__('Junk'),'junk.png'); 535 $sts_class = 'sts-junk'; 521 536 break; 522 537 } … … 530 545 html::escapeHTML($this->rs->comment_author)); 531 546 532 $res = '<tr class="line '.($this->rs->comment_status != 1 ? ' offline' : '').'"'.547 $res = '<tr class="line '.($this->rs->comment_status != 1 ? 'offline ' : '').$sts_class.'"'. 533 548 ' id="c'.$this->rs->comment_id.'">'; 534 549 -
plugins/pages/class.listpage.php
r3089 r3118 77 77 { 78 78 $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 79 $sts_class = ''; 79 80 switch ($this->rs->post_status) { 80 81 case 1: 81 82 $img_status = sprintf($img,__('Published'),'check-on.png'); 83 $sts_class = 'sts-online'; 82 84 break; 83 85 case 0: 84 86 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 87 $sts_class = 'sts-offline'; 85 88 break; 86 89 case -1: 87 90 $img_status = sprintf($img,__('Scheduled'),'scheduled.png'); 91 $sts_class = 'sts-scheduled'; 88 92 break; 89 93 case -2: 90 94 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 95 $sts_class = 'sts-pending'; 91 96 break; 92 97 } … … 109 114 } 110 115 111 $res = '<tr class="line '.($this->rs->post_status != 1 ? ' offline' : '').'"'.116 $res = '<tr class="line '.($this->rs->post_status != 1 ? 'offline ' : '').$sts_class.'"'. 112 117 ' id="p'.$this->rs->post_id.'">'; 113 118
Note: See TracChangeset
for help on using the changeset viewer.