?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/meta-boxes/post-format-video/



?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/meta-boxes

?? Viewing: map.php

<?php

/*** Video Post Format ***/

$video_post_format_meta_box = edgtf_quadric_create_meta_box(
	array(
		'scope' =>	array('post'),
		'title' => esc_html__( 'Video Post Format', 'quadric' ),
		'name' 	=> 'post-format-video-meta'
	)
);

edgtf_quadric_create_meta_box_field(
	array(
		'name'        => 'edgtf_video_type_meta',
		'type'        => 'select',
		'label' => esc_html__( 'Video Type', 'quadric' ),
		'description' => esc_html__( 'Choose video type', 'quadric' ),
		'parent'      => $video_post_format_meta_box,
		'default_value' => 'youtube',
		'options'     => array(
			'youtube' => esc_html__( 'Youtube', 'quadric' ),
			'vimeo' => esc_html__( 'Vimeo', 'quadric' ),
			'self' => esc_html__( 'Self Hosted', 'quadric' )
		),
		'args' => array(
		'dependence' => true,
		'hide' => array(
			'youtube' => '#edgtf_edgtf_video_self_hosted_container',
			'vimeo' => '#edgtf_edgtf_video_self_hosted_container',
			'self' => '#edgtf_edgtf_video_embedded_container'
		),
		'show' => array(
			'youtube' => '#edgtf_edgtf_video_embedded_container',
			'vimeo' => '#edgtf_edgtf_video_embedded_container',
			'self' => '#edgtf_edgtf_video_self_hosted_container')
	)
	)
);

$edgtf_video_embedded_container = edgtf_quadric_add_admin_container(
	array(
		'parent' => $video_post_format_meta_box,
		'name' => 'edgtf_video_embedded_container',
		'hidden_property' => 'edgtf_video_type_meta',
		'hidden_value' => 'self'
	)
);

$edgtf_video_self_hosted_container = edgtf_quadric_add_admin_container(
	array(
		'parent' => $video_post_format_meta_box,
		'name' => 'edgtf_video_self_hosted_container',
		'hidden_property' => 'edgtf_video_type_meta',
		'hidden_values' => array('youtube', 'vimeo')
	)
);



edgtf_quadric_create_meta_box_field(
	array(
		'name'        => 'edgtf_post_video_id_meta',
		'type'        => 'text',
		'label' => esc_html__( 'Video ID', 'quadric' ),
		'description' => esc_html__( 'Enter Video ID', 'quadric' ),
		'parent'      => $edgtf_video_embedded_container,

	)
);


edgtf_quadric_create_meta_box_field(
	array(
		'name'        => 'edgtf_post_video_image_meta',
		'type'        => 'image',
		'label' => esc_html__( 'Video Image', 'quadric' ),
		'description' => esc_html__( 'Upload video image', 'quadric' ),
		'parent'      => $edgtf_video_self_hosted_container,

	)
);

edgtf_quadric_create_meta_box_field(
	array(
		'name'        => 'edgtf_post_video_webm_link_meta',
		'type'        => 'text',
		'label' => esc_html__( 'Video WEBM', 'quadric' ),
		'description' => esc_html__( 'Enter video URL for WEBM format', 'quadric' ),
		'parent'      => $edgtf_video_self_hosted_container,

	)
);

edgtf_quadric_create_meta_box_field(
	array(
		'name'        => 'edgtf_post_video_mp4_link_meta',
		'type'        => 'text',
		'label' => esc_html__( 'Video MP4', 'quadric' ),
		'description' => esc_html__( 'Enter video URL for MP4 format', 'quadric' ),
		'parent'      => $edgtf_video_self_hosted_container,

	)
);

edgtf_quadric_create_meta_box_field(
	array(
		'name'        => 'edgtf_post_video_ogv_link_meta',
		'type'        => 'text',
		'label' => esc_html__( 'Video OGV', 'quadric' ),
		'description' => esc_html__( 'Enter video URL for OGV format', 'quadric' ),
		'parent'      => $edgtf_video_self_hosted_container,

	)
);


??

??