Dotclear


Ignore:
Timestamp:
07/12/18 10:49:09 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with attachment icon in post/page list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/class.listpage.php

    r3731 r3774  
    7474    private function postLine($count, $checked) 
    7575    { 
    76         $img       = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 
     76        $img       = '<img alt="%1$s" title="%1$s" src="images/%2$s" class="mark mark-%3$s" />'; 
    7777        $sts_class = ''; 
    7878        switch ($this->rs->post_status) { 
    7979            case 1: 
    80                 $img_status = sprintf($img, __('Published'), 'check-on.png'); 
     80                $img_status = sprintf($img, __('Published'), 'check-on.png', 'published'); 
    8181                $sts_class  = 'sts-online'; 
    8282                break; 
    8383            case 0: 
    84                 $img_status = sprintf($img, __('Unpublished'), 'check-off.png'); 
     84                $img_status = sprintf($img, __('Unpublished'), 'check-off.png', 'unpublished'); 
    8585                $sts_class  = 'sts-offline'; 
    8686                break; 
    8787            case -1: 
    88                 $img_status = sprintf($img, __('Scheduled'), 'scheduled.png'); 
     88                $img_status = sprintf($img, __('Scheduled'), 'scheduled.png', 'scheduled'); 
    8989                $sts_class  = 'sts-scheduled'; 
    9090                break; 
    9191            case -2: 
    92                 $img_status = sprintf($img, __('Pending'), 'check-wrn.png'); 
     92                $img_status = sprintf($img, __('Pending'), 'check-wrn.png', 'pending'); 
    9393                $sts_class  = 'sts-pending'; 
    9494                break; 
     
    9797        $protected = ''; 
    9898        if ($this->rs->post_password) { 
    99             $protected = sprintf($img, __('Protected'), 'locker.png'); 
     99            $protected = sprintf($img, __('Protected'), 'locker.png', 'locked'); 
    100100        } 
    101101 
    102102        $selected = ''; 
    103103        if ($this->rs->post_selected) { 
    104             $selected = sprintf($img, __('Hidden'), 'hidden.png'); 
     104            $selected = sprintf($img, __('Hidden'), 'hidden.png', 'hidden'); 
    105105        } 
    106106 
     
    109109        if ($nb_media > 0) { 
    110110            $attach_str = $nb_media == 1 ? __('%d attachment') : __('%d attachments'); 
    111             $attach     = sprintf($img, sprintf($attach_str, $nb_media), 'attach.png'); 
     111            $attach     = sprintf($img, sprintf($attach_str, $nb_media), 'attach.png', 'attach'); 
    112112        } 
    113113 
Note: See TracChangeset for help on using the changeset viewer.

Sites map