This commit is contained in:
KhaiNguyen
2020-02-13 10:39:37 +07:00
commit 59401cb805
12867 changed files with 4646216 additions and 0 deletions

View File

@@ -0,0 +1,364 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* New button implementation
* array_merge is needed due to merging other shortcode data into params.
* @since 4.5
*/
$pixel_icons = vc_pixel_icons();
require_once vc_path_dir( 'CONFIG_DIR', 'content/vc-icon-element.php' );
$icons_params = vc_map_integrate_shortcode( vc_icon_element_params(), 'i_', '', array(
'include_only_regex' => '/^(type|icon_\w*)/',
// we need only type, icon_fontawesome, icon_blabla..., NOT color and etc
), array(
'element' => 'add_icon',
'value' => 'true',
) );
// populate integrated vc_icons params.
if ( is_array( $icons_params ) && ! empty( $icons_params ) ) {
foreach ( $icons_params as $key => $param ) {
if ( is_array( $param ) && ! empty( $param ) ) {
if ( 'i_type' === $param['param_name'] ) {
// append pixelicons to dropdown
$icons_params[ $key ]['value'][ esc_html__( 'Pixel', 'js_composer' ) ] = 'pixelicons';
}
if ( isset( $param['admin_label'] ) ) {
// remove admin label
unset( $icons_params[ $key ]['admin_label'] );
}
}
}
}
$color_value = array_merge( array(
// Btn1 Colors
esc_html__( 'Classic Grey', 'js_composer' ) => 'default',
esc_html__( 'Classic Blue', 'js_composer' ) => 'primary',
esc_html__( 'Classic Turquoise', 'js_composer' ) => 'info',
esc_html__( 'Classic Green', 'js_composer' ) => 'success',
esc_html__( 'Classic Orange', 'js_composer' ) => 'warning',
esc_html__( 'Classic Red', 'js_composer' ) => 'danger',
esc_html__( 'Classic Black', 'js_composer' ) => 'inverse',
// + Btn2 Colors (default color set)
), vc_get_shared( 'colors-dashed' ) );
$params = array_merge( array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'title',
// fully compatible to btn1 and btn2
'value' => esc_html__( 'Text on the button', 'js_composer' ),
),
array(
'type' => 'vc_link',
'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
'param_name' => 'link',
'description' => esc_html__( 'Add link to button.', 'js_composer' ),
// compatible with btn2 and converted from href{btn1}
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'description' => esc_html__( 'Select button display style.', 'js_composer' ),
'param_name' => 'style',
// partly compatible with btn2, need to be converted shape+style from btn2 and btn1
'value' => array(
esc_html__( 'Modern', 'js_composer' ) => 'modern',
esc_html__( 'Classic', 'js_composer' ) => 'classic',
esc_html__( 'Flat', 'js_composer' ) => 'flat',
esc_html__( 'Outline', 'js_composer' ) => 'outline',
esc_html__( '3d', 'js_composer' ) => '3d',
esc_html__( 'Custom', 'js_composer' ) => 'custom',
esc_html__( 'Outline custom', 'js_composer' ) => 'outline-custom',
esc_html__( 'Gradient', 'js_composer' ) => 'gradient',
esc_html__( 'Gradient Custom', 'js_composer' ) => 'gradient-custom',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Gradient Color 1', 'js_composer' ),
'param_name' => 'gradient_color_1',
'description' => esc_html__( 'Select first color for gradient.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => vc_get_shared( 'colors-dashed' ),
'std' => 'turquoise',
'dependency' => array(
'element' => 'style',
'value' => array( 'gradient' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Gradient Color 2', 'js_composer' ),
'param_name' => 'gradient_color_2',
'description' => esc_html__( 'Select second color for gradient.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => vc_get_shared( 'colors-dashed' ),
'std' => 'blue',
// must have default color grey
'dependency' => array(
'element' => 'style',
'value' => array( 'gradient' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Gradient Color 1', 'js_composer' ),
'param_name' => 'gradient_custom_color_1',
'description' => esc_html__( 'Select first color for gradient.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => '#dd3333',
'dependency' => array(
'element' => 'style',
'value' => array( 'gradient-custom' ),
),
'edit_field_class' => 'vc_col-sm-4',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Gradient Color 2', 'js_composer' ),
'param_name' => 'gradient_custom_color_2',
'description' => esc_html__( 'Select second color for gradient.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => '#eeee22',
'dependency' => array(
'element' => 'style',
'value' => array( 'gradient-custom' ),
),
'edit_field_class' => 'vc_col-sm-4',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Button Text Color', 'js_composer' ),
'param_name' => 'gradient_text_color',
'description' => esc_html__( 'Select button text color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => '#ffffff',
// must have default color grey
'dependency' => array(
'element' => 'style',
'value' => array( 'gradient-custom' ),
),
'edit_field_class' => 'vc_col-sm-4',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Background', 'js_composer' ),
'param_name' => 'custom_background',
'description' => esc_html__( 'Select custom background color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'custom' ),
),
'edit_field_class' => 'vc_col-sm-6',
'std' => '#ededed',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'custom_text',
'description' => esc_html__( 'Select custom text color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'custom' ),
),
'edit_field_class' => 'vc_col-sm-6',
'std' => '#666',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Outline and Text', 'js_composer' ),
'param_name' => 'outline_custom_color',
'description' => esc_html__( 'Select outline and text color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'outline-custom' ),
),
'edit_field_class' => 'vc_col-sm-4',
'std' => '#666',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Hover background', 'js_composer' ),
'param_name' => 'outline_custom_hover_background',
'description' => esc_html__( 'Select hover background color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'outline-custom' ),
),
'edit_field_class' => 'vc_col-sm-4',
'std' => '#666',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Hover text', 'js_composer' ),
'param_name' => 'outline_custom_hover_text',
'description' => esc_html__( 'Select hover text color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'outline-custom' ),
),
'edit_field_class' => 'vc_col-sm-4',
'std' => '#fff',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape', 'js_composer' ),
'description' => esc_html__( 'Select button shape.', 'js_composer' ),
'param_name' => 'shape',
// need to be converted
'value' => array(
esc_html__( 'Rounded', 'js_composer' ) => 'rounded',
esc_html__( 'Square', 'js_composer' ) => 'square',
esc_html__( 'Round', 'js_composer' ) => 'round',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'description' => esc_html__( 'Select button color.', 'js_composer' ),
// compatible with btn2, need to be converted from btn1
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => $color_value,
'std' => 'grey',
// must have default color grey
'dependency' => array(
'element' => 'style',
'value_not_equal_to' => array(
'custom',
'outline-custom',
'gradient',
'gradient-custom',
),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Size', 'js_composer' ),
'param_name' => 'size',
'description' => esc_html__( 'Select button display size.', 'js_composer' ),
// compatible with btn2, default md, but need to be converted from btn1 to btn2
'std' => 'md',
'value' => vc_get_shared( 'sizes' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'param_name' => 'align',
'description' => esc_html__( 'Select button alignment.', 'js_composer' ),
// compatible with btn2, default left to be compatible with btn1
'value' => array(
esc_html__( 'Inline', 'js_composer' ) => 'inline',
// default as well
esc_html__( 'Left', 'js_composer' ) => 'left',
// default as well
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Set full width button?', 'js_composer' ),
'param_name' => 'button_block',
'dependency' => array(
'element' => 'align',
'value_not_equal_to' => 'inline',
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Add icon?', 'js_composer' ),
'param_name' => 'add_icon',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon Alignment', 'js_composer' ),
'description' => esc_html__( 'Select icon alignment.', 'js_composer' ),
'param_name' => 'i_align',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
// default as well
esc_html__( 'Right', 'js_composer' ) => 'right',
),
'dependency' => array(
'element' => 'add_icon',
'value' => 'true',
),
),
), $icons_params, array(
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'i_icon_pixelicons',
'value' => 'vc_pixel_icon vc_pixel_icon-alert',
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'pixelicons',
'source' => $pixel_icons,
),
'dependency' => array(
'element' => 'i_type',
'value' => 'pixelicons',
),
'description' => esc_html__( 'Select icon from library.', 'js_composer' ),
),
), array(
vc_map_add_css_animation( true ),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Advanced on click action', 'js_composer' ),
'param_name' => 'custom_onclick',
'description' => esc_html__( 'Insert inline onclick javascript action.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'On click code', 'js_composer' ),
'param_name' => 'custom_onclick_code',
'description' => esc_html__( 'Enter onclick action code.', 'js_composer' ),
'dependency' => array(
'element' => 'custom_onclick',
'not_empty' => true,
),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
) );
/**
* @class WPBakeryShortCode_Vc_Btn
*/
return array(
'name' => esc_html__( 'Button', 'js_composer' ),
'base' => 'vc_btn',
'icon' => 'icon-wpb-ui-button',
'category' => array(
esc_html__( 'Content', 'js_composer' ),
),
'description' => esc_html__( 'Eye catching button', 'js_composer' ),
'params' => $params,
'js_view' => 'VcButton3View',
'custom_markup' => '{{title}}<div class="vc_btn3-container"><button class="vc_general vc_btn3 vc_btn3-size-sm vc_btn3-shape-{{ params.shape }} vc_btn3-style-{{ params.style }} vc_btn3-color-{{ params.color }}">{{{ params.title }}}</button></div>',
);

View File

@@ -0,0 +1,284 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Call to action
* @since 4.5
*/
require_once vc_path_dir( 'CONFIG_DIR', 'content/vc-custom-heading-element.php' );
$h2_custom_heading = vc_map_integrate_shortcode( vc_custom_heading_element_params(), 'h2_', esc_html__( 'Heading', 'js_composer' ), array(
'exclude' => array(
'source',
'text',
'css',
),
), array(
'element' => 'use_custom_fonts_h2',
'value' => 'true',
) );
// This is needed to remove custom heading _tag and _align options.
if ( is_array( $h2_custom_heading ) && ! empty( $h2_custom_heading ) ) {
foreach ( $h2_custom_heading as $key => $param ) {
if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) {
$h2_custom_heading[ $key ]['value'] = '';
if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) {
$sub_key = array_search( 'tag', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['tag'] ) ) {
unset( $h2_custom_heading[ $key ]['settings']['fields']['tag'] );
}
$sub_key = array_search( 'text_align', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['text_align'] ) ) {
unset( $h2_custom_heading[ $key ]['settings']['fields']['text_align'] );
}
}
}
}
}
$h4_custom_heading = vc_map_integrate_shortcode( vc_custom_heading_element_params(), 'h4_', esc_html__( 'Subheading', 'js_composer' ), array(
'exclude' => array(
'source',
'text',
'css',
),
), array(
'element' => 'use_custom_fonts_h4',
'value' => 'true',
) );
// This is needed to remove custom heading _tag and _align options.
if ( is_array( $h4_custom_heading ) && ! empty( $h4_custom_heading ) ) {
foreach ( $h4_custom_heading as $key => $param ) {
if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) {
$h4_custom_heading[ $key ]['value'] = '';
if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) {
$sub_key = array_search( 'tag', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['tag'] ) ) {
unset( $h4_custom_heading[ $key ]['settings']['fields']['tag'] );
}
$sub_key = array_search( 'text_align', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['text_align'] ) ) {
unset( $h4_custom_heading[ $key ]['settings']['fields']['text_align'] );
}
}
}
}
}
$params = array_merge( array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Heading', 'js_composer' ),
'admin_label' => true,
'param_name' => 'h2',
'value' => esc_html__( 'Hey! I am first heading line feel free to change me', 'js_composer' ),
'description' => esc_html__( 'Enter text for heading line.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-9',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use custom font?', 'js_composer' ),
'param_name' => 'use_custom_fonts_h2',
'description' => esc_html__( 'Enable Google fonts.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-3',
),
), $h2_custom_heading, array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Subheading', 'js_composer' ),
'param_name' => 'h4',
'value' => '',
'description' => esc_html__( 'Enter text for subheading line.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-9',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use custom font?', 'js_composer' ),
'param_name' => 'use_custom_fonts_h4',
'description' => esc_html__( 'Enable custom font option.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-3',
),
), $h4_custom_heading, array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Text alignment', 'js_composer' ),
'param_name' => 'txt_align',
'value' => vc_get_shared( 'text align' ),
// default left
'description' => esc_html__( 'Select text alignment in "Call to Action" block.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape', 'js_composer' ),
'param_name' => 'shape',
'std' => 'rounded',
'value' => array(
esc_html__( 'Square', 'js_composer' ) => 'square',
esc_html__( 'Rounded', 'js_composer' ) => 'rounded',
esc_html__( 'Round', 'js_composer' ) => 'round',
),
'description' => esc_html__( 'Select call to action shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'param_name' => 'style',
'value' => array(
esc_html__( 'Classic', 'js_composer' ) => 'classic',
esc_html__( 'Flat', 'js_composer' ) => 'flat',
esc_html__( 'Outline', 'js_composer' ) => 'outline',
esc_html__( '3d', 'js_composer' ) => '3d',
esc_html__( 'Custom', 'js_composer' ) => 'custom',
),
'std' => 'classic',
'description' => esc_html__( 'Select call to action display style.', 'js_composer' ),
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Background color', 'js_composer' ),
'param_name' => 'custom_background',
'description' => esc_html__( 'Select custom background color.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'custom' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Text color', 'js_composer' ),
'param_name' => 'custom_text',
'description' => esc_html__( 'Select custom text color.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'custom' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => array( esc_html__( 'Classic', 'js_composer' ) => 'classic' ) + vc_get_shared( 'colors-dashed' ),
'std' => 'classic',
'description' => esc_html__( 'Select color schema.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_cta3-colored-dropdown',
'dependency' => array(
'element' => 'style',
'value_not_equal_to' => array( 'custom' ),
),
),
array(
'type' => 'textarea_html',
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'content',
'value' => esc_html__( 'I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Width', 'js_composer' ),
'param_name' => 'el_width',
'value' => array(
'100%' => '',
'90%' => 'xl',
'80%' => 'lg',
'70%' => 'md',
'60%' => 'sm',
'50%' => 'xs',
),
'description' => esc_html__( 'Select call to action width (percentage).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Add button', 'js_composer' ) . '?',
'description' => esc_html__( 'Add button for call to action.', 'js_composer' ),
'param_name' => 'add_button',
'value' => array(
esc_html__( 'No', 'js_composer' ) => '',
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
),
),
), vc_map_integrate_shortcode( 'vc_btn', 'btn_', esc_html__( 'Button', 'js_composer' ), array(
'exclude' => array( 'css' ),
), array(
'element' => 'add_button',
'not_empty' => true,
) ), array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Add icon?', 'js_composer' ),
'description' => esc_html__( 'Add icon for call to action.', 'js_composer' ),
'param_name' => 'add_icon',
'value' => array(
esc_html__( 'No', 'js_composer' ) => '',
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
),
),
array(
'type' => 'checkbox',
'param_name' => 'i_on_border',
'heading' => esc_html__( 'Place icon on border?', 'js_composer' ),
'description' => esc_html__( 'Display icon on call to action element border.', 'js_composer' ),
'group' => esc_html__( 'Icon', 'js_composer' ),
'dependency' => array(
'element' => 'add_icon',
'not_empty' => true,
),
),
), vc_map_integrate_shortcode( 'vc_icon', 'i_', esc_html__( 'Icon', 'js_composer' ), array(
'exclude' => array(
'align',
'css',
),
), array(
'element' => 'add_icon',
'not_empty' => true,
) ), array(
// cta3
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
) );
return array(
'name' => esc_html__( 'Call to Action', 'js_composer' ),
'base' => 'vc_cta',
'icon' => 'icon-wpb-call-to-action',
'category' => array( esc_html__( 'Content', 'js_composer' ) ),
'description' => esc_html__( 'Catch visitors attention with CTA block', 'js_composer' ),
'since' => '4.5',
'params' => $params,
'js_view' => 'VcCallToActionView3',
);

View File

@@ -0,0 +1,75 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* @var $tag - shortcode tag;
*/
return array(
'name' => __( 'Inner Column', 'js_composer' ),
'base' => 'vc_column_inner',
'icon' => 'icon-wpb-row',
'class' => '',
'wrapper_class' => '',
'controls' => 'full',
'allowed_container_element' => false,
'content_element' => false,
'is_container' => true,
'description' => esc_html__( 'Place content elements inside the inner column', 'js_composer' ),
'params' => array(
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'value' => '',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Width', 'js_composer' ),
'param_name' => 'width',
'value' => array(
esc_html__( '1 column - 1/12', 'js_composer' ) => '1/12',
esc_html__( '2 columns - 1/6', 'js_composer' ) => '1/6',
esc_html__( '3 columns - 1/4', 'js_composer' ) => '1/4',
esc_html__( '4 columns - 1/3', 'js_composer' ) => '1/3',
esc_html__( '5 columns - 5/12', 'js_composer' ) => '5/12',
esc_html__( '6 columns - 1/2', 'js_composer' ) => '1/2',
esc_html__( '7 columns - 7/12', 'js_composer' ) => '7/12',
esc_html__( '8 columns - 2/3', 'js_composer' ) => '2/3',
esc_html__( '9 columns - 3/4', 'js_composer' ) => '3/4',
esc_html__( '10 columns - 5/6', 'js_composer' ) => '5/6',
esc_html__( '11 columns - 11/12', 'js_composer' ) => '11/12',
esc_html__( '12 columns - 1/1', 'js_composer' ) => '1/1',
esc_html__( '20% - 1/5', 'js_composer' ) => '1/5',
esc_html__( '40% - 2/5', 'js_composer' ) => '2/5',
esc_html__( '60% - 3/5', 'js_composer' ) => '3/5',
esc_html__( '80% - 4/5', 'js_composer' ) => '4/5',
),
'group' => esc_html__( 'Responsive Options', 'js_composer' ),
'description' => esc_html__( 'Select column width.', 'js_composer' ),
'std' => '1/1',
),
array(
'type' => 'column_offset',
'heading' => esc_html__( 'Responsiveness', 'js_composer' ),
'param_name' => 'offset',
'group' => esc_html__( 'Responsive Options', 'js_composer' ),
'description' => esc_html__( 'Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer' ),
),
),
'js_view' => 'VcColumnView',
);

View File

@@ -0,0 +1,152 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* @var $tag - shortcode tag;
*/
return array(
'name' => esc_html__( 'Column', 'js_composer' ),
'icon' => 'icon-wpb-row',
'is_container' => true,
'content_element' => false,
'description' => esc_html__( 'Place content elements inside the column', 'js_composer' ),
'params' => array(
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use video background?', 'js_composer' ),
'param_name' => 'video_bg',
'description' => esc_html__( 'If checked, video will be used as row background.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'YouTube link', 'js_composer' ),
'param_name' => 'video_bg_url',
'value' => 'https://www.youtube.com/watch?v=lMJXxhRFO1k',
// default video url
'description' => esc_html__( 'Add YouTube link.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Parallax', 'js_composer' ),
'param_name' => 'video_bg_parallax',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Simple', 'js_composer' ) => 'content-moving',
esc_html__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => esc_html__( 'Add parallax type background for row.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Parallax', 'js_composer' ),
'param_name' => 'parallax',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Simple', 'js_composer' ) => 'content-moving',
esc_html__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => esc_html__( 'Add parallax type background for row (Note: If no image is specified, parallax will use background image from Design Options).', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'is_empty' => true,
),
),
array(
'type' => 'attach_image',
'heading' => esc_html__( 'Image', 'js_composer' ),
'param_name' => 'parallax_image',
'value' => '',
'description' => esc_html__( 'Select image from media library.', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_video',
'value' => '1.5',
'description' => esc_html__( 'Enter parallax speed ratio (Note: Default value is 1.5, min value is 1)', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg_parallax',
'not_empty' => true,
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_bg',
'value' => '1.5',
'description' => esc_html__( 'Enter parallax speed ratio (Note: Default value is 1.5, min value is 1)', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
vc_map_add_css_animation( false ),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Width', 'js_composer' ),
'param_name' => 'width',
'value' => array(
esc_html__( '1 column - 1/12', 'js_composer' ) => '1/12',
esc_html__( '2 columns - 1/6', 'js_composer' ) => '1/6',
esc_html__( '3 columns - 1/4', 'js_composer' ) => '1/4',
esc_html__( '4 columns - 1/3', 'js_composer' ) => '1/3',
esc_html__( '5 columns - 5/12', 'js_composer' ) => '5/12',
esc_html__( '6 columns - 1/2', 'js_composer' ) => '1/2',
esc_html__( '7 columns - 7/12', 'js_composer' ) => '7/12',
esc_html__( '8 columns - 2/3', 'js_composer' ) => '2/3',
esc_html__( '9 columns - 3/4', 'js_composer' ) => '3/4',
esc_html__( '10 columns - 5/6', 'js_composer' ) => '5/6',
esc_html__( '11 columns - 11/12', 'js_composer' ) => '11/12',
esc_html__( '12 columns - 1/1', 'js_composer' ) => '1/1',
esc_html__( '20% - 1/5', 'js_composer' ) => '1/5',
esc_html__( '40% - 2/5', 'js_composer' ) => '2/5',
esc_html__( '60% - 3/5', 'js_composer' ) => '3/5',
esc_html__( '80% - 4/5', 'js_composer' ) => '4/5',
),
'group' => esc_html__( 'Responsive Options', 'js_composer' ),
'description' => esc_html__( 'Select column width.', 'js_composer' ),
'std' => '1/1',
),
array(
'type' => 'column_offset',
'heading' => esc_html__( 'Responsiveness', 'js_composer' ),
'param_name' => 'offset',
'group' => esc_html__( 'Responsive Options', 'js_composer' ),
'description' => esc_html__( 'Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer' ),
),
),
'js_view' => 'VcColumnView',
);

View File

@@ -0,0 +1,90 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Inner Row', 'js_composer' ),
'content_element' => false,
'is_container' => true,
'icon' => 'icon-wpb-row',
'weight' => 1000,
'show_settings_on_create' => false,
'description' => esc_html__( 'Place content elements inside the inner row', 'js_composer' ),
'params' => array(
array(
'type' => 'el_id',
'heading' => esc_html__( 'Row ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter optional row ID. Make sure it is unique, and it is valid as w3c specification: %s (Must not have spaces)', 'js_composer' ), '<a target="_blank" href="https://www.w3schools.com/tags/att_global_id.asp">' . esc_html__( 'link', 'js_composer' ) . '</a>' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Equal height', 'js_composer' ),
'param_name' => 'equal_height',
'description' => esc_html__( 'If checked columns will be set to equal height.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Reverse columns in RTL', 'js_composer' ),
'param_name' => 'rtl_reverse',
'description' => esc_html__( 'If checked columns will be reversed in RTL.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Content position', 'js_composer' ),
'param_name' => 'content_placement',
'value' => array(
esc_html__( 'Default', 'js_composer' ) => '',
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Middle', 'js_composer' ) => 'middle',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
),
'description' => esc_html__( 'Select content position within columns.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Columns gap', 'js_composer' ),
'param_name' => 'gap',
'value' => array(
'0px' => '0',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'std' => '0',
'description' => esc_html__( 'Select gap between columns in row.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Disable row', 'js_composer' ),
'param_name' => 'disable_element',
// Inner param name.
'description' => esc_html__( 'If checked the row won\'t be visible on the public side of your website. You can switch it back any time.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcRowView',
);

View File

@@ -0,0 +1,208 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Row', 'js_composer' ),
'is_container' => true,
'icon' => 'icon-wpb-row',
'show_settings_on_create' => false,
'category' => esc_html__( 'Content', 'js_composer' ),
'class' => 'vc_main-sortable-element',
'description' => esc_html__( 'Place content elements inside the row', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Row stretch', 'js_composer' ),
'param_name' => 'full_width',
'value' => array(
esc_html__( 'Default', 'js_composer' ) => '',
esc_html__( 'Stretch row', 'js_composer' ) => 'stretch_row',
esc_html__( 'Stretch row and content', 'js_composer' ) => 'stretch_row_content',
esc_html__( 'Stretch row and content (no paddings)', 'js_composer' ) => 'stretch_row_content_no_spaces',
),
'description' => esc_html__( 'Select stretching options for row and content (Note: stretched may not work properly if parent container has "overflow: hidden" CSS property).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Columns gap', 'js_composer' ),
'param_name' => 'gap',
'value' => array(
'0px' => '0',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'std' => '0',
'description' => esc_html__( 'Select gap between columns in row.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Full height row?', 'js_composer' ),
'param_name' => 'full_height',
'description' => esc_html__( 'If checked row will be set to full height.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Columns position', 'js_composer' ),
'param_name' => 'columns_placement',
'value' => array(
esc_html__( 'Middle', 'js_composer' ) => 'middle',
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
esc_html__( 'Stretch', 'js_composer' ) => 'stretch',
),
'description' => esc_html__( 'Select columns position within row.', 'js_composer' ),
'dependency' => array(
'element' => 'full_height',
'not_empty' => true,
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Equal height', 'js_composer' ),
'param_name' => 'equal_height',
'description' => esc_html__( 'If checked columns will be set to equal height.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Reverse columns in RTL', 'js_composer' ),
'param_name' => 'rtl_reverse',
'description' => esc_html__( 'If checked columns will be reversed in RTL.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Content position', 'js_composer' ),
'param_name' => 'content_placement',
'value' => array(
esc_html__( 'Default', 'js_composer' ) => '',
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Middle', 'js_composer' ) => 'middle',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
),
'description' => esc_html__( 'Select content position within columns.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use video background?', 'js_composer' ),
'param_name' => 'video_bg',
'description' => esc_html__( 'If checked, video will be used as row background.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'YouTube link', 'js_composer' ),
'param_name' => 'video_bg_url',
'value' => 'https://www.youtube.com/watch?v=lMJXxhRFO1k',
// default video url
'description' => esc_html__( 'Add YouTube link.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Parallax', 'js_composer' ),
'param_name' => 'video_bg_parallax',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Simple', 'js_composer' ) => 'content-moving',
esc_html__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => esc_html__( 'Add parallax type background for row.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Parallax', 'js_composer' ),
'param_name' => 'parallax',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Simple', 'js_composer' ) => 'content-moving',
esc_html__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => esc_html__( 'Add parallax type background for row (Note: If no image is specified, parallax will use background image from Design Options).', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'is_empty' => true,
),
),
array(
'type' => 'attach_image',
'heading' => esc_html__( 'Image', 'js_composer' ),
'param_name' => 'parallax_image',
'value' => '',
'description' => esc_html__( 'Select image from media library.', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_video',
'value' => '1.5',
'description' => esc_html__( 'Enter parallax speed ratio (Note: Default value is 1.5, min value is 1)', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg_parallax',
'not_empty' => true,
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_bg',
'value' => '1.5',
'description' => esc_html__( 'Enter parallax speed ratio (Note: Default value is 1.5, min value is 1)', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
vc_map_add_css_animation( false ),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Row ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Disable row', 'js_composer' ),
'param_name' => 'disable_element',
// Inner param name.
'description' => esc_html__( 'If checked the row won\'t be visible on the public side of your website. You can switch it back any time.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcRowView',
);

View File

@@ -0,0 +1,162 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Section', 'js_composer' ),
'is_container' => true,
'icon' => 'vc_icon-vc-section',
'show_settings_on_create' => false,
'category' => esc_html__( 'Content', 'js_composer' ),
'as_parent' => array(
'only' => 'vc_row',
),
'as_child' => array(
'only' => '', // Only root
),
'class' => 'vc_main-sortable-element',
'description' => esc_html__( 'Group multiple rows in section', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Section stretch', 'js_composer' ),
'param_name' => 'full_width',
'value' => array(
esc_html__( 'Default', 'js_composer' ) => '',
esc_html__( 'Stretch section', 'js_composer' ) => 'stretch_row',
esc_html__( 'Stretch section and content', 'js_composer' ) => 'stretch_row_content',
),
'description' => esc_html__( 'Select stretching options for section and content (Note: stretched may not work properly if parent container has "overflow: hidden" CSS property).', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Full height section?', 'js_composer' ),
'param_name' => 'full_height',
'description' => esc_html__( 'If checked section will be set to full height.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Content position', 'js_composer' ),
'param_name' => 'content_placement',
'value' => array(
esc_html__( 'Default', 'js_composer' ) => '',
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Middle', 'js_composer' ) => 'middle',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
),
'description' => esc_html__( 'Select content position within section.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use video background?', 'js_composer' ),
'param_name' => 'video_bg',
'description' => esc_html__( 'If checked, video will be used as section background.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'YouTube link', 'js_composer' ),
'param_name' => 'video_bg_url',
'value' => 'https://www.youtube.com/watch?v=lMJXxhRFO1k',
// default video url
'description' => esc_html__( 'Add YouTube link.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Parallax', 'js_composer' ),
'param_name' => 'video_bg_parallax',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Simple', 'js_composer' ) => 'content-moving',
esc_html__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => esc_html__( 'Add parallax type background for section.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Parallax', 'js_composer' ),
'param_name' => 'parallax',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Simple', 'js_composer' ) => 'content-moving',
esc_html__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => esc_html__( 'Add parallax type background for section (Note: If no image is specified, parallax will use background image from Design Options).', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'is_empty' => true,
),
),
array(
'type' => 'attach_image',
'heading' => esc_html__( 'Image', 'js_composer' ),
'param_name' => 'parallax_image',
'value' => '',
'description' => esc_html__( 'Select image from media library.', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_video',
'value' => '1.5',
'description' => esc_html__( 'Enter parallax speed ratio (Note: Default value is 1.5, min value is 1)', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg_parallax',
'not_empty' => true,
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_bg',
'value' => '1.5',
'description' => esc_html__( 'Enter parallax speed ratio (Note: Default value is 1.5, min value is 1)', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
vc_map_add_css_animation( false ),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Section ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Disable section', 'js_composer' ),
'param_name' => 'disable_element',
// Inner param name.
'description' => esc_html__( 'If checked the section won\'t be visible on the public side of your website. You can switch it back any time.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcSectionView',
);

View File

@@ -0,0 +1,40 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Text Block', 'js_composer' ),
'icon' => 'icon-wpb-layer-shape-text',
'wrapper_class' => 'clearfix',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'A block of text with WYSIWYG editor', 'js_composer' ),
'params' => array(
array(
'type' => 'textarea_html',
'holder' => 'div',
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'content',
'value' => '<p>' . esc_html__( 'I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ) . '</p>',
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once vc_path_dir( 'CONFIG_DIR', 'content/vc-custom-heading-element.php' );
return vc_custom_heading_element_params();

View File

@@ -0,0 +1,41 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Empty Space', 'js_composer' ),
'base' => 'vc_empty_space',
'icon' => 'icon-wpb-ui-empty_space',
'show_settings_on_create' => true,
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Blank space with custom height', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Height', 'js_composer' ),
'param_name' => 'height',
'value' => '32px',
'admin_label' => true,
'description' => esc_html__( 'Enter empty space height (Note: CSS measurement units allowed).', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,84 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'base' => 'vc_flickr',
'name' => esc_html__( 'Flickr Widget', 'js_composer' ),
'icon' => 'icon-wpb-flickr',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Image feed from Flickr account', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Flickr ID', 'js_composer' ),
'param_name' => 'flickr_id',
'value' => '95572727@N00',
'admin_label' => true,
'description' => sprintf( esc_html__( 'To find your flickID visit %s.', 'js_composer' ), '<a href="https://www.webfx.com/tools/idgettr/" target="_blank">idGettr</a>' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Number of photos', 'js_composer' ),
'param_name' => 'count',
'value' => array(
9,
8,
7,
6,
5,
4,
3,
2,
1,
),
'description' => esc_html__( 'Select number of photos to display.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Type', 'js_composer' ),
'param_name' => 'type',
'value' => array(
esc_html__( 'User', 'js_composer' ) => 'user',
esc_html__( 'Group', 'js_composer' ) => 'group',
),
'description' => esc_html__( 'Select photo stream type.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Display order', 'js_composer' ),
'param_name' => 'display',
'value' => array(
esc_html__( 'Latest first', 'js_composer' ) => 'latest',
esc_html__( 'Random', 'js_composer' ) => 'random',
),
'description' => esc_html__( 'Select photo display order.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,163 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Image Gallery', 'js_composer' ),
'base' => 'vc_gallery',
'icon' => 'icon-wpb-images-stack',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Responsive image gallery', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Gallery type', 'js_composer' ),
'param_name' => 'type',
'value' => array(
esc_html__( 'Flex slider fade', 'js_composer' ) => 'flexslider_fade',
esc_html__( 'Flex slider slide', 'js_composer' ) => 'flexslider_slide',
esc_html__( 'Nivo slider', 'js_composer' ) => 'nivo',
esc_html__( 'Image grid', 'js_composer' ) => 'image_grid',
),
'description' => esc_html__( 'Select gallery type.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Auto rotate', 'js_composer' ),
'param_name' => 'interval',
'value' => array(
3,
5,
10,
15,
esc_html__( 'Disable', 'js_composer' ) => 0,
),
'description' => esc_html__( 'Auto rotate slides each X seconds.', 'js_composer' ),
'dependency' => array(
'element' => 'type',
'value' => array(
'flexslider_fade',
'flexslider_slide',
'nivo',
),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Image source', 'js_composer' ),
'param_name' => 'source',
'value' => array(
esc_html__( 'Media library', 'js_composer' ) => 'media_library',
esc_html__( 'External links', 'js_composer' ) => 'external_link',
),
'std' => 'media_library',
'description' => esc_html__( 'Select image source.', 'js_composer' ),
),
array(
'type' => 'attach_images',
'heading' => esc_html__( 'Images', 'js_composer' ),
'param_name' => 'images',
'value' => '',
'description' => esc_html__( 'Select images from media library.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'media_library',
),
),
array(
'type' => 'exploded_textarea_safe',
'heading' => esc_html__( 'External links', 'js_composer' ),
'param_name' => 'custom_srcs',
'description' => esc_html__( 'Enter external link for each gallery image (Note: divide links with linebreaks (Enter)).', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'external_link',
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Image size', 'js_composer' ),
'param_name' => 'img_size',
'value' => 'thumbnail',
'description' => esc_html__( 'Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'media_library',
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Image size', 'js_composer' ),
'param_name' => 'external_img_size',
'value' => '',
'description' => esc_html__( 'Enter image size in pixels. Example: 200x100 (Width x Height).', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'external_link',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'On click action', 'js_composer' ),
'param_name' => 'onclick',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Link to large image', 'js_composer' ) => 'img_link_large',
esc_html__( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
esc_html__( 'Open custom link', 'js_composer' ) => 'custom_link',
),
'description' => esc_html__( 'Select action for click action.', 'js_composer' ),
'std' => 'link_image',
),
array(
'type' => 'exploded_textarea_safe',
'heading' => esc_html__( 'Custom links', 'js_composer' ),
'param_name' => 'custom_links',
'description' => esc_html__( 'Enter links for each slide (Note: divide links with linebreaks (Enter)).', 'js_composer' ),
'dependency' => array(
'element' => 'onclick',
'value' => array( 'custom_link' ),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Custom link target', 'js_composer' ),
'param_name' => 'custom_links_target',
'description' => esc_html__( 'Select where to open custom links.', 'js_composer' ),
'dependency' => array(
'element' => 'onclick',
'value' => array(
'custom_link',
'img_link_large',
),
),
'value' => vc_target_param_list(),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,54 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Google Maps', 'js_composer' ),
'base' => 'vc_gmaps',
'icon' => 'icon-wpb-map-pin',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Map block', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'textarea_safe',
'heading' => esc_html__( 'Map embed iframe', 'js_composer' ),
'param_name' => 'link',
'value' => '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6304.829986131271!2d-122.4746968033092!3d37.80374752160443!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x808586e6302615a1%3A0x86bd130251757c00!2sStorey+Ave%2C+San+Francisco%2C+CA+94129!5e0!3m2!1sen!2sus!4v1435826432051" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>',
'description' => sprintf( esc_html__( 'Visit %s to create your map (Step by step: 1) Find location 2) Click the cog symbol in the lower right corner and select "Share or embed map" 3) On modal window select "Embed map" 4) Copy iframe code and paste it).' ), '<a href="https://www.google.com/maps" target="_blank">' . esc_html__( 'Google maps', 'js_composer' ) . '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Map height', 'js_composer' ),
'param_name' => 'size',
'value' => 'standard',
'admin_label' => true,
'description' => esc_html__( 'Enter map height (in pixels or leave empty for responsive map).', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,256 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Call to action
* @since 4.5
*/
require_once vc_path_dir( 'CONFIG_DIR', 'content/vc-custom-heading-element.php' );
$h2_custom_heading = vc_map_integrate_shortcode( vc_custom_heading_element_params(), 'primary_title_', esc_html__( 'Primary Title', 'js_composer' ), array(
'exclude' => array(
'source',
'text',
'css',
),
), array(
'element' => 'use_custom_fonts_primary_title',
'value' => 'true',
) );
// This is needed to remove custom heading _tag and _align options.
if ( is_array( $h2_custom_heading ) && ! empty( $h2_custom_heading ) ) {
foreach ( $h2_custom_heading as $key => $param ) {
if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) {
$h2_custom_heading[ $key ]['value'] = '';
if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) {
$sub_key = array_search( 'tag', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['tag'] ) ) {
unset( $h2_custom_heading[ $key ]['settings']['fields']['tag'] );
}
$sub_key = array_search( 'text_align', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['text_align'] ) ) {
unset( $h2_custom_heading[ $key ]['settings']['fields']['text_align'] );
}
}
}
}
}
$h4_custom_heading = vc_map_integrate_shortcode( vc_custom_heading_element_params(), 'hover_title_', esc_html__( 'Hover Title', 'js_composer' ), array(
'exclude' => array(
'source',
'text',
'css',
),
), array(
'element' => 'use_custom_fonts_hover_title',
'value' => 'true',
) );
// This is needed to remove custom heading _tag and _align options.
if ( is_array( $h4_custom_heading ) && ! empty( $h4_custom_heading ) ) {
foreach ( $h4_custom_heading as $key => $param ) {
if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) {
$h4_custom_heading[ $key ]['value'] = '';
if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) {
$sub_key = array_search( 'tag', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['tag'] ) ) {
unset( $h4_custom_heading[ $key ]['settings']['fields']['tag'] );
}
$sub_key = array_search( 'text_align', $param['settings']['fields'], true );
if ( false !== $sub_key ) {
unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] );
} elseif ( isset( $param['settings']['fields']['text_align'] ) ) {
unset( $h4_custom_heading[ $key ]['settings']['fields']['text_align'] );
}
}
}
}
}
$params = array_merge( array(
array(
'type' => 'attach_image',
'heading' => esc_html__( 'Image', 'js_composer' ),
'param_name' => 'image',
'value' => '',
'description' => esc_html__( 'Select image from media library.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Primary title', 'js_composer' ),
'admin_label' => true,
'param_name' => 'primary_title',
'value' => esc_html__( 'Hover Box Element', 'js_composer' ),
'description' => esc_html__( 'Enter text for heading line.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-9',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use custom font?', 'js_composer' ),
'param_name' => 'use_custom_fonts_primary_title',
'description' => esc_html__( 'Enable Google fonts.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-3',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Primary title alignment', 'js_composer' ),
'param_name' => 'primary_align',
'value' => vc_get_shared( 'text align' ),
'std' => 'center',
'description' => esc_html__( 'Select text alignment for primary title.', 'js_composer' ),
),
), $h2_custom_heading, array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Hover title', 'js_composer' ),
'param_name' => 'hover_title',
'value' => 'Hover Box Element',
'description' => esc_html__( 'Hover Box Element', 'js_composer' ),
'group' => esc_html__( 'Hover Block', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-9',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use custom font?', 'js_composer' ),
'param_name' => 'use_custom_fonts_hover_title',
'description' => esc_html__( 'Enable custom font option.', 'js_composer' ),
'group' => esc_html__( 'Hover Block', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-3',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Hover title alignment', 'js_composer' ),
'param_name' => 'hover_align',
'value' => vc_get_shared( 'text align' ),
'std' => 'center',
'group' => esc_html__( 'Hover Block', 'js_composer' ),
'description' => esc_html__( 'Select text alignment for hovered title.', 'js_composer' ),
),
array(
'type' => 'textarea_html',
'heading' => esc_html__( 'Hover text', 'js_composer' ),
'param_name' => 'content',
'value' => esc_html__( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ),
'group' => esc_html__( 'Hover Block', 'js_composer' ),
'description' => esc_html__( 'Hover part text.', 'js_composer' ),
),
), $h4_custom_heading, array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape', 'js_composer' ),
'param_name' => 'shape',
'std' => 'rounded',
'value' => array(
esc_html__( 'Square', 'js_composer' ) => 'square',
esc_html__( 'Rounded', 'js_composer' ) => 'rounded',
esc_html__( 'Round', 'js_composer' ) => 'round',
),
'description' => esc_html__( 'Select block shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Background Color', 'js_composer' ),
'param_name' => 'hover_background_color',
'value' => vc_get_shared( 'colors-dashed' ) + array( esc_html__( 'Custom', 'js_composer' ) => 'custom' ),
'description' => esc_html__( 'Select color schema.', 'js_composer' ),
'std' => 'grey',
'group' => esc_html__( 'Hover Block', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_cta3-colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Background color', 'js_composer' ),
'param_name' => 'hover_custom_background',
'description' => esc_html__( 'Select custom background color.', 'js_composer' ),
'group' => esc_html__( 'Hover Block', 'js_composer' ),
'dependency' => array(
'element' => 'hover_background_color',
'value' => array( 'custom' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Width', 'js_composer' ),
'param_name' => 'el_width',
'value' => array(
'100%' => '100',
'90%' => '90',
'80%' => '80',
'70%' => '70',
'60%' => '60',
'50%' => '50',
'40%' => '40',
'30%' => '30',
'20%' => '20',
'10%' => '10',
),
'description' => esc_html__( 'Select block width (percentage).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'param_name' => 'align',
'description' => esc_html__( 'Select block alignment.', 'js_composer' ),
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
'std' => 'center',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Add button', 'js_composer' ) . '?',
'description' => esc_html__( 'Add button for call to action.', 'js_composer' ),
'group' => esc_html__( 'Hover Block', 'js_composer' ),
'param_name' => 'hover_add_button',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Reverse blocks', 'js_composer' ),
'param_name' => 'reverse',
'description' => esc_html__( 'Reverse hover and primary block.', 'js_composer' ),
),
), vc_map_integrate_shortcode( 'vc_btn', 'hover_btn_', esc_html__( 'Hover Button', 'js_composer' ), array(
'exclude' => array( 'css' ),
), array(
'element' => 'hover_add_button',
'not_empty' => true,
) ), array(
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
) );
return array(
'name' => esc_html__( 'Hover Box', 'js_composer' ),
'base' => 'vc_cta',
'icon' => 'vc_icon-vc-hoverbox',
'category' => array( esc_html__( 'Content', 'js_composer' ) ),
'description' => esc_html__( 'Animated flip box with image and text', 'js_composer' ),
'params' => $params,
);

View File

@@ -0,0 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once 'vc-icon-element.php';
return vc_icon_element_params();

View File

@@ -0,0 +1,144 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Image Carousel', 'js_composer' ),
'base' => 'vc_images_carousel',
'icon' => 'icon-wpb-images-carousel',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Animated carousel with images', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'attach_images',
'heading' => esc_html__( 'Images', 'js_composer' ),
'param_name' => 'images',
'value' => '',
'description' => esc_html__( 'Select images from media library.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Carousel size', 'js_composer' ),
'param_name' => 'img_size',
'value' => 'thumbnail',
'description' => esc_html__( 'Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size. If used slides per view, this will be used to define carousel wrapper size.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'On click action', 'js_composer' ),
'param_name' => 'onclick',
'value' => array(
esc_html__( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
esc_html__( 'None', 'js_composer' ) => 'link_no',
esc_html__( 'Open custom links', 'js_composer' ) => 'custom_link',
),
'description' => esc_html__( 'Select action for click event.', 'js_composer' ),
),
array(
'type' => 'exploded_textarea_safe',
'heading' => esc_html__( 'Custom links', 'js_composer' ),
'param_name' => 'custom_links',
'description' => esc_html__( 'Enter links for each slide (Note: divide links with linebreaks (Enter)).', 'js_composer' ),
'dependency' => array(
'element' => 'onclick',
'value' => array( 'custom_link' ),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Custom link target', 'js_composer' ),
'param_name' => 'custom_links_target',
'description' => esc_html__( 'Select how to open custom links.', 'js_composer' ),
'dependency' => array(
'element' => 'onclick',
'value' => array( 'custom_link' ),
),
'value' => vc_target_param_list(),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Slider orientation', 'js_composer' ),
'param_name' => 'mode',
'value' => array(
esc_html__( 'Horizontal', 'js_composer' ) => 'horizontal',
esc_html__( 'Vertical', 'js_composer' ) => 'vertical',
),
'description' => esc_html__( 'Select slider position (Note: this affects swiping orientation).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Slider speed', 'js_composer' ),
'param_name' => 'speed',
'value' => '5000',
'description' => esc_html__( 'Duration of animation between slides (in ms).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Slides per view', 'js_composer' ),
'param_name' => 'slides_per_view',
'value' => '1',
'description' => esc_html__( 'Enter number of slides to display at the same time.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Slider autoplay', 'js_composer' ),
'param_name' => 'autoplay',
'description' => esc_html__( 'Enable autoplay mode.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Hide pagination control', 'js_composer' ),
'param_name' => 'hide_pagination_control',
'description' => esc_html__( 'If checked, pagination controls will be hidden.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Hide prev/next buttons', 'js_composer' ),
'param_name' => 'hide_prev_next_buttons',
'description' => esc_html__( 'If checked, prev/next buttons will be hidden.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Partial view', 'js_composer' ),
'param_name' => 'partial_view',
'description' => esc_html__( 'If checked, part of the next slide will be visible.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Slider loop', 'js_composer' ),
'param_name' => 'wrap',
'description' => esc_html__( 'Enable slider loop mode.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,147 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Line Chart', 'js_composer' ),
'base' => 'vc_line_chart',
'class' => '',
'icon' => 'icon-wpb-vc-line-chart',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Line and Bar charts', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Design', 'js_composer' ),
'param_name' => 'type',
'value' => array(
esc_html__( 'Line', 'js_composer' ) => 'line',
esc_html__( 'Bar', 'js_composer' ) => 'bar',
),
'std' => 'bar',
'description' => esc_html__( 'Select type of chart.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'description' => esc_html__( 'Select chart color style.', 'js_composer' ),
'param_name' => 'style',
'value' => array(
esc_html__( 'Flat', 'js_composer' ) => 'flat',
esc_html__( 'Modern', 'js_composer' ) => 'modern',
esc_html__( 'Custom', 'js_composer' ) => 'custom',
),
'dependency' => array(
'callback' => 'vcChartCustomColorDependency',
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Show legend?', 'js_composer' ),
'param_name' => 'legend',
'description' => esc_html__( 'If checked, chart will have legend.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
'std' => 'yes',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Show hover values?', 'js_composer' ),
'param_name' => 'tooltips',
'description' => esc_html__( 'If checked, chart will show values on hover.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
'std' => 'yes',
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'X-axis values', 'js_composer' ),
'param_name' => 'x_values',
'description' => esc_html__( 'Enter values for axis (Note: separate values with ";").', 'js_composer' ),
'value' => 'JAN; FEB; MAR; APR; MAY; JUN; JUL; AUG',
),
array(
'type' => 'param_group',
'heading' => esc_html__( 'Values', 'js_composer' ),
'param_name' => 'values',
'value' => rawurlencode( wp_json_encode( array(
array(
'title' => esc_html__( 'One', 'js_composer' ),
'y_values' => '10; 15; 20; 25; 27; 25; 23; 25',
'color' => 'blue',
),
array(
'title' => esc_html__( 'Two', 'js_composer' ),
'y_values' => '25; 18; 16; 17; 20; 25; 30; 35',
'color' => 'pink',
),
) ) ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter title for chart dataset.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Y-axis values', 'js_composer' ),
'param_name' => 'y_values',
'description' => esc_html__( 'Enter values for axis (Note: separate values with ";").', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => vc_get_shared( 'colors-dashed' ),
'description' => esc_html__( 'Select chart color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom color', 'js_composer' ),
'param_name' => 'custom_color',
'description' => esc_html__( 'Select custom chart color.', 'js_composer' ),
),
),
'callbacks' => array(
'after_add' => 'vcChartParamAfterAddCallback',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Animation', 'js_composer' ),
'description' => esc_html__( 'Select animation style.', 'js_composer' ),
'param_name' => 'animation',
'value' => vc_get_shared( 'animation styles' ),
'std' => 'easeInOutCubic',
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,308 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$pixel_icons = vc_pixel_icons();
$custom_colors = array(
esc_html__( 'Informational', 'js_composer' ) => 'info',
esc_html__( 'Warning', 'js_composer' ) => 'warning',
esc_html__( 'Success', 'js_composer' ) => 'success',
esc_html__( 'Error', 'js_composer' ) => 'danger',
esc_html__( 'Informational Classic', 'js_composer' ) => 'alert-info',
esc_html__( 'Warning Classic', 'js_composer' ) => 'alert-warning',
esc_html__( 'Success Classic', 'js_composer' ) => 'alert-success',
esc_html__( 'Error Classic', 'js_composer' ) => 'alert-danger',
);
return array(
'name' => esc_html__( 'Message Box', 'js_composer' ),
'base' => 'vc_message',
'icon' => 'icon-wpb-information-white',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Notification box', 'js_composer' ),
'params' => array(
array(
'type' => 'params_preset',
'heading' => esc_html__( 'Message Box Presets', 'js_composer' ),
'param_name' => 'color',
// due to backward compatibility, really it is message_box_type
'value' => '',
'options' => array(
array(
'label' => esc_html__( 'Custom', 'js_composer' ),
'value' => '',
'params' => array(),
),
array(
'label' => esc_html__( 'Informational', 'js_composer' ),
'value' => 'info',
'params' => array(
'message_box_color' => 'info',
'icon_type' => 'fontawesome',
'icon_fontawesome' => 'fas fa-info-circle',
),
),
array(
'label' => esc_html__( 'Warning', 'js_composer' ),
'value' => 'warning',
'params' => array(
'message_box_color' => 'warning',
'icon_type' => 'fontawesome',
'icon_fontawesome' => 'fas fa-exclamation-triangle',
),
),
array(
'label' => esc_html__( 'Success', 'js_composer' ),
'value' => 'success',
'params' => array(
'message_box_color' => 'success',
'icon_type' => 'fontawesome',
'icon_fontawesome' => 'fas fa-check',
),
),
array(
'label' => esc_html__( 'Error', 'js_composer' ),
'value' => 'danger',
'params' => array(
'message_box_color' => 'danger',
'icon_type' => 'fontawesome',
'icon_fontawesome' => 'fas fa-times',
),
),
array(
'label' => esc_html__( 'Informational Classic', 'js_composer' ),
'value' => 'alert-info',
// due to backward compatibility
'params' => array(
'message_box_color' => 'alert-info',
'icon_type' => 'pixelicons',
'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-info',
),
),
array(
'label' => esc_html__( 'Warning Classic', 'js_composer' ),
'value' => 'alert-warning',
// due to backward compatibility
'params' => array(
'message_box_color' => 'alert-warning',
'icon_type' => 'pixelicons',
'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-alert',
),
),
array(
'label' => esc_html__( 'Success Classic', 'js_composer' ),
'value' => 'alert-success',
// due to backward compatibility
'params' => array(
'message_box_color' => 'alert-success',
'icon_type' => 'pixelicons',
'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-tick',
),
),
array(
'label' => esc_html__( 'Error Classic', 'js_composer' ),
'value' => 'alert-danger',
// due to backward compatibility
'params' => array(
'message_box_color' => 'alert-danger',
'icon_type' => 'pixelicons',
'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-explanation',
),
),
),
'description' => esc_html__( 'Select predefined message box design or choose "Custom" for custom styling.', 'js_composer' ),
'param_holder_class' => 'vc_message-type vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'param_name' => 'message_box_style',
'value' => vc_get_shared( 'message_box_styles' ),
'description' => esc_html__( 'Select message box design style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape', 'js_composer' ),
'param_name' => 'style',
// due to backward compatibility message_box_shape
'std' => 'rounded',
'value' => array(
esc_html__( 'Square', 'js_composer' ) => 'square',
esc_html__( 'Rounded', 'js_composer' ) => 'rounded',
esc_html__( 'Round', 'js_composer' ) => 'round',
),
'description' => esc_html__( 'Select message box shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'message_box_color',
'value' => $custom_colors + vc_get_shared( 'colors' ),
'description' => esc_html__( 'Select message box color.', 'js_composer' ),
'param_holder_class' => 'vc_message-type vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon library', 'js_composer' ),
'value' => array(
esc_html__( 'Font Awesome 5', 'js_composer' ) => 'fontawesome',
esc_html__( 'Open Iconic', 'js_composer' ) => 'openiconic',
esc_html__( 'Typicons', 'js_composer' ) => 'typicons',
esc_html__( 'Entypo', 'js_composer' ) => 'entypo',
esc_html__( 'Linecons', 'js_composer' ) => 'linecons',
esc_html__( 'Pixel', 'js_composer' ) => 'pixelicons',
esc_html__( 'Mono Social', 'js_composer' ) => 'monosocial',
),
'param_name' => 'icon_type',
'description' => esc_html__( 'Choose icon library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_fontawesome',
'value' => 'fas fa-info-circle',
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'iconsPerPage' => 500,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'icon_type',
'value' => 'fontawesome',
),
'description' => esc_html__( 'Choose icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_openiconic',
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'openiconic',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'icon_type',
'value' => 'openiconic',
),
'description' => esc_html__( 'Choose icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_typicons',
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'typicons',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'icon_type',
'value' => 'typicons',
),
'description' => esc_html__( 'Choose icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_entypo',
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'entypo',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'icon_type',
'value' => 'entypo',
),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_linecons',
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'linecons',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'icon_type',
'value' => 'linecons',
),
'description' => esc_html__( 'Choose icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_pixelicons',
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'pixelicons',
'source' => $pixel_icons,
),
'dependency' => array(
'element' => 'icon_type',
'value' => 'pixelicons',
),
'description' => esc_html__( 'Choose icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_monosocial',
'value' => 'vc-mono vc-mono-fivehundredpx',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'monosocial',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'icon_type',
'value' => 'monosocial',
),
'description' => esc_html__( 'Choose icon from library.', 'js_composer' ),
),
array(
'type' => 'textarea_html',
'holder' => 'div',
'class' => 'messagebox_text',
'heading' => esc_html__( 'Message text', 'js_composer' ),
'param_name' => 'content',
'value' => '<p>' . esc_html__( 'I am message box. Click edit button to change this text.', 'js_composer' ) . '</p>',
),
vc_map_add_css_animation( false ),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcMessageView_Backend',
);

View File

@@ -0,0 +1,82 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Pie Chart', 'js_composer' ),
'base' => 'vc_pie',
'class' => '',
'icon' => 'icon-wpb-vc_pie',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Animated pie chart', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Value', 'js_composer' ),
'param_name' => 'value',
'description' => esc_html__( 'Enter value for graph (Note: choose range from 0 to 100).', 'js_composer' ),
'value' => '50',
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Label value', 'js_composer' ),
'param_name' => 'label_value',
'description' => esc_html__( 'Enter label for pie chart (Note: leaving empty will set value from "Value" field).', 'js_composer' ),
'value' => '',
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Units', 'js_composer' ),
'param_name' => 'units',
'description' => esc_html__( 'Enter measurement units (Example: %, px, points, etc. Note: graph value and units will be appended to graph title).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => vc_get_shared( 'colors-dashed' ) + array( esc_html__( 'Custom', 'js_composer' ) => 'custom' ),
'description' => esc_html__( 'Select pie chart color.', 'js_composer' ),
'admin_label' => true,
'param_holder_class' => 'vc_colored-dropdown',
'std' => 'grey',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom color', 'js_composer' ),
'param_name' => 'custom_color',
'description' => esc_html__( 'Select custom color.', 'js_composer' ),
'dependency' => array(
'element' => 'color',
'value' => array( 'custom' ),
),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,173 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Posts Slider', 'js_composer' ),
'base' => 'vc_posts_slider',
'icon' => 'icon-wpb-slideshow',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Slider with WP Posts', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Slider type', 'js_composer' ),
'param_name' => 'type',
'admin_label' => true,
'value' => array(
esc_html__( 'Flex slider fade', 'js_composer' ) => 'flexslider_fade',
esc_html__( 'Flex slider slide', 'js_composer' ) => 'flexslider_slide',
esc_html__( 'Nivo slider', 'js_composer' ) => 'nivo',
),
'description' => esc_html__( 'Select slider type.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Slider count', 'js_composer' ),
'param_name' => 'count',
'value' => 3,
'description' => esc_html__( 'Enter number of slides to display (Note: Enter "All" to display all slides).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Auto rotate', 'js_composer' ),
'param_name' => 'interval',
'value' => array(
3,
5,
10,
15,
esc_html__( 'Disable', 'js_composer' ) => 0,
),
'description' => esc_html__( 'Auto rotate slides each X seconds.', 'js_composer' ),
),
array(
'type' => 'posttypes',
'heading' => esc_html__( 'Post types', 'js_composer' ),
'param_name' => 'posttypes',
'description' => esc_html__( 'Select source for slider.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Description', 'js_composer' ),
'param_name' => 'slides_content',
'value' => array(
esc_html__( 'No description', 'js_composer' ) => '',
esc_html__( 'Teaser (Excerpt)', 'js_composer' ) => 'teaser',
),
'description' => esc_html__( 'Select source to use for description (Note: some sliders do not support it).', 'js_composer' ),
'dependency' => array(
'element' => 'type',
'value' => array(
'flexslider_fade',
'flexslider_slide',
),
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Output post title?', 'js_composer' ),
'param_name' => 'slides_title',
'description' => esc_html__( 'If selected, title will be printed before the teaser text.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => true ),
'dependency' => array(
'element' => 'slides_content',
'value' => array( 'teaser' ),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Link', 'js_composer' ),
'param_name' => 'link',
'value' => array(
esc_html__( 'Link to post', 'js_composer' ) => 'link_post',
esc_html__( 'Link to bigger image', 'js_composer' ) => 'link_image',
esc_html__( 'Open custom links', 'js_composer' ) => 'custom_link',
esc_html__( 'No link', 'js_composer' ) => 'link_no',
),
'description' => esc_html__( 'Link type.', 'js_composer' ),
),
array(
'type' => 'exploded_textarea_safe',
'heading' => esc_html__( 'Custom links', 'js_composer' ),
'param_name' => 'custom_links',
'value' => site_url() . '/',
'dependency' => array(
'element' => 'link',
'value' => 'custom_link',
),
'description' => esc_html__( 'Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Thumbnail size', 'js_composer' ),
'param_name' => 'thumb_size',
'value' => 'medium',
'description' => esc_html__( 'Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Post/Page IDs', 'js_composer' ),
'param_name' => 'posts_in',
'description' => esc_html__( 'Enter page/posts IDs to display only those records (Note: separate values by commas (,)). Use this field in conjunction with "Post types" field.', 'js_composer' ),
),
array(
'type' => 'exploded_textarea_safe',
'heading' => esc_html__( 'Categories', 'js_composer' ),
'param_name' => 'categories',
'description' => esc_html__( 'Enter categories by names to narrow output (Note: only listed categories will be displayed, divide categories with linebreak (Enter)).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Order by', 'js_composer' ),
'param_name' => 'orderby',
'value' => array(
'',
esc_html__( 'Date', 'js_composer' ) => 'date',
esc_html__( 'ID', 'js_composer' ) => 'ID',
esc_html__( 'Author', 'js_composer' ) => 'author',
esc_html__( 'Title', 'js_composer' ) => 'title',
esc_html__( 'Modified', 'js_composer' ) => 'modified',
esc_html__( 'Random', 'js_composer' ) => 'rand',
esc_html__( 'Comment count', 'js_composer' ) => 'comment_count',
esc_html__( 'Menu order', 'js_composer' ) => 'menu_order',
),
'description' => sprintf( esc_html__( 'Select how to sort retrieved posts. More at %s.', 'js_composer' ), '<a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Sort order', 'js_composer' ),
'param_name' => 'order',
'value' => array(
esc_html__( 'Descending', 'js_composer' ) => 'DESC',
esc_html__( 'Ascending', 'js_composer' ) => 'ASC',
),
'description' => sprintf( esc_html__( 'Select ascending or descending order. More at %s.', 'js_composer' ), '<a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,174 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$color_value = array_merge( array(
esc_html__( 'Default', 'js_composer' ) => '',
), array(
esc_html__( 'Classic Grey', 'js_composer' ) => 'bar_grey',
esc_html__( 'Classic Blue', 'js_composer' ) => 'bar_blue',
esc_html__( 'Classic Turquoise', 'js_composer' ) => 'bar_turquoise',
esc_html__( 'Classic Green', 'js_composer' ) => 'bar_green',
esc_html__( 'Classic Orange', 'js_composer' ) => 'bar_orange',
esc_html__( 'Classic Red', 'js_composer' ) => 'bar_red',
esc_html__( 'Classic Black', 'js_composer' ) => 'bar_black',
), vc_get_shared( 'colors-dashed' ), array(
esc_html__( 'Custom Color', 'js_composer' ) => 'custom',
) );
$bg_color_value = array_merge( array(
esc_html__( 'Classic Grey', 'js_composer' ) => 'bar_grey',
esc_html__( 'Classic Blue', 'js_composer' ) => 'bar_blue',
esc_html__( 'Classic Turquoise', 'js_composer' ) => 'bar_turquoise',
esc_html__( 'Classic Green', 'js_composer' ) => 'bar_green',
esc_html__( 'Classic Orange', 'js_composer' ) => 'bar_orange',
esc_html__( 'Classic Red', 'js_composer' ) => 'bar_red',
esc_html__( 'Classic Black', 'js_composer' ) => 'bar_black',
), vc_get_shared( 'colors-dashed' ), array(
esc_html__( 'Custom Color', 'js_composer' ) => 'custom',
) );
return array(
'name' => esc_html__( 'Progress Bar', 'js_composer' ),
'base' => 'vc_progress_bar',
'icon' => 'icon-wpb-graph',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Animated progress bar', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'param_group',
'heading' => esc_html__( 'Values', 'js_composer' ),
'param_name' => 'values',
'description' => esc_html__( 'Enter values for graph - value, title and color.', 'js_composer' ),
'value' => rawurlencode( wp_json_encode( array(
array(
'label' => esc_html__( 'Development', 'js_composer' ),
'value' => '90',
),
array(
'label' => esc_html__( 'Design', 'js_composer' ),
'value' => '80',
),
array(
'label' => esc_html__( 'Marketing', 'js_composer' ),
'value' => '70',
),
) ) ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Label', 'js_composer' ),
'param_name' => 'label',
'description' => esc_html__( 'Enter text used as title of bar.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Value', 'js_composer' ),
'param_name' => 'value',
'description' => esc_html__( 'Enter value of bar.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => $color_value,
'description' => esc_html__( 'Select single bar background color.', 'js_composer' ),
'admin_label' => true,
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom color', 'js_composer' ),
'param_name' => 'customcolor',
'description' => esc_html__( 'Select custom single bar background color.', 'js_composer' ),
'dependency' => array(
'element' => 'color',
'value' => array( 'custom' ),
),
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom text color', 'js_composer' ),
'param_name' => 'customtxtcolor',
'description' => esc_html__( 'Select custom single bar text color.', 'js_composer' ),
'dependency' => array(
'element' => 'color',
'value' => array( 'custom' ),
),
),
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Units', 'js_composer' ),
'param_name' => 'units',
'description' => esc_html__( 'Enter measurement units (Example: %, px, points, etc. Note: graph value and units will be appended to graph title).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'bgcolor',
'value' => $bg_color_value,
'description' => esc_html__( 'Select bar background color.', 'js_composer' ),
'admin_label' => true,
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Bar custom background color', 'js_composer' ),
'param_name' => 'custombgcolor',
'description' => esc_html__( 'Select custom background color for bars.', 'js_composer' ),
'dependency' => array(
'element' => 'bgcolor',
'value' => array( 'custom' ),
),
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Bar custom text color', 'js_composer' ),
'param_name' => 'customtxtcolor',
'description' => esc_html__( 'Select custom text color for bars.', 'js_composer' ),
'dependency' => array(
'element' => 'bgcolor',
'value' => array( 'custom' ),
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Options', 'js_composer' ),
'param_name' => 'options',
'value' => array(
esc_html__( 'Add stripes', 'js_composer' ) => 'striped',
esc_html__( 'Add animation (Note: visible only with striped bar).', 'js_composer' ) => 'animated',
),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,175 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Round Chart', 'js_composer' ),
'base' => 'vc_round_chart',
'class' => '',
'icon' => 'icon-wpb-vc-round-chart',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Pie and Doughnut charts', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Design', 'js_composer' ),
'param_name' => 'type',
'value' => array(
esc_html__( 'Pie', 'js_composer' ) => 'pie',
esc_html__( 'Doughnut', 'js_composer' ) => 'doughnut',
),
'description' => esc_html__( 'Select type of chart.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'description' => esc_html__( 'Select chart color style.', 'js_composer' ),
'param_name' => 'style',
'value' => array(
esc_html__( 'Flat', 'js_composer' ) => 'flat',
esc_html__( 'Modern', 'js_composer' ) => 'modern',
esc_html__( 'Custom', 'js_composer' ) => 'custom',
),
'dependency' => array(
'callback' => 'vcChartCustomColorDependency',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Gap', 'js_composer' ),
'param_name' => 'stroke_width',
'value' => array(
0 => 0,
1 => 1,
2 => 2,
5 => 5,
),
'description' => esc_html__( 'Select gap size.', 'js_composer' ),
'std' => 2,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Outline color', 'js_composer' ),
'param_name' => 'stroke_color',
'value' => vc_get_shared( 'colors-dashed' ) + array( esc_html__( 'Custom', 'js_composer' ) => 'custom' ),
'description' => esc_html__( 'Select outline color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
'std' => 'white',
'dependency' => array(
'element' => 'stroke_width',
'value_not_equal_to' => '0',
),
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom outline color', 'js_composer' ),
'param_name' => 'custom_stroke_color',
'description' => esc_html__( 'Select custom outline color.', 'js_composer' ),
'dependency' => array(
'element' => 'stroke_color',
'value' => array( 'custom' ),
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Show legend?', 'js_composer' ),
'param_name' => 'legend',
'description' => esc_html__( 'If checked, chart will have legend.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
'std' => 'yes',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Show hover values?', 'js_composer' ),
'param_name' => 'tooltips',
'description' => esc_html__( 'If checked, chart will show values on hover.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
'std' => 'yes',
),
array(
'type' => 'param_group',
'heading' => esc_html__( 'Values', 'js_composer' ),
'param_name' => 'values',
'value' => rawurlencode( wp_json_encode( array(
array(
'title' => esc_html__( 'One', 'js_composer' ),
'value' => '60',
'color' => 'blue',
),
array(
'title' => esc_html__( 'Two', 'js_composer' ),
'value' => '40',
'color' => 'pink',
),
) ) ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter title for chart area.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Value', 'js_composer' ),
'param_name' => 'value',
'description' => esc_html__( 'Enter value for area.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => vc_get_shared( 'colors-dashed' ),
'description' => esc_html__( 'Select area color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom color', 'js_composer' ),
'param_name' => 'custom_color',
'description' => esc_html__( 'Select custom area color.', 'js_composer' ),
),
),
'callbacks' => array(
'after_add' => 'vcChartParamAfterAddCallback',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Animation', 'js_composer' ),
'description' => esc_html__( 'Select animation style.', 'js_composer' ),
'param_name' => 'animation',
'value' => vc_get_shared( 'animation styles' ),
'std' => 'easeInOutCubic',
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,85 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Separator', 'js_composer' ),
'base' => 'vc_separator',
'icon' => 'icon-wpb-ui-separator',
'show_settings_on_create' => true,
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Horizontal separator line', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ),
'std' => 'grey',
'description' => esc_html__( 'Select color of separator.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'param_name' => 'align',
'value' => array(
esc_html__( 'Center', 'js_composer' ) => 'align_center',
esc_html__( 'Left', 'js_composer' ) => 'align_left',
esc_html__( 'Right', 'js_composer' ) => 'align_right',
),
'description' => esc_html__( 'Select separator alignment.', 'js_composer' ),
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom Border Color', 'js_composer' ),
'param_name' => 'accent_color',
'description' => esc_html__( 'Select border color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'color',
'value' => array( 'custom' ),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'param_name' => 'style',
'value' => vc_get_shared( 'separator styles' ),
'description' => esc_html__( 'Separator display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Border width', 'js_composer' ),
'param_name' => 'border_width',
'value' => vc_get_shared( 'separator border widths' ),
'description' => esc_html__( 'Select border width (pixels).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Element width', 'js_composer' ),
'param_name' => 'el_width',
'value' => vc_get_shared( 'separator widths' ),
'description' => esc_html__( 'Select separator width (percentage).', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,239 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Single Image', 'js_composer' ),
'base' => 'vc_single_image',
'icon' => 'icon-wpb-single-image',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Simple image with CSS animation', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Image source', 'js_composer' ),
'param_name' => 'source',
'value' => array(
esc_html__( 'Media library', 'js_composer' ) => 'media_library',
esc_html__( 'External link', 'js_composer' ) => 'external_link',
esc_html__( 'Featured Image', 'js_composer' ) => 'featured_image',
),
'std' => 'media_library',
'description' => esc_html__( 'Select image source.', 'js_composer' ),
),
array(
'type' => 'attach_image',
'heading' => esc_html__( 'Image', 'js_composer' ),
'param_name' => 'image',
'value' => '',
'description' => esc_html__( 'Select image from media library.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'media_library',
),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'External link', 'js_composer' ),
'param_name' => 'custom_src',
'description' => esc_html__( 'Select external link.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'external_link',
),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Image size', 'js_composer' ),
'param_name' => 'img_size',
'value' => 'thumbnail',
'description' => esc_html__( 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => array(
'media_library',
'featured_image',
),
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Image size', 'js_composer' ),
'param_name' => 'external_img_size',
'value' => '',
'description' => esc_html__( 'Enter image size in pixels. Example: 200x100 (Width x Height).', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'external_link',
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Caption', 'js_composer' ),
'param_name' => 'caption',
'description' => esc_html__( 'Enter text for image caption.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'external_link',
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Add caption?', 'js_composer' ),
'param_name' => 'add_caption',
'description' => esc_html__( 'Add image caption.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
'dependency' => array(
'element' => 'source',
'value' => array(
'media_library',
'featured_image',
),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Image alignment', 'js_composer' ),
'param_name' => 'alignment',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
'description' => esc_html__( 'Select image alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Image style', 'js_composer' ),
'param_name' => 'style',
'value' => vc_get_shared( 'single image styles' ),
'description' => esc_html__( 'Select image display style.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => array(
'media_library',
'featured_image',
),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Image style', 'js_composer' ),
'param_name' => 'external_style',
'value' => vc_get_shared( 'single image external styles' ),
'description' => esc_html__( 'Select image display style.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'external_link',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Border color', 'js_composer' ),
'param_name' => 'border_color',
'value' => vc_get_shared( 'colors' ),
'std' => 'grey',
'dependency' => array(
'element' => 'style',
'value' => array(
'vc_box_border',
'vc_box_border_circle',
'vc_box_outline',
'vc_box_outline_circle',
'vc_box_border_circle_2',
'vc_box_outline_circle_2',
),
),
'description' => esc_html__( 'Border color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Border color', 'js_composer' ),
'param_name' => 'external_border_color',
'value' => vc_get_shared( 'colors' ),
'std' => 'grey',
'dependency' => array(
'element' => 'external_style',
'value' => array(
'vc_box_border',
'vc_box_border_circle',
'vc_box_outline',
'vc_box_outline_circle',
),
),
'description' => esc_html__( 'Border color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'On click action', 'js_composer' ),
'param_name' => 'onclick',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Link to large image', 'js_composer' ) => 'img_link_large',
esc_html__( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
esc_html__( 'Open custom link', 'js_composer' ) => 'custom_link',
esc_html__( 'Zoom', 'js_composer' ) => 'zoom',
),
'description' => esc_html__( 'Select action for click action.', 'js_composer' ),
'std' => '',
),
array(
'type' => 'href',
'heading' => esc_html__( 'Image link', 'js_composer' ),
'param_name' => 'link',
'description' => esc_html__( 'Enter URL if you want this image to have a link (Note: parameters like "mailto:" are also accepted).', 'js_composer' ),
'dependency' => array(
'element' => 'onclick',
'value' => 'custom_link',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Link Target', 'js_composer' ),
'param_name' => 'img_link_target',
'value' => vc_target_param_list(),
'dependency' => array(
'element' => 'onclick',
'value' => array(
'custom_link',
'img_link_large',
),
),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
// backward compatibility. since 4.6
array(
'type' => 'hidden',
'param_name' => 'img_link_large',
),
),
);

View File

@@ -0,0 +1,145 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once 'vc-icon-element.php';
$icon_params = vc_icon_element_params();
$icons_params = vc_map_integrate_shortcode( $icon_params, 'i_', esc_html__( 'Icon', 'js_composer' ), array(
'exclude' => array(
'align',
'css',
'el_class',
'el_id',
'link',
'css_animation',
),
// we need only type, icon_fontawesome, icon_blabla..., NOT color and etc
), array(
'element' => 'add_icon',
'value' => 'true',
) );
// populate integrated vc_icons params.
if ( is_array( $icons_params ) && ! empty( $icons_params ) ) {
foreach ( $icons_params as $key => $param ) {
if ( is_array( $param ) && ! empty( $param ) ) {
if ( isset( $param['admin_label'] ) ) {
// remove admin label
unset( $icons_params[ $key ]['admin_label'] );
}
}
}
}
return array(
'name' => esc_html__( 'Separator with Text', 'js_composer' ),
'base' => 'vc_text_separator',
'icon' => 'icon-wpb-ui-separator-label',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Horizontal separator line with heading', 'js_composer' ),
'params' => array_merge( array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Title', 'js_composer' ),
'param_name' => 'title',
'holder' => 'div',
'value' => esc_html__( 'Title', 'js_composer' ),
'description' => esc_html__( 'Add text to separator.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Add icon?', 'js_composer' ),
'param_name' => 'add_icon',
),
), $icons_params, array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Title position', 'js_composer' ),
'param_name' => 'title_align',
'value' => array(
esc_html__( 'Center', 'js_composer' ) => 'separator_align_center',
esc_html__( 'Left', 'js_composer' ) => 'separator_align_left',
esc_html__( 'Right', 'js_composer' ) => 'separator_align_right',
),
'description' => esc_html__( 'Select title location.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Separator alignment', 'js_composer' ),
'param_name' => 'align',
'value' => array(
esc_html__( 'Center', 'js_composer' ) => 'align_center',
esc_html__( 'Left', 'js_composer' ) => 'align_left',
esc_html__( 'Right', 'js_composer' ) => 'align_right',
),
'description' => esc_html__( 'Select separator alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ),
'std' => 'grey',
'description' => esc_html__( 'Select color of separator.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom Color', 'js_composer' ),
'param_name' => 'accent_color',
'description' => esc_html__( 'Custom separator color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'color',
'value' => array( 'custom' ),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'param_name' => 'style',
'value' => vc_get_shared( 'separator styles' ),
'description' => esc_html__( 'Separator display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Border width', 'js_composer' ),
'param_name' => 'border_width',
'value' => vc_get_shared( 'separator border widths' ),
'description' => esc_html__( 'Select border width (pixels).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Element width', 'js_composer' ),
'param_name' => 'el_width',
'value' => vc_get_shared( 'separator widths' ),
'description' => esc_html__( 'Separator element width in percents.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'hidden',
'param_name' => 'layout',
'value' => 'separator_with_text',
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
) ),
'js_view' => 'VcTextSeparatorView',
);

View File

@@ -0,0 +1,109 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once vc_path_dir( 'CONFIG_DIR', 'content/vc-custom-heading-element.php' );
$cta_custom_heading = vc_map_integrate_shortcode( vc_custom_heading_element_params(), 'custom_', esc_html__( 'Heading', 'js_composer' ), array(
'exclude' => array(
'source',
'text',
'css',
'link',
),
), array(
'element' => 'use_custom_heading',
'value' => 'true',
) );
$params = array_merge( array(
array(
'type' => 'textfield',
'holder' => 'h4',
'class' => 'vc_toggle_title',
'heading' => esc_html__( 'Toggle title', 'js_composer' ),
'param_name' => 'title',
'value' => esc_html__( 'Toggle title', 'js_composer' ),
'description' => esc_html__( 'Enter title of toggle block.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-9',
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use custom font?', 'js_composer' ),
'param_name' => 'use_custom_heading',
'description' => esc_html__( 'Enable Google fonts.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-3',
),
array(
'type' => 'textarea_html',
'holder' => 'div',
'class' => 'vc_toggle_content',
'heading' => esc_html__( 'Toggle content', 'js_composer' ),
'param_name' => 'content',
'value' => '<p>' . esc_html__( 'Toggle content goes here, click edit button to change this text.', 'js_composer' ) . '</p>',
'description' => esc_html__( 'Toggle block content.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'js_composer' ),
'param_name' => 'style',
'value' => vc_get_shared( 'toggle styles' ),
'description' => esc_html__( 'Select toggle design style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon color', 'js_composer' ),
'param_name' => 'color',
'value' => array( esc_html__( 'Default', 'js_composer' ) => 'default' ) + vc_get_shared( 'colors' ),
'description' => esc_html__( 'Select icon color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Size', 'js_composer' ),
'param_name' => 'size',
'value' => array_diff_key( vc_get_shared( 'sizes' ), array( 'Mini' => '' ) ),
'std' => 'md',
'description' => esc_html__( 'Select toggle size', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Default state', 'js_composer' ),
'param_name' => 'open',
'value' => array(
esc_html__( 'Closed', 'js_composer' ) => 'false',
esc_html__( 'Open', 'js_composer' ) => 'true',
),
'description' => esc_html__( 'Select "Open" if you want toggle to be open by default.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
), $cta_custom_heading, array(
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
) );
return array(
'name' => esc_html__( 'FAQ', 'js_composer' ),
'base' => 'vc_toggle',
'icon' => 'icon-wpb-toggle-small-expand',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Toggle element for Q&A block', 'js_composer' ),
'params' => $params,
'js_view' => 'VcToggleView',
);

View File

@@ -0,0 +1,87 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Video Player', 'js_composer' ),
'base' => 'vc_video',
'icon' => 'icon-wpb-film-youtube',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Embed YouTube/Vimeo player', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Video link', 'js_composer' ),
'param_name' => 'link',
'value' => 'https://vimeo.com/51589652',
'admin_label' => true,
'description' => sprintf( esc_html__( 'Enter link to video (Note: read more about available formats at WordPress %scodex page%s).', 'js_composer' ), '<a href="https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">', '</a>' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Video width', 'js_composer' ),
'param_name' => 'el_width',
'value' => array(
'100%' => '100',
'90%' => '90',
'80%' => '80',
'70%' => '70',
'60%' => '60',
'50%' => '50',
'40%' => '40',
'30%' => '30',
'20%' => '20',
'10%' => '10',
),
'description' => esc_html__( 'Select video width (percentage).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Video aspect ration', 'js_composer' ),
'param_name' => 'el_aspect',
'value' => array(
'16:9' => '169',
'4:3' => '43',
'2.35:1' => '235',
),
'description' => esc_html__( 'Select video aspect ratio.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'param_name' => 'align',
'description' => esc_html__( 'Select video alignment.', 'js_composer' ),
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,95 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'ZigZag Separator', 'js_composer' ),
'base' => 'vc_zigzag',
'icon' => 'vc_icon-vc-zigzag',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Horizontal zigzag separator line', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ),
'std' => 'grey',
'description' => esc_html__( 'Select color of separator.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom Color', 'js_composer' ),
'param_name' => 'custom_color',
'description' => esc_html__( 'Select color for your element.', 'js_composer' ),
'dependency' => array(
'element' => 'color',
'value' => array( 'custom' ),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'param_name' => 'align',
'value' => array(
esc_html__( 'Center', 'js_composer' ) => 'center',
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
),
'description' => esc_html__( 'Select separator alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Element width', 'js_composer' ),
'param_name' => 'el_width',
'value' => array(
'100%' => '100',
'90%' => '90',
'80%' => '80',
'70%' => '70',
'60%' => '60',
'50%' => '50',
'40%' => '40',
'30%' => '30',
'20%' => '20',
'10%' => '10',
),
'description' => esc_html__( 'Select separator width (percentage).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Border width', 'js_composer' ),
'param_name' => 'el_border_width',
'std' => '12',
'value' => array(
esc_html__( 'Extra small', 'js_composer' ) => '8',
esc_html__( 'Small', 'js_composer' ) => '10',
esc_html__( 'Medium', 'js_composer' ) => '12',
esc_html__( 'Large', 'js_composer' ) => '15',
esc_html__( 'Extra large', 'js_composer' ) => '20',
),
'description' => esc_html__( 'Select separator border width.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,108 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
function vc_custom_heading_element_params() {
return array(
'name' => esc_html__( 'Custom Heading', 'js_composer' ),
'base' => 'vc_custom_heading',
'icon' => 'icon-wpb-ui-custom_heading',
'show_settings_on_create' => true,
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Text with Google fonts', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Text source', 'js_composer' ),
'param_name' => 'source',
'value' => array(
esc_html__( 'Custom text', 'js_composer' ) => '',
esc_html__( 'Post or Page Title', 'js_composer' ) => 'post_title',
),
'std' => '',
'description' => esc_html__( 'Select text source.', 'js_composer' ),
),
array(
'type' => 'textarea',
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'text',
'admin_label' => true,
'value' => esc_html__( 'This is custom heading element', 'js_composer' ),
'description' => esc_html__( 'Note: If you are using non-latin characters be sure to activate them under Settings/WPBakery Page Builder/General Settings.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'is_empty' => true,
),
),
array(
'type' => 'vc_link',
'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
'param_name' => 'link',
'description' => esc_html__( 'Add link to custom heading.', 'js_composer' ),
// compatible with btn2 and converted from href{btn1}
),
array(
'type' => 'font_container',
'param_name' => 'font_container',
'value' => 'tag:h2|text_align:left',
'settings' => array(
'fields' => array(
'tag' => 'h2',
// default value h2
'text_align',
'font_size',
'line_height',
'color',
'tag_description' => esc_html__( 'Select element tag.', 'js_composer' ),
'text_align_description' => esc_html__( 'Select text alignment.', 'js_composer' ),
'font_size_description' => esc_html__( 'Enter font size.', 'js_composer' ),
'line_height_description' => esc_html__( 'Enter line height.', 'js_composer' ),
'color_description' => esc_html__( 'Select heading color.', 'js_composer' ),
),
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use theme default font family?', 'js_composer' ),
'param_name' => 'use_theme_fonts',
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
'description' => esc_html__( 'Use font family from the theme.', 'js_composer' ),
),
array(
'type' => 'google_fonts',
'param_name' => 'google_fonts',
'value' => 'font_family:Abril%20Fatface%3Aregular|font_style:400%20regular%3A400%3Anormal',
'settings' => array(
'fields' => array(
'font_family_description' => esc_html__( 'Select font family.', 'js_composer' ),
'font_style_description' => esc_html__( 'Select font styling.', 'js_composer' ),
),
),
'dependency' => array(
'element' => 'use_theme_fonts',
'value_not_equal_to' => 'yes',
),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);
}

View File

@@ -0,0 +1,264 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
function vc_icon_element_params() {
return array(
'name' => esc_html__( 'Icon', 'js_composer' ),
'base' => 'vc_icon',
'icon' => 'icon-wpb-vc_icon',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Eye catching icons from libraries', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon library', 'js_composer' ),
'value' => array(
esc_html__( 'Font Awesome 5', 'js_composer' ) => 'fontawesome',
esc_html__( 'Open Iconic', 'js_composer' ) => 'openiconic',
esc_html__( 'Typicons', 'js_composer' ) => 'typicons',
esc_html__( 'Entypo', 'js_composer' ) => 'entypo',
esc_html__( 'Linecons', 'js_composer' ) => 'linecons',
esc_html__( 'Mono Social', 'js_composer' ) => 'monosocial',
esc_html__( 'Material', 'js_composer' ) => 'material',
),
'admin_label' => true,
'param_name' => 'type',
'description' => esc_html__( 'Select icon library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_fontawesome',
'value' => 'fas fa-adjust',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'iconsPerPage' => 500,
// default 100, how many icons per/page to display, we use (big number) to display all icons in single page
),
'dependency' => array(
'element' => 'type',
'value' => 'fontawesome',
),
'description' => esc_html__( 'Select icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_openiconic',
'value' => 'vc-oi vc-oi-dial',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'openiconic',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'type',
'value' => 'openiconic',
),
'description' => esc_html__( 'Select icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_typicons',
'value' => 'typcn typcn-adjust-brightness',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'typicons',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'type',
'value' => 'typicons',
),
'description' => esc_html__( 'Select icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_entypo',
'value' => 'entypo-icon entypo-icon-note',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'entypo',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'type',
'value' => 'entypo',
),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_linecons',
'value' => 'vc_li vc_li-heart',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'linecons',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'type',
'value' => 'linecons',
),
'description' => esc_html__( 'Select icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_monosocial',
'value' => 'vc-mono vc-mono-fivehundredpx',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'monosocial',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'type',
'value' => 'monosocial',
),
'description' => esc_html__( 'Select icon from library.', 'js_composer' ),
),
array(
'type' => 'iconpicker',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon_material',
'value' => 'vc-material vc-material-cake',
// default value to backend editor admin_label
'settings' => array(
'emptyIcon' => false,
// default true, display an "EMPTY" icon?
'type' => 'material',
'iconsPerPage' => 4000,
// default 100, how many icons per/page to display
),
'dependency' => array(
'element' => 'type',
'value' => 'material',
),
'description' => esc_html__( 'Select icon from library.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon color', 'js_composer' ),
'param_name' => 'color',
'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ),
'description' => esc_html__( 'Select icon color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom color', 'js_composer' ),
'param_name' => 'custom_color',
'description' => esc_html__( 'Select custom icon color.', 'js_composer' ),
'dependency' => array(
'element' => 'color',
'value' => 'custom',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Background shape', 'js_composer' ),
'param_name' => 'background_style',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Circle', 'js_composer' ) => 'rounded',
esc_html__( 'Square', 'js_composer' ) => 'boxed',
esc_html__( 'Rounded', 'js_composer' ) => 'rounded-less',
esc_html__( 'Outline Circle', 'js_composer' ) => 'rounded-outline',
esc_html__( 'Outline Square', 'js_composer' ) => 'boxed-outline',
esc_html__( 'Outline Rounded', 'js_composer' ) => 'rounded-less-outline',
),
'description' => esc_html__( 'Select background shape and style for icon.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Background color', 'js_composer' ),
'param_name' => 'background_color',
'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ),
'std' => 'grey',
'description' => esc_html__( 'Select background color for icon.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
'dependency' => array(
'element' => 'background_style',
'not_empty' => true,
),
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Custom background color', 'js_composer' ),
'param_name' => 'custom_background_color',
'description' => esc_html__( 'Select custom icon background color.', 'js_composer' ),
'dependency' => array(
'element' => 'background_color',
'value' => 'custom',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Size', 'js_composer' ),
'param_name' => 'size',
'value' => array_merge( vc_get_shared( 'sizes' ), array( 'Extra Large' => 'xl' ) ),
'std' => 'md',
'description' => esc_html__( 'Icon size.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon alignment', 'js_composer' ),
'param_name' => 'align',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
'description' => esc_html__( 'Select icon alignment.', 'js_composer' ),
),
array(
'type' => 'vc_link',
'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
'param_name' => 'link',
'description' => esc_html__( 'Add link to icon.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcIconElementView_Backend',
);
}

View File

@@ -0,0 +1,29 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Old Section', 'js_composer' ),
'base' => 'vc_accordion_tab',
'allowed_container_element' => 'vc_row',
'is_container' => true,
'deprecated' => '4.6',
'content_element' => false,
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Title', 'js_composer' ),
'param_name' => 'title',
'value' => esc_html__( 'Section', 'js_composer' ),
'description' => esc_html__( 'Enter accordion section title.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Section ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter optional row ID. Make sure it is unique, and it is valid as w3c specification: %s (Must not have spaces)', 'js_composer' ), '<a target="_blank" href="https://www.w3schools.com/tags/att_global_id.asp">' . esc_html__( 'link', 'js_composer' ) . '</a>' ),
),
),
'js_view' => 'VcAccordionTabView',
);

View File

@@ -0,0 +1,63 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Old Accordion', 'js_composer' ),
'base' => 'vc_accordion',
'show_settings_on_create' => false,
'is_container' => true,
'icon' => 'icon-wpb-ui-accordion',
'deprecated' => '4.6',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Collapsible content panels', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Active section', 'js_composer' ),
'param_name' => 'active_tab',
'value' => 1,
'description' => esc_html__( 'Enter section number to be active on load or enter "false" to collapse all sections.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Allow collapse all sections?', 'js_composer' ),
'param_name' => 'collapsible',
'description' => esc_html__( 'If checked, it is allowed to collapse all sections.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Disable keyboard interactions?', 'js_composer' ),
'param_name' => 'disable_keyboard',
'description' => esc_html__( 'If checked, disables keyboard arrow interactions (Keys: Left, Up, Right, Down, Space).', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
'custom_markup' => '
<div class="wpb_accordion_holder wpb_holder clearfix vc_container_for_children">
%content%
</div>
<div class="tab_controls">
<a class="add_tab" title="' . esc_html__( 'Add section', 'js_composer' ) . '"><span class="vc_icon"></span> <span class="tab-label">' . esc_html__( 'Add section', 'js_composer' ) . '</span></a>
</div>
',
'default_content' => '
[vc_accordion_tab title="' . esc_html__( 'Section 1', 'js_composer' ) . '"][/vc_accordion_tab]
[vc_accordion_tab title="' . esc_html__( 'Section 2', 'js_composer' ) . '"][/vc_accordion_tab]
',
'js_view' => 'VcAccordionView',
);

View File

@@ -0,0 +1,74 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$colors_arr = vc_colors_arr();
$size_arr = vc_size_arr();
$icons_arr = vc_icons_arr();
return array(
'name' => esc_html__( 'Old Button', 'js_composer' ) . ' 1',
'base' => 'vc_button',
'icon' => 'icon-wpb-ui-button',
'category' => esc_html__( 'Content', 'js_composer' ),
'deprecated' => '4.5',
'content_element' => false,
'description' => esc_html__( 'Eye catching button', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Text', 'js_composer' ),
'holder' => 'button',
'class' => 'wpb_button',
'param_name' => 'title',
'value' => esc_html__( 'Text on the button', 'js_composer' ),
'description' => esc_html__( 'Enter text on the button.', 'js_composer' ),
),
array(
'type' => 'href',
'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
'param_name' => 'href',
'description' => esc_html__( 'Enter button link.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Target', 'js_composer' ),
'param_name' => 'target',
'value' => vc_target_param_list(),
'dependency' => array(
'element' => 'href',
'not_empty' => true,
'callback' => 'vc_button_param_target_callback',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => $colors_arr,
'description' => esc_html__( 'Select button color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'param_name' => 'icon',
'value' => $icons_arr,
'description' => esc_html__( 'Select icon to display on button.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Size', 'js_composer' ),
'param_name' => 'size',
'value' => $size_arr,
'description' => esc_html__( 'Select button size.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
'js_view' => 'VcButtonView',
);

View File

@@ -0,0 +1,75 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Old Button', 'js_composer' ) . ' 2',
'base' => 'vc_button2',
'icon' => 'icon-wpb-ui-button',
'deprecated' => '4.5',
'content_element' => false,
'category' => array(
esc_html__( 'Content', 'js_composer' ),
),
'description' => esc_html__( 'Eye catching button', 'js_composer' ),
'params' => array(
array(
'type' => 'vc_link',
'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
'param_name' => 'link',
'description' => esc_html__( 'Add link to button.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Text', 'js_composer' ),
'holder' => 'button',
'class' => 'vc_btn',
'param_name' => 'title',
'value' => esc_html__( 'Text on the button', 'js_composer' ),
'description' => esc_html__( 'Enter text on the button.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'param_name' => 'align',
'value' => array(
esc_html__( 'Inline', 'js_composer' ) => 'inline',
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Center', 'js_composer' ) => 'center',
esc_html__( 'Right', 'js_composer' ) => 'right',
),
'description' => esc_html__( 'Select button alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape', 'js_composer' ),
'param_name' => 'style',
'value' => vc_get_shared( 'button styles' ),
'description' => esc_html__( 'Select button display style and shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => vc_get_shared( 'colors' ),
'description' => esc_html__( 'Select button color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Size', 'js_composer' ),
'param_name' => 'size',
'value' => vc_get_shared( 'sizes' ),
'std' => 'md',
'description' => esc_html__( 'Select button size.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
'js_view' => 'VcButton2View',
);

View File

@@ -0,0 +1,92 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$colors_arr = vc_colors_arr();
$icons_arr = vc_icons_arr();
$size_arr = vc_size_arr();
return array(
'name' => esc_html__( 'Old Call to Action', 'js_composer' ),
'base' => 'vc_cta_button',
'icon' => 'icon-wpb-call-to-action',
'deprecated' => '4.5',
'content_element' => false,
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Catch visitors attention with CTA block', 'js_composer' ),
'params' => array(
array(
'type' => 'textarea',
'admin_label' => true,
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'call_text',
'value' => esc_html__( 'Click edit button to change this text.', 'js_composer' ),
'description' => esc_html__( 'Enter text content.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Text on the button', 'js_composer' ),
'param_name' => 'title',
'value' => esc_html__( 'Text on the button', 'js_composer' ),
'description' => esc_html__( 'Enter text on the button.', 'js_composer' ),
),
array(
'type' => 'href',
'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
'param_name' => 'href',
'description' => esc_html__( 'Enter button link.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Target', 'js_composer' ),
'param_name' => 'target',
'value' => vc_target_param_list(),
'dependency' => array(
'element' => 'href',
'not_empty' => true,
'callback' => 'vc_cta_button_param_target_callback',
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => $colors_arr,
'description' => esc_html__( 'Select button color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Button icon', 'js_composer' ),
'param_name' => 'icon',
'value' => $icons_arr,
'description' => esc_html__( 'Select icon to display on button.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Size', 'js_composer' ),
'param_name' => 'size',
'value' => $size_arr,
'description' => esc_html__( 'Select button size.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Button position', 'js_composer' ),
'param_name' => 'position',
'value' => array(
esc_html__( 'Right', 'js_composer' ) => 'cta_align_right',
esc_html__( 'Left', 'js_composer' ) => 'cta_align_left',
esc_html__( 'Bottom', 'js_composer' ) => 'cta_align_bottom',
),
'description' => esc_html__( 'Select button alignment.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
'js_view' => 'VcCallToActionView',
);

View File

@@ -0,0 +1,118 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Old Call to Action Button', 'js_composer' ) . ' 2',
'base' => 'vc_cta_button2',
'icon' => 'icon-wpb-call-to-action',
'deprecated' => '4.5',
'content_element' => false,
'category' => array( esc_html__( 'Content', 'js_composer' ) ),
'description' => esc_html__( 'Catch visitors attention with CTA block', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Heading', 'js_composer' ),
'admin_label' => true,
'param_name' => 'h2',
'value' => esc_html__( 'Hey! I am first heading line feel free to change me', 'js_composer' ),
'description' => esc_html__( 'Enter text for heading line.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Subheading', 'js_composer' ),
'param_name' => 'h4',
'value' => '',
'description' => esc_html__( 'Enter text for subheading line.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape', 'js_composer' ),
'param_name' => 'style',
'value' => vc_get_shared( 'cta styles' ),
'description' => esc_html__( 'Select display shape and style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Width', 'js_composer' ),
'param_name' => 'el_width',
'value' => vc_get_shared( 'cta widths' ),
'description' => esc_html__( 'Select element width (percentage).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Text alignment', 'js_composer' ),
'param_name' => 'txt_align',
'value' => vc_get_shared( 'text align' ),
'description' => esc_html__( 'Select text alignment in "Call to Action" block.', 'js_composer' ),
),
array(
'type' => 'colorpicker',
'heading' => esc_html__( 'Background color', 'js_composer' ),
'param_name' => 'accent_color',
'description' => esc_html__( 'Select background color.', 'js_composer' ),
),
array(
'type' => 'textarea_html',
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'content',
'value' => esc_html__( 'I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ),
),
array(
'type' => 'vc_link',
'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
'param_name' => 'link',
'description' => esc_html__( 'Add link to button (Important: adding link automatically adds button).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Text on the button', 'js_composer' ),
'param_name' => 'title',
'value' => esc_html__( 'Text on the button', 'js_composer' ),
'description' => esc_html__( 'Add text on the button.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape', 'js_composer' ),
'param_name' => 'btn_style',
'value' => vc_get_shared( 'button styles' ),
'description' => esc_html__( 'Select button display style and shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => vc_get_shared( 'colors' ),
'description' => esc_html__( 'Select button color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Size', 'js_composer' ),
'param_name' => 'size',
'value' => vc_get_shared( 'sizes' ),
'std' => 'md',
'description' => esc_html__( 'Select button size.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Button position', 'js_composer' ),
'param_name' => 'position',
'value' => array(
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
),
'description' => esc_html__( 'Select button alignment.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,70 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Google+ Button', 'js_composer' ),
'base' => 'vc_googleplus',
'icon' => 'icon-wpb-application-plus',
'deprecated' => '6.0',
'category' => esc_html__( 'Social', 'js_composer' ),
'description' => esc_html__( 'Recommend on Google', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Button size', 'js_composer' ),
'param_name' => 'type',
'admin_label' => true,
'value' => array(
esc_html__( 'Standard', 'js_composer' ) => 'standard',
esc_html__( 'Small', 'js_composer' ) => 'small',
esc_html__( 'Medium', 'js_composer' ) => 'medium',
esc_html__( 'Tall', 'js_composer' ) => 'tall',
),
'description' => esc_html__( 'Select button size.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Annotation', 'js_composer' ),
'param_name' => 'annotation',
'admin_label' => true,
'value' => array(
esc_html__( 'Bubble', 'js_composer' ) => 'bubble',
esc_html__( 'Inline', 'js_composer' ) => 'inline',
esc_html__( 'None', 'js_composer' ) => 'none',
),
'std' => 'bubble',
'description' => esc_html__( 'Select type of annotation.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Width', 'js_composer' ),
'param_name' => 'widget_width',
'dependency' => array(
'element' => 'annotation',
'value' => array( 'inline' ),
),
'description' => esc_html__( 'Minimum width of 120px to display. If annotation is set to "inline", this parameter sets the width in pixels to use for button and its inline annotation. Default width is 450px.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,27 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Old Tab', 'js_composer' ),
'base' => 'vc_tab',
'allowed_container_element' => 'vc_row',
'is_container' => true,
'content_element' => false,
'deprecated' => '4.6',
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter title of tab.', 'js_composer' ),
),
array(
'type' => 'tab_id',
'heading' => esc_html__( 'Tab ID', 'js_composer' ),
'param_name' => 'tab_id',
),
),
'js_view' => 'VcTabView',
);

View File

@@ -0,0 +1,54 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Old Tabs', 'js_composer' ),
'base' => 'vc_tabs',
'show_settings_on_create' => false,
'is_container' => true,
'icon' => 'icon-wpb-ui-tab-content',
'category' => esc_html__( 'Content', 'js_composer' ),
'deprecated' => '4.6',
'description' => esc_html__( 'Tabbed content', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Auto rotate', 'js_composer' ),
'param_name' => 'interval',
'value' => array(
esc_html__( 'Disable', 'js_composer' ) => 0,
3,
5,
10,
15,
),
'std' => 0,
'description' => esc_html__( 'Auto rotate tabs each X seconds.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
'custom_markup' => '
<div class="wpb_tabs_holder wpb_holder vc_container_for_children">
<ul class="tabs_controls">
</ul>
%content%
</div>',
'default_content' => '
[vc_tab title="' . esc_html__( 'Tab 1', 'js_composer' ) . '" tab_id=""][/vc_tab]
[vc_tab title="' . esc_html__( 'Tab 2', 'js_composer' ) . '" tab_id=""][/vc_tab]
',
'js_view' => 'VcTabsView',
);

View File

@@ -0,0 +1,56 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Old Tour', 'js_composer' ),
'base' => 'vc_tour',
'show_settings_on_create' => false,
'is_container' => true,
'container_not_allowed' => true,
'deprecated' => '4.6',
'icon' => 'icon-wpb-ui-tab-content-vertical',
'category' => esc_html__( 'Content', 'js_composer' ),
'wrapper_class' => 'vc_clearfix',
'description' => esc_html__( 'Vertical tabbed content', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Auto rotate slides', 'js_composer' ),
'param_name' => 'interval',
'value' => array(
esc_html__( 'Disable', 'js_composer' ) => 0,
3,
5,
10,
15,
),
'std' => 0,
'description' => esc_html__( 'Auto rotate slides each X seconds.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
'custom_markup' => '
<div class="wpb_tabs_holder wpb_holder vc_clearfix vc_container_for_children">
<ul class="tabs_controls">
</ul>
%content%
</div>',
'default_content' => '
[vc_tab title="' . esc_html__( 'Tab 1', 'js_composer' ) . '" tab_id=""][/vc_tab]
[vc_tab title="' . esc_html__( 'Tab 2', 'js_composer' ) . '" tab_id=""][/vc_tab]
',
'js_view' => 'VcTabsView',
);

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once dirname( __FILE__ ) . '/class-vc-grids-common.php';
$gridParams = VcGridsCommon::getBasicAtts();
return array(
'name' => esc_html__( 'Post Grid', 'js_composer' ),
'base' => 'vc_basic_grid',
'icon' => 'icon-wpb-application-icon-large',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Posts, pages or custom posts in grid', 'js_composer' ),
'params' => $gridParams,
);

View File

@@ -0,0 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once dirname( __FILE__ ) . '/class-vc-grids-common.php';
$masonryGridParams = VcGridsCommon::getMasonryCommonAtts();
return array(
'name' => esc_html__( 'Post Masonry Grid', 'js_composer' ),
'base' => 'vc_masonry_grid',
'icon' => 'vc_icon-vc-masonry-grid',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Posts, pages or custom posts in masonry grid', 'js_composer' ),
'params' => $masonryGridParams,
);

View File

@@ -0,0 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once dirname( __FILE__ ) . '/class-vc-grids-common.php';
$masonryMediaGridParams = VcGridsCommon::getMasonryMediaCommonAtts();
return array(
'name' => esc_html__( 'Masonry Media Grid', 'js_composer' ),
'base' => 'vc_masonry_media_grid',
'icon' => 'vc_icon-vc-masonry-media-grid',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Masonry media grid from Media Library', 'js_composer' ),
'params' => $masonryMediaGridParams,
);

View File

@@ -0,0 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once dirname( __FILE__ ) . '/class-vc-grids-common.php';
$mediaGridParams = VcGridsCommon::getMediaCommonAtts();
return array(
'name' => esc_html__( 'Media Grid', 'js_composer' ),
'base' => 'vc_media_grid',
'icon' => 'vc_icon-vc-media-grid',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Media grid from Media Library', 'js_composer' ),
'params' => $mediaGridParams,
);

View File

@@ -0,0 +1,188 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* @param $term
*
* @return array|bool
* @since 4.5.2
*
*/
function vc_autocomplete_taxonomies_field_render( $term ) {
$vc_taxonomies_types = vc_taxonomies_types();
$terms = get_terms( array_keys( $vc_taxonomies_types ), array(
'include' => array( $term['value'] ),
'hide_empty' => false,
) );
$data = false;
if ( is_array( $terms ) && 1 === count( $terms ) ) {
$term = $terms[0];
$data = vc_get_term_object( $term );
}
return $data;
}
/**
* @param $search_string
*
* @return array|bool
* @since 4.5.2
*
*/
function vc_autocomplete_taxonomies_field_search( $search_string ) {
$data = array();
$vc_filter_by = vc_post_param( 'vc_filter_by', '' );
$vc_filter_by_post_type = vc_post_param( 'vc_filter_post_type', '' );
$vc_taxonomies_types = strlen( $vc_filter_by ) > 0 ? array( $vc_filter_by ) : array_keys( vc_taxonomies_types( $vc_filter_by_post_type ) );
if ( empty( $vc_taxonomies_types ) ) {
return array();
}
$vc_taxonomies = get_terms( $vc_taxonomies_types, array(
'hide_empty' => false,
'search' => $search_string,
) );
if ( is_array( $vc_taxonomies ) && ! empty( $vc_taxonomies ) ) {
foreach ( $vc_taxonomies as $t ) {
if ( is_object( $t ) ) {
$data[] = vc_get_term_object( $t );
}
}
}
return $data;
}
/**
* @param $search
* @param $wp_query
*
* @return string
*/
function vc_search_by_title_only( $search, $wp_query ) {
global $wpdb;
if ( empty( $search ) ) {
return $search;
}
// skip processing - no search term in query
$q = $wp_query->query_vars;
if ( isset( $q['vc_search_by_title_only'] ) && $q['vc_search_by_title_only'] ) {
$n = ! empty( $q['exact'] ) ? '' : '%';
$search = '';
$searchand = '';
foreach ( (array) $q['search_terms'] as $term ) {
$term = $wpdb->esc_like( $term );
$like = $n . $term . $n;
$search .= $searchand . $wpdb->prepare( "($wpdb->posts.post_title LIKE %s)", $like );
$searchand = ' AND ';
}
if ( ! empty( $search ) ) {
$search = " AND ({$search}) ";
if ( ! is_user_logged_in() ) {
$search .= " AND ($wpdb->posts.post_password = '') ";
}
}
}
return $search;
}
/**
* @param $search_string
*
* @return array
*/
function vc_include_field_search( $search_string ) {
$query = $search_string;
$data = array();
$args = array(
's' => $query,
'post_type' => 'any',
);
$args['vc_search_by_title_only'] = true;
$args['numberposts'] = - 1;
if ( 0 === strlen( $args['s'] ) ) {
unset( $args['s'] );
}
add_filter( 'posts_search', 'vc_search_by_title_only', 500, 2 );
$posts = get_posts( $args );
if ( is_array( $posts ) && ! empty( $posts ) ) {
foreach ( $posts as $post ) {
$data[] = array(
'value' => $post->ID,
'label' => $post->post_title,
'group' => $post->post_type,
);
}
}
return $data;
}
/**
* @param $value
*
* @return array|bool
*/
function vc_include_field_render( $value ) {
$post = get_post( $value['value'] );
return is_null( $post ) ? false : array(
'label' => $post->post_title,
'value' => $post->ID,
'group' => $post->post_type,
);
}
/**
* @param $data_arr
*
* @return array
*/
function vc_exclude_field_search( $data_arr ) {
$query = isset( $data_arr['query'] ) ? $data_arr['query'] : null;
$term = isset( $data_arr['term'] ) ? $data_arr['term'] : '';
$data = array();
$args = ! empty( $query ) ? array(
's' => $term,
'post_type' => $query,
) : array(
's' => $term,
'post_type' => 'any',
);
$args['vc_search_by_title_only'] = true;
$args['numberposts'] = - 1;
if ( 0 === strlen( $args['s'] ) ) {
unset( $args['s'] );
}
add_filter( 'posts_search', 'vc_search_by_title_only', 500, 2 );
$posts = get_posts( $args );
if ( is_array( $posts ) && ! empty( $posts ) ) {
foreach ( $posts as $post ) {
$data[] = array(
'value' => $post->ID,
'label' => $post->post_title,
'group' => $post->post_type,
);
}
}
return $data;
}
/**
* @param $value
*
* @return array|bool
*/
function vc_exclude_field_render( $value ) {
$post = get_post( $value['value'] );
return is_null( $post ) ? false : array(
'label' => $post->post_title,
'value' => $post->ID,
'group' => $post->post_type,
);
}

View File

@@ -0,0 +1,267 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* WPBakery Page Builder Shortcodes settings Lazy mapping
*
* @package VPBakeryVisualComposer
*
*/
$vc_config_path = vc_path_dir( 'CONFIG_DIR' );
vc_lean_map( 'vc_row', null, $vc_config_path . '/containers/shortcode-vc-row.php' );
vc_lean_map( 'vc_row_inner', null, $vc_config_path . '/containers/shortcode-vc-row-inner.php' );
vc_lean_map( 'vc_column', null, $vc_config_path . '/containers/shortcode-vc-column.php' );
vc_lean_map( 'vc_column_inner', null, $vc_config_path . '/containers/shortcode-vc-column-inner.php' );
vc_lean_map( 'vc_column_text', null, $vc_config_path . '/content/shortcode-vc-column-text.php' );
vc_lean_map( 'vc_section', null, $vc_config_path . '/containers/shortcode-vc-section.php' );
vc_lean_map( 'vc_icon', null, $vc_config_path . '/content/shortcode-vc-icon.php' );
vc_lean_map( 'vc_separator', null, $vc_config_path . '/content/shortcode-vc-separator.php' );
vc_lean_map( 'vc_zigzag', null, $vc_config_path . '/content/shortcode-vc-zigzag.php' );
vc_lean_map( 'vc_text_separator', null, $vc_config_path . '/content/shortcode-vc-text-separator.php' );
vc_lean_map( 'vc_message', null, $vc_config_path . '/content/shortcode-vc-message.php' );
vc_lean_map( 'vc_hoverbox', null, $vc_config_path . '/content/shortcode-vc-hoverbox.php' );
vc_lean_map( 'vc_facebook', null, $vc_config_path . '/social/shortcode-vc-facebook.php' );
vc_lean_map( 'vc_tweetmeme', null, $vc_config_path . '/social/shortcode-vc-tweetmeme.php' );
vc_lean_map( 'vc_googleplus', null, $vc_config_path . '/deprecated/shortcode-vc-googleplus.php' );
vc_lean_map( 'vc_pinterest', null, $vc_config_path . '/social/shortcode-vc-pinterest.php' );
vc_lean_map( 'vc_toggle', null, $vc_config_path . '/content/shortcode-vc-toggle.php' );
vc_lean_map( 'vc_single_image', null, $vc_config_path . '/content/shortcode-vc-single-image.php' );
vc_lean_map( 'vc_gallery', null, $vc_config_path . '/content/shortcode-vc-gallery.php' );
vc_lean_map( 'vc_images_carousel', null, $vc_config_path . '/content/shortcode-vc-images-carousel.php' );
vc_lean_map( 'vc_tta_tabs', null, $vc_config_path . '/tta/shortcode-vc-tta-tabs.php' );
vc_lean_map( 'vc_tta_tour', null, $vc_config_path . '/tta/shortcode-vc-tta-tour.php' );
vc_lean_map( 'vc_tta_accordion', null, $vc_config_path . '/tta/shortcode-vc-tta-accordion.php' );
vc_lean_map( 'vc_tta_pageable', null, $vc_config_path . '/tta/shortcode-vc-tta-pageable.php' );
vc_lean_map( 'vc_tta_section', null, $vc_config_path . '/tta/shortcode-vc-tta-section.php' );
vc_lean_map( 'vc_custom_heading', null, $vc_config_path . '/content/shortcode-vc-custom-heading.php' );
vc_lean_map( 'vc_btn', null, $vc_config_path . '/buttons/shortcode-vc-btn.php' );
vc_lean_map( 'vc_cta', null, $vc_config_path . '/buttons/shortcode-vc-cta.php' );
vc_lean_map( 'vc_widget_sidebar', null, $vc_config_path . '/structure/shortcode-vc-widget-sidebar.php' );
vc_lean_map( 'vc_posts_slider', null, $vc_config_path . '/content/shortcode-vc-posts-slider.php' );
vc_lean_map( 'vc_video', null, $vc_config_path . '/content/shortcode-vc-video.php' );
vc_lean_map( 'vc_gmaps', null, $vc_config_path . '/content/shortcode-vc-gmaps.php' );
vc_lean_map( 'vc_raw_html', null, $vc_config_path . '/structure/shortcode-vc-raw-html.php' );
vc_lean_map( 'vc_raw_js', null, $vc_config_path . '/structure/shortcode-vc-raw-js.php' );
vc_lean_map( 'vc_flickr', null, $vc_config_path . '/content/shortcode-vc-flickr.php' );
vc_lean_map( 'vc_progress_bar', null, $vc_config_path . '/content/shortcode-vc-progress-bar.php' );
vc_lean_map( 'vc_pie', null, $vc_config_path . '/content/shortcode-vc-pie.php' );
vc_lean_map( 'vc_round_chart', null, $vc_config_path . '/content/shortcode-vc-round-chart.php' );
vc_lean_map( 'vc_line_chart', null, $vc_config_path . '/content/shortcode-vc-line-chart.php' );
vc_lean_map( 'vc_wp_search', null, $vc_config_path . '/wp/shortcode-vc-wp-search.php' );
vc_lean_map( 'vc_wp_meta', null, $vc_config_path . '/wp/shortcode-vc-wp-meta.php' );
vc_lean_map( 'vc_wp_recentcomments', null, $vc_config_path . '/wp/shortcode-vc-wp-recentcomments.php' );
vc_lean_map( 'vc_wp_calendar', null, $vc_config_path . '/wp/shortcode-vc-wp-calendar.php' );
vc_lean_map( 'vc_wp_pages', null, $vc_config_path . '/wp/shortcode-vc-wp-pages.php' );
vc_lean_map( 'vc_wp_tagcloud', null, $vc_config_path . '/wp/shortcode-vc-wp-tagcloud.php' );
vc_lean_map( 'vc_wp_custommenu', null, $vc_config_path . '/wp/shortcode-vc-wp-custommenu.php' );
vc_lean_map( 'vc_wp_text', null, $vc_config_path . '/wp/shortcode-vc-wp-text.php' );
vc_lean_map( 'vc_wp_posts', null, $vc_config_path . '/wp/shortcode-vc-wp-posts.php' );
vc_lean_map( 'vc_wp_links', null, $vc_config_path . '/wp/shortcode-vc-wp-links.php' );
vc_lean_map( 'vc_wp_categories', null, $vc_config_path . '/wp/shortcode-vc-wp-categories.php' );
vc_lean_map( 'vc_wp_archives', null, $vc_config_path . '/wp/shortcode-vc-wp-archives.php' );
vc_lean_map( 'vc_wp_rss', null, $vc_config_path . '/wp/shortcode-vc-wp-rss.php' );
vc_lean_map( 'vc_empty_space', null, $vc_config_path . '/content/shortcode-vc-empty-space.php' );
vc_lean_map( 'vc_basic_grid', null, $vc_config_path . '/grids/shortcode-vc-basic-grid.php' );
vc_lean_map( 'vc_media_grid', null, $vc_config_path . '/grids/shortcode-vc-media-grid.php' );
vc_lean_map( 'vc_masonry_grid', null, $vc_config_path . '/grids/shortcode-vc-masonry-grid.php' );
vc_lean_map( 'vc_masonry_media_grid', null, $vc_config_path . '/grids/shortcode-vc-masonry-media-grid.php' );
vc_lean_map( 'vc_tabs', null, $vc_config_path . '/deprecated/shortcode-vc-tabs.php' );
vc_lean_map( 'vc_tour', null, $vc_config_path . '/deprecated/shortcode-vc-tour.php' );
vc_lean_map( 'vc_tab', null, $vc_config_path . '/deprecated/shortcode-vc-tab.php' );
vc_lean_map( 'vc_accordion', null, $vc_config_path . '/deprecated/shortcode-vc-accordion.php' );
vc_lean_map( 'vc_accordion_tab', null, $vc_config_path . '/deprecated/shortcode-vc-accordion-tab.php' );
vc_lean_map( 'vc_button', null, $vc_config_path . '/deprecated/shortcode-vc-button.php' );
vc_lean_map( 'vc_button2', null, $vc_config_path . '/deprecated/shortcode-vc-button2.php' );
vc_lean_map( 'vc_cta_button', null, $vc_config_path . '/deprecated/shortcode-vc-cta-button.php' );
vc_lean_map( 'vc_cta_button2', null, $vc_config_path . '/deprecated/shortcode-vc-cta-button2.php' );
if ( is_admin() ) {
add_action( 'admin_print_scripts-post.php', array(
Vc_Shortcodes_Manager::getInstance(),
'buildShortcodesAssets',
), 1 );
add_action( 'admin_print_scripts-post-new.php', array(
Vc_Shortcodes_Manager::getInstance(),
'buildShortcodesAssets',
), 1 );
add_action( 'vc-render-templates-preview-template', array(
Vc_Shortcodes_Manager::getInstance(),
'buildShortcodesAssets',
), 1 );
} elseif ( vc_is_page_editable() ) {
add_action( 'wp_head', array(
Vc_Shortcodes_Manager::getInstance(),
'buildShortcodesAssetsForEditable',
) ); // @todo where these icons are used in iframe?
}
/**
* @return mixed|void
* @deprecated 4.12
*/
function vc_add_css_animation() {
return vc_map_add_css_animation();
}
function vc_target_param_list() {
return array(
esc_html__( 'Same window', 'js_composer' ) => '_self',
esc_html__( 'New window', 'js_composer' ) => '_blank',
);
}
function vc_layout_sub_controls() {
return array(
array(
'link_post',
esc_html__( 'Link to post', 'js_composer' ),
),
array(
'no_link',
esc_html__( 'No link', 'js_composer' ),
),
array(
'link_image',
esc_html__( 'Link to bigger image', 'js_composer' ),
),
);
}
function vc_pixel_icons() {
return array(
array( 'vc_pixel_icon vc_pixel_icon-alert' => esc_html__( 'Alert', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-info' => esc_html__( 'Info', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-tick' => esc_html__( 'Tick', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-explanation' => esc_html__( 'Explanation', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-address_book' => esc_html__( 'Address book', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-alarm_clock' => esc_html__( 'Alarm clock', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-anchor' => esc_html__( 'Anchor', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-application_image' => esc_html__( 'Application Image', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-arrow' => esc_html__( 'Arrow', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-asterisk' => esc_html__( 'Asterisk', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-hammer' => esc_html__( 'Hammer', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-balloon' => esc_html__( 'Balloon', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-balloon_buzz' => esc_html__( 'Balloon Buzz', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-balloon_facebook' => esc_html__( 'Balloon Facebook', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-balloon_twitter' => esc_html__( 'Balloon Twitter', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-battery' => esc_html__( 'Battery', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-binocular' => esc_html__( 'Binocular', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-document_excel' => esc_html__( 'Document Excel', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-document_image' => esc_html__( 'Document Image', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-document_music' => esc_html__( 'Document Music', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-document_office' => esc_html__( 'Document Office', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-document_pdf' => esc_html__( 'Document PDF', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-document_powerpoint' => esc_html__( 'Document Powerpoint', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-document_word' => esc_html__( 'Document Word', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-bookmark' => esc_html__( 'Bookmark', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-camcorder' => esc_html__( 'Camcorder', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-camera' => esc_html__( 'Camera', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-chart' => esc_html__( 'Chart', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-chart_pie' => esc_html__( 'Chart pie', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-clock' => esc_html__( 'Clock', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-fire' => esc_html__( 'Fire', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-heart' => esc_html__( 'Heart', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-mail' => esc_html__( 'Mail', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-play' => esc_html__( 'Play', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-shield' => esc_html__( 'Shield', 'js_composer' ) ),
array( 'vc_pixel_icon vc_pixel_icon-video' => esc_html__( 'Video', 'js_composer' ) ),
);
}
function vc_colors_arr() {
return array(
esc_html__( 'Grey', 'js_composer' ) => 'wpb_button',
esc_html__( 'Blue', 'js_composer' ) => 'btn-primary',
esc_html__( 'Turquoise', 'js_composer' ) => 'btn-info',
esc_html__( 'Green', 'js_composer' ) => 'btn-success',
esc_html__( 'Orange', 'js_composer' ) => 'btn-warning',
esc_html__( 'Red', 'js_composer' ) => 'btn-danger',
esc_html__( 'Black', 'js_composer' ) => 'btn-inverse',
);
}
function vc_size_arr() {
return array(
esc_html__( 'Regular', 'js_composer' ) => 'wpb_regularsize',
esc_html__( 'Large', 'js_composer' ) => 'btn-large',
esc_html__( 'Small', 'js_composer' ) => 'btn-small',
esc_html__( 'Mini', 'js_composer' ) => 'btn-mini',
);
}
function vc_icons_arr() {
return array(
esc_html__( 'None', 'js_composer' ) => 'none',
esc_html__( 'Address book icon', 'js_composer' ) => 'wpb_address_book',
esc_html__( 'Alarm clock icon', 'js_composer' ) => 'wpb_alarm_clock',
esc_html__( 'Anchor icon', 'js_composer' ) => 'wpb_anchor',
esc_html__( 'Application Image icon', 'js_composer' ) => 'wpb_application_image',
esc_html__( 'Arrow icon', 'js_composer' ) => 'wpb_arrow',
esc_html__( 'Asterisk icon', 'js_composer' ) => 'wpb_asterisk',
esc_html__( 'Hammer icon', 'js_composer' ) => 'wpb_hammer',
esc_html__( 'Balloon icon', 'js_composer' ) => 'wpb_balloon',
esc_html__( 'Balloon Buzz icon', 'js_composer' ) => 'wpb_balloon_buzz',
esc_html__( 'Balloon Facebook icon', 'js_composer' ) => 'wpb_balloon_facebook',
esc_html__( 'Balloon Twitter icon', 'js_composer' ) => 'wpb_balloon_twitter',
esc_html__( 'Battery icon', 'js_composer' ) => 'wpb_battery',
esc_html__( 'Binocular icon', 'js_composer' ) => 'wpb_binocular',
esc_html__( 'Document Excel icon', 'js_composer' ) => 'wpb_document_excel',
esc_html__( 'Document Image icon', 'js_composer' ) => 'wpb_document_image',
esc_html__( 'Document Music icon', 'js_composer' ) => 'wpb_document_music',
esc_html__( 'Document Office icon', 'js_composer' ) => 'wpb_document_office',
esc_html__( 'Document PDF icon', 'js_composer' ) => 'wpb_document_pdf',
esc_html__( 'Document Powerpoint icon', 'js_composer' ) => 'wpb_document_powerpoint',
esc_html__( 'Document Word icon', 'js_composer' ) => 'wpb_document_word',
esc_html__( 'Bookmark icon', 'js_composer' ) => 'wpb_bookmark',
esc_html__( 'Camcorder icon', 'js_composer' ) => 'wpb_camcorder',
esc_html__( 'Camera icon', 'js_composer' ) => 'wpb_camera',
esc_html__( 'Chart icon', 'js_composer' ) => 'wpb_chart',
esc_html__( 'Chart pie icon', 'js_composer' ) => 'wpb_chart_pie',
esc_html__( 'Clock icon', 'js_composer' ) => 'wpb_clock',
esc_html__( 'Fire icon', 'js_composer' ) => 'wpb_fire',
esc_html__( 'Heart icon', 'js_composer' ) => 'wpb_heart',
esc_html__( 'Mail icon', 'js_composer' ) => 'wpb_mail',
esc_html__( 'Play icon', 'js_composer' ) => 'wpb_play',
esc_html__( 'Shield icon', 'js_composer' ) => 'wpb_shield',
esc_html__( 'Video icon', 'js_composer' ) => 'wpb_video',
);
}
require_once vc_path_dir( 'CONFIG_DIR', 'grids/vc-grids-functions.php' );
if ( 'vc_get_autocomplete_suggestion' === vc_request_param( 'action' ) || 'vc_edit_form' === vc_post_param( 'action' ) ) {
add_filter( 'vc_autocomplete_vc_basic_grid_include_callback', 'vc_include_field_search', 10, 1 ); // Get suggestion(find). Must return an array
add_filter( 'vc_autocomplete_vc_basic_grid_include_render', 'vc_include_field_render', 10, 1 ); // Render exact product. Must return an array (label,value)
add_filter( 'vc_autocomplete_vc_masonry_grid_include_callback', 'vc_include_field_search', 10, 1 ); // Get suggestion(find). Must return an array
add_filter( 'vc_autocomplete_vc_masonry_grid_include_render', 'vc_include_field_render', 10, 1 ); // Render exact product. Must return an array (label,value)
// Narrow data taxonomies
add_filter( 'vc_autocomplete_vc_basic_grid_taxonomies_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1 );
add_filter( 'vc_autocomplete_vc_basic_grid_taxonomies_render', 'vc_autocomplete_taxonomies_field_render', 10, 1 );
add_filter( 'vc_autocomplete_vc_masonry_grid_taxonomies_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1 );
add_filter( 'vc_autocomplete_vc_masonry_grid_taxonomies_render', 'vc_autocomplete_taxonomies_field_render', 10, 1 );
// Narrow data taxonomies for exclude_filter
add_filter( 'vc_autocomplete_vc_basic_grid_exclude_filter_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1 );
add_filter( 'vc_autocomplete_vc_basic_grid_exclude_filter_render', 'vc_autocomplete_taxonomies_field_render', 10, 1 );
add_filter( 'vc_autocomplete_vc_masonry_grid_exclude_filter_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1 );
add_filter( 'vc_autocomplete_vc_masonry_grid_exclude_filter_render', 'vc_autocomplete_taxonomies_field_render', 10, 1 );
add_filter( 'vc_autocomplete_vc_basic_grid_exclude_callback', 'vc_exclude_field_search', 10, 1 ); // Get suggestion(find). Must return an array
add_filter( 'vc_autocomplete_vc_basic_grid_exclude_render', 'vc_exclude_field_render', 10, 1 ); // Render exact product. Must return an array (label,value)
add_filter( 'vc_autocomplete_vc_masonry_grid_exclude_callback', 'vc_exclude_field_search', 10, 1 ); // Get suggestion(find). Must return an array
add_filter( 'vc_autocomplete_vc_masonry_grid_exclude_render', 'vc_exclude_field_render', 10, 1 ); // Render exact product. Must return an array (label,value);
}

View File

@@ -0,0 +1,45 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Facebook Like', 'js_composer' ),
'base' => 'vc_facebook',
'icon' => 'icon-wpb-balloon-facebook-left',
'category' => esc_html__( 'Social', 'js_composer' ),
'description' => esc_html__( 'Facebook "Like" button', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Button type', 'js_composer' ),
'param_name' => 'type',
'admin_label' => true,
'value' => array(
esc_html__( 'Horizontal', 'js_composer' ) => 'standard',
esc_html__( 'Horizontal with count', 'js_composer' ) => 'button_count',
esc_html__( 'Vertical with count', 'js_composer' ) => 'box_count',
),
'description' => esc_html__( 'Select button type.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,45 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Pinterest', 'js_composer' ),
'base' => 'vc_pinterest',
'icon' => 'icon-wpb-pinterest',
'category' => esc_html__( 'Social', 'js_composer' ),
'description' => esc_html__( 'Pinterest button', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Button type', 'js_composer' ),
'param_name' => 'type',
'admin_label' => true,
'value' => array(
esc_html__( 'Horizontal', 'js_composer' ) => 'horizontal',
esc_html__( 'Vertical', 'js_composer' ) => 'vertical',
esc_html__( 'No count', 'js_composer' ) => 'none',
),
'description' => esc_html__( 'Select button layout.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,361 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Tweetmeme Button', 'js_composer' ),
'base' => 'vc_tweetmeme',
'icon' => 'icon-wpb-tweetme',
'category' => esc_html__( 'Social', 'js_composer' ),
'description' => esc_html__( 'Tweet button', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'param_name' => 'type',
'heading' => esc_html__( 'Choose a button', 'js_composer' ),
'value' => array(
esc_html__( 'Share a link', 'js_composer' ) => 'share',
esc_html__( 'Follow', 'js_composer' ) => 'follow',
esc_html__( 'Hashtag', 'js_composer' ) => 'hashtag',
esc_html__( 'Mention', 'js_composer' ) => 'mention',
),
'description' => esc_html__( 'Select type of Twitter button.', 'js_composer' ),
),
// share type
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Share url: page URL', 'js_composer' ),
'param_name' => 'share_use_page_url',
'value' => array(
esc_html__( 'Yes', 'js_composer' ) => 'page_url',
),
'std' => 'page_url',
'dependency' => array(
'element' => 'type',
'value' => 'share',
),
'description' => esc_html__( 'Use the current page url to share?', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Share url: custom URL', 'js_composer' ),
'param_name' => 'share_use_custom_url',
'value' => '',
'dependency' => array(
'element' => 'share_use_page_url',
'value_not_equal_to' => 'page_url',
),
'description' => esc_html__( 'Enter custom page url which you like to share on twitter?', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Tweet text: page title', 'js_composer' ),
'param_name' => 'share_text_page_title',
'value' => array(
esc_html__( 'Yes', 'js_composer' ) => 'page_title',
),
'std' => 'page_title',
'dependency' => array(
'element' => 'type',
'value' => 'share',
),
'description' => esc_html__( 'Use the current page title as tweet text?', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Tweet text: custom text', 'js_composer' ),
'param_name' => 'share_text_custom_text',
'value' => '',
'dependency' => array(
'element' => 'share_text_page_title',
'value_not_equal_to' => 'page_title',
),
'description' => esc_html__( 'Enter the text to be used as a tweet?', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Via @', 'js_composer' ),
'param_name' => 'share_via',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'share',
),
'description' => esc_html__( 'Enter your Twitter username.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Recommend @', 'js_composer' ),
'param_name' => 'share_recommend',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'share',
),
'description' => esc_html__( 'Enter the Twitter username to be recommended.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Hashtag #', 'js_composer' ),
'param_name' => 'share_hashtag',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'share',
),
'description' => esc_html__( 'Add a comma-separated list of hashtags to a Tweet using the hashtags parameter.', 'js_composer' ),
),
// follow type
array(
'type' => 'textfield',
'heading' => esc_html__( 'User @', 'js_composer' ),
'param_name' => 'follow_user',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'follow',
),
'description' => esc_html__( 'Enter username to follow.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Show username', 'js_composer' ),
'param_name' => 'follow_show_username',
'value' => array(
esc_html__( 'Yes', 'js_composer' ) => 'yes',
),
'std' => 'yes',
'dependency' => array(
'element' => 'type',
'value' => 'follow',
),
'description' => esc_html__( 'Do you want to show username in button?', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Show followers count', 'js_composer' ),
'param_name' => 'show_followers_count',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'follow',
),
'description' => esc_html__( 'Do you want to displat the follower count in button?', 'js_composer' ),
),
// hashtag type
array(
'type' => 'textfield',
'heading' => esc_html__( 'Hashtag #', 'js_composer' ),
'param_name' => 'hashtag_hash',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'hashtag',
),
'description' => esc_html__( 'Add hashtag to a Tweet using the hashtags parameter', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Tweet text: No default text', 'js_composer' ),
'param_name' => 'hashtag_no_default',
'value' => array(
esc_html__( 'Yes', 'js_composer' ) => 'yes',
),
'std' => 'yes',
'dependency' => array(
'element' => 'type',
'value' => 'hashtag',
),
'description' => esc_html__( 'Set no default text for tweet?', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Tweet text: custom', 'js_composer' ),
'param_name' => 'hashtag_custom_tweet_text',
'value' => '',
'dependency' => array(
'element' => 'hashtag_no_default',
'value_not_equal_to' => 'yes',
),
'description' => esc_html__( 'Set custom text for tweet.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Recommend @', 'js_composer' ),
'param_name' => 'hashtag_recommend_1',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'hashtag',
),
'description' => esc_html__( 'Enter username to be recommended.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Recommend @', 'js_composer' ),
'param_name' => 'hashtag_recommend_2',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'hashtag',
),
'description' => esc_html__( 'Enter username to be recommended.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Tweet url: No URL', 'js_composer' ),
'param_name' => 'hashtag_no_url',
'value' => array(
esc_html__( 'Yes', 'js_composer' ) => 'yes',
),
'std' => 'yes',
'dependency' => array(
'element' => 'type',
'value' => 'hashtag',
),
'description' => esc_html__( 'Do you want to set no url to be tweeted?', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Tweet url: custom', 'js_composer' ),
'param_name' => 'hashtag_custom_tweet_url',
'value' => '',
'dependency' => array(
'element' => 'hashtag_no_url',
'value_not_equal_to' => 'yes',
),
'description' => esc_html__( 'Enter custom url to be used in the tweet.', 'js_composer' ),
),
// mention type
array(
'type' => 'textfield',
'heading' => esc_html__( 'Tweet to @', 'js_composer' ),
'param_name' => 'mention_tweet_to',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'mention',
),
'description' => esc_html__( 'Enter username where you want to send your tweet.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Tweet text: No default text', 'js_composer' ),
'param_name' => 'mention_no_default',
'value' => array(
esc_html__( 'Yes', 'js_composer' ) => 'yes',
),
'std' => 'yes',
'dependency' => array(
'element' => 'type',
'value' => 'mention',
),
'description' => esc_html__( 'Set no default text of the tweet?', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Tweet text: custom', 'js_composer' ),
'param_name' => 'mention_custom_tweet_text',
'value' => '',
'dependency' => array(
'element' => 'mention_no_default',
'value_not_equal_to' => 'yes',
),
'description' => esc_html__( 'Enter custom text for the tweet.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Recommend @', 'js_composer' ),
'param_name' => 'mention_recommend_1',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'mention',
),
'description' => esc_html__( 'Enter username to recommend.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Recommend @', 'js_composer' ),
'param_name' => 'mention_recommend_2',
'value' => '',
'dependency' => array(
'element' => 'type',
'value' => 'mention',
),
'description' => esc_html__( 'Enter username to recommend.', 'js_composer' ),
),
// general
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Use large button', 'js_composer' ),
'param_name' => 'large_button',
'value' => '',
'description' => esc_html__( 'Do you like to display a larger Tweet button?', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Opt-out of tailoring Twitter', 'js_composer' ),
'param_name' => 'disable_tailoring',
'value' => '',
'description' => esc_html__( 'Tailored suggestions make building a great timeline. Would you like to disable this feature?', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Language', 'js_composer' ),
'param_name' => 'lang',
'value' => array(
'Automatic' => '',
'French - français' => 'fr',
'English' => 'en',
'Arabic - العربية' => 'ar',
'Japanese - 日本語' => 'ja',
'Spanish - Español' => 'es',
'German - Deutsch' => 'de',
'Italian - Italiano' => 'it',
'Indonesian - Bahasa Indonesia' => 'id',
'Portuguese - Português' => 'pt',
'Korean - 한국어' => 'ko',
'Turkish - Türkçe' => 'tr',
'Russian - Русский' => 'ru',
'Dutch - Nederlands' => 'nl',
'Filipino - Filipino' => 'fil',
'Malay - Bahasa Melayu' => 'msa',
'Traditional Chinese - 繁體中文' => 'zh-tw',
'Simplified Chinese - 简体中文' => 'zh-cn',
'Hindi - हिन्दी' => 'hi',
'Norwegian - Norsk' => 'no',
'Swedish - Svenska' => 'sv',
'Finnish - Suomi' => 'fi',
'Danish - Dansk' => 'da',
'Polish - Polski' => 'pl',
'Hungarian - Magyar' => 'hu',
'Farsi - فارسی' => 'fa',
'Hebrew - עִבְרִית' => 'he',
'Urdu - اردو' => 'ur',
'Thai - ภาษาไทย' => 'th',
),
'description' => esc_html__( 'Select button display language or allow it to be automatically defined by user preferences.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,42 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Raw HTML', 'js_composer' ),
'base' => 'vc_raw_html',
'icon' => 'icon-wpb-raw-html',
'category' => esc_html__( 'Structure', 'js_composer' ),
'wrapper_class' => 'clearfix',
'description' => esc_html__( 'Output raw HTML code on your page', 'js_composer' ),
'params' => array(
array(
'type' => 'textarea_raw_html',
'holder' => 'div',
'heading' => esc_html__( 'Raw HTML', 'js_composer' ),
'param_name' => 'content',
// @codingStandardsIgnoreLine
'value' => base64_encode( '<p>I am raw html block.<br/>Click edit button to change this html</p>' ),
'description' => esc_html__( 'Enter your HTML content.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,37 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$custom_tag = 'script';
return array(
'name' => esc_html__( 'Raw JS', 'js_composer' ),
'base' => 'vc_raw_js',
'icon' => 'icon-wpb-raw-javascript',
'category' => esc_html__( 'Structure', 'js_composer' ),
'wrapper_class' => 'clearfix',
'description' => esc_html__( 'Output raw JavaScript code on your page', 'js_composer' ),
'params' => array(
array(
'type' => 'textarea_raw_html',
'holder' => 'div',
'heading' => esc_html__( 'JavaScript Code', 'js_composer' ),
'param_name' => 'content',
// @codingStandardsIgnoreLine
'value' => base64_encode( '<' . $custom_tag . '> alert( "' . esc_attr__( 'Enter your js here!', 'js_composer' ) . '" ) </' . $custom_tag . '>' ),
'description' => esc_html__( 'Enter your JavaScript code.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,40 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Widgetised Sidebar', 'js_composer' ),
'base' => 'vc_widget_sidebar',
'class' => 'wpb_widget_sidebar_widget',
'icon' => 'icon-wpb-layout_sidebar',
'category' => esc_html__( 'Structure', 'js_composer' ),
'description' => esc_html__( 'WordPress widgetised sidebar', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'widgetised_sidebars',
'heading' => esc_html__( 'Sidebar', 'js_composer' ),
'param_name' => 'sidebar_id',
'description' => esc_html__( 'Select widget area to display.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,216 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Accordion', 'js_composer' ),
'base' => 'vc_tta_accordion',
'icon' => 'icon-wpb-ui-accordion',
'is_container' => true,
'show_settings_on_create' => false,
'as_parent' => array(
'only' => 'vc_tta_section',
),
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Collapsible content panels', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
esc_html__( 'Classic', 'js_composer' ) => 'classic',
esc_html__( 'Modern', 'js_composer' ) => 'modern',
esc_html__( 'Flat', 'js_composer' ) => 'flat',
esc_html__( 'Outline', 'js_composer' ) => 'outline',
),
'heading' => esc_html__( 'Style', 'js_composer' ),
'description' => esc_html__( 'Select accordion display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'shape',
'value' => array(
esc_html__( 'Rounded', 'js_composer' ) => 'rounded',
esc_html__( 'Square', 'js_composer' ) => 'square',
esc_html__( 'Round', 'js_composer' ) => 'round',
),
'heading' => esc_html__( 'Shape', 'js_composer' ),
'description' => esc_html__( 'Select accordion shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'color',
'value' => vc_get_shared( 'colors-dashed' ),
'std' => 'grey',
'heading' => esc_html__( 'Color', 'js_composer' ),
'description' => esc_html__( 'Select accordion color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'checkbox',
'param_name' => 'no_fill',
'heading' => esc_html__( 'Do not fill content area?', 'js_composer' ),
'description' => esc_html__( 'Do not fill content area with color.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'spacing',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'heading' => esc_html__( 'Spacing', 'js_composer' ),
'description' => esc_html__( 'Select accordion spacing.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'gap',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'heading' => esc_html__( 'Gap', 'js_composer' ),
'description' => esc_html__( 'Select accordion gap.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'c_align',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'description' => esc_html__( 'Select accordion section title alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'autoplay',
'value' => array(
esc_html__( 'None', 'js_composer' ) => 'none',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'10' => '10',
'20' => '20',
'30' => '30',
'40' => '40',
'50' => '50',
'60' => '60',
),
'std' => 'none',
'heading' => esc_html__( 'Autoplay', 'js_composer' ),
'description' => esc_html__( 'Select auto rotate for accordion in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'checkbox',
'param_name' => 'collapsible_all',
'heading' => esc_html__( 'Allow collapse all?', 'js_composer' ),
'description' => esc_html__( 'Allow collapse all accordion sections.', 'js_composer' ),
),
// Control Icons
array(
'type' => 'dropdown',
'param_name' => 'c_icon',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Chevron', 'js_composer' ) => 'chevron',
esc_html__( 'Plus', 'js_composer' ) => 'plus',
esc_html__( 'Triangle', 'js_composer' ) => 'triangle',
),
'std' => 'plus',
'heading' => esc_html__( 'Icon', 'js_composer' ),
'description' => esc_html__( 'Select accordion navigation icon.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'c_position',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
),
'dependency' => array(
'element' => 'c_icon',
'not_empty' => true,
),
'heading' => esc_html__( 'Position', 'js_composer' ),
'description' => esc_html__( 'Select accordion navigation icon position.', 'js_composer' ),
),
// Control Icons END
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => esc_html__( 'Active section', 'js_composer' ),
'value' => 1,
'description' => esc_html__( 'Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcBackendTtaAccordionView',
'custom_markup' => '
<div class="vc_tta-container" data-vc-action="collapseAll">
<div class="vc_general vc_tta vc_tta-accordion vc_tta-color-backend-accordion-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-o-shape-group vc_tta-controls-align-left vc_tta-gap-2">
<div class="vc_tta-panels vc_clearfix {{container-class}}">
{{ content }}
<div class="vc_tta-panel vc_tta-section-append">
<div class="vc_tta-panel-heading">
<h4 class="vc_tta-panel-title vc_tta-controls-icon-position-left">
<a href="javascript:;" aria-expanded="false" class="vc_tta-backend-add-control">
<span class="vc_tta-title-text">' . esc_html__( 'Add Section', 'js_composer' ) . '</span>
<i class="vc_tta-controls-icon vc_tta-controls-icon-plus"></i>
</a>
</h4>
</div>
</div>
</div>
</div>
</div>',
'default_content' => '[vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Section', 'js_composer' ), 1 ) . '"][/vc_tta_section][vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Section', 'js_composer' ), 2 ) . '"][/vc_tta_section]',
);

View File

@@ -0,0 +1,134 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Pageable Container', 'js_composer' ),
'base' => 'vc_tta_pageable',
'icon' => 'icon-wpb-ui-pageable',
'is_container' => true,
'show_settings_on_create' => false,
'as_parent' => array(
'only' => 'vc_tta_section',
),
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Pageable content container', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'hidden',
'param_name' => 'no_fill_content_area',
'std' => true,
),
array(
'type' => 'dropdown',
'param_name' => 'autoplay',
'value' => array(
esc_html__( 'None', 'js_composer' ) => 'none',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'10' => '10',
'20' => '20',
'30' => '30',
'40' => '40',
'50' => '50',
'60' => '60',
),
'std' => 'none',
'heading' => esc_html__( 'Autoplay', 'js_composer' ),
'description' => esc_html__( 'Select auto rotate for pageable in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => esc_html__( 'Active section', 'js_composer' ),
'value' => 1,
'description' => esc_html__( 'Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_style',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Square Dots', 'js_composer' ) => 'outline-square',
esc_html__( 'Radio Dots', 'js_composer' ) => 'outline-round',
esc_html__( 'Point Dots', 'js_composer' ) => 'flat-round',
esc_html__( 'Fill Square Dots', 'js_composer' ) => 'flat-square',
esc_html__( 'Rounded Fill Square Dots', 'js_composer' ) => 'flat-rounded',
),
'heading' => esc_html__( 'Pagination style', 'js_composer' ),
'description' => esc_html__( 'Select pagination style.', 'js_composer' ),
'std' => 'outline-round',
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_color',
'value' => vc_get_shared( 'colors-dashed' ),
'heading' => esc_html__( 'Pagination color', 'js_composer' ),
'description' => esc_html__( 'Select pagination color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
'std' => 'grey',
'dependency' => array(
'element' => 'pagination_style',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'param_name' => 'tab_position',
'value' => array(
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
),
'std' => 'bottom',
'heading' => esc_html__( 'Pagination position', 'js_composer' ),
'description' => esc_html__( 'Select pageable navigation position.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcBackendTtaPageableView',
'custom_markup' => '
<div class="vc_tta-container vc_tta-o-non-responsive" data-vc-action="collapse">
<div class="vc_general vc_tta vc_tta-tabs vc_tta-pageable vc_tta-color-backend-tabs-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-spacing-1 vc_tta-tabs-position-top vc_tta-controls-align-left">
<div class="vc_tta-tabs-container">' . '<ul class="vc_tta-tabs-list">' . '<li class="vc_tta-tab" data-vc-tab data-vc-target-model-id="{{ model_id }}" data-element_type="vc_tta_section"><a href="javascript:;" data-vc-tabs data-vc-container=".vc_tta" data-vc-target="[data-model-id=\'{{ model_id }}\']" data-vc-target-model-id="{{ model_id }}"><span class="vc_tta-title-text">{{ section_title }}</span></a></li>' . '</ul>
</div>
<div class="vc_tta-panels vc_clearfix {{container-class}}">
{{ content }}
</div>
</div>
</div>',
'default_content' => '
[vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Section', 'js_composer' ), 1 ) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Section', 'js_composer' ), 2 ) . '"][/vc_tta_section]
',
'admin_enqueue_js' => array(
vc_asset_url( 'lib/vc_tabs/vc-tabs.min.js' ),
),
);

View File

@@ -0,0 +1,94 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$parent_tag = vc_post_param( 'parent_tag', '' );
$include_icon_params = ( 'vc_tta_pageable' !== $parent_tag );
if ( $include_icon_params ) {
require_once vc_path_dir( 'CONFIG_DIR', 'content/vc-icon-element.php' );
$icon_params = array(
array(
'type' => 'checkbox',
'param_name' => 'add_icon',
'heading' => esc_html__( 'Add icon?', 'js_composer' ),
'description' => esc_html__( 'Add icon next to section title.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'i_position',
'value' => array(
esc_html__( 'Before title', 'js_composer' ) => 'left',
esc_html__( 'After title', 'js_composer' ) => 'right',
),
'dependency' => array(
'element' => 'add_icon',
'value' => 'true',
),
'heading' => esc_html__( 'Icon position', 'js_composer' ),
'description' => esc_html__( 'Select icon position.', 'js_composer' ),
),
);
$icon_params = array_merge( $icon_params, (array) vc_map_integrate_shortcode( vc_icon_element_params(), 'i_', '', array(
// we need only type, icon_fontawesome, icon_.., NOT color and etc
'include_only_regex' => '/^(type|icon_\w*)/',
), array(
'element' => 'add_icon',
'value' => 'true',
) ) );
} else {
$icon_params = array();
}
$params = array_merge( array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => esc_html__( 'Title', 'js_composer' ),
'description' => esc_html__( 'Enter section title (Note: you can leave it empty).', 'js_composer' ),
),
array(
'type' => 'el_id',
'param_name' => 'tab_id',
'settings' => array(
'auto_generate' => true,
),
'heading' => esc_html__( 'Section ID', 'js_composer' ),
'description' => sprintf( esc_html__( 'Enter section ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
), $icon_params, array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
),
) );
return array(
'name' => esc_html__( 'Section', 'js_composer' ),
'base' => 'vc_tta_section',
'icon' => 'icon-wpb-ui-tta-section',
'allowed_container_element' => 'vc_row',
'is_container' => true,
'show_settings_on_create' => false,
'as_child' => array(
'only' => 'vc_tta_tour,vc_tta_tabs,vc_tta_accordion',
),
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Section for Tabs, Tours, Accordions.', 'js_composer' ),
'params' => $params,
'js_view' => 'VcBackendTtaSectionView',
'custom_markup' => '
<div class="vc_tta-panel-heading">
<h4 class="vc_tta-panel-title vc_tta-controls-icon-position-left"><a href="javascript:;" data-vc-target="[data-model-id=\'{{ model_id }}\']" data-vc-accordion data-vc-container=".vc_tta-container"><span class="vc_tta-title-text">{{ section_title }}</span><i class="vc_tta-controls-icon vc_tta-controls-icon-plus"></i></a></h4>
</div>
<div class="vc_tta-panel-body">
{{ editor_controls }}
<div class="{{ container-class }}">
{{ content }}
</div>
</div>',
'default_content' => '',
);

View File

@@ -0,0 +1,217 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Tabs', 'js_composer' ),
'base' => 'vc_tta_tabs',
'icon' => 'icon-wpb-ui-tab-content',
'is_container' => true,
'show_settings_on_create' => false,
'as_parent' => array(
'only' => 'vc_tta_section',
),
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Tabbed content', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
esc_html__( 'Classic', 'js_composer' ) => 'classic',
esc_html__( 'Modern', 'js_composer' ) => 'modern',
esc_html__( 'Flat', 'js_composer' ) => 'flat',
esc_html__( 'Outline', 'js_composer' ) => 'outline',
),
'heading' => esc_html__( 'Style', 'js_composer' ),
'description' => esc_html__( 'Select tabs display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'shape',
'value' => array(
esc_html__( 'Rounded', 'js_composer' ) => 'rounded',
esc_html__( 'Square', 'js_composer' ) => 'square',
esc_html__( 'Round', 'js_composer' ) => 'round',
),
'heading' => esc_html__( 'Shape', 'js_composer' ),
'description' => esc_html__( 'Select tabs shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'color',
'heading' => esc_html__( 'Color', 'js_composer' ),
'description' => esc_html__( 'Select tabs color.', 'js_composer' ),
'value' => vc_get_shared( 'colors-dashed' ),
'std' => 'grey',
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'checkbox',
'param_name' => 'no_fill_content_area',
'heading' => esc_html__( 'Do not fill content area?', 'js_composer' ),
'description' => esc_html__( 'Do not fill content area with color.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'spacing',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'heading' => esc_html__( 'Spacing', 'js_composer' ),
'description' => esc_html__( 'Select tabs spacing.', 'js_composer' ),
'std' => '1',
),
array(
'type' => 'dropdown',
'param_name' => 'gap',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'heading' => esc_html__( 'Gap', 'js_composer' ),
'description' => esc_html__( 'Select tabs gap.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'tab_position',
'value' => array(
esc_html__( 'Top', 'js_composer' ) => 'top',
esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
),
'heading' => esc_html__( 'Position', 'js_composer' ),
'description' => esc_html__( 'Select tabs navigation position.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'alignment',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'description' => esc_html__( 'Select tabs section title alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'autoplay',
'value' => array(
esc_html__( 'None', 'js_composer' ) => 'none',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'10' => '10',
'20' => '20',
'30' => '30',
'40' => '40',
'50' => '50',
'60' => '60',
),
'std' => 'none',
'heading' => esc_html__( 'Autoplay', 'js_composer' ),
'description' => esc_html__( 'Select auto rotate for tabs in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => esc_html__( 'Active section', 'js_composer' ),
'value' => 1,
'description' => esc_html__( 'Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_style',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Square Dots', 'js_composer' ) => 'outline-square',
esc_html__( 'Radio Dots', 'js_composer' ) => 'outline-round',
esc_html__( 'Point Dots', 'js_composer' ) => 'flat-round',
esc_html__( 'Fill Square Dots', 'js_composer' ) => 'flat-square',
esc_html__( 'Rounded Fill Square Dots', 'js_composer' ) => 'flat-rounded',
),
'heading' => esc_html__( 'Pagination style', 'js_composer' ),
'description' => esc_html__( 'Select pagination style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_color',
'value' => vc_get_shared( 'colors-dashed' ),
'heading' => esc_html__( 'Pagination color', 'js_composer' ),
'description' => esc_html__( 'Select pagination color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
'std' => 'grey',
'dependency' => array(
'element' => 'pagination_style',
'not_empty' => true,
),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcBackendTtaTabsView',
'custom_markup' => '
<div class="vc_tta-container" data-vc-action="collapse">
<div class="vc_general vc_tta vc_tta-tabs vc_tta-color-backend-tabs-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-spacing-1 vc_tta-tabs-position-top vc_tta-controls-align-left">
<div class="vc_tta-tabs-container">' . '<ul class="vc_tta-tabs-list">' . '<li class="vc_tta-tab" data-vc-tab data-vc-target-model-id="{{ model_id }}" data-element_type="vc_tta_section"><a href="javascript:;" data-vc-tabs data-vc-container=".vc_tta" data-vc-target="[data-model-id=\'{{ model_id }}\']" data-vc-target-model-id="{{ model_id }}"><span class="vc_tta-title-text">{{ section_title }}</span></a></li>' . '</ul>
</div>
<div class="vc_tta-panels vc_clearfix {{container-class}}">
{{ content }}
</div>
</div>
</div>',
'default_content' => '
[vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Tab', 'js_composer' ), 1 ) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Tab', 'js_composer' ), 2 ) . '"][/vc_tta_section]
',
'admin_enqueue_js' => array(
vc_asset_url( 'lib/vc_tabs/vc-tabs.min.js' ),
),
);

View File

@@ -0,0 +1,231 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Tour', 'js_composer' ),
'base' => 'vc_tta_tour',
'icon' => 'icon-wpb-ui-tab-content-vertical',
'is_container' => true,
'show_settings_on_create' => false,
'as_parent' => array(
'only' => 'vc_tta_section',
),
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Vertical tabbed content', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
esc_html__( 'Classic', 'js_composer' ) => 'classic',
esc_html__( 'Modern', 'js_composer' ) => 'modern',
esc_html__( 'Flat', 'js_composer' ) => 'flat',
esc_html__( 'Outline', 'js_composer' ) => 'outline',
),
'heading' => esc_html__( 'Style', 'js_composer' ),
'description' => esc_html__( 'Select tour display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'shape',
'value' => array(
esc_html__( 'Rounded', 'js_composer' ) => 'rounded',
esc_html__( 'Square', 'js_composer' ) => 'square',
esc_html__( 'Round', 'js_composer' ) => 'round',
),
'heading' => esc_html__( 'Shape', 'js_composer' ),
'description' => esc_html__( 'Select tour shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'color',
'heading' => esc_html__( 'Color', 'js_composer' ),
'description' => esc_html__( 'Select tour color.', 'js_composer' ),
'value' => vc_get_shared( 'colors-dashed' ),
'std' => 'grey',
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'checkbox',
'param_name' => 'no_fill_content_area',
'heading' => esc_html__( 'Do not fill content area?', 'js_composer' ),
'description' => esc_html__( 'Do not fill content area with color.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'spacing',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'heading' => esc_html__( 'Spacing', 'js_composer' ),
'description' => esc_html__( 'Select tour spacing.', 'js_composer' ),
'std' => '1',
),
array(
'type' => 'dropdown',
'param_name' => 'gap',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
'1px' => '1',
'2px' => '2',
'3px' => '3',
'4px' => '4',
'5px' => '5',
'10px' => '10',
'15px' => '15',
'20px' => '20',
'25px' => '25',
'30px' => '30',
'35px' => '35',
),
'heading' => esc_html__( 'Gap', 'js_composer' ),
'description' => esc_html__( 'Select tour gap.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'tab_position',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
),
'heading' => esc_html__( 'Position', 'js_composer' ),
'description' => esc_html__( 'Select tour navigation position.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'alignment',
'value' => array(
esc_html__( 'Left', 'js_composer' ) => 'left',
esc_html__( 'Right', 'js_composer' ) => 'right',
esc_html__( 'Center', 'js_composer' ) => 'center',
),
'heading' => esc_html__( 'Alignment', 'js_composer' ),
'description' => esc_html__( 'Select tour section title alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'controls_size',
'value' => array(
esc_html__( 'Auto', 'js_composer' ) => '',
esc_html__( 'Extra large', 'js_composer' ) => 'xl',
esc_html__( 'Large', 'js_composer' ) => 'lg',
esc_html__( 'Medium', 'js_composer' ) => 'md',
esc_html__( 'Small', 'js_composer' ) => 'sm',
esc_html__( 'Extra small', 'js_composer' ) => 'xs',
),
'heading' => esc_html__( 'Navigation width', 'js_composer' ),
'description' => esc_html__( 'Select tour navigation width.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'autoplay',
'value' => array(
esc_html__( 'None', 'js_composer' ) => 'none',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'10' => '10',
'20' => '20',
'30' => '30',
'40' => '40',
'50' => '50',
'60' => '60',
),
'std' => 'none',
'heading' => esc_html__( 'Autoplay', 'js_composer' ),
'description' => esc_html__( 'Select auto rotate for tour in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => esc_html__( 'Active section', 'js_composer' ),
'value' => 1,
'description' => esc_html__( 'Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_style',
'value' => array(
esc_html__( 'None', 'js_composer' ) => '',
esc_html__( 'Square Dots', 'js_composer' ) => 'outline-square',
esc_html__( 'Radio Dots', 'js_composer' ) => 'outline-round',
esc_html__( 'Point Dots', 'js_composer' ) => 'flat-round',
esc_html__( 'Fill Square Dots', 'js_composer' ) => 'flat-square',
esc_html__( 'Rounded Fill Square Dots', 'js_composer' ) => 'flat-rounded',
),
'heading' => esc_html__( 'Pagination style', 'js_composer' ),
'description' => esc_html__( 'Select pagination style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_color',
'value' => vc_get_shared( 'colors-dashed' ),
'heading' => esc_html__( 'Pagination color', 'js_composer' ),
'description' => esc_html__( 'Select pagination color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
'std' => 'grey',
'dependency' => array(
'element' => 'pagination_style',
'not_empty' => true,
),
),
vc_map_add_css_animation(),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcBackendTtaTourView',
'custom_markup' => '
<div class="vc_tta-container" data-vc-action="collapse">
<div class="vc_general vc_tta vc_tta-tabs vc_tta-color-backend-tabs-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-spacing-1 vc_tta-tabs-position-left vc_tta-controls-align-left">
<div class="vc_tta-tabs-container">' . '<ul class="vc_tta-tabs-list">' . '<li class="vc_tta-tab" data-vc-tab data-vc-target-model-id="{{ model_id }}"><a href="javascript:;" data-vc-container=".vc_tta" data-vc-target="[data-model-id=\'{{ model_id }}\']" data-vc-target-model-id="{{ model_id }}" data-vc-tabs>{{ section_title }}</a></li>' . '</ul>
</div>
<div class="vc_tta-panels {{container-class}}">
{{ content }}
</div>
</div>
</div>',
'default_content' => '
[vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Section', 'js_composer' ), 1 ) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf( '%s %d', esc_html__( 'Section', 'js_composer' ), 2 ) . '"][/vc_tta_section]
',
'admin_enqueue_js' => array(
vc_asset_url( 'lib/vc_tabs/vc-tabs.min.js' ),
),
);

View File

@@ -0,0 +1,45 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Archives' ),
'base' => 'vc_wp_archives',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'A monthly archive of your sites posts', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
'value' => esc_html__( 'Archives' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Display options', 'js_composer' ),
'param_name' => 'options',
'value' => array(
esc_html__( 'Dropdown', 'js_composer' ) => 'dropdown',
esc_html__( 'Show post counts', 'js_composer' ) => 'count',
),
'description' => esc_html__( 'Select display options for archives.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,34 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Calendar' ),
'base' => 'vc_wp_calendar',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'A calendar of your sites posts', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,46 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Categories' ),
'base' => 'vc_wp_categories',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'A list or dropdown of categories', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
'value' => esc_html__( 'Categories' ),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Display options', 'js_composer' ),
'param_name' => 'options',
'value' => array(
esc_html__( 'Dropdown', 'js_composer' ) => 'dropdown',
esc_html__( 'Show post counts', 'js_composer' ) => 'count',
esc_html__( 'Show hierarchy', 'js_composer' ) => 'hierarchical',
),
'description' => esc_html__( 'Select display options for categories.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,55 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$custom_menus = array();
if ( 'vc_edit_form' === vc_post_param( 'action' ) && vc_verify_admin_nonce() ) {
$menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
if ( is_array( $menus ) && ! empty( $menus ) ) {
foreach ( $menus as $single_menu ) {
if ( is_object( $single_menu ) && isset( $single_menu->name, $single_menu->term_id ) ) {
$custom_menus[ $single_menu->name ] = $single_menu->term_id;
}
}
}
}
return array(
'name' => 'WP ' . esc_html__( 'Custom Menu' ),
'base' => 'vc_wp_custommenu',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'Use this widget to add one of your custom menus as a widget', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Menu', 'js_composer' ),
'param_name' => 'nav_menu',
'value' => $custom_menus,
'description' => empty( $custom_menus ) ? sprintf( esc_html__( 'Custom menus not found. Please visit %sAppearance > Menus%s page to create new menu.', 'js_composer' ), '<b>', '</b>' ) : esc_html__( 'Select menu to display.', 'js_composer' ),
'admin_label' => true,
'save_always' => true,
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,78 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
if ( 'vc_edit_form' === vc_post_param( 'action' ) && vc_verify_admin_nonce() ) {
$link_category = array( esc_html__( 'All Links', 'js_composer' ) => '' );
$link_cats = get_terms( 'link_category' );
if ( is_array( $link_cats ) && ! empty( $link_cats ) ) {
foreach ( $link_cats as $link_cat ) {
if ( is_object( $link_cat ) && isset( $link_cat->name, $link_cat->term_id ) ) {
$link_category[ $link_cat->name ] = $link_cat->term_id;
}
}
}
} else {
$link_category = array();
}
return array(
'name' => 'WP ' . esc_html__( 'Links' ),
'base' => 'vc_wp_links',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'content_element' => (bool) get_option( 'link_manager_enabled' ),
'weight' => - 50,
'description' => esc_html__( 'Your blogroll', 'js_composer' ),
'params' => array(
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Link Category', 'js_composer' ),
'param_name' => 'category',
'value' => $link_category,
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Order by', 'js_composer' ),
'param_name' => 'orderby',
'value' => array(
esc_html__( 'Link title', 'js_composer' ) => 'name',
esc_html__( 'Link rating', 'js_composer' ) => 'rating',
esc_html__( 'Link ID', 'js_composer' ) => 'id',
esc_html__( 'Random', 'js_composer' ) => 'rand',
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Options', 'js_composer' ),
'param_name' => 'options',
'value' => array(
esc_html__( 'Show Link Image', 'js_composer' ) => 'images',
esc_html__( 'Show Link Name', 'js_composer' ) => 'name',
esc_html__( 'Show Link Description', 'js_composer' ) => 'description',
esc_html__( 'Show Link Rating', 'js_composer' ) => 'rating',
),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Number of links to show', 'js_composer' ),
'param_name' => 'limit',
'value' => - 1,
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,35 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Meta' ),
'base' => 'vc_wp_meta',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'Log in/out, admin, feed and WordPress links', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
'value' => esc_html__( 'Meta' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,54 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Pages' ),
'base' => 'vc_wp_pages',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'Your sites WordPress Pages', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
'value' => esc_html__( 'Pages' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Order by', 'js_composer' ),
'param_name' => 'sortby',
'value' => array(
esc_html__( 'Page title', 'js_composer' ) => 'post_title',
esc_html__( 'Page order', 'js_composer' ) => 'menu_order',
esc_html__( 'Page ID', 'js_composer' ) => 'ID',
),
'description' => esc_html__( 'Select how to sort pages.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Exclude', 'js_composer' ),
'param_name' => 'exclude',
'description' => esc_html__( 'Enter page IDs to be excluded (Note: separate values by commas (,)).', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,50 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Recent Posts' ),
'base' => 'vc_wp_posts',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'The most recent posts on your site', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
'value' => esc_html__( 'Recent Posts' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Number of posts', 'js_composer' ),
'description' => esc_html__( 'Enter number of posts to display.', 'js_composer' ),
'param_name' => 'number',
'value' => 5,
'admin_label' => true,
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Display post date?', 'js_composer' ),
'param_name' => 'show_date',
'value' => array( esc_html__( 'Yes', 'js_composer' ) => true ),
'description' => esc_html__( 'If checked, date will be displayed.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,43 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Recent Comments' ),
'base' => 'vc_wp_recentcomments',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'The most recent comments', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
'value' => esc_html__( 'Recent Comments' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Number of comments', 'js_composer' ),
'description' => esc_html__( 'Enter number of comments to display.', 'js_composer' ),
'param_name' => 'number',
'value' => 5,
'admin_label' => true,
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,82 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'RSS' ),
'base' => 'vc_wp_rss',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'Entries from any RSS or Atom feed', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'RSS feed URL', 'js_composer' ),
'param_name' => 'url',
'description' => esc_html__( 'Enter the RSS feed URL.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Items', 'js_composer' ),
'param_name' => 'items',
'value' => array(
esc_html__( '10 - Default', 'js_composer' ) => 10,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
),
'description' => esc_html__( 'Select how many items to display.', 'js_composer' ),
'admin_label' => true,
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Options', 'js_composer' ),
'param_name' => 'options',
'value' => array(
esc_html__( 'Item content', 'js_composer' ) => 'show_summary',
esc_html__( 'Display item author if available?', 'js_composer' ) => 'show_author',
esc_html__( 'Display item date?', 'js_composer' ) => 'show_date',
),
'description' => esc_html__( 'Select display options for RSS feeds.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,34 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Search' ),
'base' => 'vc_wp_search',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'A search form for your site', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,57 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$tag_taxonomies = array();
if ( 'vc_edit_form' === vc_post_param( 'action' ) && vc_verify_admin_nonce() ) {
$taxonomies = get_taxonomies();
if ( is_array( $taxonomies ) && ! empty( $taxonomies ) ) {
foreach ( $taxonomies as $taxonomy ) {
$tax = get_taxonomy( $taxonomy );
if ( ( is_object( $tax ) && ( ! $tax->show_tagcloud || empty( $tax->labels->name ) ) ) || ! is_object( $tax ) ) {
continue;
}
$tag_taxonomies[ $tax->labels->name ] = esc_attr( $taxonomy );
}
}
}
return array(
'name' => 'WP ' . esc_html__( 'Tag Cloud' ),
'base' => 'vc_wp_tagcloud',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'Your most used tags in cloud format', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'value' => esc_html__( 'Tags', 'js_composer' ),
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Taxonomy', 'js_composer' ),
'param_name' => 'taxonomy',
'value' => $tag_taxonomies,
'description' => esc_html__( 'Select source for tag cloud.', 'js_composer' ),
'admin_label' => true,
'save_always' => true,
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);

View File

@@ -0,0 +1,40 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => 'WP ' . esc_html__( 'Text' ),
'base' => 'vc_wp_text',
'icon' => 'icon-wpb-wp',
'category' => esc_html__( 'WordPress Widgets', 'js_composer' ),
'class' => 'wpb_vc_wp_widget',
'weight' => - 50,
'description' => esc_html__( 'Arbitrary text or HTML', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ),
),
array(
'type' => 'textarea_html',
'holder' => 'div',
'heading' => esc_html__( 'Text', 'js_composer' ),
'param_name' => 'content',
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
);