Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/meta-boxes/slider/
?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/meta-boxes
<?php
//Slider
$slider_meta_box = edgtf_quadric_create_meta_box(
array(
'scope' => array('slides'),
'title' => esc_html__( 'Slide Background Type', 'quadric' ),
'name' => 'slides-type'
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_background_type',
'type' => 'imagevideo',
'default_value' => 'image',
'label' => esc_html__( 'Slide Background Type', 'quadric' ),
'description' => esc_html__( 'Do you want to upload an image or video?', 'quadric' ),
'parent' => $slider_meta_box,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "#edgtf-meta-box-edgtf_slides_video_settings",
"dependence_show_on_yes" => "#edgtf-meta-box-edgtf_slides_image_settings"
)
)
);
//Slide Image
$slider_meta_box = edgtf_quadric_create_meta_box(
array(
'scope' => array('slides'),
'title' => esc_html__( 'Slide Background Image', 'quadric' ),
'name' => 'edgtf_slides_image_settings',
'hidden_property' => 'edgtf_slide_background_type',
'hidden_values' => array('video')
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_image',
'type' => 'image',
'label' => esc_html__( 'Slide Image', 'quadric' ),
'description' => esc_html__( 'Choose background image', 'quadric' ),
'parent' => $slider_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_overlay_image',
'type' => 'image',
'label' => esc_html__( 'Overlay Image', 'quadric' ),
'description' => esc_html__( 'Choose overlay image (pattern) for background image', 'quadric' ),
'parent' => $slider_meta_box
)
);
//Slide Video
$video_meta_box = edgtf_quadric_create_meta_box(
array(
'scope' => array('slides'),
'title' => esc_html__( 'Slide Background Video', 'quadric' ),
'name' => 'edgtf_slides_video_settings',
'hidden_property' => 'edgtf_slide_background_type',
'hidden_values' => array('image')
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_video_webm',
'type' => 'text',
'label' => esc_html__( 'Video - webm', 'quadric' ),
'description' => esc_html__( 'Path to the webm file that you have previously uploaded in Media Section', 'quadric' ),
'parent' => $video_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_video_mp4',
'type' => 'text',
'label' => esc_html__( 'Video - mp4', 'quadric' ),
'description' => esc_html__( 'Path to the mp4 file that you have previously uploaded in Media Section', 'quadric' ),
'parent' => $video_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_video_ogv',
'type' => 'text',
'label' => esc_html__( 'Video - ogv', 'quadric' ),
'description' => esc_html__( 'Path to the ogv file that you have previously uploaded in Media Section', 'quadric' ),
'parent' => $video_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_video_image',
'type' => 'image',
'label' => esc_html__( 'Video Preview Image', 'quadric' ),
'description' => esc_html__( 'Choose background image that will be visible until video is loaded. This image will be shown on touch devices too.', 'quadric' ),
'parent' => $video_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_video_overlay',
'type' => 'yesempty',
'default_value' => '',
'label' => esc_html__( 'Video Overlay Image', 'quadric' ),
'description' => esc_html__( 'Do you want to have a overlay image on video?', 'quadric' ),
'parent' => $video_meta_box,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "",
"dependence_show_on_yes" => "#edgtf_edgtf_slide_video_overlay_container"
)
)
);
$slide_video_overlay_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_slide_video_overlay_container',
'parent' => $video_meta_box,
'hidden_property' => 'edgtf_slide_video_overlay',
'hidden_values' => array('','no')
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_video_overlay_image',
'type' => 'image',
'label' => esc_html__( 'Overlay Image', 'quadric' ),
'description' => esc_html__( 'Choose overlay image (pattern) for background video.', 'quadric' ),
'parent' => $slide_video_overlay_container
)
);
//Slide General
$general_meta_box = edgtf_quadric_create_meta_box(
array(
'scope' => array('slides'),
'title' => esc_html__( 'Slide General', 'quadric' ),
'name' => 'edgtf_slides_general_settings'
)
);
edgtf_quadric_add_admin_section_title(
array(
'parent' => $general_meta_box,
'name' => 'edgtf_text_content_title',
'title' => esc_html__( 'Slide Text Content', 'quadric' )
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_hide_title',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Hide Slide Title', 'quadric' ),
'description' => esc_html__( 'Do you want to hide slide title?', 'quadric' ),
'parent' => $general_meta_box,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "#edgtf_edgtf_slide_hide_title_container",
"dependence_show_on_yes" => ""
)
)
);
$slide_hide_title_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_slide_hide_title_container',
'parent' => $general_meta_box,
'hidden_property' => 'edgtf_slide_hide_title',
'hidden_value' => 'yes'
));
$group_title_link = edgtf_quadric_add_admin_group(array(
'title' => esc_html__( 'Title Link', 'quadric' ),
'name' => 'group_title_link',
'description' => esc_html__( 'Define styles for title', 'quadric' ),
'parent' => $slide_hide_title_container
));
$row1 = edgtf_quadric_add_admin_row(array(
'name' => 'row1',
'parent' => $group_title_link
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_title_link',
'type' => 'textsimple',
'label' => esc_html__( 'Link', 'quadric' ),
'parent' => $row1
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $row1,
'type' => 'selectsimple',
'name' => 'edgtf_slide_title_target',
'default_value' => '_self',
'label' => esc_html__( 'Target', 'quadric' ),
'options' => array(
"_self" => esc_html__( "Self", 'quadric' ),
"_blank" => esc_html__( "Blank", 'quadric' )
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_subtitle',
'type' => 'text',
'label' => esc_html__( 'Subtitle Text', 'quadric' ),
'description' => esc_html__( 'Enter text for subtitle', 'quadric' ),
'parent' => $general_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_text',
'type' => 'text',
'label' => esc_html__( 'Body Text', 'quadric' ),
'description' => esc_html__( 'Enter slide body text', 'quadric' ),
'parent' => $general_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_button_label',
'type' => 'text',
'label' => esc_html__( 'Button 1 Text', 'quadric' ),
'description' => esc_html__( 'Enter text to be displayed on button 1', 'quadric' ),
'parent' => $general_meta_box
)
);
$group_button1 = edgtf_quadric_add_admin_group(array(
'title' => esc_html__( 'Button 1 Link', 'quadric' ),
'name' => 'group_button1',
'parent' => $general_meta_box
));
$row1 = edgtf_quadric_add_admin_row(array(
'name' => 'row1',
'parent' => $group_button1
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_button_link',
'type' => 'textsimple',
'label' => esc_html__( 'Link', 'quadric' ),
'parent' => $row1
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $row1,
'type' => 'selectsimple',
'name' => 'edgtf_slide_button_target',
'default_value' => '_self',
'label' => esc_html__( 'Target', 'quadric' ),
'options' => array(
"_self" => esc_html__( "Self", 'quadric' ),
"_blank" => esc_html__( "Blank", 'quadric' )
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_button_label2',
'type' => 'text',
'label' => esc_html__( 'Button 2 Text', 'quadric' ),
'description' => esc_html__( 'Enter text to be displayed on button 2', 'quadric' ),
'parent' => $general_meta_box
)
);
$group_button2 = edgtf_quadric_add_admin_group(array(
'title' => esc_html__( 'Button 2 Link', 'quadric' ),
'name' => 'group_button2',
'parent' => $general_meta_box
));
$row1 = edgtf_quadric_add_admin_row(array(
'name' => 'row1',
'parent' => $group_button2
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_button_link2',
'type' => 'textsimple',
'label' => 'Link',
'parent' => $row1
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $row1,
'type' => 'selectsimple',
'name' => 'edgtf_slide_button_target2',
'default_value' => '_self',
'label' => esc_html__( 'Target', 'quadric' ),
'options' => array(
"_self" => esc_html__( "Self", 'quadric' ),
"_blank" => esc_html__( "Blank", 'quadric' )
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_text_content_top_margin',
'type' => 'text',
'label' => esc_html__( 'Text Content Top Margin', 'quadric' ),
'description' => esc_html__( 'Enter top margin for text content', 'quadric' ),
'parent' => $general_meta_box,
'args' => array(
'col_width' => 2,
'suffix' => 'px'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_text_content_bottom_margin',
'type' => 'text',
'label' => esc_html__( 'Text Content Bottom Margin', 'quadric' ),
'description' => esc_html__( 'Enter bottom margin for text content', 'quadric' ),
'parent' => $general_meta_box,
'args' => array(
'col_width' => 2,
'suffix' => 'px'
)
)
);
edgtf_quadric_add_admin_section_title(
array(
'parent' => $general_meta_box,
'name' => 'edgtf_graphic_title',
'title' => esc_html__( 'Slide Graphic', 'quadric' )
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_thumbnail',
'type' => 'image',
'label' => esc_html__( 'Slide Graphic', 'quadric' ),
'description' => esc_html__( 'Choose slide graphic', 'quadric' ),
'parent' => $general_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_thumbnail_link',
'type' => 'text',
'label' => esc_html__( 'Graphic Link', 'quadric' ),
'description' => esc_html__( 'Enter URL to link slide graphic', 'quadric' ),
'parent' => $general_meta_box
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_graphic_top_padding',
'type' => 'text',
'label' => esc_html__( 'Graphic Top Padding', 'quadric' ),
'description' => esc_html__( 'Enter top padding for slide graphic', 'quadric' ),
'parent' => $general_meta_box,
'args' => array(
'col_width' => 2,
'suffix' => 'px'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_graphic_bottom_padding',
'type' => 'text',
'label' => esc_html__( 'Graphic Bottom Padding', 'quadric' ),
'description' => esc_html__( 'Enter bottom padding for slide graphic', 'quadric' ),
'parent' => $general_meta_box,
'args' => array(
'col_width' => 2,
'suffix' => 'px'
)
)
);
edgtf_quadric_add_admin_section_title(
array(
'parent' => $general_meta_box,
'name' => 'edgtf_general_styling_title',
'title' => esc_html__( 'General Styling', 'quadric' )
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $general_meta_box,
'type' => 'selectblank',
'name' => 'edgtf_slide_header_style',
'default_value' => '',
'label' => esc_html__( 'Header Style', 'quadric' ),
'description' => esc_html__( 'Header style will be applied when this slide is in focus', 'quadric' ),
'options' => array(
"light" => esc_html__( "Light", 'quadric' ),
"dark" => esc_html__( "Dark", 'quadric' )
)
)
);
//Slide Behaviour
$behaviours_meta_box = edgtf_quadric_create_meta_box(
array(
'scope' => array('slides'),
'title' => esc_html__( 'Slide Behaviours', 'quadric' ),
'name' => 'edgtf_slides_behaviour_settings'
)
);
edgtf_quadric_add_admin_section_title(
array(
'parent' => $behaviours_meta_box,
'name' => 'edgtf_image_animation_title',
'title' => esc_html__( 'Slide Image Animation', 'quadric' )
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_enable_image_animation',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Enable Image Animation', 'quadric' ),
'description' => esc_html__( 'Enabling this option will turn on a motion animation on the slide image', 'quadric' ),
'parent' => $behaviours_meta_box,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "",
"dependence_show_on_yes" => "#edgtf_edgtf_enable_image_animation_container"
)
)
);
$enable_image_animation_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_enable_image_animation_container',
'parent' => $behaviours_meta_box,
'hidden_property' => 'edgtf_enable_image_animation',
'hidden_value' => 'no'
));
edgtf_quadric_create_meta_box_field(
array(
'parent' => $enable_image_animation_container,
'type' => 'select',
'name' => 'edgtf_enable_image_animation_type',
'default_value' => 'zoom_center',
'label' => esc_html__( 'Animation Type', 'quadric' ),
'options' => array(
"zoom_center" => esc_html__( "Zoom In Center", 'quadric' ),
"zoom_top_left" => esc_html__( "Zoom In to Top Left", 'quadric' ),
"zoom_top_right" => esc_html__( "Zoom In to Top Right", 'quadric' ),
"zoom_bottom_left" => esc_html__( "Zoom In to Bottom Left", 'quadric' ),
"zoom_bottom_right" => esc_html__( "Zoom In to Bottom Right", 'quadric' )
)
)
);
edgtf_quadric_add_admin_section_title(
array(
'parent' => $behaviours_meta_box,
'name' => 'edgtf_content_animation_title',
'title' => esc_html__( 'Slide Content Entry Animations', 'quadric' )
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $behaviours_meta_box,
'type' => 'select',
'name' => 'edgtf_slide_thumbnail_animation',
'default_value' => 'flip',
'label' => esc_html__( 'Graphic Entry Animation', 'quadric' ),
'description' => esc_html__( 'Choose entry animation for graphic', 'quadric' ),
'options' => array(
"flip" => esc_html__( "Flip", 'quadric' ),
"fade" => esc_html__( "Fade In", 'quadric' ),
"from_bottom" => esc_html__( "From Bottom", 'quadric' ),
"from_top" => esc_html__( "From Top", 'quadric' ),
"from_left" => esc_html__( "From Left", 'quadric' ),
"from_right" => esc_html__( "From Right", 'quadric' ),
"clip_anim_hor" => esc_html__( "Clip Animation Horizontal", 'quadric' ),
"clip_anim_ver" => esc_html__( "Clip Animation Vertical", 'quadric' ),
"clip_anim_puzzle" => esc_html__( "Clip Animation Puzzle", 'quadric' ),
"without_animation" => esc_html__( "No Animation", 'quadric' )
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $behaviours_meta_box,
'type' => 'select',
'name' => 'edgtf_slide_content_animation',
'default_value' => 'all_at_once',
'label' => esc_html__( 'Content Entry Animation', 'quadric' ),
'description' => esc_html__( 'Choose entry animation for whole slide content group (title, subtitle, text, button)', 'quadric' ),
'options' => array(
"all_at_once" => esc_html__( "All At Once", 'quadric' ),
"one_by_one" => esc_html__( "One By One", 'quadric' ),
"without_animation" => esc_html__( "No Animation", 'quadric' )
),
'args' => array(
"dependence" => true,
"hide" => array(
"all_at_once"=>"",
"one_by_one"=>"",
"without_animation"=>"#edgtf_edgtf_slide_content_animation_container"),
"show" => array(
"all_at_once"=>"#edgtf_edgtf_slide_content_animation_container",
"one_by_one"=>"#edgtf_edgtf_slide_content_animation_container",
"without_animation"=>""
)
)
)
);
$slide_content_animation_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_slide_content_animation_container',
'parent' => $behaviours_meta_box,
'hidden_property' => 'edgtf_slide_content_animation',
'hidden_value' => 'without_animation'
));
edgtf_quadric_create_meta_box_field(
array(
'parent' => $slide_content_animation_container,
'type' => 'select',
'name' => 'edgtf_slide_content_animation_direction',
'default_value' => 'from_bottom',
'label' => esc_html__( 'Animation Direction', 'quadric' ),
'options' => array(
"from_bottom" => esc_html__( "From Bottom", 'quadric' ),
"from_top" => esc_html__( "From Top", 'quadric' ),
"from_left" => esc_html__( "From Left", 'quadric' ),
"from_right" => esc_html__( "From Right", 'quadric' ),
"fade" => esc_html__( "Fade In", 'quadric' )
)
)
);
//Slide Content Positioning
$content_positioning_meta_box = edgtf_quadric_create_meta_box(
array(
'scope' => array('slides'),
'title' => esc_html__( 'Slide Content Positioning', 'quadric' ),
'name' => 'edgtf_content_positioning_settings'
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $content_positioning_meta_box,
'type' => 'selectblank',
'name' => 'edgtf_slide_content_alignment',
'default_value' => '',
'label' => esc_html__( 'Text Alignment', 'quadric' ),
'description' => esc_html__( 'Choose an alignment for the slide text', 'quadric' ),
'options' => array(
"left" => esc_html__( "Left", 'quadric' ),
"center" => esc_html__( "Center", 'quadric' ),
"right" => esc_html__( "Right", 'quadric' )
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'parent' => $content_positioning_meta_box,
'type' => 'selectblank',
'name' => 'edgtf_slide_separate_text_graphic',
'default_value' => 'no',
'label' => esc_html__( 'Separate Graphic and Text Positioning', 'quadric' ),
'description' => esc_html__( 'Do you want to separately position graphic and text?', 'quadric' ),
'options' => array(
"no" => esc_html__( "No", 'quadric' ),
"yes" => esc_html__( "Yes", 'quadric' )
),
'args' => array(
"dependence" => true,
"hide" => array(
"" => "#edgtf_edgtf_slide_graphic_positioning_container",
"no" => "#edgtf_edgtf_slide_graphic_positioning_container, #edgtf_edgtf_content_vertical_positioning_group_container"
),
"show" => array(
"yes" => "#edgtf_edgtf_slide_graphic_positioning_container, #edgtf_edgtf_content_vertical_positioning_group_container"
)
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_content_vertical_middle',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Vertically Align Content to Middle', 'quadric' ),
'parent' => $content_positioning_meta_box,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "#edgtf_edgtf_slide_content_vertical_middle_no_container",
"dependence_show_on_yes" => "#edgtf_edgtf_slide_content_vertical_middle_yes_container"
)
)
);
$slide_content_vertical_middle_yes_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_slide_content_vertical_middle_yes_container',
'parent' => $content_positioning_meta_box,
'hidden_property' => 'edgtf_slide_content_vertical_middle',
'hidden_value' => 'no'
));
edgtf_quadric_create_meta_box_field(
array(
'parent' => $slide_content_vertical_middle_yes_container,
'type' => 'selectblank',
'name' => 'edgtf_slide_content_vertical_middle_type',
'default_value' => '',
'label' => esc_html__( 'Align Content Vertically Relative to the Height Measured From', 'quadric' ),
'options' => array(
"bottom_of_header" => esc_html__( "Bottom of Header", 'quadric' ),
"window_top" => esc_html__( "Window Top", 'quadric' )
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_vertical_content_full_width',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Content Holder Full Width', 'quadric' ),
'description' => esc_html__( 'Do you want to set slide content holder to full width?', 'quadric' ),
'parent' => $slide_content_vertical_middle_yes_container
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_vertical_content_width',
'type' => 'text',
'label' => esc_html__( 'Content Width', 'quadric' ),
'description' => esc_html__( 'Enter Width for Content Area', 'quadric' ),
'parent' => $slide_content_vertical_middle_yes_container,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
$group_space_around_content = edgtf_quadric_add_admin_group(array(
'title' => esc_html__( 'Space Around Content in Slide', 'quadric' ),
'name' => 'group_space_around_content',
'parent' => $slide_content_vertical_middle_yes_container
));
$row1 = edgtf_quadric_add_admin_row(array(
'name' => 'row1',
'parent' => $group_space_around_content
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_vertical_content_left',
'type' => 'textsimple',
'label' => esc_html__( 'From Left', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_vertical_content_right',
'type' => 'textsimple',
'label' => esc_html__( 'From Right', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
$slide_content_vertical_middle_no_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_slide_content_vertical_middle_no_container',
'parent' => $content_positioning_meta_box,
'hidden_property' => 'edgtf_slide_content_vertical_middle',
'hidden_value' => 'yes'
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_content_full_width',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Content Holder Full Width', 'quadric' ),
'description' => esc_html__( 'Do you want to set slide content holder to full width?', 'quadric' ),
'parent' => $slide_content_vertical_middle_no_container,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "#edgtf_edgtf_slide_content_width_container",
"dependence_show_on_yes" => ""
)
)
);
$slide_content_width_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_slide_content_width_container',
'parent' => $slide_content_vertical_middle_no_container,
'hidden_property' => 'edgtf_slide_content_full_width',
'hidden_value' => 'yes'
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_content_width',
'type' => 'text',
'label' => esc_html__( 'Content Holder Width', 'quadric' ),
'description' => esc_html__( 'Enter Width for Content Holder Area', 'quadric' ),
'parent' => $slide_content_width_container,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
$group_space_around_content = edgtf_quadric_add_admin_group(array(
'title' => esc_html__( 'Space Around Content in Slide', 'quadric' ),
'name' => 'group_space_around_content',
'parent' => $slide_content_vertical_middle_no_container
));
$row1 = edgtf_quadric_add_admin_row(array(
'name' => 'row1',
'parent' => $group_space_around_content
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_content_top',
'type' => 'textsimple',
'label' => esc_html__( 'From Top', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_content_left',
'type' => 'textsimple',
'label' => esc_html__( 'From Left', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_content_bottom',
'type' => 'textsimple',
'label' => esc_html__( 'From Bottom', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_content_right',
'type' => 'textsimple',
'label' => esc_html__( 'From Right', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
$row2 = edgtf_quadric_add_admin_row(array(
'name' => 'row2',
'parent' => $group_space_around_content
));
$content_vertical_positioning_group_container = edgtf_quadric_add_admin_container_no_style(array(
'name' => 'edgtf_content_vertical_positioning_group_container',
'parent' => $row2,
'hidden_property' => 'edgtf_slide_separate_text_graphic',
'hidden_value' => 'no'
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_text_width',
'type' => 'textsimple',
'label' => esc_html__( 'Text Holder Width', 'quadric' ),
'parent' => $content_vertical_positioning_group_container,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
$slide_graphic_positioning_container = edgtf_quadric_add_admin_container(array(
'name' => 'edgtf_slide_graphic_positioning_container',
'parent' => $slide_content_vertical_middle_no_container,
'hidden_property' => 'edgtf_slide_separate_text_graphic',
'hidden_value' => 'no'
));
edgtf_quadric_create_meta_box_field(
array(
'parent' => $slide_graphic_positioning_container,
'type' => 'selectblank',
'name' => 'edgtf_slide_graphic_alignment',
'default_value' => 'left',
'label' => esc_html__( 'Choose an alignment for the slide graphic', 'quadric' ),
'options' => array(
"left" => esc_html__( "Left", 'quadric' ),
"center" => esc_html__( "Center", 'quadric' ),
"right" => esc_html__( "Right", 'quadric' )
)
)
);
$group_graphic_positioning = edgtf_quadric_add_admin_group(array(
'title' => esc_html__( 'Graphic Positioning', 'quadric' ),
'description' => esc_html__( 'Positioning for slide graphic', 'quadric' ),
'name' => 'group_graphic_positioning',
'parent' => $slide_graphic_positioning_container
));
$row1 = edgtf_quadric_add_admin_row(array(
'name' => 'row1',
'parent' => $group_graphic_positioning
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_graphic_top',
'type' => 'textsimple',
'label' => esc_html__( 'From Top', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_graphic_left',
'type' => 'textsimple',
'label' => esc_html__( 'From Left', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_graphic_bottom',
'type' => 'textsimple',
'label' => esc_html__( 'From Bottom', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_graphic_right',
'type' => 'textsimple',
'label' => esc_html__( 'From Right', 'quadric' ),
'parent' => $row1,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);
$row2 = edgtf_quadric_add_admin_row(array(
'name' => 'row2',
'parent' => $group_graphic_positioning
));
edgtf_quadric_create_meta_box_field(
array(
'name' => 'edgtf_slide_graphic_width',
'type' => 'textsimple',
'label' => esc_html__( 'Graphic Holder Width', 'quadric' ),
'parent' => $row2,
'args' => array(
'col_width' => 2,
'suffix' => '%'
)
)
);