File:ImageBlockHelper.class-orientation.zip - Gallery Codex
Personal tools

File:ImageBlockHelper.class-orientation.zip

From Gallery Codex

ImageBlockHelper.class-orientation.zip(file size: 925 B, MIME type: application/zip)
Warning: This file type may contain malicious code. By executing it, your system may be compromised.

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)

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current20: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
  • You cannot overwrite this file.

There are no pages that link to this file.