Inventory_Presser_Grid::widget( array $args, array $instance )

Outputs the widget front-end HTML


Parameters

$args

(array) (Required)

$instance

(array) (Required)


Return

(void)


Source

File: includes/widget/class-widget-inventory-grid.php

			);
		}

		return $grid_html;
	}

	/**
	 * Outputs the widget front-end HTML
	 *
	 * @param  array $args
	 * @param  array $instance
	 * @return void
	 */
	public function widget( $args, $instance ) {

		// build $args array.
		$content_args = array();
		if ( isset( $instance['columns'] ) ) {
			$content_args['columns'] = $instance['columns'];
		}
		if ( isset( $instance['limit'] ) ) {
			$content_args['limit'] = $instance['limit'];
		}
		if ( isset( $instance['cb_showcaptions'] ) ) {
			$content_args['show_captions'] = ( 'true' === $instance['cb_showcaptions'] );
		}
		if ( isset( $instance['cb_showbutton'] ) ) {
			$content_args['show_button'] = ( 'true' === $instance['cb_showbutton'] );
		}
		if ( isset( $instance['cb_showprices'] ) ) {
			$content_args['show_prices'] = ( 'true' === $instance['cb_showprices'] );
		}