Exchange Theme API: product (gallery)

From IThemes Codex
Revision as of 15:52, July 30, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'product', 'gallery' ) )
	
Parameters
	string - $context the context or context.tag combination, if context.tag is used, the tag parameter can be omitted.
	string - $tag the tag, can be hyphenated or not. Prefix with 'get' as shorthand for the return=true option.
	mixed  - $options associative array, or url-style name=value pairs separated by ampersands (&).

Returns

Description

Used to display a gallery of images for the product.

Options

'output' - Used to change the output of the gallery.
	$default: 'gallery'
	$options: gallery, thumbnails
'zoom' - Used to define the state in which the zoom occurs.
	$default: 'hover'
	$options: hover, click
'switch' - Used to define the state in which the switch of the thumbnail occurs.
	$default: 'click'
	$options: hover, click
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'product', 'gallery' ); ?>

Examples

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox