<?php
/**
 * Handle the recipe tags container shortcode.
 *
 * @link       https://bootstrapped.ventures
 * @since      3.3.0
 *
 * @package    WP_Recipe_Maker
 * @subpackage WP_Recipe_Maker/includes/public/shortcodes/deprecated
 */

/**
 * Handle the recipe tags container shortcode.
 *
 * @since      3.3.0
 * @package    WP_Recipe_Maker
 * @subpackage WP_Recipe_Maker/includes/public/shortcodes/deprecated
 * @author     Brecht Vandersmissen <brecht@bootstrapped.ventures>
 */
class WPRM_SC_Tags_Container extends WPRM_Template_Shortcode {
	public static $shortcode = 'wprm-recipe-tags-container';

	/**
	 * Output for the shortcode.
	 *
	 * @since	3.3.0
	 * @param	array $atts Options passed along with the shortcode.
	 */
	public static function shortcode( $atts ) {
		$atts = is_array( $atts ) ? $atts : array();
		$atts['fields'] = 'tags';

		if ( isset( $atts['separator'] ) ) {
			$atts['tag_separator'] = $atts['separator'];
		}

		return WPRM_SC_Meta_Container::shortcode( $atts );
	}
}

WPRM_SC_Tags_Container::init_deprecated();