Dotclear

Changeset 3774:6d9581959be6


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

Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • admin/style/config.rb

    r3355 r3774  
    55css_dir = "./" 
    66sass_dir = "scss" 
    7 images_dir = "img" 
     7images_dir = "./" 
    88javascripts_dir = "scripts" 
    99 
  • admin/style/default-dark.css

    r3771 r3774  
    30993099  font-weight: bold; } 
    31003100 
     3101/* ------------------------------------------------------------------------- indicateurs */ 
     3102.mark-attach { 
     3103  display: inline-block; 
     3104  box-sizing: border-box; 
     3105  width: 12px; 
     3106  height: 12px; 
     3107  padding-left: 12px; 
     3108  background: url("../images/attach.svg") no-repeat; 
     3109  filter: hue-rotate(260deg) saturate(100) saturate(0.2) brightness(220%); } 
     3110 
    31013111/* ---------------------------------------------------------------- utilisables partout  */ 
    31023112.legible { 
  • admin/style/default.css

    r3771 r3774  
    30993099  font-weight: bold; } 
    31003100 
     3101/* ------------------------------------------------------------------------- indicateurs */ 
     3102.mark-attach { 
     3103  display: inline-block; 
     3104  box-sizing: border-box; 
     3105  width: 12px; 
     3106  height: 12px; 
     3107  padding-left: 12px; 
     3108  background: url("../images/attach.svg") no-repeat; 
     3109  filter: hue-rotate(300deg) saturate(0.64); } 
     3110 
    31013111/* ---------------------------------------------------------------- utilisables partout  */ 
    31023112.legible { 
  • admin/style/scss/partials/_classes.scss

    r3770 r3774  
    229229} 
    230230 
     231/* ------------------------------------------------------------------------- indicateurs */ 
     232 
     233.mark {} 
     234 
     235.mark-published {} 
     236.mark-unpublished {} 
     237.mark-scheduled {} 
     238.mark-pending {} 
     239.mark-locked {} 
     240.mark-selected {} 
     241.mark-hidden {} 
     242.mark-attach { 
     243  display: inline-block; 
     244  box-sizing: border-box; 
     245  width: 12px; 
     246  height: 12px; 
     247  padding-left: 12px; 
     248  background: $mark-attach-img no-repeat; 
     249  filter: $mark-attach-filter; 
     250} 
    231251 
    232252/* ---------------------------------------------------------------- utilisables partout  */ 
  • admin/style/scss/themes/_dark.scss

    r3771 r3774  
    419419$offline:                         $gray-semi-dark; 
    420420 
     421$mark-attach-img:                 url('../images/attach.svg'); 
     422$mark-attach-filter:              hue-rotate(260deg) saturate(100) saturate(.2) brightness(220%); 
     423 
    421424// Utils 
    422425 
  • admin/style/scss/themes/_light.scss

    r3771 r3774  
    418418$offline:                         $gray-dark;                         // #676e78 
    419419 
     420$mark-attach-img:                 url('../images/attach.svg'); 
     421$mark-attach-filter:              hue-rotate(300deg) saturate(.64); 
     422 
    420423// Utils 
    421424 
  • 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 
  • 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