+ // Pages
+ $num = number_format_i18n( $num_pages->publish );
+ $text = _n( 'Page', 'Pages', $num_pages->publish );
+ if ( current_user_can( 'edit_pages' ) ) {
+ $num = "<a href='edit.php?post_type=page'>$num</a>";
+ $text = "<a href='edit.php?post_type=page'>$text</a>";
+ }
+ echo '<td class="first b b_pages">' . $num . '</td>';
+ echo '<td class="t pages">' . $text . '</td>';
+
+ echo '</tr><tr>';
+
+ // Categories
+ $num = number_format_i18n( $num_cats );
+ $text = _n( 'Category', 'Categories', $num_cats );
+ if ( current_user_can( 'manage_categories' ) ) {
+ $num = "<a href='edit-tags.php?taxonomy=category'>$num</a>";
+ $text = "<a href='edit-tags.php?taxonomy=category'>$text</a>";
+ }
+ echo '<td class="first b b-cats">' . $num . '</td>';
+ echo '<td class="t cats">' . $text . '</td>';
+
+ echo '</tr><tr>';
+
+ // Tags
+ $num = number_format_i18n( $num_tags );
+ $text = _n( 'Tag', 'Tags', $num_tags );
+ if ( current_user_can( 'manage_categories' ) ) {
+ $num = "<a href='edit-tags.php'>$num</a>";
+ $text = "<a href='edit-tags.php'>$text</a>";
+ }
+ echo '<td class="first b b-tags">' . $num . '</td>';
+ echo '<td class="t tags">' . $text . '</td>';
+
+ echo "</tr>";
+ do_action('right_now_content_table_end');
+ echo "\n\t</table>\n\t</div>";
+
+
+ echo "\n\t".'<div class="table table_discussion">';
+ echo "\n\t".'<p class="sub">' . __('Discussion') . '</p>'."\n\t".'<table>';
+ echo "\n\t".'<tr class="first">';
+