Dotclear


Ignore:
Timestamp:
07/23/18 14:42:23 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Animate some counters on dashboard icons (nb of comments, spam comments and posts), just for fun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/inc/lib.dc.antispam.php

    r3731 r3781  
    7373        if (($count = self::countSpam($core)) > 0) { 
    7474            $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 
    75             $icons['comments'][0] .= '</span></a> <br /><a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span>' . 
     75            $icons['comments'][0] .= '</span></a> <br /><a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span class="db-icon-title-spam">' . 
    7676            sprintf($str, $count); 
    7777        } 
     
    8282        if (($count = self::countSpam($core)) > 0) { 
    8383            $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 
    84             return '</span></a> <br /><a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span>' . 
     84            return '</span></a> <br /><a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span class="db-icon-title-spam">' . 
    8585            sprintf($str, $count); 
    8686        } else { 
    8787            return ''; 
    8888        } 
     89    } 
     90 
     91    public static function dashboardHeaders() 
     92    { 
     93        return dcPage::jsLoad(urldecode(dcPage::getPF('antispam/js/dashboard.js'))); 
    8994    } 
    9095 
Note: See TracChangeset for help on using the changeset viewer.

Sites map