khaihihi
This commit is contained in:
@@ -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',
|
||||
);
|
||||
@@ -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',
|
||||
);
|
||||
@@ -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',
|
||||
);
|
||||
@@ -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',
|
||||
);
|
||||
@@ -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',
|
||||
);
|
||||
@@ -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' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -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' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -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',
|
||||
);
|
||||
@@ -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',
|
||||
);
|
||||
@@ -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',
|
||||
);
|
||||
Reference in New Issue
Block a user