#mbk_ocd_plugin_table { font-size:1.1em; } #mbk_ocd_plugin_table td { padding: .5em; } div.star-holder { position: relative; height: 17px; width: 92px; background: url('http://wordpress.org/extend/plugins-plugins/bb-ratings/stars.png?19') repeat-x bottom left!important; } .star-rating { background: url('http://wordpress.org/extend/plugins-plugins/bb-ratings/stars.png?19') repeat-x top left!important; height: 17px; float: left; text-indent: 100%; overflow: hidden; white-space: nowrap; }
| Plugin | Today | Yesterday | Last Week | All Time | Rating |
|---|---|---|---|---|---|
| $title | $today | $yesterday | $lastweek | $alltime | $stars |
| Totals | ".self::get_number($todaytotal, true)." | ".self::get_number($yesterdaytotal, true)." | ".self::get_number($lastweektotal, true)." | ".self::get_number($alltimetotal, true)." | ".round($ratingtotal/count($plugins), 2)." out of 5 stars |
'; echo "
"; } // Create function to use in the action hook static function widget_action_hook() { wp_add_dashboard_widget('mbk_ocd_plugin_stats_widget', 'OCD Plugin Stats', array('mbk_ocd_plugin_stats', 'widget_content'), array('mbk_ocd_plugin_stats', 'mbk_ocd_plugin_stats_configuration')); } } ?>