<?php


if ( function_exists( 'acf_add_local_field_group' ) ) :


		
		/////ADD RADIO
		acf_add_local_field_group(
			array(
				'key'                   => 'group_5r7a3dfi0o135',
				'title'                 => 'Rádio de Fundo',
				'fields'                => array(
					array(
						'key'               => 'field_5r7a3dfi1o051',
						'label'             => 'Configuração',
						'name'              => '',
						'type'              => 'tab',
						'instructions'      => '',
						'required'          => 0,
						'conditional_logic' => 0,
						'wrapper'           => array(
							'width' => '',
							'class' => '',
							'id'    => '',
						),
						'placement'         => 'top',
						'endpoint'          => 0,
					),
					array(
						'key'               => 'field_5r7a3d6i9o3cf',
						'label'             => 'Tocar Rádio de Fundo',
						'name'              => 'show_radio',
						'type'              => 'true_false',
						'instructions'      => '',
						'required'          => 0,
						'conditional_logic' => 0,
						'wrapper'           => array(
							'width' => '',
							'class' => '',
							'id'    => '',
						),
						'message'           => '',
						'default_value'     => 0,
						'ui'                => 1,
						'ui_on_text'        => '',
						'ui_off_text'       => '',
					),
					array(
						'key'               => 'field_5r7a3d7i9o3d0',
						'label'             => 'URL do Streaming da Rádio',
						'name'              => 'streaming_url',
						'type'              => 'url',
						'instructions'      => '',
						'required'          => 0,
						'conditional_logic' => array(
							array(
								array(
									'field'    => 'field_5r7a3d6i9o3cf',
									'operator' => '==',
									'value'    => '1',
								),
							),
						),
						'wrapper'           => array(
							'width' => '52',
							'class' => '',
							'id'    => '',
						),
						'default_value'     => '',
						'placeholder'       => '',
					),
					///PORTA
						array(
						'key'               => 'field_6r8a4d0i0o4d2',
						'label'             => 'Porta',
						'name'              => 'streaming_port',
						'type'              => 'number',
						'instructions'      => '',
						'required'          => 0,
						'conditional_logic' => array(
							array(
								array(
									'field'    => 'field_5r7a3d6i9o3cf',
									'operator' => '==',
									'value'    => '1',
								),
							),
						),
						'wrapper'           => array(
							'width' => '12',
							'class' => '',
							'id'    => '',
						),
						'default_value'     => '',
						'placeholder'       => '',
						'prepend'           => ':',
						'append'            => '',
						'min'               => '',
						'max'               => '',
						'step'              => '',

					),
					
					///Ponto de Montagem
						array(
						'key'               => 'field_7r7a3d1i1o3d1',
						'label'             => 'v2',
						'name'              => 'streaming_mount',
						'type'              => 'text',
						'instructions'      => '',
						'required'          => 0,
						'conditional_logic' => array(
							array(
								array(
									'field'    => 'field_5r7a3d6i9o3cf',
									'operator' => '==',
									'value'    => '1',
								),
							),
						),
						'wrapper'           => array(
							'width' => '12',
							'class' => '',
							'id'    => '',
						),
						'default_value'     => '',
						'placeholder'       => '',
						'prepend'           => '/',
						'append'            => '',
						'min'               => '',
						'max'               => '',
						'step'              => '',

					),
					//volume
					
					array(
						'key'               => 'field_5r7a3d9i9o3d1',
						'label'             => 'Volume Inicial',
						'name'              => 'streaming_volume',
						'type'              => 'number',
						'instructions'      => '',
						'required'          => 0,
						'conditional_logic' => array(
							array(
								array(
									'field'    => 'field_5r7a3d6i9o3cf',
									'operator' => '==',
									'value'    => '1',
								),
							),
						),
						'wrapper'           => array(
							'width' => '12',
							'class' => '',
							'id'    => '',
						),
						'default_value'     => '50',
						'placeholder'       => '',
						'prepend'           => '',
						'append'            => '%',
						'min'               => 0,
						'max'               => 100,
						'step'              => '',

					),
					array(
						'key'               => 'field_5i7o3d9a9r3d1',
						'label'             => 'Codec',
						'name'              => 'streaming_codec',
						'type'              => 'select',
						'instructions'      => '',
						'required'          => 0,
						'conditional_logic' => array(
							array(
								array(
									'field'    => 'field_5r7a3d6i9o3cf',
									'operator' => '==',
									'value'    => '1',
								),
							),
						),
						'wrapper'           => array(
							'width' => '12',
							'class' => '',
							'id'    => '',
						),
						'choices'           => array(
							'mp3'      => 'MP3',
							'aac'      => 'AAC',
							'ogg' => 'OGG',
							
						),
						'default_value'     => array(),
						'allow_null'        => 0,
						'multiple'          => 0,
						'ui'                => 0,
						'return_format'     => 'value',
						'ajax'              => 0,
						'placeholder'       => '',
					),
				
				),
				'location'              => array(
					array(
						array(
							'param'    => 'post_type',
							'operator' => '==',
							'value'    => 'tvindoor_channel',
						),
					),
				),
				'menu_order'            => 1002,
				'position'              => 'normal',
				'style'                 => 'default',
				'label_placement'       => 'top',
				'instruction_placement' => 'label',
				'hide_on_screen'        => '',
				'active'                => true,
				'description'           => '',
			)
		);


endif;
