diff options
Diffstat (limited to 'views/default/widgets/content_stats/content.php')
-rw-r--r-- | views/default/widgets/content_stats/content.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/views/default/widgets/content_stats/content.php b/views/default/widgets/content_stats/content.php index b5ea00e18..568ebeeff 100644 --- a/views/default/widgets/content_stats/content.php +++ b/views/default/widgets/content_stats/content.php @@ -3,16 +3,23 @@ * Content stats widget */ -$max = 5; +$max = $vars['entity']->num_display; $entity_stats = get_entity_statistics(); $object_stats = $entity_stats['object']; arsort($object_stats); $object_stats = array_slice($object_stats, 0, $max); -echo '<table class="elgg-table">'; +echo '<table class="elgg-table-alt">'; +echo '<tr><th>' . elgg_echo('widget:content_stats:type') . '</th>'; +echo '<th>' . elgg_echo('widget:content_stats:number') . '</th></tr>'; foreach ($object_stats as $subtype => $num) { $name = elgg_echo("item:object:$subtype"); echo "<tr><td>$name</td><td>$num</td></tr>"; } echo '</table>'; + +echo elgg_view('output/url', array( + 'href' => 'pg/admin/statistics/overview', + 'text' => 'more', +)); |