Shortcodes – Arguments

Settings defaults are shown below. They may be changed globally, that is, for all shortcodes via the Settings screen. Use the values in the comments to change the settings for specific shortcodes. For example, to change the home indicator to a dagger (†) the game location format to “Stadium(City)”, and the time format to “HH:MM” (e.g., “08:05”):

[mstw_bb_bracket star_home='†' location_format='stadium-city' time_format= 'H:i']

(PHP date and time format strings may be found here.)

$defaults = array(
	//
	// BRACKETS & TABLES SETTINGS
	// By default, they will be the same
	// Can use shortcode arguments to change them
	//
	
	// Only used in brackets
	'show_game_nbr'   => 1,
	'game_label'      => __( 'Game', 'mstw-bracket-builder' ),
	
	//
	// TEAM NAMES
	//
	'team_format'     => 'name',
	// name|short-name|mascot|name-mascot|hide

	'show_logo'	      => 1,
	// 0 | 1
	
	'team_link'       => 'none',
	// none | team-url | game-page (not yet) 
	
	'show_seed'	 => 'hide',
	// 0 | 1
	
	'star_home'  => '', //label to put on home team
	
	//
	// LOCATIONS
	//
	'location_format' => 'stadium',
	// stadium | city | stadium-city | stadium-city-state
	
	'location_link'   => 'none',
	// none | venue-url | google-map
	
	//				
	// DATES & TIMES
	//
	'tba_format'      => __( 'TBA', 'mstw-bracket-builder' ),
	// TBA | T.B.A. | TBD | T.B.D
	
	// Date & Time formats can be any valid PHP date/time string.
	'date_format'	     => 'Y-m-d',
	'custom_date_format' => '',
	'time_format'	     => 'h:i A', 
	'custom_time_format' => '',
	'time_link'          => '',
	// none | game-page
	
	// // NAMES
	'championship_name'     => __( 'Championship', 'mstw-bracket-builder' ),
	'consolation_name'      => __( 'Consolation', 'mstw-bracket-builder' ),
	'winners_bracket_name'  => '', 
	'losers_bracket_name'   => '', 
	
        //
	// These settings CAN NOT currently be changed via shortcode arguments
        //
	'round_names'       => array( 
				'round_1' => __( 'Round 1', 'mstw-bracket-builder' ),
				'round_2' => __( 'Round 2', 'mstw-bracket-builder' ),
				'round_3' => __( 'Round 3', 'mstw-bracket-builder' ),
				'round_4' => __( 'Round 4', 'mstw-bracket-builder' ),
				'round_5' => __( 'Round 5', 'mstw-bracket-builder' ),
				'round_6' => __( 'Round 6', 'mstw-bracket-builder' ),
				),
								   
	'loser_round_names'	=> array( 
				    'round_1' => __( 'Round 1', 'mstw-bracket-builder' ),
				    'round_2' => __( 'Round 2', 'mstw-bracket-builder' ),
				    'round_3' => __( 'Round 3', 'mstw-bracket-builder' ),
				    'round_4' => __( 'Round 4', 'mstw-bracket-builder' ),
				    'round_5' => __( 'Round 5', 'mstw-bracket-builder' ),
				    'round_6' => __( 'Round 6', 'mstw-bracket-builder' ),
				    ),
			   
	);