Current File : /home/kelaby89/muzza.fit/wp-content/themes/deadlift/config/metaboxes.php
<?php
/**
 * Deadlift metaboxes
 *
 * @package WordPress
 * @subpackage Deadlift
 * @version 1.8.2
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Register metaboxes
 *
 * Pass a metabox array to generate metabox with the  Wolf Metaboxes plugin
 */
function deadlift_register_metabox() {

	$body_metaboxes = array(
		'site_settings' => array(
			'title' => esc_html__( 'General', 'deadlift' ),
			'page' => apply_filters( 'deadlift_site_settings_post_types', array( 'post', 'page', 'plugin', 'video', 'product', 'gallery', 'theme', 'work', 'show', 'release', 'wpm_playlist', 'event', 'artist', 'mp-event' ) ),

			'metafields' => array(

				array(
					'label'	=> '',
					'id'	=> '_post_subheading',
					'type'	=> 'text',
				),

				array(
					'label'	=> esc_html__( 'Accent Color', 'deadlift' ),
					'id'	=> '_post_accent_color',
					'type'	=> 'colorpicker',
				),

				array(
					'label'	=> esc_html__( 'Content Background Color', 'deadlift' ),
					'id'	=> '_post_content_inner_bg_color',
					'type'	=> 'colorpicker',
					'desc' => esc_html__( 'If you use the page builder and set your row background setting to "no background", you may want to change the overall content background color.', 'deadlift' ),
				),

				array(
					'label' => esc_html__( 'Loading Animation Type', 'deadlift' ),
					'id' => '_post_loading_animation_type',
					'type' => 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'overlay' => esc_html__( 'Overlay', 'deadlift' ),
		 				'deadlift' => esc_html__( 'Overlay with percent animation', 'deadlift' ),
		 				'none' => esc_html__( 'None', 'deadlift' ),
					),
				),
			),
		),
	);

	$content_blocks = array(
			'' => '&mdash; ' . esc_html__( 'None', 'deadlift' ) . ' &mdash;',
	);

	if ( class_exists( 'Wolf_Visual_Composer' ) && class_exists( 'Wolf_Vc_Content_Block' ) && defined( 'WPB_VC_VERSION' ) ) {
		// Content block option
		$content_block_posts = get_posts( 'post_type="wvc_content_block"&numberposts=-1' );

		$content_blocks = array(
			'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
			'none' => esc_html__( 'None', 'deadlift' ),
		);
		if ( $content_block_posts ) {
			foreach ( $content_block_posts as $content_block_options ) {
				$content_blocks[ $content_block_options->ID ] = $content_block_options->post_title;
			}
		} else {
			$content_blocks[0] = esc_html__( 'No Content Block Yet', 'deadlift' );
		}

		$body_metaboxes['site_settings']['metafields'][] = array(
			'label'	=> esc_html__( 'Post-header Block', 'deadlift' ),
			'id'	=> '_post_after_header_block',
			'type'	=> 'select',
			'choices' => $content_blocks,
		);

		$body_metaboxes['site_settings']['metafields'][] = array(
			'label'	=> esc_html__( 'Pre-footer Block', 'deadlift' ),
			'id'	=> '_post_before_footer_block',
			'type'	=> 'select',
			'choices' => $content_blocks,
		);

	}

	$header_metaboxes = array(
		'header_settings' => array(
			'title' => esc_html__( 'Header', 'deadlift' ),
			'page' => apply_filters( 'deadlift_header_settings_post_types', array( 'post', 'page', 'plugin', 'video', 'gallery', 'theme', 'work', 'show', 'release', 'wpm_playlist', 'event', 'artist', 'mp-event' ) ),

			'metafields' => array(

				array(
					'label'	=> esc_html__( 'Header Layout', 'deadlift' ),
					'id'	=> '_post_hero_layout',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'standard' => esc_html__( 'Standard', 'deadlift' ),
						'big' => esc_html__( 'Big', 'deadlift' ),
						'small' => esc_html__( 'Small', 'deadlift' ),
						'fullheight' => esc_html__( 'Full Height', 'deadlift' ),
						'none' => esc_html__( 'No Header', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Title Font Family', 'deadlift' ),
					'id'	=> '_post_hero_title_font_family',
					'type'	=> 'font_family',
				),

				array(
					'label'	=> esc_html__( 'Font Transform', 'deadlift' ),
					'id'	=> '_post_hero_title_font_transform',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'uppercase' => esc_html__( 'Uppercase', 'deadlift' ),
						'none' => esc_html__( 'None', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Big Text', 'deadlift' ),
					'id'	=> '_post_hero_title_bigtext',
					'type'	=> 'checkbox',
					'desc' => esc_html__( 'Enable "Big Text" for the title?', 'deadlift' ),
				),

				array(
					'label'	=> esc_html__( 'Font Tone', 'deadlift' ),
					'id'	=> '_post_hero_font_tone',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'light' => esc_html__( 'Light', 'deadlift' ),
						'dark' => esc_html__( 'Dark', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Background Type', 'deadlift' ),
					'id'	=> '_post_hero_background_type',
					'type'	=> 'select',
					'choices' => array(
						'featured-image' => esc_html__( 'Featured Image', 'deadlift' ),
						'image' => esc_html__( 'Image', 'deadlift' ),
						'video' => esc_html__( 'Video', 'deadlift' ),
						'slideshow' => esc_html__( 'Slideshow', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Slideshow Images', 'deadlift' ),
					'id'	=> '_post_hero_slideshow_ids',
					'type'	=> 'multiple_images',
					'dependency' => array( 'element' => '_post_hero_background_type', 'value' => array( 'slideshow' ) ),
				),

				array(
					'label'	=> esc_html__( 'Background', 'deadlift' ),
					'id'	=> '_post_hero_background',
					'type'	=> 'background',
					'dependency' => array( 'element' => '_post_hero_background_type', 'value' => array( 'image' ) ),
				),

				array(
					'label'	=> esc_html__( 'Background Effect', 'deadlift' ),
					'id'	=> '_post_hero_background_effect',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'zoomin' => esc_html__( 'Zoom', 'deadlift' ),
						'parallax' => esc_html__( 'Parallax', 'deadlift' ),
						'none' => esc_html__( 'None', 'deadlift' ),
					),
					'dependency' => array( 'element' => '_post_hero_background_type', 'value' => array( 'image' ) ),
				),

				array(
					'label'	=> esc_html__( 'Video URL', 'deadlift' ),
					'id'	=> '_post_hero_background_video_url',
					'type'	=> 'video',
					'dependency' => array( 'element' => '_post_hero_background_type', 'value' => array( 'video' ) ),
					'desc' => esc_html__( 'A mp4 or YouTube URL. The featured image will be used as image fallback when the video cannot be displayed.', 'deadlift' ),
				),

				array(
					'label'	=> esc_html__( 'Overlay', 'deadlift' ),
					'id'	=> '_post_hero_overlay',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'custom' => esc_html__( 'Custom', 'deadlift' ),
						'none' => esc_html__( 'None', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Overlay Color', 'deadlift' ),
					'id'	=> '_post_hero_overlay_color',
					'type'	=> 'colorpicker',
					//'value' 	=> '#000000',
					'dependency' => array( 'element' => '_post_hero_overlay', 'value' => array( 'custom' ) ),
				),

				array(
					'label'	=> esc_html__( 'Overlay Opacity (in percent)', 'deadlift' ),
					'id'	=> '_post_hero_overlay_opacity',
					'desc'	=> esc_html__( 'Adapt the header overlay opacity if needed', 'deadlift' ),
					'type'	=> 'int',
					'placeholder'	=> 40,
					'dependency' => array( 'element' => '_post_hero_overlay', 'value' => array( 'custom' ) ),
				),

			),
		),
	);

	$menu_metaboxes = array(
			'menu_settings' => array(
				'title' => esc_html__( 'Menu', 'deadlift' ),
				'page' => apply_filters( 'deadlift_menu_settings_post_types', array( 'post', 'page', 'plugin', 'video', 'product', 'gallery', 'theme', 'work', 'show', 'release', 'wpm_playlist', 'event', 'artist', 'mp-event' ) ),

			'metafields' => array(
				array(
					'label'	=> esc_html__( 'Menu Layout', 'deadlift' ),
					'id'	=> '_post_menu_layout',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'top-right' => esc_html__( 'Top Right', 'deadlift' ),
						'top-justify' => esc_html__( 'Top Justify', 'deadlift' ),
						'top-justify-left' => esc_html__( 'Top Justify Left', 'deadlift' ),
						'centered-logo' => esc_html__( 'Centered', 'deadlift' ),
						'top-left' => esc_html__( 'Top Left', 'deadlift' ),
						//'offcanvas' => esc_html__( 'Off Canvas', 'deadlift' ),
						//'overlay' => esc_html__( 'Overlay', 'deadlift' ),
						//'lateral' => esc_html__( 'Lateral', 'deadlift' ),
						'none' => esc_html__( 'No Menu', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Menu Width', 'deadlift' ),
					'id'	=> '_post_menu_width',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'wide' => esc_html__( 'Wide', 'deadlift' ),
						'boxed' => esc_html__( 'Boxed', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Menu Style', 'deadlift' ),
					'id'	=> '_post_menu_style',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'solid' => esc_html__( 'Solid', 'deadlift' ),
						'semi-transparent-white' => esc_html__( 'Semi-transparent White', 'deadlift' ),
						'semi-transparent-black' => esc_html__( 'Semi-transparent Black', 'deadlift' ),
						'transparent' => esc_html__( 'Transparent', 'deadlift' ),
						//'none' => esc_html__( 'No Menu', 'deadlift' ),
					),
				),

				/*array(
					'label'	=> esc_html__( 'Menu Skin', 'deadlift' ),
					'id'	=> '_post_menu_skin',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'light' => esc_html__( 'Light', 'deadlift' ),
						'dark' => esc_html__( 'Dark', 'deadlift' ),
						//'none' => esc_html__( 'No Menu', 'deadlift' ),
					),
				),*/

				'menu_sticky_type' => array(
					'id' =>'_post_menu_sticky_type',
					'label' => esc_html__( 'Sticky Menu', 'deadlift' ),
					'type' => 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'none' => esc_html__( 'Disabled', 'deadlift' ),
						'soft' => esc_html__( 'Sticky on scroll up', 'deadlift' ),
						'hard' => esc_html__( 'Always sticky', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Sticky Menu Skin', 'deadlift' ),
					'id'	=> '_post_menu_skin',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'light' => esc_html__( 'Light', 'deadlift' ),
						'dark' => esc_html__( 'Dark', 'deadlift' ),
						//'none' => esc_html__( 'No Menu', 'deadlift' ),
					),
				),

				array(
					'id' => '_post_menu_cta_content_type',
					'label' => esc_html__( 'Additional Content', 'deadlift' ),
					'type' => 'select',
					'default' => 'icons',
					'choices' => array_merge(
						array(
							'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						),
						apply_filters( 'deadlift_menu_cta_content_type_options', array(
							'search_icon' => esc_html__( 'Search Icon', 'deadlift' ),
							'secondary-menu' => esc_html__( 'Secondary Menu', 'deadlift' ),
						) ),
						array( 'none' => esc_html__( 'None', 'deadlift' ) )
					),
				),

				array(
					'id' => '_post_show_nav_player',
					'label' => esc_html__( 'Show Navigation Player', 'deadlift' ),
					'type' => 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'yes' => esc_html__( 'Yes', 'deadlift' ),
						'no' => esc_html__( 'No', 'deadlift' ),
					),
				),

				array(
					'id' => '_post_side_panel_position',
					'label' => esc_html__( 'Side Panel', 'deadlift' ),
					'type' => 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'none' => esc_html__( 'None', 'deadlift' ),
						'right' => esc_html__( 'At Right', 'deadlift' ),
						'left' => esc_html__( 'At Left', 'deadlift' ),
					),
					'desc' => esc_html__( 'Note that it will be disable with a vertical menu layout (overlay, offcanvas etc...).', 'deadlift' ),
				),

				array(
					'id' => '_post_logo_visibility',
					'label' => esc_html__( 'Logo Visibility', 'deadlift' ),
					'type' => 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'always' => esc_html__( 'Always', 'deadlift' ),
						'sticky_menu' => esc_html__( 'When menu is sticky only', 'deadlift' ),
						'hidden' => esc_html__( 'Hidden', 'deadlift' ),
					),
				),

				array(
					'id' => '_post_menu_items_visibility',
					'label' => esc_html__( 'Menu Items Visibility', 'deadlift' ),
					'type' => 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'show' => esc_html__( 'Visible', 'deadlift' ),
						'hidden' => esc_html__( 'Hidden', 'deadlift' ),
					),
					'desc' => esc_html__( 'If, for some reason, you need to hide the menu items but leave the logo, additional content and side panel.', 'deadlift' ),
				),

				'menu_breakpoint' => array(
					'id' =>'_post_menu_breakpoint',
					'label' => esc_html__( 'Mobile Menu Breakpoint', 'deadlift' ),
					'type' => 'text',
					'desc' => esc_html__( 'Use this field if you want to overwrite the mobile menu breakpoint.', 'deadlift' ),
				),
			),
		)
	);

	$footer_metaboxes = array(
		'footer_settings' => array(
				'title' => esc_html__( 'Footer', 'deadlift' ),
				'page' => apply_filters( 'deadlift_menu_settings_post_types', array( 'post', 'page', 'plugin', 'video', 'product', 'gallery', 'theme', 'work', 'show', 'release', 'wpm_playlist', 'event' ) ),

			'metafields' => array(
				array(
					'label'	=> esc_html__( 'Page Footer', 'deadlift' ),
					'id'	=> '_post_footer_type',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'hidden' => esc_html__( 'No Footer', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Hide Bottom Bar', 'deadlift' ),
					'id'	=> '_post_bottom_bar_hidden',
					'type'	=> 'select',
					'choices' => array(
						'' => esc_html__( 'No', 'deadlift' ),
						'yes' => esc_html__( 'Yes', 'deadlift' ),
					),
				),
			),
		)
	);

	/************** Post options ******************/

	$product_options = array();
	$product_options[] = esc_html__( 'WooCommerce not installed', 'deadlift' );

	if ( class_exists( 'WooCommerce' ) ) {
		$product_posts = get_posts( 'post_type="product"&numberposts=-1' );

		$product_options = array();
		if ( $product_posts ) {

			$product_options[] = esc_html__( 'Not linked', 'deadlift' );

			foreach ( $product_posts as $product ) {
				$product_options[ $product->ID ] = $product->post_title;
			}
		} else {
			$product_options[] = esc_html__( 'No product yet', 'deadlift' );
		}
	}

	$post_metaboxes = array(
		'post_settings' => array(
			'title' => esc_html__( 'Post', 'deadlift' ),
			'page' => array( 'post' ),
			'metafields' => array(
				array(
					'label'	=> esc_html__( 'Post Layout', 'deadlift' ),
					'id'	=> '_post_layout',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'sidebar-right' => esc_html__( 'Sidebar Right', 'deadlift' ),
						'sidebar-left' => esc_html__( 'Sidebar Left', 'deadlift' ),
						'no-sidebar' => esc_html__( 'No Sidebar', 'deadlift' ),
						'fullwidth' => esc_html__( 'Full width', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Feature a Product', 'deadlift' ),
					'id'	=> '_post_wc_product_id',
					'type'	=> 'select',
					'choices' => $product_options,
					'desc'	=> esc_html__( 'A "Shop Now" buton will be displayed in the metro layout.', 'deadlift' ),
				),

				array(
					'label'	=> esc_html__( 'Featured', 'deadlift' ),
					'id'	=> '_post_featured',
					'type'	=> 'checkbox',
					'desc'	=> esc_html__( 'Will be displayed bigger in the "metro" layout (auto pattern).', 'deadlift' ),
				),
			),
		),
	);

	/************** Product options ******************/
	$product_metaboxes = array(

		'product_options' => array(
			'title' => esc_html__( 'Product', 'deadlift' ),
			'page' => array( 'product' ),
			'metafields' => array(

				array(
					'label'	=> esc_html__( 'Label', 'deadlift' ),
					'id'	=> '_post_product_label',
					'type'	=> 'text',
					'placeholder' => esc_html__( '-30%', 'deadlift' ),
				),

				array(
					'label'	=> esc_html__( 'Layout', 'deadlift' ),
					'id'	=> '_post_product_single_layout',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'standard' => esc_html__( 'Standard', 'deadlift' ),
						'sidebar-right' => esc_html__( 'Sidebar Right', 'deadlift' ),
						'sidebar-left' => esc_html__( 'Sidebar Left', 'deadlift' ),
						'fullwidth' => esc_html__( 'Full Width', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Size Chart Image', 'deadlift' ),
					'id'	=> '_post_wc_product_size_chart_img',
					'type'	=> 'image',
					'desc' => esc_html__( 'You can set a size chart image in the product category options. You can overwrite the category size chart for this product by uploading another image here.', 'deadlift' ),
				),

				array(
					'label'	=> esc_html__( 'Hide Size Chart Image', 'deadlift' ),
					'id'	=> '_post_wc_product_hide_size_chart_img',
					'type'	=> 'checkbox',
				),

				array(
					'label'	=> esc_html__( 'Menu Font Tone', 'deadlift' ),
					'id'	=> '_post_hero_font_tone',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'light' => esc_html__( 'Light', 'deadlift' ),
						'dark' => esc_html__( 'Dark', 'deadlift' ),
					),
					'desc' => esc_html__( 'By default the menu style is set to "solid" on single product page. If you change the menu style, you may need to adujst the menu color tone here.', 'deadlift' ),
				),

				'menu_sticky_type' => array(
					'id' =>'_post_product_sticky',
					'label' => esc_html__( 'Stacked Images', 'deadlift' ),
					'type' => 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'yes' => esc_html__( 'Yes', 'deadlift' ),
						'no' => esc_html__( 'No', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Disable Image Zoom', 'deadlift' ),
					'id'	=> '_post_product_disable_easyzoom',
					'type'	=> 'checkbox',
					'desc' => esc_html__( 'Disable image zoom on this product if it\'s enabled in the customizer.', 'deadlift' ),
				),
			),
		),
	);

	/************** Product options ******************/

	$product_options = array();
	$product_options[] = esc_html__( 'WooCommerce not installed', 'deadlift' );

	if ( class_exists( 'WooCommerce' ) ) {
		$product_posts = get_posts( 'post_type="product"&numberposts=-1' );

		$product_options = array();
		if ( $product_posts ) {

			$product_options[] = esc_html__( 'Not linked', 'deadlift' );

			foreach ( $product_posts as $product ) {
				$product_options[ $product->ID ] = $product->post_title;
			}
		} else {
			$product_options[] = esc_html__( 'No product yet', 'deadlift' );
		}
	}

	// if ( class_exists( 'Wolf_Playlist_Manager' ) ) {
	// 	// Player option
	// 	$playlist_posts = get_posts( 'post_type="wpm_playlist"&numberposts=-1' );

	// 	$playlist = array( '' => esc_html__( 'None', 'deadlift' ) );
	// 	if ( $playlist_posts ) {
	// 		foreach ( $playlist_posts as $playlist_options ) {
	// 			$playlist[ $playlist_options->ID ] = $playlist_options->post_title;
	// 		}
	// 	} else {
	// 		$playlist[0] = esc_html__( 'No Playlist Yet', 'deadlift' );
	// 	}

	// 	$product_metaboxes['product_options']['metafields'][] = array(
	// 		'label'	=> esc_html__( 'Playlist', 'deadlift' ),
	// 		'id'	=> '_post_product_playlist_id',
	// 		'type'	=> 'select',
	// 		'choices' => $playlist,
	// 		'desc' => esc_html__( 'It will overwrite the single player.', 'deadlift' ),
	// 	);

	// 	$product_metaboxes['product_options']['metafields'][] = array(
	// 		'label'	=> esc_html__( 'Playlist Skin', 'deadlift' ),
	// 		'id'	=> '_post_product_playlist_skin',
	// 		'type'	=> 'select',
	// 		'choices' => array(
	// 			'dark' => esc_html__( 'Dark', 'deadlift' ),
	// 			'light' => esc_html__( 'Light', 'deadlift' ),
	// 		),
	// 	);
	// }

	/************** Portfolio options ******************/
	$work_metaboxes = array(

		'work_options' => array(
			'title' => esc_html__( 'Work', 'deadlift' ),
			'page' => array( 'work' ),
			'metafields' => array(

				// array(
				// 	'label'	=> esc_html__( 'Client', 'deadlift' ),
				// 	'id'	=> '_work_client',
				// 	'type'	=> 'text',
				// ),

				// array(
				// 	'label'	=> esc_html__( 'Link', 'deadlift' ),
				// 	'id'		=> '_work_link',
				// 	'type'	=> 'text',
				// ),

				array(
					'label'	=> esc_html__( 'Width', 'deadlift' ),
					'id'	=> '_post_width',
					'type'	=> 'select',
					'choices' => array(
						'standard' => esc_html__( 'Standard', 'deadlift' ),
						'wide' => esc_html__( 'Wide', 'deadlift' ),
						'fullwidth' => esc_html__( 'Full Width', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Layout', 'deadlift' ),
					'id'	=> '_post_layout',
					'type'	=> 'select',
					'choices' => array(
						'centered' => esc_html__( 'Centered', 'deadlift' ),
						'sidebar-right' => esc_html__( 'Excerpt & Info at Right', 'deadlift' ),
						'sidebar-left' => esc_html__( 'Excerpt & Info at Left', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Excerpt & Info Position', 'deadlift' ),
					'id'	=> '_post_work_info_position',
					'type'	=> 'select',
					'choices' => array(
						'after' => esc_html__( 'After Content', 'deadlift' ),
						'before' => esc_html__( 'Before Content', 'deadlift' ),
						'none' => esc_html__( 'Hidden', 'deadlift' ),
					),
				),

				// array(
				// 	'label'	=> esc_html__( 'Featured', 'deadlift' ),
				// 	'id'	=> '_post_featured',
				// 	'type'	=> 'checkbox',
				// 	'desc'	=> esc_html__( 'The featured image will be display bigger in the "metro" layout.', 'deadlift' ),
				// ),
			),
		),
	);


	/************** One pager options ******************/
	$one_page_metaboxes = array(
		'one_page_settings' => array(
			'title' => esc_html__( 'One-Page', 'deadlift' ),
			'page' => array( 'post', 'page', 'work', 'product' ),
			'metafields' => array(
				array(
					'label'	=> esc_html__( 'One-Page Navigation', 'deadlift' ),
					'id'	=> '_post_one_page_menu',
					'type'	=> 'select',
					'choices' => array(
						'' => esc_html__( 'No', 'deadlift' ),
						'replace_main_nav' => esc_html__( 'Yes', 'deadlift' ),
					),
					'desc'	=> deadlift_kses( __( 'Activate to replace the main menu by a one-page scroll navigation. <strong>NB: Every row must have a unique name set in the row settings "Advanced" tab.</strong>', 'deadlift' ) ),
				),
				array(
					'label'	=> esc_html__( 'One-Page Bullet Navigation', 'deadlift' ),
					'id'	=> '_post_scroller',
					'type'	=> 'checkbox',
					'desc'	=> deadlift_kses( __( 'Activate to create a section scroller navigation. <strong>NB: Every row must have a unique name set in the row settings "Advanced" tab.</strong>', 'deadlift' ) ),
				),
				array(
					'label'	=> sprintf( esc_html__( 'Enable %s animations', 'deadlift' ), 'fullPage' ),
					'id'	=> '_post_fullpage',
					'type'	=> 'select',
					'choices' => array(
						'' => esc_html__( 'No', 'deadlift' ),
						'yes' => esc_html__( 'Yes', 'deadlift' ),
					),
					'desc' => esc_html__( 'Activate to enable advanced scroll animations between sections. Some of your row setting may be disabled to suit the global page design.', 'deadlift' ),
				),

				array(
					'label'	=> sprintf( esc_html__( '%s animation transition', 'deadlift' ), 'fullPage' ),
					'id'	=> '_post_fullpage_transition',
					'type'	=> 'select',
					'choices' => array(
						'mix' => esc_html__( 'Special', 'deadlift' ),
						'parallax' => esc_html__( 'Parallax', 'deadlift' ),
						'fade' => esc_html__( 'Fade', 'deadlift' ),
						'zoom' => esc_html__( 'Zoom', 'deadlift' ),
						'curtain' => esc_html__( 'Curtain', 'deadlift' ),
						'slide' => esc_html__( 'Slide', 'deadlift' ),
					),
					'dependency' => array( 'element' => '_post_fullpage', 'value' => array( 'yes' ) ),
				),

				array(
					'label'	=> sprintf( esc_html__( '%s animation duration', 'deadlift' ), 'fullPage' ),
					'id'	=> '_post_fullpage_animtime',
					'type'	=> 'text',
					'placeholder' => 1000,
					'dependency' => array( 'element' => '_post_fullpage', 'value' => array( 'yes' ) ),
				),
			),
		),
	);

	/************** Video options ******************/
	$video_metaboxes = array(
		'video_settings' => array(
			'title' => esc_html__( 'Video', 'deadlift' ),
			'page' => array( 'video' ),
			'metafields' => array(
				array(
					'label'	=> esc_html__( 'Layout', 'deadlift' ),
					'id'	=> '_post_layout',
					'type'	=> 'select',
					'choices' => array(
						'' => esc_html__( 'Default', 'deadlift' ),
						'standard' => esc_html__( 'Standard', 'deadlift' ),
						'sidebar-right' => esc_html__( 'Sidebar Right', 'deadlift' ),
						'sidebar-left' => esc_html__( 'Sidebar Left', 'deadlift' ),
						'fullwidth' => esc_html__( 'Full Width', 'deadlift' ),
					),
				),
			),
		),
	);

	/************** MP Events options ******************/

	$mp_event_metaboxes = array(
		'mp_event_options' => array(
			'title' => esc_html__( 'Timetable Event', 'deadlift' ),
			'page' => array( 'mp-event' ),
			'metafields' => array(
				array(
					'label'	=> esc_html__( 'Layout', 'deadlift' ),
					'id'	=> '_post_layout',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'standard' => esc_html__( 'Standard', 'deadlift' ),
						'sidebar-right' => esc_html__( 'Sidebar Right', 'deadlift' ),
						'sidebar-left' => esc_html__( 'Sidebar Left', 'deadlift' ),
						'fullwidth' => esc_html__( 'Full Width', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Menu Font Tone', 'deadlift' ),
					'id'	=> '_post_hero_font_tone',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'light' => esc_html__( 'Light', 'deadlift' ),
						'dark' => esc_html__( 'Dark', 'deadlift' ),
					),
					'desc' => esc_html__( 'By default the menu style is set to "solid" on single event page. If you change the menu style, you may need to adujst the menu color tone here.', 'deadlift' ),
				),
			),
		),
	);

	/************** MP Columns options ******************/

	$mp_column_metaboxes = array(
		'mp_column_options' => array(
			'title' => esc_html__( 'Timetable Column', 'deadlift' ),
			'page' => array( 'mp-column' ),
			'metafields' => array(
				array(
					'label'	=> esc_html__( 'Layout', 'deadlift' ),
					'id'	=> '_post_layout',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'standard' => esc_html__( 'Standard', 'deadlift' ),
						'sidebar-right' => esc_html__( 'Sidebar Right', 'deadlift' ),
						'sidebar-left' => esc_html__( 'Sidebar Left', 'deadlift' ),
						'fullwidth' => esc_html__( 'Full Width', 'deadlift' ),
					),
				),

				array(
					'label'	=> esc_html__( 'Menu Font Tone', 'deadlift' ),
					'id'	=> '_post_hero_font_tone',
					'type'	=> 'select',
					'choices' => array(
						'' => '&mdash; ' . esc_html__( 'Default', 'deadlift' ) . ' &mdash;',
						'light' => esc_html__( 'Light', 'deadlift' ),
						'dark' => esc_html__( 'Dark', 'deadlift' ),
					),
					'desc' => esc_html__( 'By default the menu style is set to "solid" on single column page. If you change the menu style, you may need to adujst the menu color tone here.', 'deadlift' ),
				),
			),
		),
	);

	$all_metaboxes = array_merge(
		apply_filters( 'deadlift_body_metaboxes', $body_metaboxes ),
		apply_filters( 'deadlift_post_metaboxes', $post_metaboxes ),
		apply_filters( 'deadlift_product_metaboxes', $product_metaboxes ),
		apply_filters( 'deadlift_work_metaboxes',  $work_metaboxes ),
		apply_filters( 'deadlift_video_metaboxes',  $video_metaboxes ),
		apply_filters( 'deadlift_mp_event_metaboxes', $mp_event_metaboxes ),
		apply_filters( 'deadlift_mp_column_metaboxes', $mp_column_metaboxes ),
		apply_filters( 'deadlift_header_metaboxes', $header_metaboxes ),
		apply_filters( 'deadlift_menu_metaboxes', $menu_metaboxes ),
		apply_filters( 'deadlift_footer_metaboxes', $footer_metaboxes )
	);

	if ( class_exists( 'Wolf_Visual_Composer' ) && defined( 'WPB_VC_VERSION' ) ) {
		$all_metaboxes = $all_metaboxes + apply_filters( 'deadlift_one_page_metaboxes', $one_page_metaboxes );
	}

	if ( class_exists( 'Wolf_Metaboxes' ) ) {
		new Wolf_Metaboxes( apply_filters( 'deadlift_metaboxes', $all_metaboxes ) );
	}
}
deadlift_register_metabox();
Page not found – Hello World !