summaryrefslogtreecommitdiff
path: root/modules/info/helpers/info_block.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/info/helpers/info_block.php')
-rw-r--r--modules/info/helpers/info_block.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php
index 62aa0746..f4fe5a6e 100644
--- a/modules/info/helpers/info_block.php
+++ b/modules/info/helpers/info_block.php
@@ -72,6 +72,13 @@ class info_block_Core {
);
}
}
+ if (($theme->item->width && $theme->item->height) && module::get_var("info", "show_size")) {
+ $info["size"] = array(
+ "label" => t("Size:"),
+ "value" => $theme->item->width . " x " . $theme->item->height
+ );
+ }
+
$block->content->metadata = $info;
module::event("info_block_get_metadata", $block, $theme->item);