function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); if (!$title) { $title = __('Total Word Counts', 'word-stats'); } $title = esc_attr(strip_tags($title)); echo $before_widget, $before_title, $title, $after_title, ' <ul class="word-stats-counts">', Word_Stats_Core::get_word_counts('list'), '</ul>', $after_widget; }
public function total_word_counts() { echo Word_Stats_Core::get_word_counts('table'); }