<?php

// Prevent Direct Access
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$fields = [];

// -------------- Fields

$fields[] = array(
	'name'  => esc_html__('Job Position', 'maxo-fa'),
	'id'    => 'team_member_position',
	'type'  => 'text',
);

$fields[] = array(
	'name'    => esc_html__('Social Networks', 'maxo-fa'),
	'id'      => 'team_member_socials',
	'type'    => 'fieldset_text',
	'options' => array(
		'link' => esc_html__('Link', 'maxo-fa'),
		'icon' => esc_html__('Icon', 'maxo-fa'),
	),
	'clone' => true,
	'desc' => '<a href="'.get_theme_file_uri('assets/icons-reference.pdf').'" target="_blank">'.esc_html__('Icons List', 'maxo-fa').'</a>',
);

// -------------- Metabox

$meta_boxes[] = array(
	'id'         => 'maxo_team',
	'title'      => esc_html__('Team Member Info', 'maxo-fa'),
	'post_types' => 'team',
	'fields' => $fields,
);
