File: /datos/www/expodubai/wp-content/themes/osapa_/inc/vc_extension/vc_map.php
<?php
add_action( 'vc_before_init', 'ftc_integrate_with_vc' );
function ftc_integrate_with_vc() {
if( !function_exists('vc_map') ){
return;
}
/********************** Content Shortcodes ***************************/
/*** FTC Our Team ***/
$team_options = array();
if( class_exists('FTC_Team_Members') || post_type_exists('ftc_team') ){
$args = array(
'post_type' => 'ftc_team'
,'post_status' => 'publish'
,'ignore_sticky_posts' => true
,'posts_per_page' => -1
);
$teams = new WP_Query($args);
if( $teams->have_posts() ){
global $post;
while( $teams->have_posts() ){
$teams->the_post();
$team_options[$post->post_title] = $post->ID;
}
}
wp_reset_postdata();
}
vc_map( array(
'name' => esc_html__( 'FTC Our Team', 'osapa' ),
'base' => 'ftc_team_member',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Member name', 'osapa' )
,'param_name' => 'id'
,'admin_label' => true
,'value' => $team_options
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Number of words in excerpt', 'osapa' )
,'param_name' => 'excerpt_words'
,'admin_label' => true
,'value' => '30'
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Target', 'osapa' )
,'param_name' => 'target'
,'admin_label' => false
,'value' => array(
esc_html__('New Window Tab', 'osapa') => '_blank'
,esc_html__('Self', 'osapa') => '_self'
)
,'description' => ''
)
)
) );
/*FTC Gallery Instagram*/
vc_map( array(
'name' => esc_html__( 'FTC Gallery Image Instagram', 'osapa' ),
'base' => 'ftc_insta_image',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'attach_images'
,'heading' => esc_html__( 'Image', 'osapa' )
,'param_name' => 'img_id'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Image Size', 'osapa' )
,'param_name' => 'img_size'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__( 'Ex: thumbnail, medium, large or full', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( '@: Tagname Instagram', 'osapa' )
,'param_name' => 'tag_name'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('Input tagname Instagram', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
)
) );
/*** FTC Instagram ***/
vc_map( array(
'name' => esc_html__( 'FTC Instagram Feed', 'osapa' ),
'base' => 'ftc_instagram',
'class' => '',
'category' => 'ThemeFTC',
'icon' => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => 'Instagram'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Username', 'osapa' )
,'param_name' => 'username_hashtag'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Number of photos', 'osapa' )
,'param_name' => 'photos_number'
,'admin_label' => true
,'value' => '9'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Number of Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => '3'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Space items', 'osapa' )
,'param_name' => 'photo_space'
,'value' => '10'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Container size', 'osapa' )
,'param_name' => 'container_size'
,'value' => '1920'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Label button follow', 'osapa' )
,'param_name' => 'link_text'
,'admin_label' => true
,'value' => 'Follow us on Instagram'
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Hover animation', 'osapa' )
,'param_name' => 'hover_animation'
,'admin_label' => true
,'value' => array(
esc_html__('Push', 'osapa') => 'push'
,esc_html__('Shink', 'osapa') => 'shink'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Display in slider', 'osapa' )
,'param_name' => 'is_slider'
,'admin_label' => true
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
)
) );
/*** FTC Features ***/
vc_map( array(
'name' => esc_html__( 'FTC Feature', 'osapa' ),
'base' => 'ftc_feature',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style', 'osapa' )
,'param_name' => 'style'
,'admin_label' => true
,'value' => array(
esc_html__('Horizontal', 'osapa') => 'feature-horizontal'
,esc_html__('Vertical', 'osapa') => 'image-feature'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Icon class', 'osapa' )
,'param_name' => 'class_icon'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('Use FontAwesome. Ex: fa-home', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style icon', 'osapa' )
,'param_name' => 'style_icon'
,'admin_label' => true
,'value' => array(
esc_html__('Default', 'osapa') => 'icon-default'
,esc_html__('Small', 'osapa') => 'icon-small'
)
,'description' => ''
)
,array(
'type' => 'attach_image'
,'heading' => esc_html__( 'Image Thumbnail', 'osapa' )
,'param_name' => 'img_id'
,'admin_label' => true
,'value' => ''
,'description' => ''
,'dependency' => array('element' => 'style', 'value' => array('image-feature'))
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Image Thumbnail URL', 'osapa' )
,'param_name' => 'img_url'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('Input external URL instead of image from library', 'osapa')
,'dependency' => array('element' => 'style', 'value' => array('image-feature'))
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Feature title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textarea'
,'heading' => esc_html__( 'Short description', 'osapa' )
,'param_name' => 'excerpt'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link', 'osapa' )
,'param_name' => 'link'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Target', 'osapa' )
,'param_name' => 'target'
,'admin_label' => true
,'value' => array(
esc_html__('New Window Tab', 'osapa') => '_blank'
,esc_html__('Self', 'osapa') => '_self'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Extra class', 'osapa' )
,'param_name' => 'extra_class'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('Ex: feature-icon-blue, feature-icon-orange, feature-icon-green', 'osapa')
)
)
) );
/*** FTC Blogs ***/
vc_map( array(
'name' => esc_html__( 'FTC Blogs', 'osapa' ),
'base' => 'ftc_blogs',
'base' => 'ftc_blogs',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'blog_title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style of blogs', 'osapa' )
,'param_name' => 'style'
,'admin_label' => true
,'value' => array(
esc_html__('default', 'osapa') => ''
,esc_html__('Style blog 2 columns', 'osapa') => 'blog-os-page'
)
,'description' => esc_html__( 'Select Style of product', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Layout', 'osapa' )
,'param_name' => 'layout'
,'admin_label' => true
,'value' => array(
esc_html__('Grid', 'osapa') => 'grid'
,esc_html__('Slider', 'osapa') => 'slider'
,esc_html__('Masonry', 'osapa') => 'masonry'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => array(
'1' => '1'
,'2' => '2'
,'3' => '3'
,'4' => '4'
)
,'description' => esc_html__( 'Number of Columns', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'limit'
,'admin_label' => true
,'value' => 5
,'description' => esc_html__( 'Number of Posts', 'osapa' )
)
,array(
'type' => 'ftc_category'
,'heading' => esc_html__( 'Categories', 'osapa' )
,'param_name' => 'categories'
,'admin_label' => true
,'value' => ''
,'description' => ''
,'class' => 'post_cat'
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order by', 'osapa' )
,'param_name' => 'orderby'
,'admin_label' => false
,'value' => array(
esc_html__('None', 'osapa') => 'none'
,esc_html__('ID', 'osapa') => 'ID'
,esc_html__('Date', 'osapa') => 'date'
,esc_html__('Name', 'osapa') => 'name'
,esc_html__('Title', 'osapa') => 'title'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order', 'osapa' )
,'param_name' => 'order'
,'admin_label' => false
,'value' => array(
esc_html__('Descending', 'osapa') => 'DESC'
,esc_html__('Ascending', 'osapa') => 'ASC'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show post title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show thumbnail', 'osapa' )
,'param_name' => 'thumbnail'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show author', 'osapa' )
,'param_name' => 'author'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show comment', 'osapa' )
,'param_name' => 'comment'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show date', 'osapa' )
,'param_name' => 'date'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show post excerpt', 'osapa' )
,'param_name' => 'excerpt'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show count view', 'osapa' )
,'param_name' => 'view'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show read more button', 'osapa' )
,'param_name' => 'readmore'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Number of words in excerpt', 'osapa' )
,'param_name' => 'excerpt_words'
,'admin_label' => false
,'value' => '16'
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show load more button', 'osapa' )
,'param_name' => 'load_more'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Load more button text', 'osapa' )
,'param_name' => 'load_more_text'
,'admin_label' => false
,'value' => 'Show more'
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show dots button', 'osapa' )
,'param_name' => 'dots'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Margin', 'osapa' )
,'param_name' => 'margin'
,'admin_label' => false
,'value' => '30'
,'description' => esc_html__('Set margin between items', 'osapa')
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Desktop small items', 'osapa' )
,'param_name' => 'desksmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 991px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet items', 'osapa' )
,'param_name' => 'tablet_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 768px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet mini items', 'osapa' )
,'param_name' => 'tabletmini_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 640px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile items', 'osapa' )
,'param_name' => 'mobile_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 480px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile small items', 'osapa' )
,'param_name' => 'mobilesmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 0px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
)
) );
/*** FTC Button ***/
vc_map( array(
'name' => esc_html__( 'FTC Button', 'osapa' ),
'base' => 'ftc_button',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Text', 'osapa' )
,'param_name' => 'content'
,'admin_label' => true
,'value' => 'Button text'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link', 'osapa' )
,'param_name' => 'link'
,'admin_label' => true
,'value' => '#'
,'description' => ''
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Text color', 'osapa' )
,'param_name' => 'text_color'
,'admin_label' => false
,'value' => '#ffffff'
,'description' => ''
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Text color hover', 'osapa' )
,'param_name' => 'text_color_hover'
,'admin_label' => false
,'value' => '#ffffff'
,'description' => ''
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Background color', 'osapa' )
,'param_name' => 'bg_color'
,'admin_label' => false
,'value' => '#40bea7'
,'description' => ''
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Background color hover', 'osapa' )
,'param_name' => 'bg_color_hover'
,'admin_label' => false
,'value' => '#3f3f3f'
,'description' => ''
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Border color', 'osapa' )
,'param_name' => 'border_color'
,'admin_label' => false
,'value' => '#e8e8e8'
,'description' => ''
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Border color hover', 'osapa' )
,'param_name' => 'border_color_hover'
,'admin_label' => false
,'value' => '#40bea7'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Border width', 'osapa' )
,'param_name' => 'border_width'
,'admin_label' => false
,'value' => '0'
,'description' => esc_html__('In pixels. Ex: 1', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Target', 'osapa' )
,'param_name' => 'target'
,'admin_label' => false
,'value' => array(
esc_html__('Self', 'osapa') => '_self'
,esc_html__('New Window Tab', 'osapa') => '_blank'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Size', 'osapa' )
,'param_name' => 'size'
,'admin_label' => true
,'value' => array(
esc_html__('Small', 'osapa') => 'small'
,esc_html__('Medium', 'osapa') => 'medium'
,esc_html__('Large', 'osapa') => 'large'
,esc_html__('X-Large', 'osapa') => 'x-large'
)
,'description' => ''
)
,array(
'type' => 'iconpicker'
,'heading' => esc_html__( 'Font icon', 'osapa' )
,'param_name' => 'font_icon'
,'admin_label' => false
,'value' => ''
,'settings' => array(
'emptyIcon' => true /* default true, display an "EMPTY" icon? */
,'iconsPerPage' => 4000 /* default 100, how many icons per/page to display */
)
,'description' => esc_html__('Add an icon before the text. Ex: fa-lock', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show popup', 'osapa' )
,'param_name' => 'popup'
,'admin_label' => true
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
,'group' => esc_html__('Popup Options', 'osapa')
)
,array(
'type' => 'textarea_raw_html'
,'heading' => esc_html__( 'Popup content', 'osapa' )
,'param_name' => 'popup_content'
,'admin_label' => false
,'value' => ''
,'description' => ''
,'group' => esc_html__('Popup Options', 'osapa')
)
)
) );
/*** FTC Image Slider ***/
vc_map( array(
'name' => esc_html__( 'FTC Image Slider', 'osapa' ),
'base' => 'ftc_image_slider',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'attach_image'
,'heading' => esc_html__( 'Image Slider 1', 'osapa' )
,'param_name' => 'img_1'
,'admin_label' => true
,'value' => ''
,'description' => 'Set image slider 1'
)
,array(
'type' => 'attach_image'
,'heading' => esc_html__( 'Image Slider 2', 'osapa' )
,'param_name' => 'img_2'
,'admin_label' => true
,'value' => ''
,'description' => 'Set image slider 2'
)
,array(
'type' => 'attach_image'
,'heading' => esc_html__( 'Image Slider 3', 'osapa' )
,'param_name' => 'img_3'
,'admin_label' => true
,'value' => ''
,'description' => 'Set image slider 3'
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link Image 1', 'osapa' )
,'param_name' => 'link_1'
,'admin_label' => true
,'value' => '#'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link Title Image 1', 'osapa' )
,'param_name' => 'link_title_1'
,'admin_label' => false
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link_image_2', 'osapa' )
,'param_name' => 'link_2'
,'admin_label' => true
,'value' => '#'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link Title Image 2', 'osapa' )
,'param_name' => 'link_title_2'
,'admin_label' => false
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link_image_3', 'osapa' )
,'param_name' => 'link_3'
,'admin_label' => true
,'value' => '#'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link Title Image 3', 'osapa' )
,'param_name' => 'link_title_3'
,'admin_label' => false
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Target', 'osapa' )
,'param_name' => 'target'
,'admin_label' => false
,'value' => array(
esc_html__('New Window Tab', 'osapa') => '_blank'
,esc_html__('Self', 'osapa') => '_self'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Image Size', 'osapa' )
,'param_name' => 'img_size'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__( 'Ex: thumbnail, medium, large or full', 'osapa' )
)
)
) );
/*** FTC Single Image ***/
vc_map( array(
'name' => esc_html__( 'FTC Single Image', 'osapa' ),
'base' => 'ftc_single_image',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'attach_image'
,'heading' => esc_html__( 'Image', 'osapa' )
,'param_name' => 'img_id'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Image Size', 'osapa' )
,'param_name' => 'img_size'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__( 'Ex: thumbnail, medium, large or full', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Image URL', 'osapa' )
,'param_name' => 'img_url'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('Input external URL instead of image from library', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link', 'osapa' )
,'param_name' => 'link'
,'admin_label' => true
,'value' => '#'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link Title', 'osapa' )
,'param_name' => 'link_title'
,'admin_label' => false
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Hover Effect', 'osapa' )
,'param_name' => 'style_smooth'
,'admin_label' => false
,'value' => array(
esc_html__('Effect-Image Left Right', 'osapa') => 'smooth-image'
,esc_html__('Effect Border Image', 'osapa') => 'smooth-border-image'
,esc_html__('Effect Background Image', 'osapa') => 'smooth-background-image'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Target', 'osapa' )
,'param_name' => 'target'
,'admin_label' => false
,'value' => array(
esc_html__('New Window Tab', 'osapa') => '_blank'
,esc_html__('Self', 'osapa') => '_self'
)
,'description' => ''
)
)
) );
/*** FTC Heading ***/
vc_map( array(
'name' => esc_html__( 'FTC Heading', 'osapa' ),
'base' => 'ftc_heading',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Heading style', 'osapa' )
,'param_name' => 'style'
,'admin_label' => true
,'value' => array(
esc_html__('Style 1', 'osapa') => 'style-1'
,esc_html__('Style 2', 'osapa') => 'style-2'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Heading Size', 'osapa' )
,'param_name' => 'size'
,'admin_label' => true
,'value' => array(
'1' => '1'
,'2' => '2'
,'3' => '3'
,'4' => '4'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Text', 'osapa' )
,'param_name' => 'text'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
)
) );
/*** FTC Banner ***/
vc_map( array(
'name' => esc_html__( 'FTC Banner', 'osapa' ),
'base' => 'ftc_banner',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'attach_image'
,'heading' => esc_html__( 'Background Image', 'osapa' )
,'param_name' => 'bg_id'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Background Url', 'osapa' )
,'param_name' => 'bg_url'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('Input external URL instead of image from library', 'osapa')
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Background Color', 'osapa' )
,'param_name' => 'bg_color'
,'admin_label' => false
,'value' => '#ffffff'
,'description' => ''
)
,array(
'type' => 'textarea_html'
,'heading' => esc_html__( 'Banner content', 'osapa' )
,'param_name' => 'content'
,'admin_label' => false
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Position Banner Content', 'osapa' )
,'param_name' => 'position_content'
,'admin_label' => false
,'value' => array(
esc_html__('Left Top', 'osapa') => 'left-top'
,esc_html__('Left Bottom', 'osapa') => 'left-bottom'
,esc_html__('Left Center', 'osapa') => 'left-center'
,esc_html__('Right Top', 'osapa') => 'right-top'
,esc_html__('Right Bottom', 'osapa') => 'right-bottom'
,esc_html__('Right Center', 'osapa') => 'right-center'
,esc_html__('Center Top', 'osapa') => 'center-top'
,esc_html__('Center Bottom', 'osapa') => 'center-bottom'
,esc_html__('Center Center', 'osapa') => 'center-center'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link', 'osapa' )
,'param_name' => 'link'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Link Title', 'osapa' )
,'param_name' => 'link_title'
,'admin_label' => false
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style Effect', 'osapa' )
,'param_name' => 'style_smooth'
,'admin_label' => false
,'value' => array(
esc_html__('Background Scale', 'osapa') => 'ftc-smooth'
,esc_html__('Background Scale Opacity', 'osapa') => 'ftc-smooth-opacity'
,esc_html__('Background Scale Dark', 'osapa') => 'ftc-smooth-dark'
,esc_html__('Background Scale and Line', 'osapa') => 'ftc-smooth-and-line'
,esc_html__('Background Scale Opacity and Line', 'osapa') => 'ftc-smooth-opacity-line'
,esc_html__('Background Scale Dark and Line', 'osapa') => 'ftc-smooth-dark-line'
,esc_html__('Background Opacity and Line', 'osapa') => 'background-opacity-and-line'
,esc_html__('Background Dark and Line', 'osapa') => 'background-dark-and-line'
,esc_html__('Background Opacity', 'osapa') => 'background-opacity'
,esc_html__('Background Dark', 'osapa') => 'background-dark'
,esc_html__('Line', 'osapa') => 'eff-line'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Background Opacity On Device', 'osapa' )
,'param_name' => 'opacity_bg_device'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => esc_html__('Background image will be blurred on device. Note: should set background color ', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Responsive size', 'osapa' )
,'param_name' => 'responsive_size'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Target', 'osapa' )
,'param_name' => 'target'
,'admin_label' => false
,'value' => array(
esc_html__('New Window Tab', 'osapa') => '_blank'
,esc_html__('Self', 'osapa') => '_self'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Extra Class', 'osapa' )
,'param_name' => 'extra_class'
,'admin_label' => false
,'value' => ''
,'description' => esc_html__('Ex: rp-rectangle-full, rp-rectangle', 'osapa')
)
)
) );
/* FTC Testimonial */
vc_map( array(
'name' => esc_html__( 'FTC Testimonial', 'osapa' ),
'base' => 'ftc_testimonial',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'ftc_category'
,'heading' => esc_html__( 'Categories', 'osapa' )
,'param_name' => 'categories'
,'admin_label' => true
,'value' => ''
,'description' => ''
,'class' => 'ftc_testimonial'
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style of testimonial', 'osapa' )
,'param_name' => 'style'
,'admin_label' => true
,'value' => array(
esc_html__('default', 'osapa') => ''
,esc_html__('style2', 'osapa') => 'about-us-2'
,esc_html__('style home21', 'osapa') => 'testi-h21'
)
,'description' => esc_html__( 'Select Style of testimonial', 'osapa' )
)
,array(
'type' => 'textarea'
,'heading' => esc_html__( 'Testimonial IDs', 'osapa' )
,'param_name' => 'ids'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('A comma separated list of testimonial ids', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show Avatar', 'osapa' )
,'param_name' => 'show_avatar'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => '4'
,'description' => esc_html__('Number of Posts', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Number of words in excerpt', 'osapa' )
,'param_name' => 'excerpt_words'
,'admin_label' => true
,'value' => '50'
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Text Color Style', 'osapa' )
,'param_name' => 'text_color_style'
,'admin_label' => false
,'value' => array(
esc_html__('Default', 'osapa') => 'text-default'
,esc_html__('Light', 'osapa') => 'text-light'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show in a carousel slider', 'osapa' )
,'param_name' => 'is_slider'
,'admin_label' => true
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => '1'
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Margin', 'osapa' )
,'param_name' => 'margin'
,'admin_label' => true
,'value' => '30'
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show pagination dots', 'osapa' )
,'param_name' => 'show_dots'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => esc_html__('If it is set, the navigation buttons will be removed', 'osapa')
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
)
) );
/*** FTC Brands Slider ***/
vc_map( array(
'name' => esc_html__( 'FTC Brands Slider', 'osapa' ),
'base' => 'ftc_brands_slider',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style Brand', 'osapa' )
,'param_name' => 'style_brand'
,'admin_label' => true
,'value' => array(
esc_html__('Default', 'osapa') => 'style-default'
,esc_html__('Light', 'osapa') => 'style-light'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => '7'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Rows', 'osapa' )
,'param_name' => 'rows'
,'admin_label' => true
,'value' => 1
,'description' => esc_html__( 'Number of Rows', 'osapa' )
)
,array(
'type' => 'ftc_category'
,'heading' => esc_html__( 'Categories', 'osapa' )
,'param_name' => 'categories'
,'admin_label' => true
,'value' => ''
,'description' => ''
,'class' => 'ftc_brand'
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Margin', 'osapa' )
,'param_name' => 'margin_image'
,'admin_label' => false
,'value' => '32'
,'description' => esc_html__('Set margin between items', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Activate link', 'osapa' )
,'param_name' => 'active_link'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Desktop small items', 'osapa' )
,'param_name' => 'desksmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
,esc_html__('5', 'osapa') => 5
,esc_html__('6', 'osapa') => 6
)
,'description' => esc_html__('Set items on 991px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet items', 'osapa' )
,'param_name' => 'tablet_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 768px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet mini items', 'osapa' )
,'param_name' => 'tabletmini_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 640px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile items', 'osapa' )
,'param_name' => 'mobile_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 480px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile small items', 'osapa' )
,'param_name' => 'mobilesmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 0px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
)
) );
/*** FTC Google Map ***/
vc_map( array(
'name' => esc_html__( 'FTC Google Map', 'osapa' ),
'base' => 'ftc_google_map',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Address', 'osapa' )
,'param_name' => 'address'
,'admin_label' => true
,'value' => ''
,'description' => esc_html__('You have to input your API Key in Appearance > Theme Options > General tab', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Height', 'osapa' )
,'param_name' => 'height'
,'admin_label' => true
,'value' => 360
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Zoom', 'osapa' )
,'param_name' => 'zoom'
,'admin_label' => true
,'value' => 12
,'description' => esc_html__('Input a number between 0 and 22', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Map Type', 'osapa' )
,'param_name' => 'map_type'
,'admin_label' => true
,'value' => array(
esc_html__('ROADMAP', 'osapa') => 'ROADMAP'
,esc_html__('SATELLITE', 'osapa') => 'SATELLITE'
,esc_html__('HYBRID', 'osapa') => 'HYBRID'
,esc_html__('TERRAIN', 'osapa') => 'TERRAIN'
)
,'description' => ''
)
)
) );
/*** FTC Countdown ***/
vc_map( array(
'name' => esc_html__( 'FTC Countdown', 'osapa' ),
'base' => 'ftc_countdown',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Day', 'osapa' )
,'param_name' => 'day'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Month', 'osapa' )
,'param_name' => 'month'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Year', 'osapa' )
,'param_name' => 'year'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Text Color Style', 'osapa' )
,'param_name' => 'text_color_style'
,'admin_label' => false
,'value' => array(
esc_html__('Default', 'osapa') => 'text-default'
,esc_html__('Light', 'osapa') => 'text-light'
)
,'description' => ''
)
)
) );
/*** FTC Feedburner Subscription ***/
vc_map( array(
'name' => esc_html__( 'FTC Feedburner Subscription', 'osapa' ),
'base' => 'ftc_feedburner_subscription',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Feedburner ID', 'osapa' )
,'param_name' => 'feedburner_id'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => 'Newsletter'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Intro Text Line 1', 'osapa' )
,'param_name' => 'intro_text'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Button Text', 'osapa' )
,'param_name' => 'button_text'
,'admin_label' => true
,'value' => 'Subscribe'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Placeholder Text', 'osapa' )
,'param_name' => 'placeholder_text'
,'admin_label' => true
,'value' => 'Enter your email address'
,'description' => ''
)
)
) );
/********************** FTC Product Shortcodes ************************/
/*** FTC Products ***/
vc_map( array(
'name' => esc_html__( 'FTC Products', 'osapa' ),
'base' => 'ftc_products',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Product type', 'osapa' )
,'param_name' => 'product_type'
,'admin_label' => true
,'value' => array(
esc_html__('Recent', 'osapa') => 'recent'
,esc_html__('Sale', 'osapa') => 'sale'
,esc_html__('Featured', 'osapa') => 'featured'
,esc_html__('Best Selling', 'osapa') => 'best_selling'
,esc_html__('Top Rated', 'osapa') => 'top_rated'
,esc_html__('Mixed Order', 'osapa') => 'mixed_order'
)
,'description' => esc_html__( 'Select type of product', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Custom order', 'osapa' )
,'param_name' => 'custom_order'
,'admin_label' => true
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => esc_html__( 'If you enable this option, the Product type option wont be available', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order by', 'osapa' )
,'param_name' => 'orderby'
,'admin_label' => false
,'value' => array(
esc_html__('None', 'osapa') => 'none'
,esc_html__('ID', 'osapa') => 'ID'
,esc_html__('Date', 'osapa') => 'date'
,esc_html__('Name', 'osapa') => 'name'
,esc_html__('Title', 'osapa') => 'title'
,esc_html__('Comment count', 'osapa') => 'comment_count'
,esc_html__('Random', 'osapa') => 'rand'
)
,'dependency' => array('element' => 'custom_order', 'value' => array('1'))
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order', 'osapa' )
,'param_name' => 'order'
,'admin_label' => false
,'value' => array(
esc_html__('Descending', 'osapa') => 'DESC'
,esc_html__('Ascending', 'osapa') => 'ASC'
)
,'dependency' => array('element' => 'custom_order', 'value' => array('1'))
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => 5
,'description' => esc_html__( 'Number of Columns', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => 5
,'description' => esc_html__( 'Number of Products', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Product Categories', 'osapa' )
,'param_name' => 'product_cats'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => true
,'sortable' => true
,'unique_values' => true
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Meta position', 'osapa' )
,'param_name' => 'meta_position'
,'admin_label' => false
,'value' => array(
esc_html__('Bottom', 'osapa') => 'bottom'
,esc_html__('On Thumbnail', 'osapa') => 'on-thumbnail'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product image', 'osapa' )
,'param_name' => 'show_image'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product name', 'osapa' )
,'param_name' => 'show_title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product SKU', 'osapa' )
,'param_name' => 'show_sku'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product price', 'osapa' )
,'param_name' => 'show_price'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product short description', 'osapa' )
,'param_name' => 'show_short_desc'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product rating', 'osapa' )
,'param_name' => 'show_rating'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product label', 'osapa' )
,'param_name' => 'show_label'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product categories', 'osapa' )
,'param_name' => 'show_categories'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show add to cart button', 'osapa' )
,'param_name' => 'show_add_to_cart'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show load more button', 'osapa' )
,'param_name' => 'show_load_more'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Load more text', 'osapa' )
,'param_name' => 'load_more_text'
,'admin_label' => true
,'value' => 'Show more'
,'description' => ''
)
)
) );
/*** FTC Products Slider ***/
vc_map( array(
'name' => esc_html__( 'FTC Products Slider', 'osapa' ),
'base' => 'ftc_products_slider',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style of products', 'osapa' )
,'param_name' => 'style'
,'admin_label' => true
,'value' => array(
esc_html__('default', 'osapa') => ''
,esc_html__('widget-h4 (width: 138px)', 'osapa') => 'widget-h4'
,esc_html__('widget-h17 (width: 120px)', 'osapa') => 'widget-h17'
)
,'description' => esc_html__( 'Select Style of product', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Product type', 'osapa' )
,'param_name' => 'product_type'
,'admin_label' => true
,'value' => array(
esc_html__('Recent', 'osapa') => 'recent'
,esc_html__('Sale', 'osapa') => 'sale'
,esc_html__('Featured', 'osapa') => 'featured'
,esc_html__('Best Selling', 'osapa') => 'best_selling'
,esc_html__('Top Rated', 'osapa') => 'top_rated'
,esc_html__('Mixed Order', 'osapa') => 'mixed_order'
)
,'description' => esc_html__( 'Select type of product', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Custom order', 'osapa' )
,'param_name' => 'custom_order'
,'admin_label' => true
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => esc_html__( 'If you enable this option, the Product type option wont be available', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order by', 'osapa' )
,'param_name' => 'orderby'
,'admin_label' => false
,'value' => array(
esc_html__('None', 'osapa') => 'none'
,esc_html__('ID', 'osapa') => 'ID'
,esc_html__('Date', 'osapa') => 'date'
,esc_html__('Name', 'osapa') => 'name'
,esc_html__('Title', 'osapa') => 'title'
,esc_html__('Comment count', 'osapa') => 'comment_count'
,esc_html__('Random', 'osapa') => 'rand'
)
,'dependency' => array('element' => 'custom_order', 'value' => array('1'))
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order', 'osapa' )
,'param_name' => 'order'
,'admin_label' => false
,'value' => array(
esc_html__('Descending', 'osapa') => 'DESC'
,esc_html__('Ascending', 'osapa') => 'ASC'
)
,'dependency' => array('element' => 'custom_order', 'value' => array('1'))
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => 5
,'description' => esc_html__( 'Number of Columns', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Rows', 'osapa' )
,'param_name' => 'rows'
,'admin_label' => true
,'value' => 1
,'description' => esc_html__( 'Number of Rows', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => 6
,'description' => esc_html__( 'Number of Products', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Product Categories', 'osapa' )
,'param_name' => 'product_cats'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => true
,'sortable' => true
,'unique_values' => true
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Meta position', 'osapa' )
,'param_name' => 'meta_position'
,'admin_label' => false
,'value' => array(
esc_html__('Bottom', 'osapa') => 'bottom'
,esc_html__('On Thumbnail', 'osapa') => 'on-thumbnail'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product image', 'osapa' )
,'param_name' => 'show_image'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product name', 'osapa' )
,'param_name' => 'show_title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product SKU', 'osapa' )
,'param_name' => 'show_sku'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product price', 'osapa' )
,'param_name' => 'show_price'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product short description', 'osapa' )
,'param_name' => 'show_short_desc'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product rating', 'osapa' )
,'param_name' => 'show_rating'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product label', 'osapa' )
,'param_name' => 'show_label'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product categories', 'osapa' )
,'param_name' => 'show_categories'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show add to cart button', 'osapa' )
,'param_name' => 'show_add_to_cart'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show dots button', 'osapa' )
,'param_name' => 'dots'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Position navigation button', 'osapa' )
,'param_name' => 'position_nav'
,'admin_label' => true
,'value' => array(
esc_html__('Top', 'osapa') => 'nav-top'
,esc_html__('Bottom', 'osapa') => 'nav-bottom'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Margin', 'osapa' )
,'param_name' => 'margin'
,'admin_label' => false
,'value' => '20'
,'description' => esc_html__('Set margin between items', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Desktop small items', 'osapa' )
,'param_name' => 'desksmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 991px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet items', 'osapa' )
,'param_name' => 'tablet_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 768px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet mini items', 'osapa' )
,'param_name' => 'tabletmini_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 640px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile items', 'osapa' )
,'param_name' => 'mobile_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 480px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile small items', 'osapa' )
,'param_name' => 'mobilesmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 0px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Image Width Size', 'osapa' )
,'param_name' => 'custom_width'
,'admin_label' => true
,'description' => esc_html__( 'Width', 'osapa' )
),array(
'type' => 'textfield'
,'heading' => esc_html__( 'Image Height Size', 'osapa' )
,'param_name' => 'custom_height'
,'admin_label' => true
,'description' => esc_html__( 'Height', 'osapa' )
)
)
) );
/*** FTC Products Widget ***/
vc_map( array(
'name' => esc_html__( 'FTC Products Widget', 'osapa' ),
'base' => 'ftc_products_widget',
'class' => '',
'description' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Product type', 'osapa' )
,'param_name' => 'product_type'
,'admin_label' => true
,'value' => array(
esc_html__('Recent', 'osapa') => 'recent'
,esc_html__('Sale', 'osapa') => 'sale'
,esc_html__('Featured', 'osapa') => 'featured'
,esc_html__('Best Selling', 'osapa') => 'best_selling'
,esc_html__('Top Rated', 'osapa') => 'top_rated'
,esc_html__('Mixed Order', 'osapa') => 'mixed_order'
)
,'description' => esc_html__( 'Select type of product', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => 6
,'description' => esc_html__( 'Number of Products', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Product Categories', 'osapa' )
,'param_name' => 'product_cats'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => true
,'sortable' => true
,'unique_values' => true
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product image', 'osapa' )
,'param_name' => 'show_image'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Thumbnail size', 'osapa' )
,'param_name' => 'thumbnail_size'
,'admin_label' => true
,'value' => array(
esc_html__('shop_thumbnail', 'osapa') => 'Product Thumbnails'
,esc_html__('shop_catalog', 'osapa') => 'Catalog Images'
,esc_html__('shop_single', 'osapa') => 'Single Product Image'
)
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product name', 'osapa' )
,'param_name' => 'show_title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product price', 'osapa' )
,'param_name' => 'show_price'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product rating', 'osapa' )
,'param_name' => 'show_rating'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product categories', 'osapa' )
,'param_name' => 'show_categories'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show in a carousel slider', 'osapa' )
,'param_name' => 'is_slider'
,'admin_label' => true
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Row', 'osapa' )
,'param_name' => 'rows'
,'admin_label' => false
,'value' => 3
,'description' => esc_html__( 'Number of Rows for slider', 'osapa' )
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
,'group' => esc_html__('Slider Options', 'osapa')
)
)
) );
/*** FTC Product Deals Slider ***/
vc_map( array(
'name' => esc_html__( 'FTC Product Deals Slider', 'osapa' ),
'base' => 'ftc_product_deals_slider',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Product type', 'osapa' )
,'param_name' => 'product_type'
,'admin_label' => true
,'value' => array(
esc_html__('Recent', 'osapa') => 'recent'
,esc_html__('Featured', 'osapa') => 'featured'
,esc_html__('Best Selling', 'osapa') => 'best_selling'
,esc_html__('Top Rated', 'osapa') => 'top_rated'
,esc_html__('Mixed Order', 'osapa') => 'mixed_order'
)
,'description' => esc_html__( 'Select type of product', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Item Layout', 'osapa' )
,'param_name' => 'layout'
,'admin_label' => true
,'value' => array(
esc_html__('Grid', 'osapa') => 'grid'
,esc_html__('List', 'osapa') => 'list'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => false
,'value' => 4
,'description' => esc_html__( 'Number of Columns', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => 5
,'description' => esc_html__( 'Number of Products', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Product Categories', 'osapa' )
,'param_name' => 'product_cats'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => true
,'sortable' => true
,'unique_values' => true
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show counter', 'osapa' )
,'param_name' => 'show_counter'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Counter position', 'osapa' )
,'param_name' => 'counter_position'
,'admin_label' => false
,'value' => array(
esc_html__('Bottom', 'osapa') => 'bottom'
,esc_html__('On thumbnail', 'osapa') => 'on-thumbnail'
)
,'description' => ''
,'dependency' => array('element' => 'show_counter', 'value' => array('1'))
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product image', 'osapa' )
,'param_name' => 'show_image'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show gallery list', 'osapa' )
,'param_name' => 'show_gallery'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Gallery position', 'osapa' )
,'param_name' => 'gallery_position'
,'admin_label' => false
,'value' => array(
esc_html__('Bottom out line', 'osapa') => 'bottom-out'
,esc_html__('Bottom in line', 'osapa') => 'bottom-in'
)
,'description' => ''
,'dependency' => array('element' => 'show_counter', 'value' => array('1'))
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product name', 'osapa' )
,'param_name' => 'show_title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product SKU', 'osapa' )
,'param_name' => 'show_sku'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product price', 'osapa' )
,'param_name' => 'show_price'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product short description', 'osapa' )
,'param_name' => 'show_short_desc'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product rating', 'osapa' )
,'param_name' => 'show_rating'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product label', 'osapa' )
,'param_name' => 'show_label'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product categories', 'osapa' )
,'param_name' => 'show_categories'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show add to cart button', 'osapa' )
,'param_name' => 'show_add_to_cart'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show dots button', 'osapa' )
,'param_name' => 'dots'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Margin', 'osapa' )
,'param_name' => 'margin'
,'admin_label' => false
,'value' => '20'
,'description' => esc_html__('Set margin between items', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Desktop small items', 'osapa' )
,'param_name' => 'desksmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 991px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet items', 'osapa' )
,'param_name' => 'tablet_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 768px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet mini items', 'osapa' )
,'param_name' => 'tabletmini_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 640px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile items', 'osapa' )
,'param_name' => 'mobile_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 480px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile small items', 'osapa' )
,'param_name' => 'mobilesmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 0px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
)
) );
/*** FTC Product Categories Slider ***/
vc_map( array(
'name' => esc_html__( 'FTC Product Categories Slider', 'osapa' ),
'base' => 'ftc_product_categories_slider',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => 4
,'description' => esc_html__( 'Number of Columns', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Rows', 'osapa' )
,'param_name' => 'rows'
,'admin_label' => true
,'value' => 1
,'description' => esc_html__( 'Number of Rows', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => 5
,'description' => esc_html__( 'Number of Product Categories', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Parent', 'osapa' )
,'param_name' => 'parent'
,'admin_label' => true
,'settings' => array(
'multiple' => false
,'sortable' => true
,'unique_values' => true
)
,'value' => ''
,'description' => esc_html__( 'Select a category. Get direct children of this category', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Child Of', 'osapa' )
,'param_name' => 'child_of'
,'admin_label' => true
,'settings' => array(
'multiple' => false
,'sortable' => true
,'unique_values' => true
)
,'value' => ''
,'description' => esc_html__( 'Select a category. Get all descendents of this category', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Product Categories', 'osapa' )
,'param_name' => 'ids'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => true
,'sortable' => true
,'unique_values' => true
)
,'description' => esc_html__('Include these categories', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Hide empty product categories', 'osapa' )
,'param_name' => 'hide_empty'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product category title', 'osapa' )
,'param_name' => 'show_title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product category discription', 'osapa' )
,'param_name' => 'show_discription'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show dots button', 'osapa' )
,'param_name' => 'dots'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Margin', 'osapa' )
,'param_name' => 'margin'
,'admin_label' => false
,'value' => '0'
,'description' => esc_html__('Set margin between items', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Desktop small items', 'osapa' )
,'param_name' => 'desksmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 991px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet items', 'osapa' )
,'param_name' => 'tablet_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 768px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Tablet mini items', 'osapa' )
,'param_name' => 'tabletmini_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 640px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile items', 'osapa' )
,'param_name' => 'mobile_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 480px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Mobile small items', 'osapa' )
,'param_name' => 'mobilesmall_items'
,'admin_label' => false
,'value' => array(
esc_html__('1', 'osapa') => 1
,esc_html__('2', 'osapa') => 2
,esc_html__('3', 'osapa') => 3
,esc_html__('4', 'osapa') => 4
)
,'description' => esc_html__('Set items on 0px', 'osapa')
,'group' => esc_html__('Responsive Options', 'osapa')
)
)
) );
/*** FTC Products In Category Tabs***/
vc_map( array(
'name' => esc_html__( 'FTC Products Category Tabs', 'osapa' ),
'base' => 'ftc_products_category_tabs',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Product type', 'osapa' )
,'param_name' => 'product_type'
,'admin_label' => true
,'value' => array(
esc_html__('Recent', 'osapa') => 'recent'
,esc_html__('Sale', 'osapa') => 'sale'
,esc_html__('Featured', 'osapa') => 'featured'
,esc_html__('Best Selling', 'osapa') => 'best_selling'
,esc_html__('Top Rated', 'osapa') => 'top_rated'
,esc_html__('Mixed Order', 'osapa') => 'mixed_order'
)
,'description' => esc_html__( 'Select type of product', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Custom order', 'osapa' )
,'param_name' => 'custom_order'
,'admin_label' => true
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => esc_html__( 'If you enable this option, the Product type option wont be available', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order by', 'osapa' )
,'param_name' => 'orderby'
,'admin_label' => false
,'value' => array(
esc_html__('None', 'osapa') => 'none'
,esc_html__('ID', 'osapa') => 'ID'
,esc_html__('Date', 'osapa') => 'date'
,esc_html__('Name', 'osapa') => 'name'
,esc_html__('Title', 'osapa') => 'title'
,esc_html__('Comment count', 'osapa') => 'comment_count'
,esc_html__('Random', 'osapa') => 'rand'
)
,'dependency' => array('element' => 'custom_order', 'value' => array('1'))
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order', 'osapa' )
,'param_name' => 'order'
,'admin_label' => false
,'value' => array(
esc_html__('Descending', 'osapa') => 'DESC'
,esc_html__('Ascending', 'osapa') => 'ASC'
)
,'dependency' => array('element' => 'custom_order', 'value' => array('1'))
,'description' => ''
)
,array(
'type' => 'colorpicker'
,'heading' => esc_html__( 'Background Color', 'osapa' )
,'param_name' => 'bg_color'
,'admin_label' => false
,'value' => '#f7f6f4'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => 3
,'description' => esc_html__( 'Number of Columns', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => 6
,'description' => esc_html__( 'Number of Products', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Product Categories', 'osapa' )
,'param_name' => 'product_cats'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => true
,'sortable' => true
,'unique_values' => true
)
,'description' => esc_html__( 'You select banners, icons in the Product Category editor', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Parent Category', 'osapa' )
,'param_name' => 'parent_cat'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => false
,'sortable' => false
,'unique_values' => true
)
,'description' => esc_html__('Each tab will be a sub category of this category. This option is available when the Product Categories option is empty', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Include children', 'osapa' )
,'param_name' => 'include_children'
,'admin_label' => true
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => esc_html__( 'Load the products of sub categories in each tab', 'osapa' )
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Active tab', 'osapa' )
,'param_name' => 'active_tab'
,'admin_label' => false
,'value' => 1
,'description' => esc_html__( 'Enter active tab number', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product image', 'osapa' )
,'param_name' => 'show_image'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product name', 'osapa' )
,'param_name' => 'show_title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product SKU', 'osapa' )
,'param_name' => 'show_sku'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product price', 'osapa' )
,'param_name' => 'show_price'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product short description', 'osapa' )
,'param_name' => 'show_short_desc'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product rating', 'osapa' )
,'param_name' => 'show_rating'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product label', 'osapa' )
,'param_name' => 'show_label'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show product categories', 'osapa' )
,'param_name' => 'show_categories'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show add to cart button', 'osapa' )
,'param_name' => 'show_add_to_cart'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show counter', 'osapa' )
,'param_name' => 'show_counter'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show in a carousel slider', 'osapa' )
,'param_name' => 'is_slider'
,'admin_label' => true
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Rows', 'osapa' )
,'param_name' => 'rows'
,'admin_label' => true
,'value' => array(
'1' => '1'
,'2' => '2'
)
,'description' => esc_html__( 'Number of Rows in slider', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show navigation button', 'osapa' )
,'param_name' => 'show_nav'
,'admin_label' => false
,'value' => array(
esc_html__('No', 'osapa') => 0
,esc_html__('Yes', 'osapa') => 1
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Auto play', 'osapa' )
,'param_name' => 'auto_play'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
)
) );
/* FTC Portfolio */
vc_map( array(
'name' => esc_html__( 'FTC Portfolio', 'osapa' ),
'base' => 'ftc_portfolio',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Style of portfolios', 'osapa' )
,'param_name' => 'style'
,'admin_label' => true
,'value' => array(
esc_html__('Default', 'osapa') => ''
,esc_html__('Portfolio Padding', 'osapa') => 'portfolio-padding'
)
,'description' => esc_html__( 'Select Style of product', 'osapa' )
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Columns', 'osapa' )
,'param_name' => 'columns'
,'admin_label' => true
,'value' => array(
'2' => '2'
,'3' => '3'
,'4' => '4'
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Limit', 'osapa' )
,'param_name' => 'per_page'
,'admin_label' => true
,'value' => '8'
,'description' => esc_html__('Number of Posts', 'osapa')
)
,array(
'type' => 'ftc_category'
,'heading' => esc_html__( 'Categories', 'osapa' )
,'param_name' => 'categories'
,'admin_label' => true
,'value' => ''
,'description' => ''
,'class' => 'ftc_portfolio'
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order by', 'osapa' )
,'param_name' => 'orderby'
,'admin_label' => false
,'value' => array(
esc_html__('None', 'osapa') => 'none'
,esc_html__('ID', 'osapa') => 'ID'
,esc_html__('Date', 'osapa') => 'date'
,esc_html__('Name', 'osapa') => 'name'
,esc_html__('Title', 'osapa') => 'title'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Order', 'osapa' )
,'param_name' => 'order'
,'admin_label' => false
,'value' => array(
esc_html__('Descending', 'osapa') => 'DESC'
,esc_html__('Ascending', 'osapa') => 'ASC'
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show portfolio title', 'osapa' )
,'param_name' => 'show_title'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show portfolio date', 'osapa' )
,'param_name' => 'show_date'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show filter bar', 'osapa' )
,'param_name' => 'show_filter_bar'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Show load more button', 'osapa' )
,'param_name' => 'show_load_more'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Load more button text', 'osapa' )
,'param_name' => 'load_more_text'
,'admin_label' => false
,'value' => 'Show more'
,'description' => ''
)
)
) );
/*** FTC List Of Product Categories ***/
vc_map( array(
'name' => esc_html__( 'FTC List Of Product Categories', 'osapa' ),
'base' => 'ftc_list_of_product_categories',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Block title', 'osapa' )
,'param_name' => 'title'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'attach_image'
,'heading' => esc_html__( 'Background image', 'osapa' )
,'param_name' => 'bg_image'
,'admin_label' => false
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Hover Image Effect', 'osapa' )
,'param_name' => 'style_smooth'
,'admin_label' => false
,'value' => array(
esc_html__('No Effect', 'osapa') => 'no-smooth'
,esc_html__('Effect-Image Left Right', 'osapa') => 'smooth-image'
,esc_html__('Effect Border Image', 'osapa') => 'smooth-border-image'
,esc_html__('Effect Background Image', 'osapa') => 'smooth-background-image'
,esc_html__('Effect Background Top Image', 'osapa') => 'smooth-top-image'
)
,'description' => ''
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Product Category', 'osapa' )
,'param_name' => 'product_cat'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => false
,'sortable' => false
,'unique_values' => true
)
,'description' => esc_html__('Display sub categories of this category', 'osapa')
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Include parent category in list', 'osapa' )
,'param_name' => 'include_parent'
,'admin_label' => false
,'value' => array(
esc_html__('Yes', 'osapa') => 1
,esc_html__('No', 'osapa') => 0
)
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Number of Sub Categories', 'osapa' )
,'param_name' => 'limit_sub_cat'
,'admin_label' => true
,'value' => 6
,'description' => esc_html__( 'Leave blank to show all', 'osapa' )
)
,array(
'type' => 'autocomplete'
,'heading' => esc_html__( 'Include these categories', 'osapa' )
,'param_name' => 'include_cats'
,'admin_label' => true
,'value' => ''
,'settings' => array(
'multiple' => true
,'sortable' => true
,'unique_values' => true
)
,'description' => esc_html__('If you set the Product Category option above, this option wont be available', 'osapa')
)
)
) );
/*** FTC Milestone ***/
vc_map( array(
'name' => esc_html__( 'FTC Milestone', 'osapa' ),
'base' => 'ftc_milestone',
'class' => '',
'category' => 'ThemeFTC',
"icon" => get_template_directory_uri() . "/inc/vc_extension/ftc_icon.png",
'params' => array(
array(
'type' => 'textfield'
,'heading' => esc_html__( 'Number', 'osapa' )
,'param_name' => 'number'
,'admin_label' => true
,'value' => '0'
,'description' => ''
)
,array(
'type' => 'textfield'
,'heading' => esc_html__( 'Subject', 'osapa' )
,'param_name' => 'ftc_number_meta'
,'admin_label' => true
,'value' => ''
,'description' => ''
)
,array(
'type' => 'dropdown'
,'heading' => esc_html__( 'Text Color Style', 'osapa' )
,'param_name' => 'text_color_style'
,'admin_label' => false
,'value' => array(
esc_html__('Default', 'osapa') => 'text-default'
,esc_html__('Light', 'osapa') => 'text-light'
)
,'description' => ''
)
)
) );
}
/*** Add Shortcode Param ***/
WpbakeryShortcodeParams::addField('ftc_category', 'ftc_product_catgories_shortcode_param');
if( !function_exists('ftc_product_catgories_shortcode_param') ){
function ftc_product_catgories_shortcode_param($settings, $value){
$categories = ftc_get_list_categories_shortcode_param(0, $settings);
$arr_value = explode(',', $value);
ob_start();
?>
<input type="hidden" class="wpb_vc_param_value wpb-textinput product_cats textfield ftc-hidden-selected-categories" name="<?php echo esc_attr($settings['param_name']); ?>" value="<?php echo esc_attr($value); ?>" />
<div class="categorydiv">
<div class="tabs-panel">
<ul class="categorychecklist">
<?php foreach($categories as $cat){ ?>
<li>
<label>
<input type="checkbox" class="checkbox ftc-select-category" value="<?php echo esc_attr($cat->term_id); ?>" <?php echo (in_array($cat->term_id, $arr_value))?'checked':''; ?> />
<?php echo esc_html($cat->name); ?>
</label>
<?php ftc_get_list_sub_categories_shortcode_param($cat->term_id, $arr_value, $settings); ?>
</li>
<?php } ?>
</ul>
</div>
</div>
<script type="text/javascript">
jQuery('.ftc-select-category').on('change', function(){
"use strict";
var selected = jQuery('.ftc-select-category:checked');
jQuery('.ftc-hidden-selected-categories').val('');
var selected_id = new Array();
selected.each(function(index, ele){
selected_id.push(jQuery(ele).val());
});
selected_id = selected_id.join(',');
jQuery('.ftc-hidden-selected-categories').val(selected_id);
});
</script>
<?php
return ob_get_clean();
}
}
if( !function_exists('ftc_get_list_categories_shortcode_param') ){
function ftc_get_list_categories_shortcode_param( $cat_parent_id, $settings ){
$taxonomy = 'product_cat';
if( isset($settings['class']) ){
if( $settings['class'] == 'post_cat' ){
$taxonomy = 'category';
}
if( $settings['class'] == 'ftc_testimonial' ){
$taxonomy = 'ftc_testimonial_cat';
}
if( $settings['class'] == 'ftc_portfolio' ){
$taxonomy = 'ftc_portfolio_cat';
}
if( $settings['class'] == 'ftc_brand' ){
$taxonomy = 'ftc_brand_cat';
}
}
$args = array(
'taxonomy' => $taxonomy
,'hierarchical' => 1
,'hide_empty' => 0
,'parent' => $cat_parent_id
,'title_li' => ''
,'child_of' => 0
);
$cats = get_categories($args);
return $cats;
}
}
if( !function_exists('ftc_get_list_sub_categories_shortcode_param') ){
function ftc_get_list_sub_categories_shortcode_param( $cat_parent_id, $arr_value, $settings ){
$sub_categories = ftc_get_list_categories_shortcode_param($cat_parent_id, $settings);
if( count($sub_categories) > 0){
?>
<ul class="children">
<?php foreach( $sub_categories as $sub_cat ){ ?>
<li>
<label>
<input type="checkbox" class="checkbox ftc-select-category" value="<?php echo esc_attr($sub_cat->term_id); ?>" <?php echo (in_array($sub_cat->term_id, $arr_value))?'checked':''; ?> />
<?php echo esc_html($sub_cat->name); ?>
</label>
<?php ftc_get_list_sub_categories_shortcode_param($sub_cat->term_id, $arr_value, $settings); ?>
</li>
<?php } ?>
</ul>
<?php }
}
}
if( class_exists('Vc_Vendor_Woocommerce') ){
$vc_woo_vendor = new Vc_Vendor_Woocommerce();
/* autocomplete callback */
add_filter( 'vc_autocomplete_ftc_products_ids_callback', array($vc_woo_vendor, 'productIdAutocompleteSuggester') );
add_filter( 'vc_autocomplete_ftc_products_ids_render', array($vc_woo_vendor, 'productIdAutocompleteRender') );
$shortcode_field_cats = array();
$shortcode_field_cats[] = array('ftc_products', 'product_cats');
$shortcode_field_cats[] = array('ftc_products_slider', 'product_cats');
$shortcode_field_cats[] = array('ftc_products_widget', 'product_cats');
$shortcode_field_cats[] = array('ftc_product_deals_slider', 'product_cats');
$shortcode_field_cats[] = array('ftc_products_category_tabs', 'product_cats');
$shortcode_field_cats[] = array('ftc_products_category_tabs', 'parent_cat');
$shortcode_field_cats[] = array('ftc_list_of_product_categories', 'product_cat');
$shortcode_field_cats[] = array('ftc_list_of_product_categories', 'include_cats');
$shortcode_field_cats[] = array('ftc_product_categories_slider', 'parent');
$shortcode_field_cats[] = array('ftc_product_categories_slider', 'child_of');
$shortcode_field_cats[] = array('ftc_product_categories_slider', 'ids');
foreach( $shortcode_field_cats as $shortcode_field ){
add_filter( 'vc_autocomplete_'.$shortcode_field[0].'_'.$shortcode_field[1].'_callback', array($vc_woo_vendor, 'productCategoryCategoryAutocompleteSuggester') );
add_filter( 'vc_autocomplete_'.$shortcode_field[0].'_'.$shortcode_field[1].'_render', array($vc_woo_vendor, 'productCategoryCategoryRenderByIdExact') );
}
}
?>