This patch adds an optional 'orientation' parameter to image blocks. This allows the user to lock image blocks to use either horizontal or vertical images only. <p /> For example, the following will display 4 random horizontal images from a specified album:
$retrievedItemID = GalleryCoreApi::fetchItemIdByPath('My_Album'); list ($ret, $bodyHtml, $headHtml) = GalleryEmbed::getImageBlock(array( 'blocks' => 'randomImage|randomImage|randomImage|randomImage', 'itemId' => $retrievedItemID[1], 'show' => 'none', 'orientation' => 'horizontal', 'linkTarget' => '_blank' ));
Patch for Gallery 2.1.1
modules/imageblock/classes/ImageBlockHelper.class
(patch saved in UNIX format)
Click on a date/time to view the file as it appeared at that time.
Date/Time | Dimensions | User | Comment | |
---|---|---|---|---|
current | 20:56, 27 July 2006 | (925 B) | Kmckay (Talk | contribs) | |
20:26, 27 July 2006 | (1 KB) | Kmckay (Talk | contribs) | This patch adds an optional 'orientation' parameter to image blocks. This allows the user to lock image blocks to use either horizontal or vertical images only. For example, the following will display 4 random horizontal images from a specified album: $r |
There are no pages that link to this file.