File: //home/madepabj/xpresscleaningservices.com/wp-content/themes/cleeny/includes/em-metabox.php
<?php
add_action( 'cmb2_admin_init', 'cleeny_metabox' );
/*
** Setting up custom fields for custom post types belongs to fantasic child theme for cleeny
*/
if ( !function_exists('cleeny_metabox') ) {
function cleeny_metabox() {
$prefix = '_cleeny_';
//header metabox
$page_heading_style = new_cmb2_box( array(
'id' => $prefix . 'em_header_style_option',
'title' => esc_html__( 'Header Style Option', 'cleeny' ),
'object_types' => array( 'page' ), // Post type
'priority' => 'high',
) );
$page_heading_style->add_field( array(
'name' => esc_html__('Top Menu Style ','cleeny'),
'id' => $prefix . 'cleeny_header_topa',
'type' => 'radio_inline',
'options' => array(
'1' => esc_html__( 'Show Top Menu This Page', 'cleeny' ),
'2' => esc_html__( 'Hide Top Menu This Page', 'cleeny' ),
),
'default' =>'2',
) );
$page_heading_style->add_field( array(
'name' => esc_html__('Header Style','cleeny'),
'id' => $prefix . 'cleeny_header_style',
'show_option_none' => true,
'desc' => esc_html__( 'Note: When you select 1-1,3,4,6 style menu, that time you need to set top bar menu, otherwise you can not find our real menu style.', 'cleeny' ),
'type' => 'select',
'options' => array(
'1' => esc_html__( 'Default Header Menu', 'cleeny' ),
'2' => esc_html__( 'Header Menu Transparent', 'cleeny' ),
'3' => esc_html__( 'Header Style Two', 'cleeny' ),
'4' => esc_html__( 'Header OnePage Menu', 'cleeny' ),
),
'default' =>'1',
) );
//page metabox
$page_breadcrumb = new_cmb2_box( array(
'id' => $prefix . 'pageid1',
'title' => esc_html__( 'Breadcumb Option', 'cleeny' ),
'object_types' => array( 'post','page','em_event','em_portfolio' ), // Post type
'priority' => 'high',
) );
$page_breadcrumb->add_field( array(
'name' => esc_html__('Page Title','cleeny'),
'id' => $prefix . 'ptitle',
'type' => 'radio_inline',
'options' => array(
'ptitles' => esc_html__( 'Hide Title', 'cleeny' ),
'ptitleh' => esc_html__( 'Show Title', 'cleeny' ),
),
'default' =>'ptitleh',
) );
$page_breadcrumb->add_field( array(
'name' => esc_html__('Breadcrumb','cleeny'),
'id' => $prefix . 'breadcrumbs',
'type' => 'radio_inline',
'options' => array(
'0' => esc_html__( 'Show breadcrumb', 'cleeny' ),
'1' => esc_html__( 'Hide breadcrumb', 'cleeny' ),
),
'default' =>0,
) );
$page_breadcrumb->add_field( array(
'name' => esc_html__('Breadcrumb Title','cleeny'),
'id' => $prefix . 'btitle',
'type' => 'radio_inline',
'options' => array(
'btitles' => esc_html__( 'Show Title', 'cleeny' ),
'btitleh' => esc_html__( 'Hide Title', 'cleeny' ),
),
'default' =>'btitleh',
) );
$page_breadcrumb->add_field(array(
'name' => esc_html__( 'Page Breadcrumb Image', 'cleeny' ),
'id' => $prefix .'pageimagess',
'desc' => esc_html__( 'insert image here', 'cleeny' ),
'type' => 'file',
) );
$page_breadcrumb->add_field( array(
'name' => esc_html__('Text Align','cleeny'),
'desc' => esc_html__('Select an option','cleeny'),
'id' => $prefix .'page_text_align',
'type' => 'select',
'show_option_none' => true,
'default' => 'text-center',
'options' => array(
'text-left' => esc_html__( 'Align Left', 'cleeny' ),
'text-center' => esc_html__( 'Align Middle', 'cleeny' ),
'text-right' => esc_html__( 'Alige Right', 'cleeny' ),
),
) );
$page_breadcrumb->add_field( array(
'name' => esc_html__('Text Transform','cleeny'),
'desc' => esc_html__('Select an option','cleeny'),
'id' => $prefix .'page_text_transform',
'type' => 'select',
'show_option_none' => true,
'default' => 'ccase',
'options' => array(
'lcase' => esc_html__( 'Transform lowercase', 'cleeny' ),
'ucase' => esc_html__( 'Transform uppercase', 'cleeny' ),
'ccase' => esc_html__( 'Transform capitalize', 'cleeny' ),
),
) );
//Testimonial
$testimonial = new_cmb2_box( array(
'id' => $prefix . 'em_testimonial',
'title' => esc_html__( 'Testimonial Option', 'cleeny' ),
'object_types' => array( 'em_testimonial' ), // Post type
'priority' => 'high',
) );
$testimonial->add_field( array(
'name' => esc_html__( 'Degignation', 'cleeny' ),
'desc' => esc_html__( 'insert Degignation here', 'cleeny' ),
'id' => $prefix . 'testi_deg',
'type' => 'text',
) );
//Case Study
$casestudy = new_cmb2_box( array(
'id' => $prefix . 'em_case_study',
'title' => esc_html__( 'Case Study Option', 'cleeny' ),
'object_types' => array( 'em_case_study' ), // Post type
'priority' => 'high',
) );
$casestudy->add_field( array(
'name' => esc_html__( 'Case Study Description', 'cleeny' ),
'desc' => esc_html__( 'Description', 'cleeny' ),
'id' => $prefix . 'casedescip',
'type' => 'wysiwyg',
) );
$casestudy->add_field( array(
'name' => 'oEmbed',
'id' => 'embed',
'type' => 'oembed',
) );
$casestudy->add_field( array(
'name' => 'Icon Field',
'desc' => 'Upload an image or enter an URL.',
'id' => 'icon_field',
'type' => 'file',
) );
//===================================
//Portfolio Metaboxes
//===================================
$portfolio = new_cmb2_box( array(
'id' => $prefix . 'portfolio',
'title' => esc_html__( 'Portfolio Option', 'cleeny' ),
'object_types' => array( 'em_portfolio', ), // Post type
'priority' => 'high',
) );
$portfolio->add_field( array(
'name' => esc_html__( 'Portfolio Description', 'cleeny' ),
'desc' => esc_html__( 'Description', 'cleeny' ),
'id' => $prefix . 'portdesc',
'type' => 'wysiwyg',
) );
$portfolio->add_field( array(
'name' => esc_html__('Show/Hide All Option','cleeny'),
'id' => $prefix . 'saloption',
'type' => 'radio_inline',
'options' => array(
'm_alshow' => esc_html__( 'Show', 'cleeny' ),
'm_alhide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'m_alhide',
) );
$portfolio->add_field( array(
'name' => esc_html__('Show/Hide Popup Image','cleeny'),
'id' => $prefix . 'siimagepop',
'type' => 'radio_inline',
'options' => array(
'm_ishow' => esc_html__( 'Show', 'cleeny' ),
'm_ihide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'m_ishow',
) );
$portfolio->add_field( array(
'name' => esc_html__('Show/Hide Link Page','cleeny'),
'id' => $prefix . 'sllink',
'type' => 'radio_inline',
'options' => array(
'm_lshow' => esc_html__( 'Show', 'cleeny' ),
'm_lhide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'m_lshow',
) );
$portfolio->add_field( array(
'name' => esc_html__('Show/Hide Popup Youtube','cleeny'),
'id' => $prefix . 'shyoutub',
'type' => 'radio_inline',
'options' => array(
'm_yshow' => esc_html__( 'Show', 'cleeny' ),
'm_yhide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'m_yhide',
) );
$portfolio->add_field( array(
'name' => esc_html__( 'Youtube Video', 'cleeny' ),
'desc' => esc_html__( 'insert video link. ex-https://youtu.be/OJ9ejTy4J98', 'cleeny' ),
'id' => $prefix . 'pyoutube',
'type' => 'text_url',
) );
$portfolio->add_field( array(
'name' => esc_html__('Show/Hide Popup Vimeo','cleeny'),
'id' => $prefix . 'svvimeo',
'type' => 'radio_inline',
'options' => array(
'm_vshow' => esc_html__( 'Show', 'cleeny' ),
'm_vhide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'m_vhide',
) );
$portfolio->add_field( array(
'name' => esc_html__( 'Vimeo Video', 'cleeny' ),
'desc' => esc_html__( 'insert video link. ex-https://youtu.be/OJ9ejTy4J98', 'cleeny' ),
'id' => $prefix . 'pvimeo',
'type' => 'text_url',
) );
$portfolio->add_field( array(
'name' => esc_html__('Select Multi Gellary','cleeny'),
'id' => $prefix . 'm_g_image_pop',
'type' => 'radio_inline',
'options' => array(
'm_gshow' => esc_html__( 'Show', 'cleeny' ),
'm_ghide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'m_ghide',
) );
$portfolio->add_field( array(
'name' => esc_html__( 'Multiple Gellary Image', 'cleeny' ),
'desc' => esc_html__( 'insert multiple gellary image here for single page', 'cleeny' ),
'id' => $prefix . 'pgellaryu',
'type' => 'file_list',
) );
$portfolio->add_field( array(
'name' => esc_html__('Show/Hide Title','cleeny'),
'id' => $prefix . 'pshow_title',
'type' => 'radio_inline',
'options' => array(
'ptitle_show' => esc_html__( 'Show', 'cleeny' ),
'ptitle_hide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'ptitle_show',
) );
$portfolio->add_field( array(
'name' => esc_html__('Show/Hide Category','cleeny'),
'id' => $prefix . 'pshow_cat',
'type' => 'radio_inline',
'options' => array(
'pcat_show' => esc_html__( 'Show', 'cleeny' ),
'pcat_hide' => esc_html__( 'Hide', 'cleeny' ),
),
'default' =>'pcat_show',
) );
//===================================
//Pricing table metabox
//===================================
$pricing = new_cmb2_box( array(
'id' => $prefix . 'pricing',
'title' => esc_html__( 'Price Option', 'cleeny' ),
'object_types' => array( 'em_pricing', ), // Post type
'priority' => 'high',
) );
$pricing->add_field( array(
'name' => esc_html__( 'Price Currency', 'cleeny' ),
'desc' => esc_html__( 'insert Currency here e.g $', 'cleeny' ),
'id' => $prefix . 'currency',
'type' => 'text',
) );
$pricing->add_field( array(
'name' => esc_html__( 'Price Amount', 'cleeny' ),
'desc' => esc_html__( 'insert Amount here', 'cleeny' ),
'id' => $prefix . 'price_amount',
'type' => 'text',
) );
$pricing->add_field( array(
'name' => esc_html__( 'Price Delay', 'cleeny' ),
'desc' => esc_html__( 'insert Year, Month, Week or Day here', 'cleeny' ),
'id' => $prefix . 'day',
'type' => 'text',
) );
$pricing->add_field( array(
'name' => esc_html__( 'pricing content', 'cleeny' ),
'desc' => esc_html__( 'insert pricing Item', 'cleeny' ),
'id' => $prefix . 'pricing_item_loop',
'type' => 'text',
'repeatable' => true,
) );
$pricing->add_field( array(
'name' => esc_html__( 'Button Text', 'cleeny' ),
'desc' => esc_html__( 'Insert Text Here', 'cleeny' ),
'id' => $prefix . 'button_text',
'type' => 'text',
) );
$pricing->add_field( array(
'name' => esc_html__( 'Button Link', 'cleeny' ),
'desc' => esc_html__( 'Insert register Link', 'cleeny' ),
'id' => $prefix . 'button_link',
'type' => 'text_url',
) );
$pricing->add_field( array(
'name' => esc_html__( 'Active Class', 'cleeny' ),
'desc' => esc_html__( 'Add Active Class here "active"', 'cleeny' ),
'id' => $prefix . 'active',
'type' => 'text',
) );
//post tab metabox
$emtab = new_cmb2_box( array(
'id' => $prefix . 'em_tab',
'title' => esc_html__( 'Tab Option', 'cleeny' ),
'object_types' => array( 'em_tab' ), // Post type
'priority' => 'high',
) );
$emtab->add_field( array(
'name' => esc_html__( 'Tab Menu Name', 'cleeny' ),
'desc' => esc_html__( 'insert tab menu here', 'cleeny' ),
'id' => $prefix . 'em_tab_menu',
'type' => 'text',
) );
$emtab->add_field(array(
'name' => esc_html__( 'Tab Menu Image', 'cleeny' ),
'id' => $prefix .'em_tab_image',
'desc' => esc_html__( 'insert image here', 'cleeny' ),
'type' => 'file',
) );
$emtab->add_field( array(
'name' => esc_html__( 'Tab Menu Active', 'cleeny' ),
'desc' => esc_html__( 'must be set "active in" class into one post from all post, for active tab item', 'cleeny' ),
'id' => $prefix . 'em_tab_active',
'type' => 'text',
) );
$emtab->add_field( array(
'name' => esc_html__( 'Tab Icon Name', 'cleeny' ),
'desc' => esc_html__( 'Type Your favorite Font awesome Icon name', 'cleeny' ),
'id' => $prefix . 'em_tab_icon',
'type' => 'text',
) );
//slider table metabox
$slider = new_cmb2_box( array(
'id' => $prefix . 'cleeny_slider',
'title' => esc_html__( 'Slider Option', 'cleeny' ),
'object_types' => array( 'em_slider', ), // Post type
'priority' => 'high',
) );
$slider->add_field( array(
'name' => esc_html__( 'Title', 'cleeny' ),
'desc' => esc_html__( 'insert title here. for highlight text use <span> ex-<span>Design</span>', 'cleeny' ),
'id' => $prefix . 'em_slide_title',
'type' => 'textarea_small',
) );
$slider->add_field( array(
'name' => esc_html__('Title Animate','cleeny'),
'id' => $prefix . 'em_aimate_title',
'show_option_none' => true,
'type' => 'select',
'options' => array(
'bounceIn' => esc_html__( 'bounceIn', 'cleeny' ),
'bounceInDown' => esc_html__( 'bounceInDown', 'cleeny' ),
'bounceInLeft' => esc_html__( 'bounceInLeft', 'cleeny' ),
'bounceInRight' => esc_html__( 'bounceInRight', 'cleeny' ),
'bounceInUp' => esc_html__( 'bounceInUp', 'cleeny' ),
'fadeIn' => esc_html__( 'fadeIn', 'cleeny' ),
'fadeInDown' => esc_html__( 'fadeInDown', 'cleeny' ),
'fadeInDownBig' => esc_html__( 'fadeInDownBig', 'cleeny' ),
'fadeInLeft' => esc_html__( 'fadeInLeft', 'cleeny' ),
'fadeInLeftBig' => esc_html__( 'fadeInLeftBig', 'cleeny' ),
'fadeInRight' => esc_html__( 'fadeInRight', 'cleeny' ),
'fadeInRightBig' => esc_html__( 'fadeInRightBig', 'cleeny' ),
'fadeInUp' => esc_html__( 'fadeInUp', 'cleeny' ),
'fadeInUpBig' => esc_html__( 'fadeInUpBig', 'cleeny' ),
'rotateIn' => esc_html__( 'rotateIn', 'cleeny' ),
'rotateInDownLeft' => esc_html__( 'rotateInDownLeft', 'cleeny' ),
'rotateInDownRight' => esc_html__( 'rotateInDownRight', 'cleeny' ),
'rotateInUpLeft' => esc_html__( 'rotateInUpLeft', 'cleeny' ),
'rotateInUpRight' => esc_html__( 'rotateInUpRight', 'cleeny' ),
'rollIn' => esc_html__( 'rollIn', 'cleeny' ),
'zoomIn' => esc_html__( 'zoomIn', 'cleeny' ),
'zoomInDown' => esc_html__( 'zoomInDown', 'cleeny' ),
'zoomInLeft' => esc_html__( 'zoomInLeft', 'cleeny' ),
'zoomInRight' => esc_html__( 'zoomInRight', 'cleeny' ),
'zoomInUp' => esc_html__( 'zoomInUp', 'cleeny' ),
'slideInDown' => esc_html__( 'slideInDown', 'cleeny' ),
'slideInLeft' => esc_html__( 'slideInLeft', 'cleeny' ),
'slideInRight' => esc_html__( 'slideInRight', 'cleeny' ),
'slideInUp' => esc_html__( 'slideInUp', 'cleeny' ),
),
'default' =>'slideInRight',
) );
$slider->add_field( array(
'name' => esc_html__('Title Animate Duration','cleeny'),
'id' => $prefix . 'em_durations_title',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'2',
) );
$slider->add_field( array(
'name' => esc_html__('Title Animate Delay','cleeny'),
'id' => $prefix . 'em_dealy_title',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0' => esc_html__( 'point 0s', 'cleeny' ),
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'0',
) );
$slider->add_field( array(
'name' => esc_html__( 'Sub Title', 'cleeny' ),
'desc' => esc_html__( 'insert sub-title here. for highlight text use <span> ex-<span>website</span>', 'cleeny' ),
'id' => $prefix . 'em_slide_subtitle',
'type' => 'textarea_small',
) );
$slider->add_field( array(
'name' => esc_html__('Sub Title Animate','cleeny'),
'id' => $prefix . 'em_aimate_subtitle',
'show_option_none' => true,
'type' => 'select',
'options' => array(
'bounceIn' => esc_html__( 'bounceIn', 'cleeny' ),
'bounceInDown' => esc_html__( 'bounceInDown', 'cleeny' ),
'bounceInLeft' => esc_html__( 'bounceInLeft', 'cleeny' ),
'bounceInRight' => esc_html__( 'bounceInRight', 'cleeny' ),
'bounceInUp' => esc_html__( 'bounceInUp', 'cleeny' ),
'fadeIn' => esc_html__( 'fadeIn', 'cleeny' ),
'fadeInDown' => esc_html__( 'fadeInDown', 'cleeny' ),
'fadeInDownBig' => esc_html__( 'fadeInDownBig', 'cleeny' ),
'fadeInLeft' => esc_html__( 'fadeInLeft', 'cleeny' ),
'fadeInLeftBig' => esc_html__( 'fadeInLeftBig', 'cleeny' ),
'fadeInRight' => esc_html__( 'fadeInRight', 'cleeny' ),
'fadeInRightBig' => esc_html__( 'fadeInRightBig', 'cleeny' ),
'fadeInUp' => esc_html__( 'fadeInUp', 'cleeny' ),
'fadeInUpBig' => esc_html__( 'fadeInUpBig', 'cleeny' ),
'rotateIn' => esc_html__( 'rotateIn', 'cleeny' ),
'rotateInDownLeft' => esc_html__( 'rotateInDownLeft', 'cleeny' ),
'rotateInDownRight' => esc_html__( 'rotateInDownRight', 'cleeny' ),
'rotateInUpLeft' => esc_html__( 'rotateInUpLeft', 'cleeny' ),
'rotateInUpRight' => esc_html__( 'rotateInUpRight', 'cleeny' ),
'rollIn' => esc_html__( 'rollIn', 'cleeny' ),
'zoomIn' => esc_html__( 'zoomIn', 'cleeny' ),
'zoomInDown' => esc_html__( 'zoomInDown', 'cleeny' ),
'zoomInLeft' => esc_html__( 'zoomInLeft', 'cleeny' ),
'zoomInRight' => esc_html__( 'zoomInRight', 'cleeny' ),
'zoomInUp' => esc_html__( 'zoomInUp', 'cleeny' ),
'slideInDown' => esc_html__( 'slideInDown', 'cleeny' ),
'slideInLeft' => esc_html__( 'slideInLeft', 'cleeny' ),
'slideInRight' => esc_html__( 'slideInRight', 'cleeny' ),
'slideInUp' => esc_html__( 'slideInUp', 'cleeny' ),
),
'default' =>'slideInRight',
) );
$slider->add_field( array(
'name' => esc_html__('Sub Title Animate Duration','cleeny'),
'id' => $prefix . 'em_durations_subtitle',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'2',
) );
$slider->add_field( array(
'name' => esc_html__('Sub Title Animate Delay','cleeny'),
'id' => $prefix . 'em_dealy_subtitle',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0' => esc_html__( 'point 0s', 'cleeny' ),
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'0',
) );
$slider->add_field( array(
'name' => esc_html__( 'Content', 'cleeny' ),
'desc' => esc_html__( 'insert content here', 'cleeny' ),
'id' => $prefix . 'em_slide_textarea',
'type' => 'textarea',
) );
$slider->add_field( array(
'name' => esc_html__('Content Animate','cleeny'),
'id' => $prefix . 'em_aimate_content',
'show_option_none' => true,
'type' => 'select',
'options' => array(
'bounceIn' => esc_html__( 'bounceIn', 'cleeny' ),
'bounceInDown' => esc_html__( 'bounceInDown', 'cleeny' ),
'bounceInLeft' => esc_html__( 'bounceInLeft', 'cleeny' ),
'bounceInRight' => esc_html__( 'bounceInRight', 'cleeny' ),
'bounceInUp' => esc_html__( 'bounceInUp', 'cleeny' ),
'fadeIn' => esc_html__( 'fadeIn', 'cleeny' ),
'fadeInDown' => esc_html__( 'fadeInDown', 'cleeny' ),
'fadeInDownBig' => esc_html__( 'fadeInDownBig', 'cleeny' ),
'fadeInLeft' => esc_html__( 'fadeInLeft', 'cleeny' ),
'fadeInLeftBig' => esc_html__( 'fadeInLeftBig', 'cleeny' ),
'fadeInRight' => esc_html__( 'fadeInRight', 'cleeny' ),
'fadeInRightBig' => esc_html__( 'fadeInRightBig', 'cleeny' ),
'fadeInUp' => esc_html__( 'fadeInUp', 'cleeny' ),
'fadeInUpBig' => esc_html__( 'fadeInUpBig', 'cleeny' ),
'rotateIn' => esc_html__( 'rotateIn', 'cleeny' ),
'rotateInDownLeft' => esc_html__( 'rotateInDownLeft', 'cleeny' ),
'rotateInDownRight' => esc_html__( 'rotateInDownRight', 'cleeny' ),
'rotateInUpLeft' => esc_html__( 'rotateInUpLeft', 'cleeny' ),
'rotateInUpRight' => esc_html__( 'rotateInUpRight', 'cleeny' ),
'rollIn' => esc_html__( 'rollIn', 'cleeny' ),
'zoomIn' => esc_html__( 'zoomIn', 'cleeny' ),
'zoomInDown' => esc_html__( 'zoomInDown', 'cleeny' ),
'zoomInLeft' => esc_html__( 'zoomInLeft', 'cleeny' ),
'zoomInRight' => esc_html__( 'zoomInRight', 'cleeny' ),
'zoomInUp' => esc_html__( 'zoomInUp', 'cleeny' ),
'slideInDown' => esc_html__( 'slideInDown', 'cleeny' ),
'slideInLeft' => esc_html__( 'slideInLeft', 'cleeny' ),
'slideInRight' => esc_html__( 'slideInRight', 'cleeny' ),
'slideInUp' => esc_html__( 'slideInUp', 'cleeny' ),
),
'default' =>'slideInRight',
) );
$slider->add_field( array(
'name' => esc_html__('Content Animate Duration','cleeny'),
'id' => $prefix . 'em_durations_content',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'3',
) );
$slider->add_field( array(
'name' => esc_html__('Content Animate Delay','cleeny'),
'id' => $prefix . 'em_dealy_content',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0' => esc_html__( 'point 0s', 'cleeny' ),
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'0',
) );
$slider->add_field( array(
'name' => esc_html__( 'Button Text 1', 'cleeny' ),
'desc' => esc_html__( 'insert button text here', 'cleeny' ),
'id' => $prefix . 'em_slide_btn1',
'type' => 'text',
) );
$slider->add_field( array(
'name' => esc_html__( 'Slide Image', 'cleeny' ),
'desc' => esc_html__( 'insert single slide image here', 'cleeny' ),
'id' => $prefix . 'em_slide_img',
'type' => 'file',
) );
$slider->add_field( array(
'name' => esc_html__('Image Animate','cleeny'),
'id' => $prefix . 'em_aimate_image',
'show_option_none' => true,
'type' => 'select',
'options' => array(
'bounceIn' => esc_html__( 'bounceIn', 'cleeny' ),
'bounceInDown' => esc_html__( 'bounceInDown', 'cleeny' ),
'bounceInLeft' => esc_html__( 'bounceInLeft', 'cleeny' ),
'bounceInRight' => esc_html__( 'bounceInRight', 'cleeny' ),
'bounceInUp' => esc_html__( 'bounceInUp', 'cleeny' ),
'fadeIn' => esc_html__( 'fadeIn', 'cleeny' ),
'fadeInDown' => esc_html__( 'fadeInDown', 'cleeny' ),
'fadeInDownBig' => esc_html__( 'fadeInDownBig', 'cleeny' ),
'fadeInLeft' => esc_html__( 'fadeInLeft', 'cleeny' ),
'fadeInLeftBig' => esc_html__( 'fadeInLeftBig', 'cleeny' ),
'fadeInRight' => esc_html__( 'fadeInRight', 'cleeny' ),
'fadeInRightBig' => esc_html__( 'fadeInRightBig', 'cleeny' ),
'fadeInUp' => esc_html__( 'fadeInUp', 'cleeny' ),
'fadeInUpBig' => esc_html__( 'fadeInUpBig', 'cleeny' ),
'rotateIn' => esc_html__( 'rotateIn', 'cleeny' ),
'rotateInDownLeft' => esc_html__( 'rotateInDownLeft', 'cleeny' ),
'rotateInDownRight' => esc_html__( 'rotateInDownRight', 'cleeny' ),
'rotateInUpLeft' => esc_html__( 'rotateInUpLeft', 'cleeny' ),
'rotateInUpRight' => esc_html__( 'rotateInUpRight', 'cleeny' ),
'rollIn' => esc_html__( 'rollIn', 'cleeny' ),
'zoomIn' => esc_html__( 'zoomIn', 'cleeny' ),
'zoomInDown' => esc_html__( 'zoomInDown', 'cleeny' ),
'zoomInLeft' => esc_html__( 'zoomInLeft', 'cleeny' ),
'zoomInRight' => esc_html__( 'zoomInRight', 'cleeny' ),
'zoomInUp' => esc_html__( 'zoomInUp', 'cleeny' ),
'slideInDown' => esc_html__( 'slideInDown', 'cleeny' ),
'slideInLeft' => esc_html__( 'slideInLeft', 'cleeny' ),
'slideInRight' => esc_html__( 'slideInRight', 'cleeny' ),
'slideInUp' => esc_html__( 'slideInUp', 'cleeny' ),
),
'default' =>'slideInRight',
) );
$slider->add_field( array(
'name' => esc_html__('Image Animate Duration','cleeny'),
'id' => $prefix . 'em_durations_image',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'2',
) );
$slider->add_field( array(
'name' => esc_html__('Image Animate Delay','cleeny'),
'id' => $prefix . 'em_dealy_image',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0' => esc_html__( 'point 0s', 'cleeny' ),
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'0',
) );
$slider->add_field( array(
'name' => esc_html__( 'Button url 1', 'cleeny' ),
'desc' => esc_html__( 'insert button text url here', 'cleeny' ),
'id' => $prefix . 'em_slide_btn1utl',
'type' => 'text_url',
) );
$slider->add_field( array(
'name' => esc_html__( 'Button Text 2', 'cleeny' ),
'desc' => esc_html__( 'insert button text here', 'cleeny' ),
'id' => $prefix . 'em_slide_btn2',
'type' => 'text',
) );
$slider->add_field( array(
'name' => esc_html__( 'Button url 2', 'cleeny' ),
'desc' => esc_html__( 'insert button text url here', 'cleeny' ),
'id' => $prefix . 'em_slide_btn2url',
'type' => 'text_url',
) );
$slider->add_field( array(
'name' => esc_html__('Button Animate','cleeny'),
'id' => $prefix . 'em_aimate_btn',
'show_option_none' => true,
'type' => 'select',
'options' => array(
'bounceIn' => esc_html__( 'bounceIn', 'cleeny' ),
'bounceInDown' => esc_html__( 'bounceInDown', 'cleeny' ),
'bounceInLeft' => esc_html__( 'bounceInLeft', 'cleeny' ),
'bounceInRight' => esc_html__( 'bounceInRight', 'cleeny' ),
'bounceInUp' => esc_html__( 'bounceInUp', 'cleeny' ),
'fadeIn' => esc_html__( 'fadeIn', 'cleeny' ),
'fadeInDown' => esc_html__( 'fadeInDown', 'cleeny' ),
'fadeInDownBig' => esc_html__( 'fadeInDownBig', 'cleeny' ),
'fadeInLeft' => esc_html__( 'fadeInLeft', 'cleeny' ),
'fadeInLeftBig' => esc_html__( 'fadeInLeftBig', 'cleeny' ),
'fadeInRight' => esc_html__( 'fadeInRight', 'cleeny' ),
'fadeInRightBig' => esc_html__( 'fadeInRightBig', 'cleeny' ),
'fadeInUp' => esc_html__( 'fadeInUp', 'cleeny' ),
'fadeInUpBig' => esc_html__( 'fadeInUpBig', 'cleeny' ),
'rotateIn' => esc_html__( 'rotateIn', 'cleeny' ),
'rotateInDownLeft' => esc_html__( 'rotateInDownLeft', 'cleeny' ),
'rotateInDownRight' => esc_html__( 'rotateInDownRight', 'cleeny' ),
'rotateInUpLeft' => esc_html__( 'rotateInUpLeft', 'cleeny' ),
'rotateInUpRight' => esc_html__( 'rotateInUpRight', 'cleeny' ),
'rollIn' => esc_html__( 'rollIn', 'cleeny' ),
'zoomIn' => esc_html__( 'zoomIn', 'cleeny' ),
'zoomInDown' => esc_html__( 'zoomInDown', 'cleeny' ),
'zoomInLeft' => esc_html__( 'zoomInLeft', 'cleeny' ),
'zoomInRight' => esc_html__( 'zoomInRight', 'cleeny' ),
'zoomInUp' => esc_html__( 'zoomInUp', 'cleeny' ),
'slideInDown' => esc_html__( 'slideInDown', 'cleeny' ),
'slideInLeft' => esc_html__( 'slideInLeft', 'cleeny' ),
'slideInRight' => esc_html__( 'slideInRight', 'cleeny' ),
'slideInUp' => esc_html__( 'slideInUp', 'cleeny' ),
),
'default' =>'bounceInUp',
) );
$slider->add_field( array(
'name' => esc_html__('Button Animate Duration','cleeny'),
'id' => $prefix . 'em_durations_btn',
'show_option_none' => false,
'type' => 'select',
'options' => array(
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'3',
) );
$slider->add_field( array(
'name' => esc_html__('Button Animate Delay','cleeny'),
'id' => $prefix . 'em_dealy_btn',
'show_option_none' => true,
'type' => 'select',
'options' => array(
'0' => esc_html__( 'point 0s', 'cleeny' ),
'0.1' => esc_html__( 'point 1s', 'cleeny' ),
'0.2' => esc_html__( 'point 2s', 'cleeny' ),
'0.3' => esc_html__( 'point 3s', 'cleeny' ),
'0.4' => esc_html__( 'point 4s', 'cleeny' ),
'0.5' => esc_html__( 'point 5s', 'cleeny' ),
'0.6' => esc_html__( 'point 6s', 'cleeny' ),
'0.7' => esc_html__( 'point 7s', 'cleeny' ),
'0.8' => esc_html__( 'point 8s', 'cleeny' ),
'0.9' => esc_html__( 'point 9s', 'cleeny' ),
'1.2' => esc_html__( '1 point 2s', 'cleeny' ),
'1.3' => esc_html__( '1 point 3s', 'cleeny' ),
'1.4' => esc_html__( '1 point 4s', 'cleeny' ),
'1.5' => esc_html__( '1 point 5s', 'cleeny' ),
'1.8' => esc_html__( '1 point 8s', 'cleeny' ),
'2' => esc_html__( '2s', 'cleeny' ),
'2.2' => esc_html__( '2 point 2s', 'cleeny' ),
'2.3' => esc_html__( '2 point 5s', 'cleeny' ),
'3' => esc_html__( '3s', 'cleeny' ),
),
'default' =>'1',
) );
$slider->add_field( array(
'name' => esc_html__('Text Alignment Style','cleeny'),
'id' => $prefix . 'em_slider_posi',
'show_option_none' => true,
'type' => 'select',
'options' => array(
'' => esc_html__( 'Select alignment', 'cleeny' ),
'text-left' => esc_html__( 'Left Alignment', 'cleeny' ),
'text-center' => esc_html__( 'Center Alignment', 'cleeny' ),
'text-right' => esc_html__( 'Right Alignment', 'cleeny' ),
),
'default' =>'text-center',
) );
$slider->add_field( array(
'name' => esc_html__( 'More Sliders Option, Please see slider widget area', 'cleeny' ),
'id' => $prefix . 'title_heading_line',
'type' => 'title',
) );
}
}