Exchange Theme Templates: content-cart/elements/empty.php

From IThemes Codex
Revision as of 16:35, August 1, 2013 by Kopepasah (Talk | contribs)
Jump to: navigation, search
it_exchange( 'cart', 'empty', array( 'option' => 'value' ) )
	
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.
	mixed  - $options associative array, or url-style name=value pairs separated by ampersands (&).
Returns
	The empty cart button.

Description

Used to output the element to empty the cart.

Options

'format' - Used to sets the format of the output.
	$default: 'button'
	$options: button, varname
'class' - Used to set the class of the button.
	$default: 'it-exchange-empty-cart'
	$options: Any valid class name.
'label' - Used to set the label of the button.
	$default: 'Empty Cart'
	$options: Any valid text.
'title' - Used to set the title of the button.
	$default: 'Empty Cart'
	$options: Any valid text.
'before' - Used to output content before the remove button.
	$default: empty
	$options: Any valid html.
'after' - Used to output content after the remove button.
	$default: empty
	$options: Any valid html.
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'cart', 'empty' ); ?>

Examples

  • content-cart/elements/empty.php - Line 19
Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox