<?php
/**
 * Metabox definition for the 'download' (EDD) custom post type.
 *
 * @package Sifency
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

return array(
	'edd_options' => array(
		'title'     => esc_html__( 'Digital Product Details', 'sifency-addons' ),
		'post_type' => 'download',
		'context'   => 'normal',
		'priority'  => 'high',
		'class'     => 'sifency-metabox',
		'fields'    => array(

			// =================================================================
			// Section: General Information & Presentation
			// =================================================================
			array(
				'id'    => 'digital_subtitle',
				'type'  => 'text',
				'title' => esc_html__( 'Product Subtitle / Tagline', 'sifency-addons' ),
				'desc'  => esc_html__( 'A short, descriptive line to display under the main title.', 'sifency-addons' ),
			),
			array(
				'id'    => 'digital_version',
				'type'  => 'text',
				'title' => esc_html__( 'Current Version', 'sifency-addons' ),
				'desc'  => esc_html__( 'e.g., 1.2.0', 'sifency-addons' ),
			),
			array(
				'id'    => 'digital_last_updated',
				'type'  => 'date',
				'title' => esc_html__( 'Last Updated Date', 'sifency-addons' ),
			),

			// =================================================================
			// Section: External Links (Demo / Docs)
			// =================================================================
			array(
				'id'    => 'digital_live_demo_url',
				'type'  => 'url',
				'title' => esc_html__( 'Live Demo URL', 'sifency-addons' ),
				'desc'  => esc_html__( 'Link to the live preview of this item.', 'sifency-addons' ),
			),
			array(
				'id'    => 'digital_documentation_url',
				'type'  => 'url',
				'title' => esc_html__( 'Documentation URL', 'sifency-addons' ),
				'desc'  => esc_html__( 'Link to the documentation page.', 'sifency-addons' ),
			),

		),
	),
);
