summaryrefslogtreecommitdiff
path: root/modules/info
diff options
context:
space:
mode:
Diffstat (limited to 'modules/info')
-rw-r--r--modules/info/helpers/info_block.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php
index 5687d770..422e62da 100644
--- a/modules/info/helpers/info_block.php
+++ b/modules/info/helpers/info_block.php
@@ -17,7 +17,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-
class info_block_Core {
public static function sidebar_blocks($theme) {
if ($theme->item()) {
@@ -30,7 +29,12 @@ class info_block_Core {
}
public static function thumb_info($theme, $item) {
- $results = "<li>Views: 321</li>";
+ $results = "";
+ if ($item->view_count) {
+ $results .= "<li>";
+ $results .= sprintf(_("Views: %d"), $item->view_count);
+ $results .= "</li>";
+ }
if ($item->owner) {
$results .= "<li>";
$results .= sprintf(_("By: %s"), "<a href=\"#\">{$item->owner->name}</a>");