summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-15 21:04:19 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-15 21:04:19 -0800
commit96968b41813498a6fe5dd01142126333454f6eda (patch)
tree7f87ab0d4677842aa95e63449f4de808b49df44a
parent95e812067e573f57a0a00f7d6047f8330c74108c (diff)
Include the thumb, resize and fullsize sizes (height & width) in the resource contents returned via the rest interface.
-rw-r--r--modules/gallery/helpers/gallery_rest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_rest.php b/modules/gallery/helpers/gallery_rest.php
index 865099af..d3e2beba 100644
--- a/modules/gallery/helpers/gallery_rest.php
+++ b/modules/gallery/helpers/gallery_rest.php
@@ -36,8 +36,14 @@ class gallery_rest_Core {
"path" => $item->relative_url(),
"title" => $item->title,
"thumb_url" => $item->thumb_url(true),
+ "thumb_size" => array("height" => $item->thumb_height,
+ "width" => $item->thumb_width),
"resize_url" => $item->resize_url(true),
+ "resize_size" => array("height" => (int)$item->resize_height,
+ "width" => (int)$item->resize_width),
"url" => $item->file_url(true),
+ "size" => array("height" => $item->height,
+ "width" => $item->width),
"description" => $item->description,
"internet_address" => $item->slug);