/wp-content/plugins/js_composer/config/map.php
PHP | 3304 lines | 2980 code | 93 blank | 231 comment | 11 complexity | ee12427dd23267811626468e79bdb60e MD5 | raw file
Possible License(s): GPL-3.0, MIT, BSD-3-Clause, LGPL-2.1, GPL-2.0, Apache-2.0
Large files files are truncated, but you can click here to view the full file
- <?php
- /**
- * WPBakery Visual Composer Shortcodes settings
- *
- * @package VPBakeryVisualComposer
- *
- */
- $vc_is_wp_version_3_6_more = version_compare( preg_replace( '/^([\d\.]+)(\-.*$)/', '$1', get_bloginfo( 'version' ) ), '3.6' ) >= 0;
- // Used in "Button", "Call __( 'Blue', 'js_composer' )to Action", "Pie chart" blocks
- $colors_arr = array(
- __( 'Grey', 'js_composer' ) => 'wpb_button',
- __( 'Blue', 'js_composer' ) => 'btn-primary',
- __( 'Turquoise', 'js_composer' ) => 'btn-info',
- __( 'Green', 'js_composer' ) => 'btn-success',
- __( 'Orange', 'js_composer' ) => 'btn-warning',
- __( 'Red', 'js_composer' ) => 'btn-danger',
- __( 'Black', 'js_composer' ) => "btn-inverse"
- );
- // Used in "Button" and "Call to Action" blocks
- $size_arr = array(
- __( 'Regular size', 'js_composer' ) => 'wpb_regularsize',
- __( 'Large', 'js_composer' ) => 'btn-large',
- __( 'Small', 'js_composer' ) => 'btn-small',
- __( 'Mini', 'js_composer' ) => "btn-mini"
- );
- $target_arr = array(
- __( 'Same window', 'js_composer' ) => '_self',
- __( 'New window', 'js_composer' ) => "_blank"
- );
- $add_css_animation = array(
- 'type' => 'dropdown',
- 'heading' => __( 'CSS Animation', 'js_composer' ),
- 'param_name' => 'css_animation',
- 'admin_label' => true,
- 'value' => array(
- __( 'No', 'js_composer' ) => '',
- __( 'Top to bottom', 'js_composer' ) => 'top-to-bottom',
- __( 'Bottom to top', 'js_composer' ) => 'bottom-to-top',
- __( 'Left to right', 'js_composer' ) => 'left-to-right',
- __( 'Right to left', 'js_composer' ) => 'right-to-left',
- __( 'Appear from center', 'js_composer' ) => "appear"
- ),
- 'description' => __( 'Select type of animation if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.', 'js_composer' )
- );
- vc_map( array(
- 'name' => __( 'Row', 'js_composer' ),
- 'base' => 'vc_row',
- 'is_container' => true,
- 'icon' => 'icon-wpb-row',
- 'show_settings_on_create' => false,
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Place content elements inside the row', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'colorpicker',
- 'heading' => __( 'Font Color', 'js_composer' ),
- 'param_name' => 'font_color',
- 'description' => __( 'Select font color', 'js_composer' ),
- 'edit_field_class' => 'vc_col-md-6 vc_column'
- ),
- /*
- array(
- 'type' => 'colorpicker',
- 'heading' => __( 'Custom Background Color', 'js_composer' ),
- 'param_name' => 'bg_color',
- 'description' => __( 'Select backgound color for your row', 'js_composer' ),
- 'edit_field_class' => 'col-md-6'
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Padding', 'js_composer' ),
- 'param_name' => 'padding',
- 'description' => __( 'You can use px, em, %, etc. or enter just number and it will use pixels.', 'js_composer' ),
- 'edit_field_class' => 'col-md-6'
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Bottom margin', 'js_composer' ),
- 'param_name' => 'margin_bottom',
- 'description' => __( 'You can use px, em, %, etc. or enter just number and it will use pixels.', 'js_composer' ),
- 'edit_field_class' => 'col-md-6'
- ),
- array(
- 'type' => 'attach_image',
- 'heading' => __( 'Background Image', 'js_composer' ),
- 'param_name' => 'bg_image',
- 'description' => __( 'Select background image for your row', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Background Repeat', 'js_composer' ),
- 'param_name' => 'bg_image_repeat',
- 'value' => array(
- __( 'Default', 'js_composer' ) => '',
- __( 'Cover', 'js_composer' ) => 'cover',
- __('Contain', 'js_composer') => 'contain',
- __('No Repeat', 'js_composer') => 'no-repeat'
- ),
- 'description' => __( 'Select how a background image will be repeated', 'js_composer' ),
- 'dependency' => array( 'element' => 'bg_image', 'not_empty' => true)
- ),
- */
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' => __( 'Css', 'js_composer' ),
- 'param_name' => 'css',
- // 'description' => __( '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' ),
- 'group' => __( 'Design options', 'js_composer' )
- )
- ),
- 'js_view' => 'VcRowView'
- ) );
- vc_map( array(
- 'name' => __( 'Row', 'js_composer' ), //Inner Row
- 'base' => 'vc_row_inner',
- 'content_element' => false,
- 'is_container' => true,
- 'icon' => 'icon-wpb-row',
- 'weight' => 1000,
- 'show_settings_on_create' => false,
- 'description' => __( 'Place content elements inside the row', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'colorpicker',
- 'heading' => __( 'Font Color', 'js_composer' ),
- 'param_name' => 'font_color',
- 'description' => __( 'Select font color', 'js_composer' ),
- 'edit_field_class' => 'vc_col-md-6 vc_column'
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' => __( 'Css', 'js_composer' ),
- 'param_name' => 'css',
- // 'description' => __( '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' ),
- 'group' => __( 'Design options', 'js_composer' )
- )
- ),
- 'js_view' => 'VcRowView'
- ) );
- $column_width_list = array(
- __('1 column - 1/12', 'js_composer') => '1/12',
- __('2 columns - 1/6', 'js_composer') => '1/6',
- __('3 columns - 1/4', 'js_composer') => '1/4',
- __('4 columns - 1/3', 'js_composer') => '1/3',
- __('5 columns - 5/12', 'js_composer') => '5/12',
- __('6 columns - 1/2', 'js_composer') => '1/2',
- __('7 columns - 7/12', 'js_composer') => '7/12',
- __('8 columns - 2/3', 'js_composer') => '2/3',
- __('9 columns - 3/4', 'js_composer') => '3/4',
- __('10 columns - 5/6', 'js_composer') => '5/6',
- __('11 columns - 11/12', 'js_composer') => '11/12',
- __('12 columns - 1/1', 'js_composer') => '1/1'
- );
- vc_map( array(
- 'name' => __( 'Column', 'js_composer' ),
- 'base' => 'vc_column',
- 'is_container' => true,
- 'content_element' => false,
- 'params' => array(
- array(
- 'type' => 'colorpicker',
- 'heading' => __( 'Font Color', 'js_composer' ),
- 'param_name' => 'font_color',
- 'description' => __( 'Select font color', 'js_composer' ),
- 'edit_field_class' => 'vc_col-md-6 vc_column'
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' => __( 'Css', 'js_composer' ),
- 'param_name' => 'css',
- // 'description' => __( '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' ),
- 'group' => __( 'Design options', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Width', 'js_composer' ),
- 'param_name' => 'width',
- 'value' => $column_width_list,
- 'group' => __( 'Width & Responsiveness', 'js_composer' ),
- 'description' => __( 'Select column width.', 'js_composer' ),
- 'std' => '1/1'
- ),
- array(
- 'type' => 'column_offset',
- 'heading' => __('Responsiveness', 'js_composer'),
- 'param_name' => 'offset',
- 'group' => __( 'Width & Responsiveness', 'js_composer' ),
- 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer')
- )
- ),
- 'js_view' => 'VcColumnView'
- ) );
- vc_map( array(
- "name" => __( "Column", "js_composer" ),
- "base" => "vc_column_inner",
- "class" => "",
- "icon" => "",
- "wrapper_class" => "",
- "controls" => "full",
- "allowed_container_element" => false,
- "content_element" => false,
- "is_container" => true,
- "params" => array(
- array(
- 'type' => 'colorpicker',
- 'heading' => __( 'Font Color', 'js_composer' ),
- 'param_name' => 'font_color',
- 'description' => __( 'Select font color', 'js_composer' ),
- 'edit_field_class' => 'vc_col-md-6 vc_column'
- ),
- array(
- "type" => "textfield",
- "heading" => __( "Extra class name", "js_composer" ),
- "param_name" => "el_class",
- "value" => "",
- "description" => __( "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" => __( 'Css', "js_composer" ),
- "param_name" => "css",
- // "description" => __("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"),
- "group" => __( 'Design options', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Width', 'js_composer' ),
- 'param_name' => 'width',
- 'value' => $column_width_list,
- 'group' => __( 'Width & Responsiveness', 'js_composer' ),
- 'description' => __( 'Select column width.', 'js_composer' ),
- 'std' => '1/1'
- )
- ),
- "js_view" => 'VcColumnView'
- ) );
- /* Text Block
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Text Block', 'js_composer' ),
- 'base' => 'vc_column_text',
- 'icon' => 'icon-wpb-layer-shape-text',
- 'wrapper_class' => 'clearfix',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'A block of text with WYSIWYG editor', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textarea_html',
- 'holder' => 'div',
- 'heading' => __( 'Text', 'js_composer' ),
- 'param_name' => 'content',
- 'value' => __( '<p>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.</p>', 'js_composer' )
- ),
- $add_css_animation,
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' => __( 'Css', 'js_composer' ),
- 'param_name' => 'css',
- // 'description' => __( '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' ),
- 'group' => __( 'Design options', 'js_composer' )
- )
- )
- ) );
- /* Latest tweets
- ---------------------------------------------------------- */
- /*vc_map( array(
- 'name' => __( 'Twitter Widget', 'js_composer' ),
- 'base' => 'vc_twitter',
- 'icon' => 'icon-wpb-balloon-twitter-left',
- 'category' => __( 'Social', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Twitter username', 'js_composer' ),
- 'param_name' => 'twitter_name',
- 'admin_label' => true,
- 'description' => __( 'Type in twitter profile name from which load tweets.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Tweets count', 'js_composer' ),
- 'param_name' => 'tweets_count',
- 'admin_label' => true,
- 'value' => array( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15),
- 'description' => __( 'How many recent tweets to load.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- )
- ) );*/
- /* Separator (Divider)
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Separator', 'js_composer' ),
- 'base' => 'vc_separator',
- 'icon' => 'icon-wpb-ui-separator',
- 'show_settings_on_create' => true,
- 'category' => __( 'Content', 'js_composer' ),
- //"controls" => 'popup_delete',
- 'description' => __( 'Horizontal separator line', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Color', 'js_composer' ),
- 'param_name' => 'color',
- 'value' => array_merge( getVcShared( 'colors' ), array( __( 'Custom color', 'js_composer' ) => 'custom' ) ),
- 'std' => 'grey',
- 'description' => __( 'Separator color.', 'js_composer' ),
- 'param_holder_class' => 'vc_colored-dropdown'
- ),
- array(
- 'type' => 'colorpicker',
- 'heading' => __( 'Custom Border Color', 'js_composer' ),
- 'param_name' => 'accent_color',
- 'description' => __( 'Select border color for your element.', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'color',
- 'value' => array( 'custom' )
- ),
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Style', 'js_composer' ),
- 'param_name' => 'style',
- 'value' => getVcShared( 'separator styles' ),
- 'description' => __( 'Separator style.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Element width', 'js_composer' ),
- 'param_name' => 'el_width',
- 'value' => getVcShared( 'separator widths' ),
- 'description' => __( 'Separator element width in percents.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- )
- ) );
- /* Textual block
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Separator with Text', 'js_composer' ),
- 'base' => 'vc_text_separator',
- 'icon' => 'icon-wpb-ui-separator-label',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Horizontal separator line with heading', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Title', 'js_composer' ),
- 'param_name' => 'title',
- 'holder' => 'div',
- 'value' => __( 'Title', 'js_composer' ),
- 'description' => __( 'Separator title.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Title position', 'js_composer' ),
- 'param_name' => 'title_align',
- 'value' => array(
- __( 'Align center', 'js_composer' ) => 'separator_align_center',
- __( 'Align left', 'js_composer' ) => 'separator_align_left',
- __( 'Align right', 'js_composer' ) => "separator_align_right"
- ),
- 'description' => __( 'Select title location.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Color', 'js_composer' ),
- 'param_name' => 'color',
- 'value' => array_merge( getVcShared( 'colors' ), array( __( 'Custom color', 'js_composer' ) => 'custom' ) ),
- 'std' => 'grey',
- 'description' => __( 'Separator color.', 'js_composer' ),
- 'param_holder_class' => 'vc_colored-dropdown'
- ),
- array(
- 'type' => 'colorpicker',
- 'heading' => __( 'Custom Color', 'js_composer' ),
- 'param_name' => 'accent_color',
- 'description' => __( 'Custom separator color for your element.', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'color',
- 'value' => array( 'custom' )
- ),
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Style', 'js_composer' ),
- 'param_name' => 'style',
- 'value' => getVcShared( 'separator styles' ),
- 'description' => __( 'Separator style.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Element width', 'js_composer' ),
- 'param_name' => 'el_width',
- 'value' => getVcShared( 'separator widths' ),
- 'description' => __( 'Separator element width in percents.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- ),
- 'js_view' => 'VcTextSeparatorView'
- ) );
- /* Message box
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Message Box', 'js_composer' ),
- 'base' => 'vc_message',
- 'icon' => 'icon-wpb-information-white',
- 'wrapper_class' => 'alert',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Notification box', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Message box type', 'js_composer' ),
- 'param_name' => 'color',
- 'value' => array(
- __( 'Informational', 'js_composer' ) => 'alert-info',
- __( 'Warning', 'js_composer' ) => 'alert-warning',
- __( 'Success', 'js_composer' ) => 'alert-success',
- __( 'Error', 'js_composer' ) => "alert-danger"
- ),
- 'description' => __( 'Select message type.', 'js_composer' ),
- 'param_holder_class' => 'vc_message-type'
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Style', 'js_composer' ),
- 'param_name' => 'style',
- 'value' => getVcShared( 'alert styles' ),
- 'description' => __( 'Alert style.', 'js_composer' )
- ),
- array(
- 'type' => 'textarea_html',
- 'holder' => 'div',
- 'class' => 'messagebox_text',
- 'heading' => __( 'Message text', 'js_composer' ),
- 'param_name' => 'content',
- 'value' => __( '<p>I am message box. Click edit button to change this text.</p>', 'js_composer' )
- ),
- $add_css_animation,
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- ),
- 'js_view' => 'VcMessageView'
- ) );
- /* Facebook like button
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Facebook Like', 'js_composer' ),
- 'base' => 'vc_facebook',
- 'icon' => 'icon-wpb-balloon-facebook-left',
- 'category' => __( 'Social', 'js_composer' ),
- 'description' => __( 'Facebook like button', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Button type', 'js_composer' ),
- 'param_name' => 'type',
- 'admin_label' => true,
- 'value' => array(
- __( 'Standard', 'js_composer' ) => 'standard',
- __( 'Button count', 'js_composer' ) => 'button_count',
- __( 'Box count', 'js_composer' ) => 'box_count'
- ),
- 'description' => __( 'Select button type.', 'js_composer' )
- )
- )
- ) );
- /* Tweetmeme button
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Tweetmeme Button', 'js_composer' ),
- 'base' => 'vc_tweetmeme',
- 'icon' => 'icon-wpb-tweetme',
- 'category' => __( 'Social', 'js_composer' ),
- 'description' => __( 'Share on twitter button', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Button type', 'js_composer' ),
- 'param_name' => 'type',
- 'admin_label' => true,
- 'value' => array(
- __( 'Horizontal', 'js_composer' ) => 'horizontal',
- __( 'Vertical', 'js_composer' ) => 'vertical',
- __( 'None', 'js_composer' ) => 'none'
- ),
- 'description' => __( 'Select button type.', 'js_composer' )
- )
- )
- ) );
- /* Google+ button
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Google+ Button', 'js_composer' ),
- 'base' => 'vc_googleplus',
- 'icon' => 'icon-wpb-application-plus',
- 'category' => __( 'Social', 'js_composer' ),
- 'description' => __( 'Recommend on Google', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Button size', 'js_composer' ),
- 'param_name' => 'type',
- 'admin_label' => true,
- 'value' => array(
- __( 'Standard', 'js_composer' ) => '',
- __( 'Small', 'js_composer' ) => 'small',
- __( 'Medium', 'js_composer' ) => 'medium',
- __( 'Tall', 'js_composer' ) => 'tall'
- ),
- 'description' => __( 'Select button size.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Annotation', 'js_composer' ),
- 'param_name' => 'annotation',
- 'admin_label' => true,
- 'value' => array(
- __( 'Inline', 'js_composer' ) => 'inline',
- __( 'Bubble', 'js_composer' ) => '',
- __( 'None', 'js_composer' ) => 'none'
- ),
- 'description' => __( 'Select type of annotation', 'js_composer' )
- )
- )
- ) );
- /* Pinterest button
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Pinterest', 'js_composer' ),
- 'base' => 'vc_pinterest',
- 'icon' => 'icon-wpb-pinterest',
- 'category' => __( 'Social', 'js_composer' ),
- 'description' => __( 'Pinterest button', 'js_composer' ),
- "params" => array(
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Button layout', 'js_composer' ),
- 'param_name' => 'type',
- 'admin_label' => true,
- 'value' => array(
- __( 'Horizontal', 'js_composer' ) => '',
- __( 'Vertical', 'js_composer' ) => 'vertical',
- __( 'No count', 'js_composer' ) => 'none' ),
- 'description' => __( 'Select button layout.', 'js_composer' )
- )
- )
- ) );
- /* Toggle (FAQ)
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'FAQ', 'js_composer' ),
- 'base' => 'vc_toggle',
- 'icon' => 'icon-wpb-toggle-small-expand',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Toggle element for Q&A block', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'holder' => 'h4',
- 'class' => 'toggle_title',
- 'heading' => __( 'Toggle title', 'js_composer' ),
- 'param_name' => 'title',
- 'value' => __( 'Toggle title', 'js_composer' ),
- 'description' => __( 'Toggle block title.', 'js_composer' )
- ),
- array(
- 'type' => 'textarea_html',
- 'holder' => 'div',
- 'class' => 'toggle_content',
- 'heading' => __( 'Toggle content', 'js_composer' ),
- 'param_name' => 'content',
- 'value' => __( '<p>Toggle content goes here, click edit button to change this text.</p>', 'js_composer' ),
- 'description' => __( 'Toggle block content.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Default state', 'js_composer' ),
- 'param_name' => 'open',
- 'value' => array(
- __( 'Closed', 'js_composer' ) => 'false',
- __( 'Open', 'js_composer' ) => 'true'
- ),
- 'description' => __( 'Select "Open" if you want toggle to be open by default.', 'js_composer' )
- ),
- $add_css_animation,
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- ),
- 'js_view' => 'VcToggleView'
- ) );
- /* Single image */
- vc_map( array(
- 'name' => __( 'Single Image', 'js_composer' ),
- 'base' => 'vc_single_image',
- 'icon' => 'icon-wpb-single-image',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Simple image with CSS animation', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'attach_image',
- 'heading' => __( 'Image', 'js_composer' ),
- 'param_name' => 'image',
- 'value' => '',
- 'description' => __( 'Select image from media library.', 'js_composer' )
- ),
- $add_css_animation,
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Image size', 'js_composer' ),
- 'param_name' => 'img_size',
- 'description' => __( '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' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Image alignment', 'js_composer' ),
- 'param_name' => 'alignment',
- 'value' => array(
- __( 'Align left', 'js_composer' ) => '',
- __( 'Align right', 'js_composer' ) => 'right',
- __( 'Align center', 'js_composer' ) => 'center'
- ),
- 'description' => __( 'Select image alignment.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Image style', 'js_composer' ),
- 'param_name' => 'style',
- 'value' => getVcShared( 'single image styles' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Border color', 'js_composer' ),
- 'param_name' => 'border_color',
- 'value' => getVcShared( 'colors' ),
- 'std' => 'grey',
- 'dependency' => array(
- 'element' => 'style',
- 'value' => array( 'vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle' )
- ),
- 'description' => __( 'Border color.', 'js_composer' ),
- 'param_holder_class' => 'vc_colored-dropdown'
- ),
- array(
- 'type' => 'checkbox',
- 'heading' => __( 'Link to large image?', 'js_composer' ),
- 'param_name' => 'img_link_large',
- 'description' => __( 'If selected, image will be linked to the larger image.', 'js_composer' ),
- 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
- ),
- array(
- 'type' => 'href',
- 'heading' => __( 'Image link', 'js_composer' ),
- 'param_name' => 'link',
- 'description' => __( 'Enter URL if you want this image to have a link.', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'img_link_large',
- 'is_empty' => true,
- 'callback' => 'wpb_single_image_img_link_dependency_callback'
- )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Link Target', 'js_composer' ),
- 'param_name' => 'img_link_target',
- 'value' => $target_arr,
- 'dependency' => array(
- 'element' => 'img_link',
- 'not_empty' => true
- )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' => __( 'Css', 'js_composer' ),
- 'param_name' => 'css',
- // 'description' => __( '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' ),
- 'group' => __( 'Design options', 'js_composer' )
- )
- )
- ) );
- /* Gallery/Slideshow
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Image Gallery', 'js_composer' ),
- 'base' => 'vc_gallery',
- 'icon' => 'icon-wpb-images-stack',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Responsive image gallery', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Gallery type', 'js_composer' ),
- 'param_name' => 'type',
- 'value' => array(
- __( 'Flex slider fade', 'js_composer' ) => 'flexslider_fade',
- __( 'Flex slider slide', 'js_composer' ) => 'flexslider_slide',
- __( 'Nivo slider', 'js_composer' ) => 'nivo',
- __( 'Image grid', 'js_composer' ) => 'image_grid'
- ),
- 'description' => __( 'Select gallery type.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Auto rotate slides', 'js_composer' ),
- 'param_name' => 'interval',
- 'value' => array( 3, 5, 10, 15, __( 'Disable', 'js_composer' ) => 0 ),
- 'description' => __( 'Auto rotate slides each X seconds.', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'type',
- 'value' => array( 'flexslider_fade', 'flexslider_slide', 'nivo' )
- )
- ),
- array(
- 'type' => 'attach_images',
- 'heading' => __( 'Images', 'js_composer' ),
- 'param_name' => 'images',
- 'value' => '',
- 'description' => __( 'Select images from media library.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Image size', 'js_composer' ),
- 'param_name' => 'img_size',
- 'description' => __( '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' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'On click', 'js_composer' ),
- 'param_name' => 'onclick',
- 'value' => array(
- __( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
- __( 'Do nothing', 'js_composer' ) => 'link_no',
- __( 'Open custom link', 'js_composer' ) => 'custom_link'
- ),
- 'description' => __( 'Define action for onclick event if needed.', 'js_composer' )
- ),
- array(
- 'type' => 'exploded_textarea',
- 'heading' => __( 'Custom links', 'js_composer' ),
- 'param_name' => 'custom_links',
- 'description' => __( 'Enter links for each slide here. Divide links with linebreaks (Enter) . ', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'onclick',
- 'value' => array( 'custom_link' )
- )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Custom link target', 'js_composer' ),
- 'param_name' => 'custom_links_target',
- 'description' => __( 'Select where to open custom links.', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'onclick',
- 'value' => array( 'custom_link' )
- ),
- 'value' => $target_arr
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- )
- ) );
- /* Image Carousel
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Image Carousel', 'js_composer' ),
- 'base' => 'vc_images_carousel',
- 'icon' => 'icon-wpb-images-carousel',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Animated carousel with images', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'attach_images',
- 'heading' => __( 'Images', 'js_composer' ),
- 'param_name' => 'images',
- 'value' => '',
- 'description' => __( 'Select images from media library.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Image size', 'js_composer' ),
- 'param_name' => 'img_size',
- 'description' => __( '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' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'On click', 'js_composer' ),
- 'param_name' => 'onclick',
- 'value' => array(
- __( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
- __( 'Do nothing', 'js_composer' ) => 'link_no',
- __( 'Open custom link', 'js_composer' ) => 'custom_link'
- ),
- 'description' => __( 'What to do when slide is clicked?', 'js_composer' )
- ),
- array(
- 'type' => 'exploded_textarea',
- 'heading' => __( 'Custom links', 'js_composer' ),
- 'param_name' => 'custom_links',
- 'description' => __( 'Enter links for each slide here. Divide links with linebreaks (Enter) . ', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'onclick',
- 'value' => array( 'custom_link' )
- )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Custom link target', 'js_composer' ),
- 'param_name' => 'custom_links_target',
- 'description' => __( 'Select where to open custom links.', 'js_composer' ),
- 'dependency' => array(
- 'element' => 'onclick',
- 'value' => array( 'custom_link' )
- ),
- 'value' => $target_arr
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Slider mode', 'js_composer' ),
- 'param_name' => 'mode',
- 'value' => array(
- __( 'Horizontal', 'js_composer' ) => 'horizontal',
- __( 'Vertical', 'js_composer' ) => 'vertical'
- ),
- 'description' => __( 'Slides will be positioned horizontally (for horizontal swipes) or vertically (for vertical swipes)', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Slider speed', 'js_composer' ),
- 'param_name' => 'speed',
- 'value' => '5000',
- 'description' => __( 'Duration of animation between slides (in ms)', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Slides per view', 'js_composer' ),
- 'param_name' => 'slides_per_view',
- 'value' => '1',
- 'description' => __( 'Set numbers of slides you want to display at the same time on slider\'s container for carousel mode. Supports also "auto" value, in this case it will fit slides depending on container\'s width. "auto" mode isn\'t compatible with loop mode.', 'js_composer' )
- ),
- array(
- 'type' => 'checkbox',
- 'heading' => __( 'Slider autoplay', 'js_composer' ),
- 'param_name' => 'autoplay',
- 'description' => __( 'Enables autoplay mode.', 'js_composer' ),
- 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
- ),
- array(
- 'type' => 'checkbox',
- 'heading' => __( 'Hide pagination control', 'js_composer' ),
- 'param_name' => 'hide_pagination_control',
- 'description' => __( 'If YES pagination control will be removed.', 'js_composer' ),
- 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
- ),
- array(
- 'type' => 'checkbox',
- 'heading' => __( 'Hide prev/next buttons', 'js_composer' ),
- 'param_name' => 'hide_prev_next_buttons',
- 'description' => __( 'If "YES" prev/next control will be removed.', 'js_composer' ),
- 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
- ),
- array(
- 'type' => 'checkbox',
- 'heading' => __( 'Partial view', 'js_composer' ),
- 'param_name' => 'partial_view',
- 'description' => __( 'If "YES" part of the next slide will be visible on the right side.', 'js_composer' ),
- 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
- ),
- array(
- 'type' => 'checkbox',
- 'heading' => __( 'Slider loop', 'js_composer' ),
- 'param_name' => 'wrap',
- 'description' => __( 'Enables loop mode.', 'js_composer' ),
- 'value' => array( __( 'Yes, please', 'js_composer' ) => 'yes' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- )
- ) );
- /* Tabs
- ---------------------------------------------------------- */
- $tab_id_1 = time() . '-1-' . rand( 0, 100 );
- $tab_id_2 = time() . '-2-' . rand( 0, 100 );
- vc_map( array(
- "name" => __( 'Tabs', 'js_composer' ),
- 'base' => 'vc_tabs',
- 'show_settings_on_create' => false,
- 'is_container' => true,
- 'icon' => 'icon-wpb-ui-tab-content',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Tabbed content', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Auto rotate tabs', 'js_composer' ),
- 'param_name' => 'interval',
- 'value' => array( __( 'Disable', 'js_composer' ) => 0, 3, 5, 10, 15 ),
- 'std' => 0,
- 'description' => __( 'Auto rotate tabs each X seconds.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- ),
- '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="' . __( 'Tab 1', 'js_composer' ) . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
- [vc_tab title="' . __( 'Tab 2', 'js_composer' ) . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
- ',
- 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'
- ) );
- /* Tour section
- ---------------------------------------------------------- */
- $tab_id_1 = time() . '-1-' . rand( 0, 100 );
- $tab_id_2 = time() . '-2-' . rand( 0, 100 );
- WPBMap::map( 'vc_tour', array(
- 'name' => __( 'Tour', 'js_composer' ),
- 'base' => 'vc_tour',
- 'show_settings_on_create' => false,
- 'is_container' => true,
- 'container_not_allowed' => true,
- 'icon' => 'icon-wpb-ui-tab-content-vertical',
- 'category' => __( 'Content', 'js_composer' ),
- 'wrapper_class' => 'vc_clearfix',
- 'description' => __( 'Vertical tabbed content', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Auto rotate slides', 'js_composer' ),
- 'param_name' => 'interval',
- 'value' => array( __( 'Disable', 'js_composer' ) => 0, 3, 5, 10, 15 ),
- 'std' => 0,
- 'description' => __( 'Auto rotate slides each X seconds.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- ),
- '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="' . __( 'Tab 1', 'js_composer' ) . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
- [vc_tab title="' . __( 'Tab 2', 'js_composer' ) . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
- ',
- 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'
- ) );
- vc_map( array(
- 'name' => __( 'Tab', 'js_composer' ),
- 'base' => 'vc_tab',
- 'allowed_container_element' => 'vc_row',
- 'is_container' => true,
- 'content_element' => false,
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Tab title.', 'js_composer' )
- ),
- array(
- 'type' => 'tab_id',
- 'heading' => __( 'Tab ID', 'js_composer' ),
- 'param_name' => "tab_id"
- )
- ),
- 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'
- ) );
- /* Accordion block
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Accordion', 'js_composer' ),
- 'base' => 'vc_accordion',
- 'show_settings_on_create' => false,
- 'is_container' => true,
- 'icon' => 'icon-wpb-ui-accordion',
- 'category' => __( 'Content', 'js_composer' ),
- 'description' => __( 'Collapsible content panels', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Active section', 'js_composer' ),
- 'param_name' => 'active_tab',
- 'description' => __( 'Enter section number to be active on load or enter false to collapse all sections.', 'js_composer' )
- ),
- array(
- 'type' => 'checkbox',
- 'heading' => __( 'Allow collapsible all', 'js_composer' ),
- 'param_name' => 'collapsible',
- 'description' => __( 'Select checkbox to allow all sections to be collapsible.', 'js_composer' ),
- 'value' => array( __( 'Allow', 'js_composer' ) => 'yes' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- ),
- '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="' . __( 'Add section', 'js_composer' ) . '"><span class="vc_icon"></span> <span class="tab-label">' . __( 'Add section', 'js_composer' ) . '</span></a>
- </div>
- ',
- 'default_content' => '
- [vc_accordion_tab title="' . __( 'Section 1', 'js_composer' ) . '"][/vc_accordion_tab]
- [vc_accordion_tab title="' . __( 'Section 2', 'js_composer' ) . '"][/vc_accordion_tab]
- ',
- 'js_view' => 'VcAccordionView'
- ) );
- vc_map( array(
- 'name' => __( 'Section', 'js_composer' ),
- 'base' => 'vc_accordion_tab',
- 'allowed_container_element' => 'vc_row',
- 'is_container' => true,
- 'content_element' => false,
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Accordion section title.', 'js_composer' )
- ),
- ),
- 'js_view' => 'VcAccordionTabView'
- ) );
- /* Teaser grid
- * @deprecated please use vc_posts_grid
- ---------------------------------------------------------- */
- vc_map( array(
- 'name' => __( 'Teaser (posts) Grid', 'js_composer' ),
- 'base' => 'vc_teaser_grid',
- 'content_element' => false,
- 'icon' => 'icon-wpb-application-icon-large',
- 'category' => __( 'Content', 'js_composer' ),
- 'params' => array(
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Widget title', 'js_composer' ),
- 'param_name' => 'title',
- 'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Columns count', 'js_composer' ),
- 'param_name' => 'grid_columns_count',
- 'value' => array( 4, 3, 2, 1 ),
- 'admin_label' => true,
- 'description' => __( 'Select columns count.', 'js_composer' )
- ),
- array(
- 'type' => 'posttypes',
- 'heading' => __( 'Post types', 'js_composer' ),
- 'param_name' => 'grid_posttypes',
- 'description' => __( 'Select post types to populate posts from.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Teasers count', 'js_composer' ),
- 'param_name' => 'grid_teasers_count',
- 'description' => __( 'How many teasers to show? Enter number or word "All".', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Content', 'js_composer' ),
- 'param_name' => 'grid_content',
- 'value' => array(
- __( 'Teaser (Excerpt)', 'js_composer' ) => 'teaser',
- __( 'Full Content', 'js_composer' ) => 'content'
- ),
- 'description' => __( 'Teaser layout template.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Layout', 'js_composer' ),
- 'param_name' => 'grid_layout',
- 'value' => array(
- __( 'Title + Thumbnail + Text', 'js_composer' ) => 'title_thumbnail_text',
- __( 'Thumbnail + Title + Text', 'js_composer' ) => 'thumbnail_title_text',
- __( 'Thumbnail + Text', 'js_composer' ) => 'thumbnail_text',
- __( 'Thumbnail + Title', 'js_composer' ) => 'thumbnail_title',
- __( 'Thumbnail only', 'js_composer' ) => 'thumbnail',
- __( 'Title + Text', 'js_composer' ) => 'title_text' ),
- 'description' => __( 'Teaser layout.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Link', 'js_composer' ),
- 'param_name' => 'grid_link',
- 'value' => array(
- __( 'Link to post', 'js_composer' ) => 'link_post',
- __( 'Link to bigger image', 'js_composer' ) => 'link_image',
- __( 'Thumbnail to bigger image, title to post', 'js_composer' ) => 'link_image_post',
- __( 'No link', 'js_composer' ) => 'link_no'
- ),
- 'description' => __( 'Link type.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Link target', 'js_composer' ),
- 'param_name' => 'grid_link_target',
- 'value' => $target_arr,
- 'dependency' => array(
- 'element' => 'grid_link',
- 'value' => array( 'link_post', 'link_image_post' )
- )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Teaser grid layout', 'js_composer' ),
- 'param_name' => 'grid_template',
- 'value' => array(
- __( 'Grid', 'js_composer' ) => 'grid',
- __( 'Grid with filter', 'js_composer' ) => 'filtered_grid',
- __( 'Carousel', 'js_composer' ) => 'carousel'
- ),
- 'description' => __( 'Teaser layout template.', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Layout mode', 'js_composer' ),
- 'param_name' => 'grid_layout_mode',
- 'value' => array(
- __( 'Fit rows', 'js_composer' ) => 'fitRows',
- __( 'Masonry', 'js_composer' ) => 'masonry'
- ),
- 'dependency' => array(
- 'element' => 'grid_template',
- 'value' => array( 'filtered_grid', 'grid' )
- ),
- 'description' => __( 'Teaser layout template.', 'js_composer' )
- ),
- array(
- 'type' => 'taxonomies',
- 'heading' => __( 'Taxonomies', 'js_composer' ),
- 'param_name' => 'grid_taxomonies',
- 'dependency' => array(
- 'element' => 'grid_template',
- // 'not_empty' => true,
- 'value' => array( 'filtered_grid' ),
- 'callback' => 'wpb_grid_post_types_for_taxonomies_handler'
- ),
- 'description' => __( 'Select taxonomies.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Thumbnail size', 'js_composer' ),
- 'param_name' => 'grid_thumb_size',
- 'description' => __( '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' => __( 'Post/Page IDs', 'js_composer' ),
- 'param_name' => 'posts_in',
- 'description' => __( 'Fill this field with page/posts IDs separated by commas (,) to retrieve only them. Use this in conjunction with "Post types" field.', 'js_composer' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Exclude Post/Page IDs', 'js_composer' ),
- 'param_name' => 'posts_not_in',
- 'description' => __( 'Fill this field with page/posts IDs separated by commas (,) to exclude them from query.', 'js_composer' )
- ),
- array(
- 'type' => 'exploded_textarea',
- 'heading' => __( 'Categories', 'js_composer' ),
- 'param_name' => 'grid_categories',
- 'description' => __( 'If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter) . ', 'js_composer' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Order by', 'js_composer' ),
- 'param_name' => 'orderby',
- 'value' => array(
- '',
- __( 'Date', 'js_composer' ) => 'date',
- __( 'ID', 'js_composer' ) => 'ID',
- __( 'Author', 'js_composer' ) => 'author',
- __( 'Title', 'js_composer' ) => 'title',
- __( 'Modified', 'js_composer' ) => 'modified',
- __( 'Random', 'js_composer' ) => 'rand',
- __( 'Comment count', 'js_composer' ) => 'comment_count',
- __( 'Menu order', 'js_composer' ) => 'menu_order'
- ),
- 'description' => sprintf( __( 'Select how to sort retrieved posts. More at %s.', 'js_composer' ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' )
- ),
- array(
- 'type' => 'dropdown',
- 'heading' => __( 'Order way', 'js_composer' ),
- 'param_name' => 'order',
- 'value' => array(
- __( 'Descending', 'js_composer' ) => 'DESC',
- __( 'Ascending', 'js_composer' ) => 'ASC'
- ),
- 'description' => sprintf( __( 'Designates the ascending or descending order. More at %s.', 'js_composer' ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' )
- ),
- array(
- 'type' => 'textfield',
- 'heading' => __( 'Extra class name', 'js_composer' ),
- 'param_name' => 'el_class',
- 'description' => __( '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' )
- )
- )
- ) );
- /* Posts Grid
- ---------------------------------------------------------- */
- $vc_layout_sub_controls = array(
- array( 'link_post', __( 'Link to post', 'js_comp…
Large files files are truncated, but you can click here to view the full file