diff options
author | Nathan Kinkade <nath@nkinka.de> | 2013-06-13 21:42:10 +0000 |
---|---|---|
committer | Nathan Kinkade <nath@nkinka.de> | 2013-06-13 21:42:10 +0000 |
commit | 9ef4eff6aea4ec1135f7b12ff8f22dc296cc91ba (patch) | |
tree | fa8363f922cbc0bdde1838b744e2ed36c23c0bc9 /modules/info/helpers/info_block.php | |
parent | 9569b43035de9645e82271896e302c8d082d960a (diff) | |
parent | a3d06cc5bca05cc1b892872f494e83a24837d06f (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.php | 7 |
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); |