<?php

if( function_exists('register_field_group') ):

register_field_group(array (
	'key' => 'group_543674d7510ab',
	'title' => 'Pertenece a Proyecto',
	'fields' => array (
		array (
			'key' => 'field_543674dbefeba',
			'label' => 'Proyectos',
			'name' => 'proyecto',
			'prefix' => '',
			'type' => 'post_object',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
			'post_type' => array (
				0 => 'project',
			),
			'taxonomy' => '',
			'allow_null' => 1,
			'multiple' => 1,
			'return_format' => 'id',
			'ui' => 1,
		),
	),
	'location' => array (
		array (
			array (
				'param' => 'post_type',
				'operator' => '==',
				'value' => 'post',
			),
		),
	),
	'menu_order' => 0,
	'position' => 'side',
	'style' => 'default',
	'label_placement' => 'top',
	'instruction_placement' => 'label',
	'hide_on_screen' => '',
));

register_field_group(array (
	'key' => 'group_5436348bb719c',
	'title' => 'Proyecto',
	'fields' => array (
		array (
			'key' => 'field_5436349267266',
			'label' => 'Generales',
			'name' => '',
			'prefix' => '',
			'type' => 'tab',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
		),

		array (
			'key' => 'field_54364da178480',
			'label' => 'Descripción del proyecto',
			'name' => 'descripcion',
			'prefix' => '',
			'type' => 'wysiwyg',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
			'default_value' => '',
			'tabs' => 'visual',
			'toolbar' => 'basic',
			'media_upload' => 0,
		),
		array (
			'key' => 'field_54365bb94c65d',
			'label' => 'Informe de proyecto',
			'name' => 'conclusiones',
			'prefix' => '',
			'type' => 'wysiwyg',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
			'default_value' => '',
			'tabs' => 'visual',
			'toolbar' => 'basic',
			'media_upload' => 0,
		),
		
		array (
			'key' => 'field_54413ee40d5a2',
			'label' => 'Entradas',
			'name' => '',
			'prefix' => '',
			'type' => 'tab',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
		),
		array (
			'key' => 'field_54413eff0d5a3',
			'label' => 'Entradas',
			'name' => 'entradas',
			'prefix' => '',
			'type' => 'hook',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
			'action' => 'listar_entradas_proyecto',
			'hook' => '',
		),
		array (
			'key' => 'field_54365e7e07aae',
			'label' => 'Referencias',
			'name' => '',
			'prefix' => '',
			'type' => 'tab',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
		),
		array (
			'key' => 'field_54365e8a07aaf',
			'label' => 'Referencias',
			'name' => 'referencias',
			'prefix' => '',
			'type' => 'repeater',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
			'min' => '',
			'max' => '',
			'layout' => 'table',
			'button_label' => 'Añadir Referencia',
			'sub_fields' => array (
				array (
					'key' => 'field_54365e9d07ab0',
					'label' => 'Título',
					'name' => 'titulo',
					'prefix' => '',
					'type' => 'text',
					'instructions' => '',
					'required' => 0,
					'conditional_logic' => 0,
					'column_width' => '',
					'default_value' => '',
					'placeholder' => '',
					'prepend' => '',
					'append' => '',
					'maxlength' => '',
					'readonly' => 0,
					'disabled' => 0,
				),
				array (
					'key' => 'field_54365ea707ab1',
					'label' => 'Autor',
					'name' => 'autor',
					'prefix' => '',
					'type' => 'text',
					'instructions' => '',
					'required' => 0,
					'conditional_logic' => 0,
					'column_width' => '',
					'default_value' => '',
					'placeholder' => '',
					'prepend' => '',
					'append' => '',
					'maxlength' => '',
					'readonly' => 0,
					'disabled' => 0,
				),
				array (
					'key' => 'field_54365eaf07ab2',
					'label' => 'Publicación',
					'name' => 'publicacion',
					'prefix' => '',
					'type' => 'text',
					'instructions' => '',
					'required' => 0,
					'conditional_logic' => 0,
					'column_width' => '',
					'default_value' => '',
					'placeholder' => '',
					'prepend' => '',
					'append' => '',
					'maxlength' => '',
					'readonly' => 0,
					'disabled' => 0,
				),
				array (
					'key' => 'field_54365eb807ab3',
					'label' => 'Fichero',
					'name' => 'fichero',
					'prefix' => '',
					'type' => 'file',
					'instructions' => '',
					'required' => 0,
					'conditional_logic' => 0,
					'column_width' => '',
					'return_format' => 'url',
					'library' => 'all',
				),
			),
		),
		
	),
	'location' => array (
		array (
			array (
				'param' => 'post_type',
				'operator' => '==',
				'value' => 'project',
			),
		),
	),
	'menu_order' => 0,
	'position' => 'normal',
	'style' => 'seamless',
	'label_placement' => 'top',
	'instruction_placement' => 'label',
	'hide_on_screen' => '',
));

endif;

