Changeset 3118:5c671c6fae8a for plugins/pages/class.listpage.php
- Timestamp:
- 10/18/15 17:28:13 (10 years ago)
- Branch:
- default
- Children:
- 3126:19af5f62e940, 3129:6f41108168cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.