summaryrefslogtreecommitdiff
path: root/modules/info/helpers/info_block.php
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2013-06-13 21:42:10 +0000
committerNathan Kinkade <nath@nkinka.de>2013-06-13 21:42:10 +0000
commit9ef4eff6aea4ec1135f7b12ff8f22dc296cc91ba (patch)
treefa8363f922cbc0bdde1838b744e2ed36c23c0bc9 /modules/info/helpers/info_block.php
parent9569b43035de9645e82271896e302c8d082d960a (diff)
parenta3d06cc5bca05cc1b892872f494e83a24837d06f (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
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..238b18b5 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_dimensions")) {
+ $info["size"] = array(
+ "label" => t("Dimensions:"),
+ "value" => t("%width x %height px", array("width" => $theme->item->width, "height" => $theme->item->height))
+ );
+ }
+
$block->content->metadata = $info;
module::event("info_block_get_metadata", $block, $theme->item);