Dotclear

Changeset 3774:6d9581959be6 for inc


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
  • inc/admin/lib.pager.php

    r3771 r3774  
    273273        } 
    274274 
    275         $img       = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 
     275        $img       = '<img alt="%1$s" title="%1$s" src="images/%2$s" class="mark mark-%3$s" />'; 
    276276        $sts_class = ''; 
    277277        switch ($this->rs->post_status) { 
    278278            case 1: 
    279                 $img_status = sprintf($img, __('Published'), 'check-on.png'); 
     279                $img_status = sprintf($img, __('Published'), 'check-on.png', 'published'); 
    280280                $sts_class  = 'sts-online'; 
    281281                break; 
    282282            case 0: 
    283                 $img_status = sprintf($img, __('Unpublished'), 'check-off.png'); 
     283                $img_status = sprintf($img, __('Unpublished'), 'check-off.png', 'unpublished'); 
    284284                $sts_class  = 'sts-offline'; 
    285285                break; 
    286286            case -1: 
    287                 $img_status = sprintf($img, __('Scheduled'), 'scheduled.png'); 
     287                $img_status = sprintf($img, __('Scheduled'), 'scheduled.png', 'scheduled'); 
    288288                $sts_class  = 'sts-scheduled'; 
    289289                break; 
    290290            case -2: 
    291                 $img_status = sprintf($img, __('Pending'), 'check-wrn.png'); 
     291                $img_status = sprintf($img, __('Pending'), 'check-wrn.png', 'pending'); 
    292292                $sts_class  = 'sts-pending'; 
    293293                break; 
     
    296296        $protected = ''; 
    297297        if ($this->rs->post_password) { 
    298             $protected = sprintf($img, __('Protected'), 'locker.png'); 
     298            $protected = sprintf($img, __('Protected'), 'locker.png', 'locked'); 
    299299        } 
    300300 
    301301        $selected = ''; 
    302302        if ($this->rs->post_selected) { 
    303             $selected = sprintf($img, __('Selected'), 'selected.png'); 
     303            $selected = sprintf($img, __('Selected'), 'selected.png', 'selected'); 
    304304        } 
    305305 
     
    308308        if ($nb_media > 0) { 
    309309            $attach_str = $nb_media == 1 ? __('%d attachment') : __('%d attachments'); 
    310             $attach     = sprintf($img, sprintf($attach_str, $nb_media), 'attach.png'); 
     310            $attach     = sprintf($img, sprintf($attach_str, $nb_media), 'attach.png', 'attach'); 
    311311        } 
    312312 
Note: See TracChangeset for help on using the changeset viewer.

Sites map