wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
 * Returns a collection of states: yes, no and default which means the theme settings will be used.
 *
 * @since 2.1.3
 *
 * @param string $yes
 * @param string $no
 * @param string $default
 * @param array $args
 *
 * @return array
 */
Returns a collection of states: yes, no and default which means the theme settings will be used.



@return array
Returns a collection of states : yes no and default which means the theme settings will be used . @return array
function themify_ternary_states( $args = array(), $all = array() ) {
	$args = wp_parse_args( $args, array(
		'icon_yes' => THEMIFY_URI . '/img/ddbtn-check.svg',
		'icon_no' => THEMIFY_URI . '/img/ddbtn-cross.svg',
		'value_default' => '',
	) );
	return wp_parse_args( $all, array(
		array(
			'name' => empty( $args['label_yes'] ) ? __('Hide', 'themify') : $args['label_yes'],
			'value' => 'yes',
			'icon' => $args['icon_yes'],
			'title' => __('Hide this', 'themify')
		),
		array(
			'name' => empty( $args['label_no'] ) ? __('Show', 'themify') : $args['label_no'],
			'value' => 'no',
			'icon' => $args['icon_no'],
			'title' => __('Show this', 'themify')
		),
		array(
			'name' => empty( $args['default'] ) ? __('Theme default', 'themify') : $args['default'],
			'value' => $args['value_default'],
			'icon' => THEMIFY_URI . '/img/ddbtn-blank.png',
			'title' => __('Use theme settings', 'themify'),
			'default' => true
		)
	));
}
function themify_ternary_states ( $ args = array ( ) , $ all = array ( ) ) { $ args = wp_parse_args ( $ args , array ( 'icon_yes' => THEMIFY_URI . '/img/ddbtn-check.svg' , 'icon_no' => THEMIFY_URI . '/img/ddbtn-cross.svg' , 'value_default' => '' , ) ) ; return wp_parse_args ( $ all , array ( array ( 'name' => empty ( $ args [ 'label_yes' ] ) ? __ ( 'Hide' , 'themify' ) : $ args [ 'label_yes' ] , 'value' => 'yes' , 'icon' => $ args [ 'icon_yes' ] , 'title' => __ ( 'Hide this' , 'themify' ) ) , array ( 'name' => empty ( $ args [ 'label_no' ] ) ? __ ( 'Show' , 'themify' ) : $ args [ 'label_no' ] , 'value' => 'no' , 'icon' => $ args [ 'icon_no' ] , 'title' => __ ( 'Show this' , 'themify' ) ) , array ( 'name' => empty ( $ args [ 'default' ] ) ? __ ( 'Theme default' , 'themify' ) : $ args [ 'default' ] , 'value' => $ args [ 'value_default' ] , 'icon' => THEMIFY_URI . '/img/ddbtn-blank.png' , 'title' => __ ( 'Use theme settings' , 'themify' ) , 'default' => true ) ) ) ; }
Returns a collection of states: yes, no and default which means the theme settings will be used.
Returns a collection of states : yes no and default which means the theme settings will be used .