/**
  * @since 4.3
  */
 public function buildShortcode()
 {
     if (class_exists('RevSlider')) {
         vc_lean_map('rev_slider_vc', array($this, 'addShortcodeSettings'));
         if (vc_is_frontend_ajax() || vc_is_frontend_editor()) {
             add_filter('vc_revslider_shortcode', array(&$this, 'setId'));
         }
     }
 }
Example #2
0
 * Visual Composer Teaser
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_teaser extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_teaser.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_teaser_vc_map()
{
    return array('name' => esc_html__('Teaser Box', 'total'), 'description' => esc_html__('A teaser content box', 'total'), 'base' => 'vcex_teaser', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-teaser vcex-icon fa fa-file-text-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations()), 'std' => ''), array('type' => 'dropdown', 'heading' => esc_html__('Text Align', 'total'), 'param_name' => 'text_align', 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => '', __('Plain', 'total') => 'one', __('Boxed 1 - Legacy', 'total') => 'two', __('Boxed 2 - Legacy', 'total') => 'three', __('Outline - Legacy', 'total') => 'four')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'style', 'value' => 'two')), array('type' => 'colorpicker', 'heading' => esc_html__('Background Color', 'total'), 'param_name' => 'background', 'dependency' => array('element' => 'style', 'value' => array('two', 'three'))), array('type' => 'colorpicker', 'heading' => esc_html__('Border Color', 'total'), 'param_name' => 'border_color', 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four'))), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four'))), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'value' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Heading Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Heading Type', 'total'), 'param_name' => 'heading_type', 'group' => esc_html__('Heading', 'total'), 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'div' => 'div')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'heading_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Heading Font Weight', 'total'), 'param_name' => 'heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Heading Text Transform', 'total'), 'param_name' => 'heading_transform', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms())), array('type' => 'textfield', 'heading' => esc_html__('Heading Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Heading Margin', 'total'), 'param_name' => 'heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Heading Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed faucibus feugiat convallis. Integer nec eros et risus condimentum tristique vel vitae arcu.', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Content', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Font Weight', 'total'), 'param_name' => 'content_font_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Content', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Font Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Content', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Content', 'total')), array('type' => 'attach_image', 'heading' => esc_html__('Image', 'total'), 'param_name' => 'image', 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Video link', 'total'), 'param_name' => 'video', 'description' => esc_html__('Enter in a video URL that is compatible with WordPress\'s built-in oEmbed feature.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Style', 'total'), 'param_name' => 'img_style', 'value' => array(__('Default', 'total') => '', __('Stretch', 'total') => 'stretch'), 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Media', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('URL', 'total'), 'param_name' => 'url', 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link: Local Scroll', 'total'), 'param_name' => 'url_local_scroll', 'group' => esc_html__('Link', 'total'), 'value' => array(__('False', 'total') => '', __('True', 'total') => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('Design', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total'))));
}
vc_lean_map('vcex_teaser', 'vcex_teaser_vc_map');
Example #3
0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_portfolio_carousel extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_portfolio_carousel.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_portfolio_carousel_vc_map()
{
    return array('name' => esc_html__('Portfolio Carousel', 'total'), 'description' => esc_html__('Recent portfolio posts carousel', 'total'), 'base' => 'vcex_portfolio_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-portfolio-carousel vcex-icon fa fa-folder-open', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Post Count', 'total'), 'param_name' => 'count', 'value' => '8', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'media', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(__('Default', 'total') => '', __('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('None', 'total') => 'none'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'value' => '30', 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "9999".', 'total'), 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => 'default', __('No Margins', 'total') => 'no-margins'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Border', 'total'), 'param_name' => 'content_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => esc_html__('Mobile', 'total'))));
}
vc_lean_map('vcex_portfolio_carousel', 'vcex_portfolio_carousel_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_portfolio_carousel_include_categories_callback', 'vcex_suggest_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_carousel_exclude_categories_callback', 'vcex_suggest_portfolio_categories', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_portfolio_carousel_include_categories_render', 'vcex_render_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_carousel_exclude_categories_render', 'vcex_render_portfolio_categories', 10, 1);
Example #4
0
 * Visual Composer Image Gallery
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_image_galleryslider extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_image_galleryslider.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_image_galleryslider_vc_map()
{
    return array('name' => esc_html__('Gallery Slider', 'total'), 'description' => esc_html__('Image slider with thumbnail navigation', 'total'), 'base' => 'vcex_image_galleryslider', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-image-gallery-slider vcex-icon fa fa-picture-o', 'params' => array(array('type' => 'attach_images', 'admin_label' => true, 'heading' => esc_html__('Attach Images', 'total'), 'param_name' => 'image_ids', 'description' => esc_html__('You can display captions by giving your images a caption and you can also display videos by adding an image that has a Video URL defined for it.', 'total'), 'group' => esc_html__('Images', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Post Gallery', 'total'), 'param_name' => 'post_gallery', 'group' => esc_html__('Images', 'total'), 'description' => esc_html__('Enable to display images from the current post "Image Gallery".', 'total'), 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility()), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Randomize', 'total'), 'param_name' => 'randomize', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('General', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id', 'group' => esc_html__('General', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes', 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Animation', 'total'), 'param_name' => 'animation', 'value' => array(__('Slide', 'total') => 'slide', __('Fade', 'total') => 'fade_slides'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Loop', 'total'), 'param_name' => 'loop', 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true'), 'group' => esc_html__('General', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Auto Height Animation', 'total'), 'std' => '500', 'param_name' => 'height_animation', 'group' => esc_html__('General', 'total'), 'description' => esc_html__('You can enter "0.0" to disable the animation completely.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'std' => '600', 'description' => esc_html__('Enter a value in milliseconds.', 'total'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'slideshow', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'description' => esc_html__('Enable automatic slideshow? Disabled in front-end composer to prevent page "jumping".', 'total'), 'group' => esc_html__('General', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Auto Play Delay', 'total'), 'param_name' => 'slideshow_speed', 'std' => '5000', 'description' => esc_html__('Enter a value in milliseconds.', 'total'), 'group' => esc_html__('General', 'total'), 'dependency' => array('element' => 'slideshow', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows', 'total'), 'param_name' => 'direction_nav', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows on Hover', 'total'), 'param_name' => 'direction_nav_hover', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Dot Navigation', 'total'), 'param_name' => 'control_nav', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Columns', 'total'), 'param_name' => 'thumbnails_columns', 'std' => '', 'description' => esc_html__('This specific slider displays the thumbnails in "rows" if you want your thumbnails displayed under the slider as a carousel, use the "Image Slider" module instead.', 'total'), 'group' => esc_html__('Thumbnails', 'total'), 'value' => array(__('Default', 'total') => '', '6' => '6', '5' => '5', '4' => '4', '3' => '3', '2' => '2')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_thumb_width', 'value' => '', 'description' => esc_html__('Enter a width in pixels for your thumbnail image width. This won\'t increase the grid, its only used so you can alter the cropping to your preferred proportions.', 'total'), 'group' => esc_html__('Thumbnails', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_thumb_height', 'value' => '', 'description' => esc_html__('Enter a width in pixels for your thumbnail image height.', 'total'), 'group' => esc_html__('Thumbnails', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'caption', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Based On', 'total'), 'param_name' => 'caption_type', 'std' => 'caption', 'value' => array(__('Title', 'total') => 'title', __('Caption', 'total') => 'caption', __('Description', 'total') => 'description', __('Alt', 'total') => 'alt'), 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'caption_visibility', 'value' => array_flip(wpex_visibility()), 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'caption_style', 'value' => array(__('Black', 'total') => 'black', __('White', 'total') => 'white'), 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Rounded?', 'total'), 'param_name' => 'caption_rounded', 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true'), 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Position', 'total'), 'param_name' => 'caption_position', 'std' => 'bottomCenter', 'value' => array(__('Bottom Center', 'total') => 'bottomCenter', __('Bottom Left', 'total') => 'bottomLeft', __('Bottom Right', 'total') => 'bottomRight', __('Top Center', 'total') => 'topCenter', __('Top Left', 'total') => 'topLeft', __('Top Right', 'total') => 'topRight', __('Center Center', 'total') => 'centerCenter', __('Center Left', 'total') => 'centerLeft', __('Center Right', 'total') => 'centerRight'), 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Show Transition', 'total'), 'param_name' => 'caption_show_transition', 'std' => 'up', 'value' => array(__('None', 'total') => 'false', __('Up', 'total') => 'up', __('Down', 'total') => 'down', __('Left', 'total') => 'left', __('Right', 'total') => 'right'), 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Hide Transition', 'total'), 'param_name' => 'caption_hide_transition', 'std' => 'down', 'value' => array(__('None', 'total') => 'false', __('Up', 'total') => 'up', __('Down', 'total') => 'down', __('Left', 'total') => 'left', __('Right', 'total') => 'right'), 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'caption_width', 'dependency' => array('element' => 'caption', 'value' => 'true'), 'value' => '100%', 'description' => esc_html__('Enter a pixel or percentage value. You can also enter "auto" for content dependent width.', 'total'), 'group' => esc_html__('Caption', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font-Size', 'total'), 'param_name' => 'caption_font_size', 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'caption_padding', 'dependency' => array('element' => 'caption', 'value' => 'true'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Caption', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Horizontal Offset', 'total'), 'param_name' => 'caption_horizontal', 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total'), 'description' => esc_html__('Please enter a px value.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Vertical Offset', 'total'), 'param_name' => 'caption_vertical', 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total'), 'description' => esc_html__('Please enter a px value.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Delay', 'total'), 'param_name' => 'caption_delay', 'std' => '500', 'dependency' => array('element' => 'caption', 'value' => 'true'), 'group' => esc_html__('Caption', 'total'), 'description' => esc_html__('Enter a value in milliseconds.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Link', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(__('None', 'total') => 'none', __('Lightbox', 'total') => 'lightbox', __('Custom Links', 'total') => 'custom_link'), 'group' => esc_html__('Links', 'total')), array('type' => 'exploded_textarea', 'heading' => esc_html__('Custom links', 'total'), 'param_name' => 'custom_links', 'description' => esc_html__('Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol.', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('custom_link')), 'group' => esc_html__('Links', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Custom link target', 'total'), 'param_name' => 'custom_links_target', 'dependency' => array('element' => 'thumbnail_link', 'value' => 'custom_link'), 'value' => array(__('Same window', 'total') => 'self', __('New window', 'total') => '_blank'), 'group' => esc_html__('Links', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Skin', 'total'), 'param_name' => 'lightbox_skin', 'value' => vcex_ilightbox_skins(), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('lightbox'))), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Thumbnails Placement', 'total'), 'param_name' => 'lightbox_path', 'value' => array(__('Horizontal', 'total') => 'horizontal', __('Vertical', 'total') => 'vertical'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('lightbox'))), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Title', 'total'), 'param_name' => 'lightbox_title', 'value' => array(__('None', 'total') => 'none', __('Alt', 'total') => 'alt', __('Title', 'total') => 'title'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('lightbox'))), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Caption', 'total'), 'param_name' => 'lightbox_caption', 'value' => array(__('Enable', 'total') => 'enable', __('Disable', 'total') => 'false'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('lightbox'))), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total'))));
}
vc_lean_map('vcex_image_galleryslider', 'vcex_image_galleryslider_vc_map');
Example #5
0
class WPBakeryShortCode_vcex_staff_grid extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_staff_grid.php');
        return ob_get_clean();
    }
}
/**
 * Adds the staff grid shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_staff_grid_vc_map()
{
    return array('name' => esc_html__('Staff Grid', 'total'), 'description' => esc_html__('Recent staff posts grid', 'total'), 'base' => 'vcex_staff_grid', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-staff-grid vcex-icon fa fa-users', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'dependency' => array('element' => 'filter', 'value' => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Grid Style', 'total'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'total') => 'fit_columns', __('Masonry', 'total') => 'masonry', __('No Margins', 'total') => 'no_margins'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => esc_html__('Columns', 'total'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Gap', 'total'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Responsive', 'total'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('1 Column Style', 'total'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'total') => '', __('Left Image & Right Content', 'total') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => esc_html__('Equal Heights?', 'total'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'dependency' => array('element' => 'grid_style', 'value' => 'fit_columns'), 'description' => esc_html__('Adds equal heights for the entry content so entries on the same row are the same height. You must have equal sized images for this to work efficiently. Disabled for masonry style layouts and filterable layouts.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Default', 'total') => '', __('Blank', 'total') => 'blank')), array('type' => 'textfield', 'heading' => esc_html__('Posts Per Page', 'total'), 'param_name' => 'posts_per_page', 'value' => '9', 'description' => esc_html__('When pagination is disabled this is also used for the post count.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Pagination', 'total'), 'param_name' => 'pagination', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'filter', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Enables a category filter to show and hide posts based on their categories. This does not load posts via AJAX, but rather filters items currently on the page.', 'total'), 'group' => esc_html__('Filter', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Default Active Category', 'total'), 'param_name' => 'filter_active_category', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Display All Link?', 'total'), 'param_name' => 'filter_all_link', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter "All" Text', 'total'), 'param_name' => 'all_text', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter_all_link', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Style', 'total'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Filter', 'total'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Color', 'total'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Layout Mode', 'total'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'total') => 'masonry', __('Fit Rows', 'total') => 'fitRows'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter Speed', 'total'), 'param_name' => 'filter_speed', 'description' => esc_html__('Default is 0.4 seconds. Enter 0.0 to disable.', 'total'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Center Filter Links', 'total'), 'param_name' => 'center_filter', 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'filter_font_size', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumb_link', 'value' => array(__('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('Nowhere', 'total') => 'nowhere'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Skin', 'total'), 'param_name' => 'lightbox_skin', 'value' => vcex_ilightbox_skins(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Gallery', 'total'), 'param_name' => 'thumb_lightbox_gallery', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Title', 'total'), 'param_name' => 'thumb_lightbox_title', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Excerpt', 'total'), 'param_name' => 'thumb_lightbox_caption', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('HTML Tag', 'total'), 'param_name' => 'title_tag', 'group' => esc_html__('Title', 'total'), 'std' => 'h2', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Title Links To', 'total'), 'param_name' => 'title_link', 'value' => array(__('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('Nowhere', 'total') => 'nowhere'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'position', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Position', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Position Font Color', 'total'), 'param_name' => 'position_color', 'group' => esc_html__('Position', 'total'), 'dependency' => array('element' => 'position', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Position Font Size', 'total'), 'param_name' => 'position_size', 'group' => esc_html__('Position', 'total'), 'dependency' => array('element' => 'position', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Position Margin', 'total'), 'param_name' => 'position_margin', 'group' => esc_html__('Position', 'total'), 'dependency' => array('element' => 'position', 'value' => 'true'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'show_categories', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Categories', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Show Only The First Category?', 'total'), 'param_name' => 'show_first_category_only', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'dependency' => array('element' => 'show_categories', 'value' => 'true'), 'group' => esc_html__('Categories', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'categories_font_size', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'categories_margin', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'categories_color', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'social_links', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Social', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'social_links_style', 'std' => 'minimal-round', 'value' => array_flip(wpex_social_button_styles()), 'group' => esc_html__('Social', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'social_links_size', 'group' => esc_html__('Social', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'social_links_margin', 'group' => esc_html__('Social', 'total'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'group' => esc_html__('Excerpt', 'total'), 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Button', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Text', 'total'), 'param_name' => 'read_more_text', 'value' => esc_html__('read more', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'readmore_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Arrow', 'total'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'readmore_size', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'readmore_border_radius', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'readmore_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'readmore_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'readmore_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'readmore_hover_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'readmore_hover_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('Content CSS', 'total'), 'param_name' => 'content_css', 'group' => esc_html__('Content CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('Entry CSS', 'total'), 'param_name' => 'entry_css', 'group' => esc_html__('Entry CSS', 'total')), array('type' => 'hidden', 'param_name' => 'content_background'), array('type' => 'hidden', 'param_name' => 'content_border'), array('type' => 'hidden', 'param_name' => 'content_margin'), array('type' => 'hidden', 'param_name' => 'content_padding')));
}
vc_lean_map('vcex_staff_grid', 'vcex_staff_grid_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_staff_grid_include_categories_callback', 'vcex_suggest_staff_categories', 10, 1);
add_filter('vc_autocomplete_vcex_staff_grid_exclude_categories_callback', 'vcex_suggest_staff_categories', 10, 1);
add_filter('vc_autocomplete_vcex_staff_grid_filter_active_category_callback', 'vcex_suggest_staff_categories', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_staff_grid_include_categories_render', 'vcex_render_staff_categories', 10, 1);
add_filter('vc_autocomplete_vcex_staff_grid_exclude_categories_render', 'vcex_render_staff_categories', 10, 1);
add_filter('vc_autocomplete_vcex_staff_grid_filter_active_category_render', 'vcex_render_staff_categories', 10, 1);
// Move content design elements into new entry CSS field
add_filter('vc_edit_form_fields_attributes_vcex_staff_grid', 'vcex_parse_deprecated_grid_entry_content_css');
// Set image height to full if crop/width are empty
add_filter('vc_edit_form_fields_attributes_vcex_staff_grid', 'vcex_parse_image_size');
Example #6
0
vc_lean_map('vc_empty_space', null, $vc_config_path . '/content/shortcode-vc-empty-space.php');
vc_lean_map('vc_basic_grid', null, $vc_config_path . '/grids/shortcode-vc-basic-grid.php');
vc_lean_map('vc_media_grid', null, $vc_config_path . '/grids/shortcode-vc-media-grid.php');
vc_lean_map('vc_masonry_grid', null, $vc_config_path . '/grids/shortcode-vc-masonry-grid.php');
vc_lean_map('vc_masonry_media_grid', null, $vc_config_path . '/grids/shortcode-vc-masonry-media-grid.php');
vc_lean_map('vc_tabs', null, $vc_config_path . '/deprecated/shortcode-vc-tabs.php');
vc_lean_map('vc_tour', null, $vc_config_path . '/deprecated/shortcode-vc-tour.php');
vc_lean_map('vc_tab', null, $vc_config_path . '/deprecated/shortcode-vc-tab.php');
vc_lean_map('vc_accordion', null, $vc_config_path . '/deprecated/shortcode-vc-accordion.php');
vc_lean_map('vc_accordion_tab', null, $vc_config_path . '/deprecated/shortcode-vc-accordion-tab.php');
vc_lean_map('vc_posts_grid', null, $vc_config_path . '/deprecated/shortcode-vc-posts-grid.php');
vc_lean_map('vc_carousel', null, $vc_config_path . '/deprecated/shortcode-vc-carousel.php');
vc_lean_map('vc_button', null, $vc_config_path . '/deprecated/shortcode-vc-button.php');
vc_lean_map('vc_button2', null, $vc_config_path . '/deprecated/shortcode-vc-button2.php');
vc_lean_map('vc_cta_button', null, $vc_config_path . '/deprecated/shortcode-vc-cta-button.php');
vc_lean_map('vc_cta_button2', null, $vc_config_path . '/deprecated/shortcode-vc-cta-button2.php');
if (is_admin()) {
    add_action('admin_print_scripts-post.php', array(Vc_Shortcodes_Manager::getInstance(), 'buildShortcodesAssets'), 1);
    add_action('admin_print_scripts-post-new.php', array(Vc_Shortcodes_Manager::getInstance(), 'buildShortcodesAssets'), 1);
} elseif (vc_is_page_editable()) {
    add_action('wp_head', array(Vc_Shortcodes_Manager::getInstance(), 'buildShortcodesAssetsForEditable'));
    // @todo where these icons are used in iframe?
}
// @todo define custom
function vc_add_css_animation()
{
    return array('type' => 'dropdown', 'heading' => __('CSS Animation', 'js_composer'), 'param_name' => 'css_animation', 'admin_label' => true, 'value' => array(__('No', 'js_composer') => '', __('Top to bottom', 'js_composer') => 'top-to-bottom', __('Bottom to top', 'js_composer') => 'bottom-to-top', __('Left to right', 'js_composer') => 'left-to-right', __('Right to left', 'js_composer') => 'right-to-left', __('Appear from center', 'js_composer') => 'appear'), 'description' => __('Select type of animation for element to be animated when it "enters" the browsers viewport (Note: works only in modern browsers).', 'js_composer'));
}
function vc_target_param_list()
{
    return array(__('Same window', 'js_composer') => '_self', __('New window', 'js_composer') => '_blank');
Example #7
0
class WPBakeryShortCode_vcex_post_type_archive extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_post_type_archive.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_archive_vc_map()
{
    $post_types = array();
    if (is_admin()) {
        $post_types = vcex_get_post_types();
    }
    return array('name' => esc_html__('Post Types Archive', 'total'), 'description' => esc_html__('Custom post type archive', 'total'), 'base' => 'vcex_post_type_archive', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-post-type-grid vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'textfield', 'heading' => esc_html__('Posts Per Page', 'total'), 'param_name' => 'posts_per_page', 'value' => '12', 'description' => esc_html__('You can enter "-1" to display all posts.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Pagination', 'total'), 'param_name' => 'pagination', 'value' => array(__('False', 'total') => '', __('True', 'total') => 'true'), 'description' => esc_html__('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Post Type', 'total'), 'param_name' => 'post_type', 'value' => $post_types, 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Limit By Post ID\'s', 'total'), 'param_name' => 'posts_in', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Seperate by a comma.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Limit By Author', 'total'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Query by Taxonomy', 'total'), 'param_name' => 'tax_query', 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Taxonomy Name', 'total'), 'param_name' => 'tax_query_taxonomy', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your taxonomy in the dropdown you can still enter the taxonomy name manually.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Terms', 'total'), 'param_name' => 'tax_query_terms', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your terms in the dropdown you can still enter the term slugs manually seperated by a space.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Post With Thumbnails Only', 'total'), 'param_name' => 'thumbnail_query', 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total'))));
}
vc_lean_map('vcex_post_type_archive', 'vcex_post_type_archive_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_post_type_archive_tax_query_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_archive_tax_query_terms_callback', 'vcex_suggest_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_archive_author_in_callback', 'vcex_suggest_users', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_post_type_archive_tax_query_taxonomy_render', 'vcex_render_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_archive_tax_query_terms_render', 'vcex_render_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_archive_author_in_render', 'vcex_render_users', 10, 1);
Example #8
0
 * Visual Composer Feature Box
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_feature_box extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_feature_box.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_feature_box_vc_map()
{
    return array('name' => esc_html__('Feature Box', 'total'), 'description' => esc_html__('A feature content box', 'total'), 'base' => 'vcex_feature_box', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-feature-box vcex-icon fa fa-trophy', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Left Content - Right Image', 'total') => 'left-content-right-image', __('Left Image - Right Content', 'total') => 'left-image-right-content')), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'total'), 'param_name' => 'text_align', 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'param_name' => 'border'), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'background'), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'value' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('HTML Tag', 'total'), 'param_name' => 'heading_type', 'group' => esc_html__('Heading', 'total'), 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', __('h5', 'total') => 'h5', 'div' => 'div'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'heading_url', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'heading_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Heading Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Heading Text Transform', 'total'), 'param_name' => 'heading_transform', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_font_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'attach_image', 'heading' => esc_html__('Image', 'total'), 'param_name' => 'image', 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Equal Heights?', 'total'), 'param_name' => 'equal_heights', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Keeps the image column the same height as your content.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('Image URL', 'total'), 'param_name' => 'image_url', 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Type', 'total'), 'param_name' => 'image_lightbox', 'group' => esc_html__('Image', 'total'), 'value' => array(__('None', 'total') => '', __('Self', 'total') => 'image', __('URL', 'total') => 'url', __('Auto Detect - slow', 'total') => 'auto-detect', __('Video', 'total') => 'video_embed', __('HTML5', 'total') => 'html5', __('Quicktime', 'total') => 'quicktime')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Width', 'total'), 'param_name' => 'img_width', 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'img_border_radius', 'description' => esc_html__('Please enter a px value.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Video link', 'total'), 'param_name' => 'video', 'description' => esc_html__('Enter a URL that is compatible with WP\'s built-in oEmbed feature. ', 'total'), 'group' => esc_html__('Video', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Width', 'total'), 'param_name' => 'content_width', 'value' => '50%', 'group' => esc_html__('Widths', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Width', 'total'), 'param_name' => 'media_width', 'value' => '50%', 'group' => esc_html__('Widths', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Tablet Widths', 'total'), 'param_name' => 'tablet_widths', 'group' => esc_html__('Widths', 'total'), 'value' => array(__('Inherit', 'total') => '', __('Full-Width', 'total') => 'fullwidth')), array('type' => 'dropdown', 'heading' => esc_html__('Phone Widths', 'total'), 'param_name' => 'phone_widths', 'group' => esc_html__('Widths', 'total'), 'value' => array(__('Inherit', 'total') => '', __('Full-Width', 'total') => 'fullwidth'))));
}
vc_lean_map('vcex_feature_box', 'vcex_feature_box_vc_map');
<?php

vc_lean_map('vc_test_custom_checkbox', null, dirname(vc_custom_checkbox_path()) . '/shortcode/shortcode-vc-test-custom-checkbox-data.php');
Example #10
0
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_post_type_list extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_post_type_list.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_list_vc_map()
{
    return array('name' => esc_html__('Post Types List', 'total'), 'description' => esc_html__('Posts list with large featured image', 'total'), 'base' => 'vcex_post_type_list', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-post-type-grid vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'description' => esc_html__('Give your main element a unique ID.', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'description' => esc_html__('Add additonal classes to the main element.', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility()), 'description' => esc_html__('Choose when this module should display.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'description' => esc_html__('If the "filter" is enabled animations will be disabled to prevent bugs.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Posts Per Page', 'total'), 'param_name' => 'posts_per_page', 'value' => '12', 'description' => esc_html__('You can enter "-1" to display all posts.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'posttypes', 'heading' => esc_html__('Post types', 'total'), 'param_name' => 'post_types', 'std' => 'post', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Limit By Post ID\'s', 'total'), 'param_name' => 'posts_in', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Seperate by a comma.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Limit By Author', 'total'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Query by Taxonomy', 'total'), 'param_name' => 'tax_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Taxonomy Name', 'total'), 'param_name' => 'tax_query_taxonomy', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your taxonomy in the dropdown you can still enter the taxonomy name manually.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Terms', 'total'), 'param_name' => 'tax_query_terms', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your terms in the dropdown you can still enter the term slugs manually seperated by a space.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => 'default', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Post With Thumbnails Only', 'total'), 'param_name' => 'thumbnail_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Featured Post?', 'total'), 'param_name' => 'featured_post', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'featured_post_img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('First Post', 'total'), 'dependency' => array('element' => 'featured_post', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'featured_post_img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('First Post', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'featured_post_img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('First Post', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'featured_post_img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('First Post', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'featured_post_img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('First Post' => 'entry_media', 'value' => 'true'))));
}
vc_lean_map('vcex_post_type_list', 'vcex_post_type_list_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_post_type_list_tax_query_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_list_filter_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_list_tax_query_terms_callback', 'vcex_suggest_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_list_author_in_callback', 'vcex_suggest_users', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_post_type_list_filter_taxonomy_render', 'vcex_render_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_list_tax_query_taxonomy_render', 'vcex_render_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_list_tax_query_terms_render', 'vcex_render_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_list_author_in_render', 'vcex_render_users', 10, 1);
Example #11
0
 */
function vcex_social_links_vc_map()
{
    // Define map array
    $array = array('name' => esc_html__('Social Links', 'total'), 'description' => esc_html__('Display social links using icon fonts', 'total'), 'base' => 'vcex_social_links', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-social-links vcex-icon fa fa-user-plus');
    // Create params for array
    $params = array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array_flip(wpex_social_button_styles())), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Self', 'total') => '', __('Blank', 'total') => 'blank')));
    // Get array of social links to loop through
    $social_links = vcex_social_links_profiles();
    // Loop through social links and add to params
    foreach ($social_links as $key => $val) {
        $desc = 'email' == $key ? esc_html__('Format: mailto:email@site.com', 'total') : '';
        $params[] = array('type' => 'textfield', 'heading' => $val['label'], 'param_name' => $key, 'group' => esc_html__('Profiles', 'total'), 'description' => $desc);
    }
    // Add CSS option
    $params[] = array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'dropdown', 'heading' => esc_html__('Align', 'total'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'size', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Background', 'total'), 'param_name' => 'hover_bg', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Color', 'total'), 'param_name' => 'hover_color', 'group' => esc_html__('Design', 'total'));
    // Add params to array
    $array['params'] = $params;
    // Return $array
    return $array;
}
vc_lean_map('vcex_social_links', 'vcex_social_links_vc_map');
Example #12
0
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_portfolio_grid.php');
        return ob_get_clean();
    }
}
/**
 * Adds the portfolio grid shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_portfolio_grid_vc_map()
{
    return array('name' => esc_html__('Portfolio Grid', 'total'), 'description' => esc_html__('Recent portfolio posts grid', 'total'), 'base' => 'vcex_portfolio_grid', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-portfolio-grid vcex-icon fa fa-folder-open', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'dependency' => array('element' => 'filter', 'value' => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Grid Style', 'total'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'total') => 'fit_columns', __('Masonry', 'total') => 'masonry', __('No Margins', 'total') => 'no_margins'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => esc_html__('Columns', 'total'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Gap', 'total'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Responsive', 'total'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('1 Column Style', 'total'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'total') => '', __('Left Image & Right Content', 'total') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => esc_html__('Equal Heights?', 'total'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'dependency' => array('element' => 'grid_style', 'value' => 'fit_columns'), 'description' => esc_html__('Adds equal heights for the entry content so "boxes" on the same row are the same height. You must have equal sized images for this to work efficiently.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Default', 'total') => 'self', __('Blank', 'total') => 'blank'), 'description' => esc_html__('This will apply to the image, title and readmore button', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Posts Per Page', 'total'), 'param_name' => 'posts_per_page', 'value' => '8', 'description' => esc_html__('When pagination is disabled this is also used for the post count.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Pagination', 'total'), 'param_name' => 'pagination', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Limit By Author', 'total'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'filter', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Enables a category filter to show and hide posts based on their categories. This does not load posts via AJAX, but rather filters items currently on the page.', 'total'), 'group' => esc_html__('Filter', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Default Active Category', 'total'), 'param_name' => 'filter_active_category', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Display All Link?', 'total'), 'param_name' => 'filter_all_link', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter "All" Text', 'total'), 'param_name' => 'all_text', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter_all_link', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Style', 'total'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Filter', 'total'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Color', 'total'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Layout Mode', 'total'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'total') => 'masonry', __('Fit Rows', 'total') => 'fitRows'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter Speed', 'total'), 'param_name' => 'filter_speed', 'description' => esc_html__('Default is "0.4" seconds. Enter "0.0" to disable.', 'total'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Center Filter Links', 'total'), 'param_name' => 'center_filter', 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'filter_font_size', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Featured Videos', 'total'), 'param_name' => 'featured_video', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumb_link', 'value' => array(__('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('Nowhere', 'total') => 'nowhere'), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Skin', 'total'), 'param_name' => 'lightbox_skin', 'value' => vcex_ilightbox_skins(), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Gallery', 'total'), 'param_name' => 'thumb_lightbox_gallery', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Title', 'total'), 'param_name' => 'thumb_lightbox_title', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Excerpt', 'total'), 'param_name' => 'thumb_lightbox_caption', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('HTML Tag', 'total'), 'param_name' => 'title_tag', 'group' => esc_html__('Title', 'total'), 'std' => 'h2', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Title Links To', 'total'), 'param_name' => 'title_link', 'value' => array(__('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('Nowhere', 'total') => 'nowhere'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'show_categories', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Categories', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Show Only The First Category', 'total'), 'param_name' => 'show_first_category_only', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'categories_font_size', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'categories_margin', 'group' => esc_html__('Categories', 'total'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'categories_color', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Custom Excerpt Length', 'total'), 'param_name' => 'excerpt_length', 'group' => esc_html__('Excerpt', 'total'), 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'total'), 'std' => '15', 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Button', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Text', 'total'), 'param_name' => 'read_more_text', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'readmore_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Arrow', 'total'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'readmore_size', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'readmore_border_radius', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'readmore_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'readmore_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'readmore_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'readmore_hover_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'readmore_hover_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('Content CSS', 'total'), 'param_name' => 'content_css', 'group' => esc_html__('Content CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('Entry CSS', 'total'), 'param_name' => 'entry_css', 'group' => esc_html__('Entry CSS', 'total')), array('type' => 'hidden', 'param_name' => 'content_background'), array('type' => 'hidden', 'param_name' => 'content_border'), array('type' => 'hidden', 'param_name' => 'content_margin'), array('type' => 'hidden', 'param_name' => 'content_padding')));
}
vc_lean_map('vcex_portfolio_grid', 'vcex_portfolio_grid_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_portfolio_grid_include_categories_callback', 'vcex_suggest_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_grid_exclude_categories_callback', 'vcex_suggest_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_grid_filter_active_category_callback', 'vcex_suggest_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_grid_author_in_callback', 'vcex_suggest_users', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_portfolio_grid_include_categories_render', 'vcex_render_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_grid_exclude_categories_render', 'vcex_render_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_grid_filter_active_category_render', 'vcex_render_portfolio_categories', 10, 1);
add_filter('vc_autocomplete_vcex_portfolio_grid_author_in_render', 'vcex_render_users', 10, 1);
// Move content design elements into new entry CSS field
add_filter('vc_edit_form_fields_attributes_vcex_portfolio_grid', 'vcex_parse_deprecated_grid_entry_content_css');
// Set image height to full if crop/width are empty
add_filter('vc_edit_form_fields_attributes_vcex_portfolio_grid', 'vcex_parse_image_size');
Example #13
0
    }
}
/**
 * Parse old shortcode attributes
 *
 * @since 2.0.0
 */
function parse_vcex_testimonials_slider_atts($atts)
{
    if (!empty($atts['animation']) && 'fade' == $atts['animation']) {
        $atts['animation'] = 'fade_slides';
    }
    return $atts;
}
add_filter('vc_edit_form_fields_attributes_vcex_testimonials_slider', 'parse_vcex_testimonials_slider_atts');
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_testimonials_slider_vc_map()
{
    return array('name' => esc_html__('Testimonials Slider', 'total'), 'description' => esc_html__('Recent testimonials slider', 'total'), 'base' => 'vcex_testimonials_slider', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-testimonials-slider vcex-icon fa fa-comments-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Display Author Name?', 'total'), 'param_name' => 'display_author_name', 'value' => array(__('Yes', 'total') => 'yes', __('No', 'total') => 'no')), array('type' => 'dropdown', 'heading' => esc_html__('Display Author Company?', 'total'), 'param_name' => 'display_author_company', 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Animation', 'total'), 'param_name' => 'animation', 'std' => 'fade_slides', 'value' => array(__('Fade', 'total') => 'fade_slides', __('Slide', 'total') => 'slide'), 'group' => esc_html__('Slider Settings', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Loop', 'total'), 'param_name' => 'loop', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Slider Settings', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Auto Height Animation', 'total'), 'std' => 400, 'param_name' => 'height_animation', 'group' => esc_html__('Slider Settings', 'total'), 'description' => esc_html__('You can enter "0.0" to disable the animation completely.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'std' => 600, 'description' => esc_html__('Enter a value in milliseconds.', 'total'), 'group' => esc_html__('Slider Settings', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'slideshow', 'description' => esc_html__('Enable automatic slideshow? Disabled in front-end composer to prevent page "jumping".', 'total'), 'group' => esc_html__('Slider Settings', 'total'), 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'textfield', 'heading' => esc_html__('Auto Play Delay', 'total'), 'param_name' => 'slideshow_speed', 'std' => 5000, 'description' => esc_html__('Enter a value in milliseconds.', 'total'), 'group' => esc_html__('Slider Settings', 'total'), 'dependency' => array('element' => 'slideshow', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Dot Navigation', 'total'), 'param_name' => 'control_nav', 'group' => esc_html__('Slider Settings', 'total'), 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows', 'total'), 'param_name' => 'direction_nav', 'group' => esc_html__('Slider Settings', 'total'), 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Posts Count', 'total'), 'param_name' => 'count', 'value' => 3, 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'display_author_avatar', 'group' => esc_html__('Image', 'total'), 'value' => array(__('Yes', 'total') => 'yes', __('No', 'total') => 'no')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'img_border_radius', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'display_author_avatar', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'display_author_avatar', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'display_author_avatar', 'value' => 'yes')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => esc_html__('Thumbnails', 'total'), 'param_name' => 'control_thumbs', 'group' => esc_html__('Thumbnails', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Navigation Thumbnails Height', 'total'), 'param_name' => 'control_thumbs_height', 'std' => 50, 'group' => esc_html__('Thumbnails', 'total'), 'dependency' => array('element' => 'control_thumbs', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Navigation Thumbnails Width', 'total'), 'param_name' => 'control_thumbs_width', 'std' => 50, 'group' => esc_html__('Thumbnails', 'total'), 'dependency' => array('element' => 'control_thumbs', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Excerpt', 'total'), 'param_name' => 'excerpt', 'group' => esc_html__('Excerpt', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Excerpt Length', 'total'), 'param_name' => 'excerpt_length', 'value' => 20, 'description' => esc_html__('Enter a custom excerpt length. Will trim the excerpt by this number of words. Enter "-1" to display the_content instead of the auto excerpt.', 'total'), 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Read More', 'total'), 'param_name' => 'read_more', 'group' => esc_html__('Excerpt', 'total'), 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Read More Text', 'total'), 'param_name' => 'read_more_text', 'group' => esc_html__('Excerpt', 'total'), 'value' => esc_html__('read more', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Skin', 'total'), 'param_name' => 'skin', 'group' => esc_html__('Design', 'total'), 'value' => array(__('Dark Text', 'total') => 'dark', __('Light Text', 'total') => 'light')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'font_weight', 'group' => esc_html__('Design', 'total'), 'description' => esc_html__('Note: Not all font families support every font weight.', 'total'), 'value' => array_flip(wpex_font_weights()), 'std' => '')));
}
vc_lean_map('vcex_testimonials_slider', 'vcex_testimonials_slider_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_testimonials_slider_include_categories_callback', 'vcex_suggest_testimonials_categories', 10, 1);
add_filter('vc_autocomplete_vcex_testimonials_slider_exclude_categories_callback', 'vcex_suggest_testimonials_categories', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_testimonials_slider_include_categories_render', 'vcex_render_testimonials_categories', 10, 1);
add_filter('vc_autocomplete_vcex_testimonials_slider_exclude_categories_render', 'vcex_render_testimonials_categories', 10, 1);
Example #14
0
 * Visual Composer Image Carousel
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_image_carousel extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_image_carousel.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_image_carousel_vc_map()
{
    return array('name' => esc_html__('Image Carousel', 'total'), 'description' => esc_html__('Image based jQuery carousel', 'total'), 'base' => 'vcex_image_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-image-carousel vcex-icon fa fa-picture-o', 'params' => array(array('type' => 'attach_images', 'admin_label' => true, 'heading' => esc_html__('Attach Images', 'total'), 'param_name' => 'image_ids', 'group' => esc_html__('Gallery', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Post Gallery', 'total'), 'param_name' => 'post_gallery', 'group' => esc_html__('Gallery', 'total'), 'description' => esc_html__('Enable to display images from the current post "Image Gallery".', 'total'), 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true')), array('type' => 'dropdown', 'admin_label' => true, 'heading' => esc_html__('Randomize Images', 'total'), 'param_name' => 'randomize_images', 'group' => esc_html__('Gallery', 'total'), 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => 'default', __('No Margins', 'total') => 'no-margins')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => esc_html__('Rounded Image?', 'total'), 'param_name' => 'rounded_image', 'group' => esc_html__('Image', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Link', 'total'), 'param_name' => 'thumbnail_link', 'std' => 'none', 'value' => array(__('None', 'total') => 'none', __('Lightbox', 'total') => 'lightbox', __('Custom Links', 'total') => 'custom_link'), 'group' => esc_html__('Links', 'total')), array('type' => 'exploded_textarea', 'heading' => esc_html__('Custom links', 'total'), 'param_name' => 'custom_links', 'description' => esc_html__('Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol. And don\'t forget to include the http:// at the front.', 'total'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'custom_link')), array('type' => 'dropdown', 'heading' => esc_html__('Custom link target', 'total'), 'param_name' => 'custom_links_target', 'description' => esc_html__('Select where to open custom links.', 'total'), 'group' => esc_html__('Links', 'total'), 'value' => array(__('Same window', 'total') => 'self', __('New window', 'total') => '_blank'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'custom_link')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Skin', 'total'), 'param_name' => 'lightbox_skin', 'std' => '', 'value' => vcex_ilightbox_skins(), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Title', 'total'), 'param_name' => 'title', 'std' => 'no', 'group' => esc_html__('Title', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Title Based On Image', 'total'), 'param_name' => 'title_type', 'value' => array(__('Default', 'total') => 'default', __('Title', 'total') => 'title', __('Alt', 'total') => 'alt'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'dependency' => array('element' => 'title', 'value' => 'yes'), 'group' => esc_html__('Title', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Display Caption', 'total'), 'param_name' => 'caption', 'group' => esc_html__('Caption', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'yes')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'yes')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'group' => esc_html__('Design', 'total'), 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Border', 'total'), 'param_name' => 'content_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => esc_html__('Mobile', 'total'))));
}
vc_lean_map('vcex_image_carousel', 'vcex_image_carousel_vc_map');
Example #15
0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_blog_carousel extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_blog_carousel.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_blog_carousel_vc_map()
{
    return array('name' => esc_html__('Blog Carousel', 'total'), 'description' => esc_html__('Recent blog posts carousel', 'total'), 'base' => 'vcex_blog_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-blog-carousel vcex-icon fa fa-pencil', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(esc_html__('True', 'total') => 'true', esc_html__('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3'), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2'), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(esc_html__('True', 'total') => 'true', esc_html__('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Post Count', 'total'), 'param_name' => 'count', 'value' => '8', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(esc_html__('Default', 'total') => '', esc_html__('DESC', 'total') => 'DESC', esc_html__('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Ignore Sticky Posts', 'total'), 'param_name' => 'ignore_sticky_posts', 'value' => array(esc_html__('False', 'total') => '', esc_html__('True', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'media', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(esc_html__('Default', 'total') => '', esc_html__('Post', 'total') => 'post', esc_html__('Lightbox', 'total') => 'lightbox', esc_html__('None', 'total') => 'none'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'date', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Date', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'date_color', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'date_font_size', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'value' => '15', 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'total'), 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Text Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(esc_html__('Default', 'total') => 'default', esc_html__('No Margins', 'total') => 'no-margins'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array(esc_html__('Default', 'total') => '', esc_html__('Left', 'total') => 'left', esc_html__('Right', 'total') => 'right', esc_html__('Center', 'total') => 'center'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Border', 'total'), 'param_name' => 'content_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Design', 'total'))));
}
vc_lean_map('vcex_blog_carousel', 'vcex_blog_carousel_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_blog_carousel_include_categories_callback', 'vcex_suggest_categories', 10, 1);
add_filter('vc_autocomplete_vcex_blog_carousel_exclude_categories_callback', 'vcex_suggest_categories', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_blog_carousel_include_categories_render', 'vcex_render_categories', 10, 1);
add_filter('vc_autocomplete_vcex_blog_carousel_exclude_categories_render', 'vcex_render_categories', 10, 1);
Example #16
0
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_post_type_grid.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_grid_vc_map()
{
    return array('name' => esc_html__('Post Types Grid', 'total'), 'description' => esc_html__('Posts grid', 'total'), 'base' => 'vcex_post_type_grid', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-post-type-grid vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'description' => esc_html__('Give your main element a unique ID.', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'description' => esc_html__('Add additonal classes to the main element.', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility()), 'description' => esc_html__('Choose when this module should display.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'description' => esc_html__('If the "filter" is enabled animations will be disabled to prevent bugs.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Grid Style', 'total'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'total') => 'fit_columns', __('Masonry', 'total') => 'masonry', __('No Margins', 'total') => 'no_margins'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => esc_html__('Columns', 'total'), 'param_name' => 'columns', 'value' => wpex_grid_columns(), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Gap', 'total'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'std' => '20', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Responsive', 'total'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('1 Column Style', 'total'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'total') => '', __('Left Image & Right Content', 'total') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => esc_html__('Equal Heights?', 'total'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'dependency' => array('element' => 'grid_style', 'value' => 'fit_columns'), 'description' => esc_html__('Adds equal heights for the entry content so entries on the same row are the same height. You must have equal sized images for this to work efficiently. Disabled for masonry style layouts and filterable layouts.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Post Link Target', 'total'), 'param_name' => 'url_target', 'value' => array(__('Self', 'total') => 'self', __('Blank', 'total') => '_blank')), array('type' => 'textfield', 'heading' => esc_html__('Posts Per Page', 'total'), 'param_name' => 'posts_per_page', 'value' => '12', 'description' => esc_html__('You can enter "-1" to display all posts.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Pagination', 'total'), 'param_name' => 'pagination', 'value' => array(__('False', 'total') => 'false', __('True', 'total') => 'true'), 'description' => esc_html__('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'posttypes', 'heading' => esc_html__('Post types', 'total'), 'param_name' => 'post_types', 'std' => 'post', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Limit By Post ID\'s', 'total'), 'param_name' => 'posts_in', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Seperate by a comma.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Limit By Author', 'total'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Query by Taxonomy', 'total'), 'param_name' => 'tax_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Taxonomy Name', 'total'), 'param_name' => 'tax_query_taxonomy', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your taxonomy in the dropdown you can still enter the taxonomy name manually.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Terms', 'total'), 'param_name' => 'tax_query_terms', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your terms in the dropdown you can still enter the term slugs manually seperated by a space.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => 'default', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Post With Thumbnails Only', 'total'), 'param_name' => 'thumbnail_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'filter', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('If more then one post type is selected it will display a post type filter, otherwise it will display the categories for the current post type.', 'total'), 'group' => esc_html__('Filter', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Button Style', 'total'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Filter', 'total'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Color', 'total'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Filter What?', 'total'), 'param_name' => 'filter_type', 'value' => array(__('Post Types', 'total') => 'post_types', __('Custom Taxonomy', 'total') => 'taxonomy'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'autocomplete', 'heading' => esc_html__('Filter Taxonomy Name', 'total'), 'param_name' => 'filter_taxonomy', 'dependency' => array('element' => 'filter_type', 'value' => array('taxonomy')), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'description' => esc_html__('Enter the taxonomy name for the filter links.', 'total'), 'group' => esc_html__('Filter', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter "All" Text', 'total'), 'param_name' => 'all_text', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Layout Mode', 'total'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'total') => 'masonry', __('Fit Rows', 'total') => 'fitRows'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter Speed', 'total'), 'param_name' => 'filter_speed', 'description' => esc_html__('Default is 0.4 seconds. Enter 0.0 to disable.', 'total'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Center Filter Links', 'total'), 'param_name' => 'center_filter', 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'filter_font_size', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Display Featured Videos?', 'total'), 'param_name' => 'featured_video', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false'), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumb_link', 'value' => array(__('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('Nowhere', 'total') => 'nowhere'), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'value' => vcex_image_sizes(), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Tag', 'total'), 'param_name' => 'title_tag', 'group' => esc_html__('Title', 'total'), 'std' => 'h2', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'group' => esc_html__('Title', 'total'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'date', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Date', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'date_color', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'date_font_size', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'group' => esc_html__('Excerpt', 'total'), 'value' => '20', 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Button', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Text', 'total'), 'param_name' => 'read_more_text', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'readmore_style', 'std' => '', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Arrow', 'total'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'readmore_size', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'readmore_border_radius', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'readmore_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'readmore_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'readmore_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'readmore_hover_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'readmore_hover_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('Content CSS', 'total'), 'param_name' => 'content_css', 'group' => esc_html__('Content CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('Entry CSS', 'total'), 'param_name' => 'entry_css', 'group' => esc_html__('Entry CSS', 'total')), array('type' => 'hidden', 'param_name' => 'content_background'), array('type' => 'hidden', 'param_name' => 'content_border'), array('type' => 'hidden', 'param_name' => 'content_margin'), array('type' => 'hidden', 'param_name' => 'content_padding')));
}
vc_lean_map('vcex_post_type_grid', 'vcex_post_type_grid_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_post_type_grid_tax_query_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_grid_filter_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_grid_tax_query_terms_callback', 'vcex_suggest_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_grid_author_in_callback', 'vcex_suggest_users', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_post_type_grid_filter_taxonomy_render', 'vcex_render_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_grid_tax_query_taxonomy_render', 'vcex_render_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_grid_tax_query_terms_render', 'vcex_render_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_grid_author_in_render', 'vcex_render_users', 10, 1);
// Move content design elements into new entry CSS field
add_filter('vc_edit_form_fields_attributes_vcex_post_type_grid', 'vcex_parse_deprecated_grid_entry_content_css');
// Set image height to full if crop/width are empty
add_filter('vc_edit_form_fields_attributes_vcex_post_type_grid', 'vcex_parse_image_size');
 public function mapEditorsShortcodes()
 {
     require_once vc_path_dir('VENDORS_DIR', 'plugins/acf/class-vc-acf-shortcode.php');
     vc_lean_map('vc_acf', null, vc_path_dir('VENDORS_DIR', 'plugins/acf/shortcode.php'));
 }
Example #18
0
<?php

/**
 * Visual Composer Staff Social
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
function vcex_staff_social_vc_map()
{
    return array('name' => esc_html__('Staff Social Links', 'total'), 'description' => esc_html__('Single staff social links', 'total'), 'base' => 'staff_social', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-staff-social vcex-icon fa fa-share-alt', 'params' => array(array('type' => 'autocomplete', 'heading' => esc_html__('Staff Member ID', 'total'), 'param_name' => 'post_id', 'param_holder_class' => 'vc_not-for-custom', 'description' => esc_html__('Select a staff member to display their social links. By default it will diplay the current staff member links.', 'total'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array_flip(wpex_social_button_styles())), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Blank', 'total') => 'blank', __('Self', 'total') => 'self')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size'), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('CSS', 'total'))));
}
vc_lean_map('staff_social', 'vcex_staff_social_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_staff_social_post_id_callback', 'vcex_suggest_staff_members', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_staff_social_post_id_render', 'vcex_render_staff_members', 10, 1);
Example #19
0
 *
 * @since 2.0.0
 */
function parse_vcex_icon_atts($atts)
{
    // Convert textfield link to vc_link
    if (!empty($atts['link_url']) && false === strpos($atts['link_url'], 'url:')) {
        $url = 'url:' . $atts['link_url'] . '|';
        $link_title = isset($atts['link_title']) ? 'title:' . $atts['link_title'] . '|' : '|';
        $link_target = isset($atts['link_target']) && 'blank' == $atts['link_target'] ? 'target:_blank' : '';
        $atts['link_url'] = $url . $link_title . $link_target;
    }
    // Update link target
    if (isset($atts['link_target']) && 'local' == $atts['link_target']) {
        $atts['link_local_scroll'] = 'true';
    }
    // Return $atts
    return $atts;
}
add_filter('vc_edit_form_fields_attributes_vcex_icon', 'parse_vcex_icon_atts');
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_icon_vc_map()
{
    return array('name' => esc_html__('Font Icon', 'total'), 'description' => esc_html__('Font Icon from various libraries', 'total'), 'base' => 'vcex_icon', 'icon' => 'vcex-font-icon vcex-icon fa fa-bolt', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'el_class'), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'admin_label' => true, 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'color_hover', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'background', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'background_hover', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Size', 'total'), 'param_name' => 'size', 'std' => 'normal', 'value' => array(__('Inherit', 'total') => 'inherit', __('Extra Large', 'total') => 'xlarge', __('Large', 'total') => 'large', __('Normal', 'total') => 'normal', __('Small', 'total') => 'small', __('Tiny', 'total') => 'tiny'), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Position', 'total'), 'param_name' => 'float', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Custom Size', 'total'), 'param_name' => 'custom_size', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'param_name' => 'border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'group' => esc_html__('Design', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'link_url', 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link: Local Scroll', 'total'), 'param_name' => 'link_local_scroll', 'value' => array(__('False', 'total') => 'false', __('True', 'total') => 'true'), 'group' => esc_html__('Link', 'total'))));
}
vc_lean_map('vcex_icon', 'vcex_icon_vc_map');
Example #20
0
 * Visual Composer List Item
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_list_item extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_list_item.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_list_item_vc_map()
{
    return array('name' => esc_html__('List Item', 'total'), 'description' => esc_html__('Font Icon list item', 'total'), 'base' => 'vcex_list_item', 'icon' => 'vcex-list-item vcex-icon fa fa-list', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'textfield', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'admin_label' => true, 'value' => esc_html__('This is a pretty list item', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'font_family', 'std' => '', 'value' => vcex_fonts_array()), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size'), array('type' => 'dropdown', 'heading' => esc_html__('Text Align', 'total'), 'param_name' => 'text_align', 'value' => array_flip(wpex_alignments())), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'font_color'), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Right Margin', 'total'), 'param_name' => 'margin_right', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'icon_background', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Size', 'total'), 'param_name' => 'icon_size', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'icon_border_radius', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'icon_width', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'icon_height', 'group' => esc_html__('Icon', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'link', 'group' => esc_html__('Link', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'description' => esc_html__('If any of these are defined it will add a new wrapper around your icon box with the custom CSS applied to it.', 'total'), 'group' => esc_html__('Design', 'total'))));
}
vc_lean_map('vcex_list_item', 'vcex_list_item_vc_map');
Example #21
0
 * Visual Composer Image Slider
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_image_flexslider extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_image_flexslider.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_image_flexslider_vc_map()
{
    return array('name' => esc_html__('Image Slider', 'total'), 'description' => esc_html__('Custom image slider', 'total'), 'base' => 'vcex_image_flexslider', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-image-flexslider vcex-icon fa fa-picture-o', 'params' => array(array('type' => 'attach_images', 'admin_label' => true, 'heading' => esc_html__('Attach Images', 'total'), 'param_name' => 'image_ids', 'description' => esc_html__('You can display captions by giving your images a caption and you can also display videos by adding an image that has a Video URL defined for it.', 'total'), 'group' => esc_html__('Images', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Post Gallery', 'total'), 'param_name' => 'post_gallery', 'group' => esc_html__('Images', 'total'), 'description' => esc_html__('Enable to display images from the current post "Image Gallery".', 'total'), 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id', 'group' => esc_html__('General', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes', 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility()), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Randomize', 'total'), 'param_name' => 'randomize', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Animation', 'total'), 'param_name' => 'animation', 'value' => array(__('Slide', 'total') => 'slide', __('Fade', 'total') => 'fade_slides'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Loop', 'total'), 'param_name' => 'loop', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('General', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Auto Height Animation', 'total'), 'std' => '500', 'param_name' => 'height_animation', 'group' => esc_html__('General', 'total'), 'description' => esc_html__('You can enter "0.0" to disable the animation completely.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'std' => '600', 'description' => esc_html__('Enter a value in milliseconds.', 'total'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'slideshow', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'description' => esc_html__('Enable automatic slideshow? Disabled in front-end composer to prevent page "jumping".', 'total'), 'group' => esc_html__('General', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Auto Play Delay', 'total'), 'param_name' => 'slideshow_speed', 'std' => '5000', 'description' => esc_html__('Enter a value in milliseconds.', 'total'), 'group' => esc_html__('General', 'total'), 'dependency' => array('element' => 'slideshow', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows', 'total'), 'param_name' => 'direction_nav', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows on Hover', 'total'), 'param_name' => 'direction_nav_hover', 'value' => array(__('Yes', 'total') => '', __('No', 'total') => 'false'), 'group' => esc_html__('General', 'total'), 'dependency' => array('element' => 'direction_nav', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Dot Navigation', 'total'), 'param_name' => 'control_nav', 'value' => array(__('Yes', 'total') => '', __('No', 'total') => 'false'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Thumbnails', 'total'), 'param_name' => 'control_thumbs', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('General', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Thumbnails Pointer', 'total'), 'param_name' => 'control_thumbs_pointer', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('General', 'total'), 'dependency' => array('element' => 'control_thumbs', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Navigation Thumbnails Height', 'total'), 'param_name' => 'control_thumbs_height', 'std' => '70', 'group' => esc_html__('General', 'total'), 'dependency' => array('element' => 'control_thumbs', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Navigation Thumbnails Width', 'total'), 'param_name' => 'control_thumbs_width', 'std' => '70', 'group' => esc_html__('General', 'total'), 'dependency' => array('element' => 'control_thumbs', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'caption', 'std' => 'false', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Based On', 'total'), 'param_name' => 'caption_type', 'std' => 'caption', 'value' => array(__('Title', 'total') => 'title', __('Caption', 'total') => 'caption', __('Description', 'total') => 'description', __('Alt', 'total') => 'alt'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'caption_visibility', 'value' => array_flip(wpex_visibility()), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'caption_style', 'value' => array(__('Black', 'total') => 'black', __('White', 'total') => 'white'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Rounded', 'total'), 'param_name' => 'caption_rounded', 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Position', 'total'), 'param_name' => 'caption_position', 'std' => 'bottomCenter', 'value' => array(__('Bottom Center', 'total') => 'bottomCenter', __('Bottom Left', 'total') => 'bottomLeft', __('Bottom Right', 'total') => 'bottomRight', __('Top Center', 'total') => 'topCenter', __('Top Left', 'total') => 'topLeft', __('Top Right', 'total') => 'topRight', __('Center Center', 'total') => 'centerCenter', __('Center Left', 'total') => 'centerLeft', __('Center Right', 'total') => 'centerRight'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Show Transition', 'total'), 'param_name' => 'caption_show_transition', 'std' => 'up', 'value' => array(__('None', 'total') => 'false', __('Up', 'total') => 'up', __('Down', 'total') => 'down', __('Left', 'total') => 'left', __('Right', 'total') => 'right'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Hide Transition', 'total'), 'param_name' => 'caption_hide_transition', 'std' => 'down', 'value' => array(__('None', 'total') => 'false', __('Up', 'total') => 'up', __('Down', 'total') => 'down', __('Left', 'total') => 'left', __('Right', 'total') => 'right'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'caption_width', 'value' => '100%', 'description' => esc_html__('Enter a pixel or percentage value. You can also enter "auto" for content dependent width.', 'total'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font-Size', 'total'), 'param_name' => 'caption_font_size', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'caption_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Horizontal Offset', 'total'), 'param_name' => 'caption_horizontal', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Vertical Offset', 'total'), 'param_name' => 'caption_vertical', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Delay', 'total'), 'param_name' => 'caption_delay', 'std' => '500', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Link', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(__('None', 'total') => 'none', __('Lightbox', 'total') => 'lightbox', __('Custom Links', 'total') => 'custom_link'), 'group' => esc_html__('Links', 'total')), array('type' => 'exploded_textarea', 'heading' => esc_html__('Custom links', 'total'), 'param_name' => 'custom_links', 'description' => esc_html__('Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol.', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'custom_link'), 'group' => esc_html__('Links', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Custom link target', 'total'), 'param_name' => 'custom_links_target', 'dependency' => array('element' => 'thumbnail_link', 'value' => 'custom_link'), 'value' => array(__('Same window', 'total') => 'self', __('New window', 'total') => '_blank'), 'group' => esc_html__('Links', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Skin', 'total'), 'param_name' => 'lightbox_skin', 'std' => '', 'value' => vcex_ilightbox_skins(), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Thumbnails Placement', 'total'), 'param_name' => 'lightbox_path', 'value' => array(__('Horizontal', 'total') => 'horizontal', __('Vertical', 'total') => 'vertical'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Title', 'total'), 'param_name' => 'lightbox_title', 'value' => array(__('None', 'total') => 'none', __('Alt', 'total') => 'alt', __('Title', 'total') => 'title'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Caption', 'total'), 'param_name' => 'lightbox_caption', 'value' => array(__('Enable', 'total') => 'true', __('Disable', 'total') => 'false'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('CSS', 'total'))));
}
vc_lean_map('vcex_image_flexslider', 'vcex_image_flexslider_vc_map');
Example #22
0
 * Visual Composer Skillbar
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_skillbar extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_skillbar.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_skillbar_vc_map()
{
    return array('name' => esc_html__('Skill Bar', 'total'), 'description' => esc_html__('Animated skill bar', 'total'), 'base' => 'vcex_skillbar', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-skill-bar vcex-icon fa fa-server', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('CSS Animation', 'total'), 'param_name' => 'css_animation', 'value' => array(__('No', 'total') => '', __('Top to bottom', 'total') => 'top-to-bottom', __('Bottom to top', 'total') => 'bottom-to-top', __('Left to right', 'total') => 'left-to-right', __('Right to left', 'total') => 'right-to-left', __('Appear from center', 'total') => 'appear')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'textfield', 'heading' => esc_html__('Title', 'total'), 'param_name' => 'title', 'admin_label' => true, 'value' => 'Web Design'), array('type' => 'textfield', 'heading' => esc_html__('Percentage', 'total'), 'param_name' => 'percentage', 'value' => 70), array('type' => 'dropdown', 'heading' => esc_html__('Display % Number', 'total'), 'param_name' => 'show_percent', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Display Icon', 'total'), 'param_name' => 'show_icon', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Icon', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons'), 'group' => esc_html__('Icon', 'total'), 'dependency' => array('element' => 'show_icon', 'value' => 'true')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'openiconic'), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'typicons'), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => false, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'linecons'), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Container Background', 'total'), 'param_name' => 'background', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Container Inset Shadow', 'total'), 'param_name' => 'box_shadow', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Skill Bar Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Container Height', 'total'), 'param_name' => 'container_height', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Container Left Padding', 'total'), 'param_name' => 'container_padding_left', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size', 'group' => esc_html__('Design', 'total'))));
}
vc_lean_map('vcex_skillbar', 'vcex_skillbar_vc_map');
Example #23
0
 * Visual Composer Newsletter Form
 *
 * @package Total WordPress Theme
 * @subpackage Visual Composer
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_newsletter_form extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_newsletter_form.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_newsletter_form_vc_map()
{
    return array('name' => esc_html__('Mailchimp Form', 'total'), 'description' => esc_html__('Newsletter subscription form', 'total'), 'base' => 'vcex_newsletter_form', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-newsletter vcex-icon fa fa-envelope', 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('CSS Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'textfield', 'heading' => esc_html__('Mailchimp Form Action', 'total'), 'param_name' => 'mailchimp_form_action', 'value' => '//domain.us1.list-manage.com/subscribe/post?u=numbers_go_here', 'description' => esc_html__('Enter the MailChimp form action URL.', 'total') . ' <a href="http://docs.shopify.com/support/configuration/store-customization/where-do-i-get-my-mailchimp-form-action?ref=wpexplorer" target="_blank">' . esc_html__('Learn More', 'total') . ' &rarr;</a>'), array('type' => 'textfield', 'heading' => esc_html__('Placeholder Text', 'total'), 'param_name' => 'placeholder_text', 'std' => esc_html_x('Enter your email address', 'Newsletter VC module placeholder text', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Submit Button Text', 'total'), 'param_name' => 'submit_text', 'std' => esc_html_x('Go', 'Newsletter VC module submit button text', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'input_bg', 'dependency' => array('element' => 'mailchimp_form_action', 'not_empty' => true), 'group' => esc_html__('Input', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'input_color', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'input_width', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'input_height', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'input_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'param_name' => 'input_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'input_border_radius', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'input_font_size', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'input_letter_spacing', 'group' => esc_html__('Input', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'input_weight', 'group' => esc_html__('Input', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights())), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'submit_bg', 'group' => esc_html__('Submit', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'submit_hover_bg', 'group' => esc_html__('Submit', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'submit_color', 'group' => esc_html__('Submit', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'submit_hover_color', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Right', 'total'), 'param_name' => 'submit_position_right', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'submit_height', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'submit_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'param_name' => 'submit_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'submit_border_radius', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'submit_font_size', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'submit_letter_spacing', 'group' => esc_html__('Submit', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'submit_weight', 'group' => esc_html__('Submit', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()))));
}
vc_lean_map('vcex_newsletter_form', 'vcex_newsletter_form_vc_map');
Example #24
0
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_post_type_carousel extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_post_type_carousel.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_carousel_map()
{
    return array('name' => esc_html__('Post Types Carousel', 'total'), 'description' => esc_html__('Posts carousel', 'total'), 'base' => 'vcex_post_type_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-post-type-carousel vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => 'default', __('No Margins', 'total') => 'no-margins')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(esc_html__('True', 'total') => 'true', esc_html__('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(esc_html__('True', 'total') => 'true', esc_html__('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Post Count', 'total'), 'param_name' => 'count', 'value' => '8', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'posttypes', 'heading' => esc_html__('Post types', 'total'), 'param_name' => 'post_types', 'std' => 'post', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Limit By Post ID\'s', 'total'), 'param_name' => 'posts_in', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Seperate by a comma.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Limit By Author', 'total'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Query by Taxonomy', 'total'), 'param_name' => 'tax_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Taxonomy Name', 'total'), 'param_name' => 'tax_query_taxonomy', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your taxonomy in the dropdown you can still enter the taxonomy name manually.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Terms', 'total'), 'param_name' => 'tax_query_terms', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your terms in the dropdown you can still enter the term slugs manually seperated by a space.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Ignore Sticky Posts', 'total'), 'param_name' => 'ignore_sticky_posts', 'value' => array(esc_html__('No', 'total') => '', esc_html__('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => 'default', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Post With Thumbnails Only', 'total'), 'param_name' => 'thumbnail_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'media', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(esc_html__('Default', 'total') => '', esc_html__('Post', 'total') => 'post', esc_html__('Lightbox', 'total') => 'lightbox', esc_html__('None', 'total') => 'none'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'full', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'date', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Date', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'date_color', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'date_font_size', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'date_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'value' => '15', 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'total'), 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Text Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => esc_html__('Mobile', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('Content CSS', 'total'), 'param_name' => 'content_css', 'group' => esc_html__('Content CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('Entry CSS', 'total'), 'param_name' => 'entry_css', 'group' => esc_html__('Entry CSS', 'total'))));
}
vc_lean_map('vcex_post_type_carousel', 'vcex_post_type_carousel_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_post_type_carousel_tax_query_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_carousel_filter_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_carousel_tax_query_terms_callback', 'vcex_suggest_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_carousel_author_in_callback', 'vcex_suggest_users', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_post_type_carousel_filter_taxonomy_render', 'vcex_render_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_carousel_tax_query_taxonomy_render', 'vcex_render_taxonomies', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_carousel_tax_query_terms_render', 'vcex_render_terms', 10, 1);
add_filter('vc_autocomplete_vcex_post_type_carousel_author_in_render', 'vcex_render_users', 10, 1);
Example #25
0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_staff_carousel extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_staff_carousel.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_staff_carousel_vc_map()
{
    return array('name' => esc_html__('Staff Carousel', 'total'), 'description' => esc_html__('Recent staff posts carousel', 'total'), 'base' => 'vcex_staff_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-staff-carousel vcex-icon fa fa-users', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('False', 'total') => 'false', __('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('False', 'total') => 'false', __('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => 150, 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => 5000, 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Post Count', 'total'), 'param_name' => 'count', 'value' => '8', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'group' => esc_html__('Image', 'total'), 'value' => array(__('Default', 'total') => '', __('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('None', 'total') => 'none')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'description' => esc_html__('Select a custom color to override the default.', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'social_links', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Social', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'social_links_style', 'std' => 'flat-color-round', 'value' => array_flip(wpex_social_button_styles()), 'group' => esc_html__('Social', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'social_links_size', 'group' => esc_html__('Social', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'social_links_margin', 'group' => esc_html__('Social', 'total'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'value' => '30', 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'total'), 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => '', __('No Margins', 'total') => 'no-margins'), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Display Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Border', 'total'), 'param_name' => 'content_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => esc_html__('Mobile', 'total'))));
}
vc_lean_map('vcex_staff_carousel', 'vcex_staff_carousel_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_staff_carousel_include_categories_callback', 'vcex_suggest_staff_categories', 10, 1);
add_filter('vc_autocomplete_vcex_staff_carousel_exclude_categories_callback', 'vcex_suggest_staff_categories', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_staff_carousel_include_categories_render', 'vcex_render_staff_categories', 10, 1);
add_filter('vc_autocomplete_vcex_staff_carousel_exclude_categories_render', 'vcex_render_staff_categories', 10, 1);
 /**
  * Add action when contact form 7 is initialized to add shortcode.
  * @since 4.3
  */
 public function load()
 {
     vc_lean_map('contact-form-7', array($this, 'addShortcodeSettings'));
 }
Example #27
0
 * Visual Composer Divider
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_divider extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_divider.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_divider_shortcode_vc_map()
{
    return array('name' => esc_html__('Divider', 'total'), 'description' => esc_html__('Line Separator', 'total'), 'base' => 'vcex_divider', 'icon' => 'vcex-divider vcex-icon fa fa-ellipsis-h', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'el_class'), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array(__('No', 'total') => '', __('Top to bottom', 'total') => 'top-to-bottom', __('Bottom to top', 'total') => 'bottom-to-top', __('Left to right', 'total') => 'left-to-right', __('Right to left', 'total') => 'right-to-left', __('Appear from center', 'total') => 'appear')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'admin_label' => true, 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Solid', 'total') => 'solid', __('Dashed', 'total') => 'dashed', __('Double', 'total') => 'double', __('Dotted Line', 'total') => 'dotted-line', __('Dotted', 'total') => 'dotted')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'description' => esc_html__('Enter a pixel or percentage value.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Align', 'total'), 'param_name' => 'align', 'group' => esc_html__('Design', 'total'), 'value' => array(__('Center', 'total') => 'center', __('Right', 'total') => 'right', __('Left', 'total') => 'left'), 'dependency' => array('element' => 'width', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'dependency' => array('element' => 'style', 'value' => array('solid', 'dashed', 'double', 'dotted-line')), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'dotted_height', 'dependency' => array('element' => 'style', 'value' => 'dotted'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'value' => '', 'dependency' => array('element' => 'style', 'value' => array('solid', 'dashed', 'double', 'dotted-line')), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Top', 'total'), 'param_name' => 'margin_top', 'description' => esc_html__('Please enter a px value.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Bottom', 'total'), 'description' => esc_html__('Please enter a px value.', 'total'), 'param_name' => 'margin_bottom', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'fontawesome', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Icon Color', 'total'), 'param_name' => 'icon_color', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Icon Background', 'total'), 'param_name' => 'icon_bg', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Size', 'total'), 'param_name' => 'icon_size', 'description' => esc_html__('You can use em or px values, but you must define them.', 'total'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Height', 'total'), 'param_name' => 'icon_height', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Width', 'total'), 'param_name' => 'icon_width', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Border Radius', 'total'), 'param_name' => 'icon_border_radius', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Padding', 'total'), 'param_name' => 'icon_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Icon', 'total'))));
}
vc_lean_map('vcex_divider', 'vcex_divider_shortcode_vc_map');
Example #28
0
    }
}
/**
 * Parse shortcode attributes and set correct values
 *
 * @since 2.0.0
 */
function parse_vcex_icon_box_atts($atts)
{
    // Set font family if icon is defined
    if (isset($atts['icon']) && empty($atts['icon_type'])) {
        $atts['icon_type'] = 'fontawesome';
        if (strpos($atts['icon'], 'fa') === false) {
            $atts['icon'] = 'fa fa-' . $atts['icon'];
        }
    }
    // Return $atts
    return $atts;
}
add_filter('vc_edit_form_fields_attributes_vcex_icon_box', 'parse_vcex_icon_box_atts', 10);
/**
 * Register the shortcode for use with the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_icon_box_vc_map()
{
    return array('name' => esc_html__('Icon Box', 'total'), 'base' => 'vcex_icon_box', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-icon-box vcex-icon fa fa-star', 'description' => esc_html__('Content box with icon', 'total'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations()), 'std' => ''), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => vcex_icon_box_styles(), 'description' => esc_html__('For greater control select left, right or top icon styles then go to the "Design" tab to modify the icon box design.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'total'), 'param_name' => 'alignment', 'dependency' => array('element' => 'style', 'value' => array('two')), 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'textfield', 'heading' => esc_html__('Icon Bottom Margin', 'total'), 'param_name' => 'icon_bottom_margin', 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four', 'five', 'six'))), array('type' => 'textfield', 'heading' => esc_html__('Container Left Padding', 'total'), 'param_name' => 'container_left_padding', 'dependency' => array('element' => 'style', 'value' => array('one'))), array('type' => 'textfield', 'heading' => esc_html__('Container Right Padding', 'total'), 'param_name' => 'container_right_padding', 'description' => esc_html__('Please enter a px value.', 'total'), 'dependency' => array('element' => 'style', 'value' => array('seven'))), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size', 'group' => esc_html__('Content', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'font_color', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'std' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Type', 'total'), 'param_name' => 'heading_type', 'value' => array(__('Default', 'total') => '', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'div' => 'div', 'span' => 'span'), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'heading_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'heading_weight', 'value' => array_flip(wpex_font_weights()), 'std' => '', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'heading_transform', 'std' => '', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms())), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Bottom Margin', 'total'), 'param_name' => 'heading_bottom_margin', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Font Alternative Classes', 'total'), 'param_name' => 'icon_alternative_classes', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'icon_color', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'icon_background', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'icon_size', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'icon_border_radius', 'description' => esc_html__('For a circle enter 50%.', 'total'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'icon_width', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'icon_height', 'group' => esc_html__('Icon', 'total')), array('type' => 'attach_image', 'heading' => esc_html__('Icon Image Alternative', 'total'), 'param_name' => 'image', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'image_width', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'image_height', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('URL', 'total'), 'param_name' => 'url', 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URL Target', 'total'), 'param_name' => 'url_target', 'value' => array(__('Self', 'total') => 'self', __('Blank', 'total') => '_blank', __('Local', 'total') => 'local'), 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URL Rel', 'total'), 'param_name' => 'url_rel', 'value' => array(__('None', 'total') => '', __('Nofollow', 'total') => 'nofollow'), 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link Container Wrap', 'total'), 'param_name' => 'url_wrap', 'value' => array(__('Default', 'total') => '', __('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('URL', 'total'), 'description' => esc_html__('Apply the link to the entire wrapper?', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'description' => esc_html__('If any of these are defined it will add a new wrapper around your icon box with the custom CSS applied to it.', 'total'), 'group' => esc_html__('CSS', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('CSS', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'hover_background', 'description' => esc_html__('Will add a hover background color to your entire icon box or replace the current hover color for specific icon box styles.', 'total'), 'group' => esc_html__('CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('White Text On Hover', 'total'), 'param_name' => 'hover_white_text', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('CSS', 'total'))));
}
vc_lean_map('vcex_icon_box', 'vcex_icon_box_vc_map');
Example #29
0
 * Registers the image swap shortcode and adds it to the Visual Composer
 *
 * @package Total WordPress Theme
 * @subpackage VC Templates
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.0.0
 */
class WPBakeryShortCode_vcex_image_swap extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_image_swap.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_image_swap_vc_map()
{
    return array('name' => esc_html__('Image Swap', 'total'), 'description' => esc_html__('Double Image Hover Effect', 'total'), 'base' => 'vcex_image_swap', 'icon' => 'vcex-image-swap vcex-icon fa fa-picture-o', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'attach_image', 'heading' => esc_html__('Primary Image', 'total'), 'param_name' => 'primary_image'), array('type' => 'attach_image', 'heading' => esc_html__('Secondary Image', 'total'), 'param_name' => 'secondary_image'), array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'link', 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable Tooltip?', 'total'), 'param_name' => 'link_tooltip', 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true'), 'group' => esc_html__('Link', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'description' => esc_html__('These settings are applied to the main wrapper and they will override any other styling options.', 'total'), 'group' => esc_html__('Design options', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Container Width', 'total'), 'param_name' => 'container_width', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Image', 'total')), array('type' => 'hidden', 'param_name' => 'link_title'), array('type' => 'hidden', 'param_name' => 'link_target')));
}
vc_lean_map('vcex_image_swap', 'vcex_image_swap_vc_map');
Example #30
0
 * @subpackage VC Functions
 * @version 3.3.0
 */
/**
 * Register shortcode with VC Composer
 *
 * @since 2.1.0
 */
class WPBakeryShortCode_vcex_terms_grid extends WPBakeryShortCode
{
    protected function content($atts, $content = null)
    {
        ob_start();
        include locate_template('vcex_templates/vcex_terms_grid.php');
        return ob_get_clean();
    }
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 2.1.0
 */
function vcex_terms_grid_vc_map()
{
    return array('name' => esc_html__('Categories Grid', 'total'), 'description' => esc_html__('Displays a grid of terms', 'total'), 'base' => 'vcex_terms_grid', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-terms-grid vcex-icon fa fa-th-large', 'params' => array(array('type' => 'autocomplete', 'heading' => esc_html__('Taxonomy', 'total'), 'param_name' => 'taxonomy', 'std' => 'category', 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Parent Terms Only', 'total'), 'param_name' => 'parent_terms', 'value' => array(__('No', 'total') => false, __('Yes', 'total') => true)), array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('CSS Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Grid Style', 'total'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'total') => 'fit_columns', __('Masonry', 'total') => 'masonry'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => esc_html__('Columns', 'total'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Gap', 'total'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Responsive', 'total'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'total') => '', __('No', 'total') => 'false'), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'full', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Title', 'total'), 'param_name' => 'title_overlay', 'std' => 'false', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Title', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Display Term Count', 'total'), 'param_name' => 'term_count', 'std' => 'false', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Title', 'total')), array('type' => 'font_container', 'param_name' => 'title_typo', 'group' => esc_html__('Title', 'total'), 'settings' => array('fields' => array('tag' => 'span', 'text_align', 'font_size', 'line_height', 'color', 'font_style_italic', 'font_style_bold', 'font_family')), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'description', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Description', 'total'), 'dependency' => array('element' => 'title_overlay', 'value' => 'false')), array('type' => 'font_container', 'param_name' => 'description_typo', 'group' => esc_html__('Description', 'total'), 'settings' => array('fields' => array('font_size', 'text_align', 'line_height', 'color', 'font_style_italic', 'font_style_bold', 'font_family')), 'dependency' => array('element' => 'description', 'value' => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'entry_css', 'group' => esc_html__('Entry CSS', 'total'))));
}
vc_lean_map('vcex_terms_grid', 'vcex_terms_grid_vc_map');
// Get autocomplete suggestion
add_filter('vc_autocomplete_vcex_terms_grid_taxonomy_callback', 'vcex_suggest_taxonomies', 10, 1);
// Render autocomplete suggestions
add_filter('vc_autocomplete_vcex_terms_grid_taxonomy_render', 'vcex_render_taxonomies', 10, 1);