Changeset 3781:a86e029cb95d for plugins
- Timestamp:
- 07/23/18 14:42:23 (7 years ago)
- Branch:
- default
- Location:
- plugins/antispam
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/_admin.php
r3731 r3781 25 25 $core->addBehavior('adminAfterCommentDesc', array('dcAntispam', 'statusMessage')); 26 26 $core->addBehavior('adminDashboardIcons', array('dcAntispam', 'dashboardIcon')); 27 $core->addBehavior('adminDashboardHeaders', array('dcAntispam', 'dashboardHeaders')); 27 28 28 29 $core->addBehavior('adminDashboardFavorites', 'antispamDashboardFavorites'); -
plugins/antispam/_prepend.php
r3731 r3781 26 26 $core->url->register('spamfeed', 'spamfeed', '^spamfeed/(.+)$', array('dcAntispamURL', 'spamFeed')); 27 27 $core->url->register('hamfeed', 'hamfeed', '^hamfeed/(.+)$', array('dcAntispamURL', 'hamFeed')); 28 29 if (!defined('DC_CONTEXT_ADMIN')) {return false;} 30 31 // Admin mode 32 33 $__autoload['dcAntispamRest'] = dirname(__FILE__) . '/_services.php'; 34 35 // Register REST methods 36 $core->rest->addFunction('getSpamsCount', array('dcAntispamRest', 'getSpamsCount')); -
plugins/antispam/inc/lib.dc.antispam.php
r3731 r3781 73 73 if (($count = self::countSpam($core)) > 0) { 74 74 $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">' . 76 76 sprintf($str, $count); 77 77 } … … 82 82 if (($count = self::countSpam($core)) > 0) { 83 83 $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">' . 85 85 sprintf($str, $count); 86 86 } else { 87 87 return ''; 88 88 } 89 } 90 91 public static function dashboardHeaders() 92 { 93 return dcPage::jsLoad(urldecode(dcPage::getPF('antispam/js/dashboard.js'))); 89 94 } 90 95
Note: See TracChangeset
for help on using the changeset viewer.