<?php

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

new \Kirki\Section( 'footer_section', array(
	'title'          => esc_html__('Footer', 'maxo-fa'),
	'priority'       => 21,
) );

// Socials
new \Kirki\Field\Repeater( array(
	'label'       => esc_html__('Social Networks', 'maxo-fa'),
	'section'     => 'footer_section',
	'row_label'   => array(
		'type'  => 'field',
		'value' => esc_html__('Social Network', 'maxo-fa'),
		'field' => 'title',
	),
	'button_label' => esc_html__('Add New Social Network', 'maxo-fa'),
	'settings'     => 'footer_socials',
	'default'     => array(),
	'fields' => array(
		'title' => array(
			'type'        => 'text',
			'label'       => esc_html__('Title', 'maxo-fa'),
		),
		'icon' => array(
			'type'        => 'text',
			'label'       => esc_html__('Icon', 'maxo-fa'),
			'description' => '<a href="'.get_theme_file_uri('assets/icons-reference.pdf').'" target="_blank">'.esc_html__('Icons List', 'maxo-fa').'</a>',
		),
		'link' => array(
			'type'        => 'text',
			'label'       => esc_html__('Link', 'maxo-fa'),
		),
	)
) );

// Copyright
new \Kirki\Field\Textarea( array(
	'settings' => 'footer_copyright',
	'label'    => esc_html__('Copyright Text', 'maxo-fa'),
	'section'  => 'footer_section',
) );
