PK ! uN ) grids/shortcode-vc-masonry-media-grid.phpnu [ esc_html__( 'Masonry Media Grid', 'js_composer' ), 'base' => 'vc_masonry_media_grid', 'icon' => 'vc_icon-vc-masonry-media-grid', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Masonry media grid from Media Library', 'js_composer' ), 'params' => $masonryMediaGridParams, ); PK ! jOo # grids/shortcode-vc-masonry-grid.phpnu [ esc_html__( 'Post Masonry Grid', 'js_composer' ), 'base' => 'vc_masonry_grid', 'icon' => 'vc_icon-vc-masonry-grid', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Posts, pages or custom posts in masonry grid', 'js_composer' ), 'params' => $masonryGridParams, ); PK ! a ! grids/shortcode-vc-basic-grid.phpnu [ esc_html__( 'Post Grid', 'js_composer' ), 'base' => 'vc_basic_grid', 'icon' => 'icon-wpb-application-icon-large', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Posts, pages or custom posts in grid', 'js_composer' ), 'params' => $gridParams, ); PK ! ]v v grids/vc-grids-functions.phpnu [ array( $term['value'] ), 'hide_empty' => false, ) ); $data = false; if ( is_array( $terms ) && 1 === count( $terms ) ) { $term = $terms[0]; $data = vc_get_term_object( $term ); } return $data; } /** * @param $search_string * * @return array|bool * @since 4.5.2 * */ function vc_autocomplete_taxonomies_field_search( $search_string ) { $data = array(); $vc_filter_by = vc_post_param( 'vc_filter_by', '' ); $vc_filter_by_post_type = vc_post_param( 'vc_filter_post_type', '' ); $vc_taxonomies_types = strlen( $vc_filter_by ) > 0 ? array( $vc_filter_by ) : array_keys( vc_taxonomies_types( $vc_filter_by_post_type ) ); if ( empty( $vc_taxonomies_types ) ) { return array(); } $vc_taxonomies = get_terms( $vc_taxonomies_types, array( 'hide_empty' => false, 'search' => $search_string, ) ); if ( is_array( $vc_taxonomies ) && ! empty( $vc_taxonomies ) ) { foreach ( $vc_taxonomies as $t ) { if ( is_object( $t ) ) { $data[] = vc_get_term_object( $t ); } } } return $data; } /** * @param $search * @param $wp_query * * @return string */ function vc_search_by_title_only( $search, $wp_query ) { global $wpdb; if ( empty( $search ) ) { return $search; } // skip processing - no search term in query $q = $wp_query->query_vars; if ( isset( $q['vc_search_by_title_only'] ) && $q['vc_search_by_title_only'] ) { $n = ! empty( $q['exact'] ) ? '' : '%'; $search = ''; $searchand = ''; foreach ( (array) $q['search_terms'] as $term ) { $term = $wpdb->esc_like( $term ); $like = $n . $term . $n; $search .= $searchand . $wpdb->prepare( "($wpdb->posts.post_title LIKE %s)", $like ); $searchand = ' AND '; } if ( ! empty( $search ) ) { $search = " AND ({$search}) "; if ( ! is_user_logged_in() ) { $search .= " AND ($wpdb->posts.post_password = '') "; } } } return $search; } /** * @param $search_string * * @return array */ function vc_include_field_search( $search_string ) { $query = $search_string; $data = array(); $args = array( 's' => $query, 'post_type' => 'any', ); $args['vc_search_by_title_only'] = true; $args['numberposts'] = - 1; if ( 0 === strlen( $args['s'] ) ) { unset( $args['s'] ); } add_filter( 'posts_search', 'vc_search_by_title_only', 500, 2 ); $posts = get_posts( $args ); if ( is_array( $posts ) && ! empty( $posts ) ) { foreach ( $posts as $post ) { $data[] = array( 'value' => $post->ID, 'label' => $post->post_title, 'group' => $post->post_type, ); } } return $data; } /** * @param $value * * @return array|bool */ function vc_include_field_render( $value ) { $post = get_post( $value['value'] ); return is_null( $post ) ? false : array( 'label' => $post->post_title, 'value' => $post->ID, 'group' => $post->post_type, ); } /** * @param $data_arr * * @return array */ function vc_exclude_field_search( $data_arr ) { $query = isset( $data_arr['query'] ) ? $data_arr['query'] : null; $term = isset( $data_arr['term'] ) ? $data_arr['term'] : ''; $data = array(); $args = ! empty( $query ) ? array( 's' => $term, 'post_type' => $query, ) : array( 's' => $term, 'post_type' => 'any', ); $args['vc_search_by_title_only'] = true; $args['numberposts'] = - 1; if ( 0 === strlen( $args['s'] ) ) { unset( $args['s'] ); } add_filter( 'posts_search', 'vc_search_by_title_only', 500, 2 ); $posts = get_posts( $args ); if ( is_array( $posts ) && ! empty( $posts ) ) { foreach ( $posts as $post ) { $data[] = array( 'value' => $post->ID, 'label' => $post->post_title, 'group' => $post->post_type, ); } } return $data; } /** * @param $value * * @return array|bool */ function vc_exclude_field_render( $value ) { $post = get_post( $value['value'] ); return is_null( $post ) ? false : array( 'label' => $post->post_title, 'value' => $post->ID, 'group' => $post->post_type, ); } PK ! L grids/class-vc-grids-common.phpnu [ array( 'link', 'css', 'i_css', 'el_class', 'css_animation', ), ), array( 'element' => 'style', 'value' => array( 'load-more' ), ) ); foreach ( self::$btn3Params as $key => $value ) { if ( 'btn_title' === $value['param_name'] ) { self::$btn3Params[ $key ]['value'] = esc_html__( 'Load more', 'js_composer' ); } elseif ( 'btn_color' === $value['param_name'] ) { self::$btn3Params[ $key ]['std'] = 'blue'; } elseif ( 'btn_style' === $value['param_name'] ) { self::$btn3Params[ $key ]['std'] = 'flat'; } } // Grid column list self::$gridColsList = array( array( 'label' => '6', 'value' => 2, ), array( 'label' => '4', 'value' => 3, ), array( 'label' => '3', 'value' => 4, ), array( 'label' => '2', 'value' => 6, ), array( 'label' => '1', 'value' => 12, ), ); } /** * Basic Grid Common Settings */ public static function getBasicAtts() { if ( self::$basicGrid ) { return self::$basicGrid; } if ( is_null( self::$btn3Params ) && is_null( self::$gridColsList ) ) { self::initData(); } $postTypes = get_post_types( array() ); $postTypesList = array(); $excludedPostTypes = array( 'revision', 'nav_menu_item', 'vc_grid_item', ); if ( is_array( $postTypes ) && ! empty( $postTypes ) ) { foreach ( $postTypes as $postType ) { if ( ! in_array( $postType, $excludedPostTypes, true ) ) { $label = ucfirst( $postType ); $postTypesList[] = array( $postType, $label, ); } } } $postTypesList[] = array( 'custom', esc_html__( 'Custom query', 'js_composer' ), ); $postTypesList[] = array( 'ids', esc_html__( 'List of IDs', 'js_composer' ), ); $taxonomiesForFilter = array(); if ( 'vc_edit_form' === vc_post_param( 'action' ) ) { $vcTaxonomiesTypes = vc_taxonomies_types(); if ( is_array( $vcTaxonomiesTypes ) && ! empty( $vcTaxonomiesTypes ) ) { foreach ( $vcTaxonomiesTypes as $t => $data ) { if ( 'post_format' !== $t && is_object( $data ) ) { $taxonomiesForFilter[ $data->labels->name . '(' . $t . ')' ] = $t; } } } } self::$basicGrid = array_merge( array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Data source', 'js_composer' ), 'param_name' => 'post_type', 'value' => $postTypesList, 'save_always' => true, 'description' => esc_html__( 'Select content type for your grid.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'autocomplete', 'heading' => esc_html__( 'Include only', 'js_composer' ), 'param_name' => 'include', 'description' => esc_html__( 'Add posts, pages, etc. by title.', 'js_composer' ), 'settings' => array( 'multiple' => true, 'sortable' => true, 'groups' => true, ), 'dependency' => array( 'element' => 'post_type', 'value' => array( 'ids' ), ), ), // Custom query tab array( 'type' => 'textarea_safe', 'heading' => esc_html__( 'Custom query', 'js_composer' ), 'param_name' => 'custom_query', 'description' => sprintf( esc_html__( 'Build custom query according to %sWordPress Codex%s.', 'js_composer' ), '', '' ), 'dependency' => array( 'element' => 'post_type', 'value' => array( 'custom' ), ), ), array( 'type' => 'autocomplete', 'heading' => esc_html__( 'Narrow data source', 'js_composer' ), 'param_name' => 'taxonomies', 'settings' => array( 'multiple' => true, 'min_length' => 1, 'groups' => true, // In UI show results grouped by groups, default false 'unique_values' => true, // In UI show results except selected. NB! You should manually check values in backend, default false 'display_inline' => true, // In UI show results inline view, default false (each value in own line) 'delay' => 500, // delay for search. default 500 'auto_focus' => true, // auto focus input, default true ), 'param_holder_class' => 'vc_not-for-custom', 'description' => esc_html__( 'Enter categories, tags or custom taxonomies.', 'js_composer' ), 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'ids', 'custom', ), 'callback' => 'vcGridTaxonomiesCallBack', ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Total items', 'js_composer' ), 'param_name' => 'max_items', 'value' => 10, // default value 'param_holder_class' => 'vc_not-for-custom', 'description' => esc_html__( 'Set max limit for items in grid or enter -1 to display all (limited to 1000).', 'js_composer' ), 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'ids', 'custom', ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Display Style', 'js_composer' ), 'param_name' => 'style', 'value' => array( esc_html__( 'Show all', 'js_composer' ) => 'all', esc_html__( 'Load more button', 'js_composer' ) => 'load-more', esc_html__( 'Lazy loading', 'js_composer' ) => 'lazy', esc_html__( 'Pagination', 'js_composer' ) => 'pagination', ), 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'custom' ), ), 'edit_field_class' => 'vc_col-sm-6', 'description' => esc_html__( 'Select display style for grid.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Items per page', 'js_composer' ), 'param_name' => 'items_per_page', 'description' => esc_html__( 'Number of items to show per page.', 'js_composer' ), 'value' => '10', 'dependency' => array( 'element' => 'style', 'value' => array( 'lazy', 'load-more', 'pagination', ), ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Show filter', 'js_composer' ), 'param_name' => 'show_filter', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'description' => esc_html__( 'Append filter to grid.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Grid elements per row', 'js_composer' ), 'param_name' => 'element_width', 'value' => self::$gridColsList, 'std' => '4', 'edit_field_class' => 'vc_col-sm-6', 'description' => esc_html__( 'Select number of single grid elements per row.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Gap', 'js_composer' ), 'param_name' => 'gap', 'value' => array( '0px' => '0', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35', ), 'std' => '30', 'description' => esc_html__( 'Select gap between grid elements.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-6', ), // Data settings array( 'type' => 'dropdown', 'heading' => esc_html__( 'Order by', 'js_composer' ), 'param_name' => 'orderby', 'value' => array( esc_html__( 'Date', 'js_composer' ) => 'date', esc_html__( 'Order by post ID', 'js_composer' ) => 'ID', esc_html__( 'Author', 'js_composer' ) => 'author', esc_html__( 'Title', 'js_composer' ) => 'title', esc_html__( 'Last modified date', 'js_composer' ) => 'modified', esc_html__( 'Post/page parent ID', 'js_composer' ) => 'parent', esc_html__( 'Number of comments', 'js_composer' ) => 'comment_count', esc_html__( 'Menu order/Page Order', 'js_composer' ) => 'menu_order', esc_html__( 'Meta value', 'js_composer' ) => 'meta_value', esc_html__( 'Meta value number', 'js_composer' ) => 'meta_value_num', esc_html__( 'Random order', 'js_composer' ) => 'rand', ), 'description' => esc_html__( 'Select order type. If "Meta value" or "Meta value Number" is chosen then meta key is required.', 'js_composer' ), 'group' => esc_html__( 'Data Settings', 'js_composer' ), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'ids', 'custom', ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Sort order', 'js_composer' ), 'param_name' => 'order', 'group' => esc_html__( 'Data Settings', 'js_composer' ), 'value' => array( esc_html__( 'Descending', 'js_composer' ) => 'DESC', esc_html__( 'Ascending', 'js_composer' ) => 'ASC', ), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'description' => esc_html__( 'Select sorting order.', 'js_composer' ), 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'ids', 'custom', ), ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Meta key', 'js_composer' ), 'param_name' => 'meta_key', 'description' => esc_html__( 'Input meta key for grid ordering.', 'js_composer' ), 'group' => esc_html__( 'Data Settings', 'js_composer' ), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array( 'element' => 'orderby', 'value' => array( 'meta_value', 'meta_value_num', ), ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Offset', 'js_composer' ), 'param_name' => 'offset', 'description' => esc_html__( 'Number of grid elements to displace or pass over.', 'js_composer' ), 'group' => esc_html__( 'Data Settings', 'js_composer' ), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'ids', 'custom', ), ), ), array( 'type' => 'autocomplete', 'heading' => esc_html__( 'Exclude', 'js_composer' ), 'param_name' => 'exclude', 'description' => esc_html__( 'Exclude posts, pages, etc. by title.', 'js_composer' ), 'group' => esc_html__( 'Data Settings', 'js_composer' ), 'settings' => array( 'multiple' => true, ), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'ids', 'custom', ), 'callback' => 'vc_grid_exclude_dependency_callback', ), ), // Filter tab array( 'type' => 'dropdown', 'heading' => esc_html__( 'Filter by', 'js_composer' ), 'param_name' => 'filter_source', 'value' => $taxonomiesForFilter, 'group' => esc_html__( 'Filter', 'js_composer' ), 'dependency' => array( 'element' => 'show_filter', 'value' => array( 'yes' ), ), 'save_always' => true, 'description' => esc_html__( 'Select filter source.', 'js_composer' ), ), array( 'type' => 'autocomplete', 'heading' => esc_html__( 'Exclude from filter list', 'js_composer' ), 'param_name' => 'exclude_filter', 'settings' => array( 'multiple' => true, // is multiple values allowed? default false 'min_length' => 1, // min length to start search -> default 2 'groups' => true, // In UI show results grouped by groups, default false 'unique_values' => true, // In UI show results except selected. NB! You should manually check values in backend, default false 'display_inline' => true, // In UI show results inline view, default false (each value in own line) 'delay' => 500, // delay for search. default 500 'auto_focus' => true, // auto focus input, default true ), 'description' => esc_html__( 'Enter categories, tags won\'t be shown in the filters list', 'js_composer' ), 'dependency' => array( 'element' => 'show_filter', 'value' => array( 'yes' ), 'callback' => 'vcGridFilterExcludeCallBack', ), 'group' => esc_html__( 'Filter', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'param_name' => 'filter_style', 'value' => array( esc_html__( 'Rounded', 'js_composer' ) => 'default', esc_html__( 'Less Rounded', 'js_composer' ) => 'default-less-rounded', esc_html__( 'Border', 'js_composer' ) => 'bordered', esc_html__( 'Rounded Border', 'js_composer' ) => 'bordered-rounded', esc_html__( 'Less Rounded Border', 'js_composer' ) => 'bordered-rounded-less', esc_html__( 'Filled', 'js_composer' ) => 'filled', esc_html__( 'Rounded Filled', 'js_composer' ) => 'filled-rounded', esc_html__( 'Dropdown', 'js_composer' ) => 'dropdown', ), 'dependency' => array( 'element' => 'show_filter', 'value' => array( 'yes' ), ), 'group' => esc_html__( 'Filter', 'js_composer' ), 'description' => esc_html__( 'Select filter display style.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Default title', 'js_composer' ), 'param_name' => 'filter_default_title', 'value' => esc_html__( 'All', 'js_composer' ), 'description' => esc_html__( 'Enter default title for filter option display (empty: "All").', 'js_composer' ), 'dependency' => array( 'element' => 'show_filter', 'value' => array( 'yes' ), ), 'group' => esc_html__( 'Filter', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Alignment', 'js_composer' ), 'param_name' => 'filter_align', 'value' => array( esc_html__( 'Center', 'js_composer' ) => 'center', esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', ), 'dependency' => array( 'element' => 'show_filter', 'value' => array( 'yes' ), ), 'group' => esc_html__( 'Filter', 'js_composer' ), 'description' => esc_html__( 'Select filter alignment.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'filter_color', 'value' => vc_get_shared( 'colors' ), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array( 'element' => 'show_filter', 'value' => array( 'yes' ), ), 'group' => esc_html__( 'Filter', 'js_composer' ), 'description' => esc_html__( 'Select filter color.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Filter size', 'js_composer' ), 'param_name' => 'filter_size', 'value' => vc_get_shared( 'sizes' ), 'std' => 'md', 'description' => esc_html__( 'Select filter size.', 'js_composer' ), 'dependency' => array( 'element' => 'show_filter', 'value' => array( 'yes' ), ), 'group' => esc_html__( 'Filter', 'js_composer' ), ), // moved to the end // Paging controls array( 'type' => 'dropdown', 'heading' => esc_html__( 'Arrows design', 'js_composer' ), 'param_name' => 'arrows_design', 'value' => array( esc_html__( 'None', 'js_composer' ) => 'none', esc_html__( 'Simple', 'js_composer' ) => 'vc_arrow-icon-arrow_01_left', esc_html__( 'Simple Circle Border', 'js_composer' ) => 'vc_arrow-icon-arrow_02_left', esc_html__( 'Simple Circle', 'js_composer' ) => 'vc_arrow-icon-arrow_03_left', esc_html__( 'Simple Square', 'js_composer' ) => 'vc_arrow-icon-arrow_09_left', esc_html__( 'Simple Square Rounded', 'js_composer' ) => 'vc_arrow-icon-arrow_12_left', esc_html__( 'Simple Rounded', 'js_composer' ) => 'vc_arrow-icon-arrow_11_left', esc_html__( 'Rounded', 'js_composer' ) => 'vc_arrow-icon-arrow_04_left', esc_html__( 'Rounded Circle Border', 'js_composer' ) => 'vc_arrow-icon-arrow_05_left', esc_html__( 'Rounded Circle', 'js_composer' ) => 'vc_arrow-icon-arrow_06_left', esc_html__( 'Rounded Square', 'js_composer' ) => 'vc_arrow-icon-arrow_10_left', esc_html__( 'Simple Arrow', 'js_composer' ) => 'vc_arrow-icon-arrow_08_left', esc_html__( 'Simple Rounded Arrow', 'js_composer' ) => 'vc_arrow-icon-arrow_07_left', ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select design for arrows.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Arrows position', 'js_composer' ), 'param_name' => 'arrows_position', 'value' => array( esc_html__( 'Inside Wrapper', 'js_composer' ) => 'inside', esc_html__( 'Outside Wrapper', 'js_composer' ) => 'outside', ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'arrows_design', 'value_not_equal_to' => array( 'none' ), // New dependency ), 'description' => esc_html__( 'Arrows will be displayed inside or outside grid.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Arrows color', 'js_composer' ), 'param_name' => 'arrows_color', 'value' => vc_get_shared( 'colors' ), 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'arrows_design', 'value_not_equal_to' => array( 'none' ), // New dependency ), 'description' => esc_html__( 'Select color for arrows.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Pagination style', 'js_composer' ), 'param_name' => 'paging_design', 'value' => array( esc_html__( 'None', 'js_composer' ) => 'none', esc_html__( 'Square Dots', 'js_composer' ) => 'square_dots', esc_html__( 'Radio Dots', 'js_composer' ) => 'radio_dots', esc_html__( 'Point Dots', 'js_composer' ) => 'point_dots', esc_html__( 'Fill Square Dots', 'js_composer' ) => 'fill_square_dots', esc_html__( 'Rounded Fill Square Dots', 'js_composer' ) => 'round_fill_square_dots', esc_html__( 'Pagination Default', 'js_composer' ) => 'pagination_default', esc_html__( 'Outline Default Dark', 'js_composer' ) => 'pagination_default_dark', esc_html__( 'Outline Default Light', 'js_composer' ) => 'pagination_default_light', esc_html__( 'Pagination Rounded', 'js_composer' ) => 'pagination_rounded', esc_html__( 'Outline Rounded Dark', 'js_composer' ) => 'pagination_rounded_dark', esc_html__( 'Outline Rounded Light', 'js_composer' ) => 'pagination_rounded_light', esc_html__( 'Pagination Square', 'js_composer' ) => 'pagination_square', esc_html__( 'Outline Square Dark', 'js_composer' ) => 'pagination_square_dark', esc_html__( 'Outline Square Light', 'js_composer' ) => 'pagination_square_light', esc_html__( 'Pagination Rounded Square', 'js_composer' ) => 'pagination_rounded_square', esc_html__( 'Outline Rounded Square Dark', 'js_composer' ) => 'pagination_rounded_square_dark', esc_html__( 'Outline Rounded Square Light', 'js_composer' ) => 'pagination_rounded_square_light', esc_html__( 'Stripes Dark', 'js_composer' ) => 'pagination_stripes_dark', esc_html__( 'Stripes Light', 'js_composer' ) => 'pagination_stripes_light', ), 'std' => 'radio_dots', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select pagination style.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Pagination color', 'js_composer' ), 'param_name' => 'paging_color', 'value' => vc_get_shared( 'colors' ), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'paging_design', 'value_not_equal_to' => array( 'none' ), // New dependency ), 'description' => esc_html__( 'Select pagination color.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Loop pages?', 'js_composer' ), 'param_name' => 'loop', 'description' => esc_html__( 'Allow items to be repeated in infinite loop (carousel).', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Autoplay delay', 'js_composer' ), 'param_name' => 'autoplay', 'value' => '-1', 'description' => esc_html__( 'Enter value in seconds. Set -1 to disable autoplay.', 'js_composer' ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), ), array( 'type' => 'animation_style', 'heading' => esc_html__( 'Animation In', 'js_composer' ), 'param_name' => 'paging_animation_in', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'settings' => array( 'type' => array( 'in', 'other', ), ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select "animation in" for page transition.', 'js_composer' ), ), array( 'type' => 'animation_style', 'heading' => esc_html__( 'Animation Out', 'js_composer' ), 'param_name' => 'paging_animation_out', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'settings' => array( 'type' => array( 'out' ), ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select "animation out" for page transition.', 'js_composer' ), ), array( 'type' => 'vc_grid_item', 'heading' => esc_html__( 'Grid element template', 'js_composer' ), 'param_name' => 'item', 'description' => sprintf( esc_html__( '%sCreate new%s template or %smodify selected%s. Predefined templates will be cloned.', 'js_composer' ), '', '', '', '' ), 'group' => esc_html__( 'Item Design', 'js_composer' ), 'value' => 'none', ), array( 'type' => 'vc_grid_id', 'param_name' => 'grid_id', ), array( 'type' => 'animation_style', 'heading' => esc_html__( 'Initial loading animation', 'js_composer' ), 'param_name' => 'initial_loading_animation', 'value' => 'fadeIn', 'settings' => array( 'type' => array( 'in', 'other', ), ), 'description' => esc_html__( 'Select initial loading animation for grid element.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), // Load more btn array( 'type' => 'hidden', 'heading' => esc_html__( 'Button style', 'js_composer' ), 'param_name' => 'button_style', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), 'description' => esc_html__( 'Select button style.', 'js_composer' ), ), array( 'type' => 'hidden', 'heading' => esc_html__( 'Button color', 'js_composer' ), 'param_name' => 'button_color', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), 'description' => esc_html__( 'Select button color.', 'js_composer' ), ), array( 'type' => 'hidden', 'heading' => esc_html__( 'Button size', 'js_composer' ), 'param_name' => 'button_size', 'value' => '', 'description' => esc_html__( 'Select button size.', 'js_composer' ), 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), ), ), self::$btn3Params ); self::$basicGrid = array_merge( self::$basicGrid ); return self::$basicGrid; } /** * Media grid common settings */ public static function getMediaCommonAtts() { if ( self::$mediaGrid ) { return self::$mediaGrid; } if ( is_null( self::$btn3Params ) && is_null( self::$gridColsList ) ) { self::initData(); } self::$mediaGrid = array_merge( array( array( 'type' => 'attach_images', 'heading' => esc_html__( 'Images', 'js_composer' ), 'param_name' => 'include', 'description' => esc_html__( 'Select images from media library.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Display Style', 'js_composer' ), 'param_name' => 'style', 'value' => array( esc_html__( 'Show all', 'js_composer' ) => 'all', esc_html__( 'Load more button', 'js_composer' ) => 'load-more', esc_html__( 'Lazy loading', 'js_composer' ) => 'lazy', esc_html__( 'Pagination', 'js_composer' ) => 'pagination', ), 'dependency' => array( 'element' => 'post_type', 'value_not_equal_to' => array( 'custom' ), ), 'edit_field_class' => 'vc_col-sm-6', 'description' => esc_html__( 'Select display style for grid.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Items per page', 'js_composer' ), 'param_name' => 'items_per_page', 'description' => esc_html__( 'Number of items to show per page.', 'js_composer' ), 'value' => '10', 'dependency' => array( 'element' => 'style', 'value' => array( 'lazy', 'load-more', 'pagination', ), ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Grid elements per row', 'js_composer' ), 'param_name' => 'element_width', 'value' => self::$gridColsList, 'std' => '4', 'edit_field_class' => 'vc_col-sm-6', 'description' => esc_html__( 'Select number of single grid elements per row.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Gap', 'js_composer' ), 'param_name' => 'gap', 'value' => array( '0px' => '0', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35', ), 'std' => '5', 'description' => esc_html__( 'Select gap between grid elements.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'hidden', 'heading' => esc_html__( 'Button style', 'js_composer' ), 'param_name' => 'button_style', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), 'description' => esc_html__( 'Select button style.', 'js_composer' ), ), array( 'type' => 'hidden', 'heading' => esc_html__( 'Button color', 'js_composer' ), 'param_name' => 'button_color', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), 'description' => esc_html__( 'Select button color.', 'js_composer' ), ), array( 'type' => 'hidden', 'heading' => esc_html__( 'Button size', 'js_composer' ), 'param_name' => 'button_size', 'value' => '', 'description' => esc_html__( 'Select button size.', 'js_composer' ), 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Arrows design', 'js_composer' ), 'param_name' => 'arrows_design', 'value' => array( esc_html__( 'None', 'js_composer' ) => 'none', esc_html__( 'Simple', 'js_composer' ) => 'vc_arrow-icon-arrow_01_left', esc_html__( 'Simple Circle Border', 'js_composer' ) => 'vc_arrow-icon-arrow_02_left', esc_html__( 'Simple Circle', 'js_composer' ) => 'vc_arrow-icon-arrow_03_left', esc_html__( 'Simple Square', 'js_composer' ) => 'vc_arrow-icon-arrow_09_left', esc_html__( 'Simple Square Rounded', 'js_composer' ) => 'vc_arrow-icon-arrow_12_left', esc_html__( 'Simple Rounded', 'js_composer' ) => 'vc_arrow-icon-arrow_11_left', esc_html__( 'Rounded', 'js_composer' ) => 'vc_arrow-icon-arrow_04_left', esc_html__( 'Rounded Circle Border', 'js_composer' ) => 'vc_arrow-icon-arrow_05_left', esc_html__( 'Rounded Circle', 'js_composer' ) => 'vc_arrow-icon-arrow_06_left', esc_html__( 'Rounded Square', 'js_composer' ) => 'vc_arrow-icon-arrow_10_left', esc_html__( 'Simple Arrow', 'js_composer' ) => 'vc_arrow-icon-arrow_08_left', esc_html__( 'Simple Rounded Arrow', 'js_composer' ) => 'vc_arrow-icon-arrow_07_left', ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select design for arrows.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Arrows position', 'js_composer' ), 'param_name' => 'arrows_position', 'value' => array( esc_html__( 'Inside Wrapper', 'js_composer' ) => 'inside', esc_html__( 'Outside Wrapper', 'js_composer' ) => 'outside', ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'arrows_design', 'value_not_equal_to' => array( 'none' ), // New dependency ), 'description' => esc_html__( 'Arrows will be displayed inside or outside grid.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Arrows color', 'js_composer' ), 'param_name' => 'arrows_color', 'value' => vc_get_shared( 'colors' ), 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'arrows_design', 'value_not_equal_to' => array( 'none' ), // New dependency ), 'description' => esc_html__( 'Select color for arrows.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Pagination style', 'js_composer' ), 'param_name' => 'paging_design', 'value' => array( esc_html__( 'None', 'js_composer' ) => 'none', esc_html__( 'Square Dots', 'js_composer' ) => 'square_dots', esc_html__( 'Radio Dots', 'js_composer' ) => 'radio_dots', esc_html__( 'Point Dots', 'js_composer' ) => 'point_dots', esc_html__( 'Fill Square Dots', 'js_composer' ) => 'fill_square_dots', esc_html__( 'Rounded Fill Square Dots', 'js_composer' ) => 'round_fill_square_dots', esc_html__( 'Pagination Default', 'js_composer' ) => 'pagination_default', esc_html__( 'Outline Default Dark', 'js_composer' ) => 'pagination_default_dark', esc_html__( 'Outline Default Light', 'js_composer' ) => 'pagination_default_light', esc_html__( 'Pagination Rounded', 'js_composer' ) => 'pagination_rounded', esc_html__( 'Outline Rounded Dark', 'js_composer' ) => 'pagination_rounded_dark', esc_html__( 'Outline Rounded Light', 'js_composer' ) => 'pagination_rounded_light', esc_html__( 'Pagination Square', 'js_composer' ) => 'pagination_square', esc_html__( 'Outline Square Dark', 'js_composer' ) => 'pagination_square_dark', esc_html__( 'Outline Square Light', 'js_composer' ) => 'pagination_square_light', esc_html__( 'Pagination Rounded Square', 'js_composer' ) => 'pagination_rounded_square', esc_html__( 'Outline Rounded Square Dark', 'js_composer' ) => 'pagination_rounded_square_dark', esc_html__( 'Outline Rounded Square Light', 'js_composer' ) => 'pagination_rounded_square_light', esc_html__( 'Stripes Dark', 'js_composer' ) => 'pagination_stripes_dark', esc_html__( 'Stripes Light', 'js_composer' ) => 'pagination_stripes_light', ), 'std' => 'radio_dots', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select pagination style.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Pagination color', 'js_composer' ), 'param_name' => 'paging_color', 'value' => vc_get_shared( 'colors' ), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'paging_design', 'value_not_equal_to' => array( 'none' ), // New dependency ), 'description' => esc_html__( 'Select pagination color.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Loop pages?', 'js_composer' ), 'param_name' => 'loop', 'description' => esc_html__( 'Allow items to be repeated in infinite loop (carousel).', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Autoplay delay', 'js_composer' ), 'param_name' => 'autoplay', 'value' => '-1', 'description' => esc_html__( 'Enter value in seconds. Set -1 to disable autoplay.', 'js_composer' ), 'group' => esc_html__( 'Pagination', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), ), array( 'type' => 'animation_style', 'heading' => esc_html__( 'Animation In', 'js_composer' ), 'param_name' => 'paging_animation_in', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'settings' => array( 'type' => array( 'in', 'other', ), ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select "animation in" for page transition.', 'js_composer' ), ), array( 'type' => 'animation_style', 'heading' => esc_html__( 'Animation Out', 'js_composer' ), 'param_name' => 'paging_animation_out', 'group' => esc_html__( 'Pagination', 'js_composer' ), 'settings' => array( 'type' => array( 'out' ), ), 'dependency' => array( 'element' => 'style', 'value' => array( 'pagination' ), ), 'description' => esc_html__( 'Select "animation out" for page transition.', 'js_composer' ), ), array( 'type' => 'vc_grid_item', 'heading' => esc_html__( 'Grid element template', 'js_composer' ), 'param_name' => 'item', 'description' => sprintf( esc_html__( '%sCreate new%s template or %smodify selected%s. Predefined templates will be cloned.', 'js_composer' ), '', '', '', '' ), 'group' => esc_html__( 'Item Design', 'js_composer' ), 'value' => 'mediaGrid_Default', ), array( 'type' => 'vc_grid_id', 'param_name' => 'grid_id', ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), self::$btn3Params, array( // Load more btn bc array( 'type' => 'hidden', 'heading' => esc_html__( 'Button style', 'js_composer' ), 'param_name' => 'button_style', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), 'description' => esc_html__( 'Select button style.', 'js_composer' ), ), array( 'type' => 'hidden', 'heading' => esc_html__( 'Button color', 'js_composer' ), 'param_name' => 'button_color', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), 'description' => esc_html__( 'Select button color.', 'js_composer' ), ), array( 'type' => 'hidden', 'heading' => esc_html__( 'Button size', 'js_composer' ), 'param_name' => 'button_size', 'value' => '', 'description' => esc_html__( 'Select button size.', 'js_composer' ), 'group' => esc_html__( 'Load More Button', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'load-more' ), ), ), array( 'type' => 'animation_style', 'heading' => esc_html__( 'Initial loading animation', 'js_composer' ), 'param_name' => 'initial_loading_animation', 'value' => 'fadeIn', 'settings' => array( 'type' => array( 'in', 'other', ), ), 'description' => esc_html__( 'Select initial loading animation for grid element.', 'js_composer' ), ), ) ); self::$mediaGrid = array_merge( self::$mediaGrid ); return self::$mediaGrid; } public static function getMasonryCommonAtts() { if ( self::$masonryGrid ) { return self::$masonryGrid; } $gridParams = self::getBasicAtts(); self::$masonryGrid = $gridParams; $style = self::arraySearch( self::$masonryGrid, 'param_name', 'style' ); unset( self::$masonryGrid[ $style ]['value'][ esc_html__( 'Pagination', 'js_composer' ) ] ); $animation = self::arraySearch( self::$masonryGrid, 'param_name', 'initial_loading_animation' ); $masonryAnimation = array( 'type' => 'dropdown', 'heading' => esc_html__( 'Initial loading animation', 'js_composer' ), 'param_name' => 'initial_loading_animation', 'value' => array( esc_html__( 'None', 'js_composer' ) => 'none', esc_html__( 'Default', 'js_composer' ) => 'zoomIn', esc_html__( 'Fade In', 'js_composer' ) => 'fadeIn', ), 'std' => 'zoomIn', 'description' => esc_html__( 'Select initial loading animation for grid element.', 'js_composer' ), ); self::$masonryGrid[ $animation ] = $masonryAnimation; $key = self::arraySearch( self::$masonryGrid, 'group', esc_html__( 'Pagination', 'js_composer' ) ); while ( $key ) { unset( self::$masonryGrid[ $key ] ); $key = self::arraySearch( self::$masonryGrid, 'group', esc_html__( 'Pagination', 'js_composer' ) ); } $vcGridItem = self::arraySearch( self::$masonryGrid, 'param_name', 'item' ); self::$masonryGrid[ $vcGridItem ]['value'] = 'masonryGrid_Default'; self::$masonryGrid = array_merge( self::$masonryGrid ); return array_merge( self::$masonryGrid ); } public static function getMasonryMediaCommonAtts() { if ( self::$masonryMediaGrid ) { return self::$masonryMediaGrid; } $mediaGridParams = self::getMediaCommonAtts(); self::$masonryMediaGrid = $mediaGridParams; $key = self::arraySearch( self::$masonryMediaGrid, 'group', esc_html__( 'Pagination', 'js_composer' ) ); while ( $key ) { unset( self::$masonryMediaGrid[ $key ] ); $key = self::arraySearch( self::$masonryMediaGrid, 'group', esc_html__( 'Pagination', 'js_composer' ) ); } $vcGridItem = self::arraySearch( self::$masonryMediaGrid, 'param_name', 'item' ); self::$masonryMediaGrid[ $vcGridItem ]['value'] = 'masonryMedia_Default'; $style = self::arraySearch( self::$masonryMediaGrid, 'param_name', 'style' ); unset( self::$masonryMediaGrid[ $style ]['value'][ esc_html__( 'Pagination', 'js_composer' ) ] ); $animation = self::arraySearch( self::$masonryMediaGrid, 'param_name', 'initial_loading_animation' ); $masonryAnimation = array( 'type' => 'dropdown', 'heading' => esc_html__( 'Initial loading animation', 'js_composer' ), 'param_name' => 'initial_loading_animation', 'value' => array( esc_html__( 'None', 'js_composer' ) => 'none', esc_html__( 'Default', 'js_composer' ) => 'zoomIn', esc_html__( 'Fade In', 'js_composer' ) => 'fadeIn', ), 'std' => 'zoomIn', 'settings' => array( 'type' => array( 'in', 'other', ), ), 'description' => esc_html__( 'Select initial loading animation for grid element.', 'js_composer' ), ); self::$masonryMediaGrid[ $animation ] = $masonryAnimation; self::$masonryMediaGrid = array_merge( self::$masonryMediaGrid ); return array_merge( self::$masonryMediaGrid ); } /** * Function to search array */ public static function arraySearch( $array, $column, $value ) { if ( ! is_array( $array ) ) { return false; } foreach ( $array as $key => $innerArray ) { $exists = isset( $innerArray[ $column ] ) && $innerArray[ $column ] === $value; if ( $exists ) { return $key; } } return false; } } } PK ! i: ! grids/shortcode-vc-media-grid.phpnu [ esc_html__( 'Media Grid', 'js_composer' ), 'base' => 'vc_media_grid', 'icon' => 'vc_icon-vc-media-grid', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Media grid from Media Library', 'js_composer' ), 'params' => $mediaGridParams, ); PK ! (b wp/shortcode-vc-wp-archives.phpnu [ 'WP ' . esc_html__( 'Archives' ), 'base' => 'vc_wp_archives', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'A monthly archive of your sites posts', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), 'value' => esc_html__( 'Archives' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Display options', 'js_composer' ), 'param_name' => 'options', 'value' => array( esc_html__( 'Dropdown', 'js_composer' ) => 'dropdown', esc_html__( 'Show post counts', 'js_composer' ) => 'count', ), 'description' => esc_html__( 'Select display options for archives.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! 5> wp/shortcode-vc-wp-links.phpnu [ '' ); $link_cats = get_terms( 'link_category' ); if ( is_array( $link_cats ) && ! empty( $link_cats ) ) { foreach ( $link_cats as $link_cat ) { if ( is_object( $link_cat ) && isset( $link_cat->name, $link_cat->term_id ) ) { $link_category[ $link_cat->name ] = $link_cat->term_id; } } } } else { $link_category = array(); } return array( 'name' => 'WP ' . esc_html__( 'Links' ), 'base' => 'vc_wp_links', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'content_element' => (bool) get_option( 'link_manager_enabled' ), 'weight' => - 50, 'description' => esc_html__( 'Your blogroll', 'js_composer' ), 'params' => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Link Category', 'js_composer' ), 'param_name' => 'category', 'value' => $link_category, 'admin_label' => true, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Order by', 'js_composer' ), 'param_name' => 'orderby', 'value' => array( esc_html__( 'Link title', 'js_composer' ) => 'name', esc_html__( 'Link rating', 'js_composer' ) => 'rating', esc_html__( 'Link ID', 'js_composer' ) => 'id', esc_html__( 'Random', 'js_composer' ) => 'rand', ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Options', 'js_composer' ), 'param_name' => 'options', 'value' => array( esc_html__( 'Show Link Image', 'js_composer' ) => 'images', esc_html__( 'Show Link Name', 'js_composer' ) => 'name', esc_html__( 'Show Link Description', 'js_composer' ) => 'description', esc_html__( 'Show Link Rating', 'js_composer' ) => 'rating', ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Number of links to show', 'js_composer' ), 'param_name' => 'limit', 'value' => - 1, ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! -( wp/shortcode-vc-wp-rss.phpnu [ 'WP ' . esc_html__( 'RSS' ), 'base' => 'vc_wp_rss', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'Entries from any RSS or Atom feed', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'RSS feed URL', 'js_composer' ), 'param_name' => 'url', 'description' => esc_html__( 'Enter the RSS feed URL.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Items', 'js_composer' ), 'param_name' => 'items', 'value' => array( esc_html__( '10 - Default', 'js_composer' ) => 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ), 'description' => esc_html__( 'Select how many items to display.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Options', 'js_composer' ), 'param_name' => 'options', 'value' => array( esc_html__( 'Item content', 'js_composer' ) => 'show_summary', esc_html__( 'Display item author if available?', 'js_composer' ) => 'show_author', esc_html__( 'Display item date?', 'js_composer' ) => 'show_date', ), 'description' => esc_html__( 'Select display options for RSS feeds.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! \k wp/shortcode-vc-wp-pages.phpnu [ 'WP ' . esc_html__( 'Pages' ), 'base' => 'vc_wp_pages', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'Your sites WordPress Pages', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), 'value' => esc_html__( 'Pages' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Order by', 'js_composer' ), 'param_name' => 'sortby', 'value' => array( esc_html__( 'Page title', 'js_composer' ) => 'post_title', esc_html__( 'Page order', 'js_composer' ) => 'menu_order', esc_html__( 'Page ID', 'js_composer' ) => 'ID', ), 'description' => esc_html__( 'Select how to sort pages.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Exclude', 'js_composer' ), 'param_name' => 'exclude', 'description' => esc_html__( 'Enter page IDs to be excluded (Note: separate values by commas (,)).', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! `X X wp/shortcode-vc-wp-tagcloud.phpnu [ show_tagcloud || empty( $tax->labels->name ) ) ) || ! is_object( $tax ) ) { continue; } $tag_taxonomies[ $tax->labels->name ] = esc_attr( $taxonomy ); } } } return array( 'name' => 'WP ' . esc_html__( 'Tag Cloud' ), 'base' => 'vc_wp_tagcloud', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'Your most used tags in cloud format', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'value' => esc_html__( 'Tags', 'js_composer' ), 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Taxonomy', 'js_composer' ), 'param_name' => 'taxonomy', 'value' => $tag_taxonomies, 'description' => esc_html__( 'Select source for tag cloud.', 'js_composer' ), 'admin_label' => true, 'save_always' => true, ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! $; ! wp/shortcode-vc-wp-categories.phpnu [ 'WP ' . esc_html__( 'Categories' ), 'base' => 'vc_wp_categories', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'A list or dropdown of categories', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), 'value' => esc_html__( 'Categories' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Display options', 'js_composer' ), 'param_name' => 'options', 'value' => array( esc_html__( 'Dropdown', 'js_composer' ) => 'dropdown', esc_html__( 'Show post counts', 'js_composer' ) => 'count', esc_html__( 'Show hierarchy', 'js_composer' ) => 'hierarchical', ), 'description' => esc_html__( 'Select display options for categories.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! un n wp/shortcode-vc-wp-posts.phpnu [ 'WP ' . esc_html__( 'Recent Posts' ), 'base' => 'vc_wp_posts', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'The most recent posts on your site', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), 'value' => esc_html__( 'Recent Posts' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Number of posts', 'js_composer' ), 'description' => esc_html__( 'Enter number of posts to display.', 'js_composer' ), 'param_name' => 'number', 'value' => 5, 'admin_label' => true, ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Display post date?', 'js_composer' ), 'param_name' => 'show_date', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => true ), 'description' => esc_html__( 'If checked, date will be displayed.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! _ ! wp/shortcode-vc-wp-custommenu.phpnu [ false ) ); if ( is_array( $menus ) && ! empty( $menus ) ) { foreach ( $menus as $single_menu ) { if ( is_object( $single_menu ) && isset( $single_menu->name, $single_menu->term_id ) ) { $custom_menus[ $single_menu->name ] = $single_menu->term_id; } } } } return array( 'name' => 'WP ' . esc_html__( 'Custom Menu' ), 'base' => 'vc_wp_custommenu', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'Use this widget to add one of your custom menus as a widget', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Menu', 'js_composer' ), 'param_name' => 'nav_menu', 'value' => $custom_menus, 'description' => empty( $custom_menus ) ? sprintf( esc_html__( 'Custom menus not found. Please visit %sAppearance > Menus%s page to create new menu.', 'js_composer' ), '', '' ) : esc_html__( 'Select menu to display.', 'js_composer' ), 'admin_label' => true, 'save_always' => true, ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! T T % wp/shortcode-vc-wp-recentcomments.phpnu [ 'WP ' . esc_html__( 'Recent Comments' ), 'base' => 'vc_wp_recentcomments', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'The most recent comments', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), 'value' => esc_html__( 'Recent Comments' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Number of comments', 'js_composer' ), 'description' => esc_html__( 'Enter number of comments to display.', 'js_composer' ), 'param_name' => 'number', 'value' => 5, 'admin_label' => true, ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! {; ; wp/shortcode-vc-wp-meta.phpnu [ 'WP ' . esc_html__( 'Meta' ), 'base' => 'vc_wp_meta', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'Log in/out, admin, feed and WordPress links', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), 'value' => esc_html__( 'Meta' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! I wp/shortcode-vc-wp-calendar.phpnu [ 'WP ' . esc_html__( 'Calendar' ), 'base' => 'vc_wp_calendar', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'A calendar of your sites posts', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! ŗ wp/shortcode-vc-wp-text.phpnu [ 'WP ' . esc_html__( 'Text' ), 'base' => 'vc_wp_text', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'Arbitrary text or HTML', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), ), array( 'type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__( 'Text', 'js_composer' ), 'param_name' => 'content', ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! 2 wp/shortcode-vc-wp-search.phpnu [ 'WP ' . esc_html__( 'Search' ), 'base' => 'vc_wp_search', 'icon' => 'icon-wpb-wp', 'category' => esc_html__( 'WordPress Widgets', 'js_composer' ), 'class' => 'wpb_vc_wp_widget', 'weight' => - 50, 'description' => esc_html__( 'A search form for your site', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'What text use as a widget title. Leave blank to use default widget title.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! U U $ content/shortcode-vc-column-text.phpnu [ esc_html__( 'Text Block', 'js_composer' ), 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'A block of text with WYSIWYG editor', 'js_composer' ), 'params' => array( array( 'type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__( 'Text', 'js_composer' ), 'param_name' => 'content', 'value' => '
' . esc_html__( 'I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ) . '
', ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! 2<_ _ " content/shortcode-vc-separator.phpnu [ esc_html__( 'Separator', 'js_composer' ), 'base' => 'vc_separator', 'icon' => 'icon-wpb-ui-separator', 'show_settings_on_create' => true, 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Horizontal separator line', 'js_composer' ), 'params' => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ), 'std' => 'grey', 'description' => esc_html__( 'Select color of separator.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Alignment', 'js_composer' ), 'param_name' => 'align', 'value' => array( esc_html__( 'Center', 'js_composer' ) => 'align_center', esc_html__( 'Left', 'js_composer' ) => 'align_left', esc_html__( 'Right', 'js_composer' ) => 'align_right', ), 'description' => esc_html__( 'Select separator alignment.', 'js_composer' ), ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom Border Color', 'js_composer' ), 'param_name' => 'accent_color', 'description' => esc_html__( 'Select border color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'color', 'value' => array( 'custom' ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'param_name' => 'style', 'value' => vc_get_shared( 'separator styles' ), 'description' => esc_html__( 'Separator display style.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Border width', 'js_composer' ), 'param_name' => 'border_width', 'value' => vc_get_shared( 'separator border widths' ), 'description' => esc_html__( 'Select border width (pixels).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Element width', 'js_composer' ), 'param_name' => 'el_width', 'value' => vc_get_shared( 'separator widths' ), 'description' => esc_html__( 'Select separator width (percentage).', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! ) content/shortcode-vc-toggle.phpnu [ array( 'source', 'text', 'css', 'link', ), ), array( 'element' => 'use_custom_heading', 'value' => 'true', ) ); $params = array_merge( array( array( 'type' => 'textfield', 'holder' => 'h4', 'class' => 'vc_toggle_title', 'heading' => esc_html__( 'Toggle title', 'js_composer' ), 'param_name' => 'title', 'value' => esc_html__( 'Toggle title', 'js_composer' ), 'description' => esc_html__( 'Enter title of toggle block.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-9', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Use custom font?', 'js_composer' ), 'param_name' => 'use_custom_heading', 'description' => esc_html__( 'Enable Google fonts.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-3', ), array( 'type' => 'textarea_html', 'holder' => 'div', 'class' => 'vc_toggle_content', 'heading' => esc_html__( 'Toggle content', 'js_composer' ), 'param_name' => 'content', 'value' => '' . esc_html__( 'Toggle content goes here, click edit button to change this text.', 'js_composer' ) . '
', 'description' => esc_html__( 'Toggle block content.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'param_name' => 'style', 'value' => vc_get_shared( 'toggle styles' ), 'description' => esc_html__( 'Select toggle design style.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Icon color', 'js_composer' ), 'param_name' => 'color', 'value' => array( esc_html__( 'Default', 'js_composer' ) => 'default' ) + vc_get_shared( 'colors' ), 'description' => esc_html__( 'Select icon color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Size', 'js_composer' ), 'param_name' => 'size', 'value' => array_diff_key( vc_get_shared( 'sizes' ), array( 'Mini' => '' ) ), 'std' => 'md', 'description' => esc_html__( 'Select toggle size', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Default state', 'js_composer' ), 'param_name' => 'open', 'value' => array( esc_html__( 'Closed', 'js_composer' ) => 'false', esc_html__( 'Open', 'js_composer' ) => 'true', ), 'description' => esc_html__( 'Select "Open" if you want toggle to be open by default.', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), $cta_custom_heading, array( array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ) ); return array( 'name' => esc_html__( 'FAQ', 'js_composer' ), 'base' => 'vc_toggle', 'icon' => 'icon-wpb-toggle-small-expand', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Toggle element for Q&A block', 'js_composer' ), 'params' => $params, 'js_view' => 'VcToggleView', ); PK ! D $ content/shortcode-vc-empty-space.phpnu [ esc_html__( 'Empty Space', 'js_composer' ), 'base' => 'vc_empty_space', 'icon' => 'icon-wpb-ui-empty_space', 'show_settings_on_create' => true, 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Blank space with custom height', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Height', 'js_composer' ), 'param_name' => 'height', 'value' => '32px', 'admin_label' => true, 'description' => esc_html__( 'Enter empty space height (Note: CSS measurement units allowed).', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! ?V ( content/shortcode-vc-images-carousel.phpnu [ esc_html__( 'Image Carousel', 'js_composer' ), 'base' => 'vc_images_carousel', 'icon' => 'icon-wpb-images-carousel', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Animated carousel with images', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'attach_images', 'heading' => esc_html__( 'Images', 'js_composer' ), 'param_name' => 'images', 'value' => '', 'description' => esc_html__( 'Select images from media library.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Carousel size', 'js_composer' ), 'param_name' => 'img_size', 'value' => 'thumbnail', 'description' => esc_html__( 'Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size. If used slides per view, this will be used to define carousel wrapper size.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'On click action', 'js_composer' ), 'param_name' => 'onclick', 'value' => array( esc_html__( 'Open prettyPhoto', 'js_composer' ) => 'link_image', esc_html__( 'None', 'js_composer' ) => 'link_no', esc_html__( 'Open custom links', 'js_composer' ) => 'custom_link', ), 'description' => esc_html__( 'Select action for click event.', 'js_composer' ), ), array( 'type' => 'exploded_textarea_safe', 'heading' => esc_html__( 'Custom links', 'js_composer' ), 'param_name' => 'custom_links', 'description' => esc_html__( 'Enter links for each slide (Note: divide links with linebreaks (Enter)).', 'js_composer' ), 'dependency' => array( 'element' => 'onclick', 'value' => array( 'custom_link' ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Custom link target', 'js_composer' ), 'param_name' => 'custom_links_target', 'description' => esc_html__( 'Select how to open custom links.', 'js_composer' ), 'dependency' => array( 'element' => 'onclick', 'value' => array( 'custom_link' ), ), 'value' => vc_target_param_list(), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Slider orientation', 'js_composer' ), 'param_name' => 'mode', 'value' => array( esc_html__( 'Horizontal', 'js_composer' ) => 'horizontal', esc_html__( 'Vertical', 'js_composer' ) => 'vertical', ), 'description' => esc_html__( 'Select slider position (Note: this affects swiping orientation).', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Slider speed', 'js_composer' ), 'param_name' => 'speed', 'value' => '5000', 'description' => esc_html__( 'Duration of animation between slides (in ms).', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Slides per view', 'js_composer' ), 'param_name' => 'slides_per_view', 'value' => '1', 'description' => esc_html__( 'Enter number of slides to display at the same time.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Slider autoplay', 'js_composer' ), 'param_name' => 'autoplay', 'description' => esc_html__( 'Enable autoplay mode.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Hide pagination control', 'js_composer' ), 'param_name' => 'hide_pagination_control', 'description' => esc_html__( 'If checked, pagination controls will be hidden.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Hide prev/next buttons', 'js_composer' ), 'param_name' => 'hide_prev_next_buttons', 'description' => esc_html__( 'If checked, prev/next buttons will be hidden.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Partial view', 'js_composer' ), 'param_name' => 'partial_view', 'description' => esc_html__( 'If checked, part of the next slide will be visible.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Slider loop', 'js_composer' ), 'param_name' => 'wrap', 'description' => esc_html__( 'Enable slider loop mode.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! ?c/ / # content/shortcode-vc-line-chart.phpnu [ esc_html__( 'Line Chart', 'js_composer' ), 'base' => 'vc_line_chart', 'class' => '', 'icon' => 'icon-wpb-vc-line-chart', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Line and Bar charts', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Design', 'js_composer' ), 'param_name' => 'type', 'value' => array( esc_html__( 'Line', 'js_composer' ) => 'line', esc_html__( 'Bar', 'js_composer' ) => 'bar', ), 'std' => 'bar', 'description' => esc_html__( 'Select type of chart.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'description' => esc_html__( 'Select chart color style.', 'js_composer' ), 'param_name' => 'style', 'value' => array( esc_html__( 'Flat', 'js_composer' ) => 'flat', esc_html__( 'Modern', 'js_composer' ) => 'modern', esc_html__( 'Custom', 'js_composer' ) => 'custom', ), 'dependency' => array( 'callback' => 'vcChartCustomColorDependency', ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Show legend?', 'js_composer' ), 'param_name' => 'legend', 'description' => esc_html__( 'If checked, chart will have legend.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'std' => 'yes', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Show hover values?', 'js_composer' ), 'param_name' => 'tooltips', 'description' => esc_html__( 'If checked, chart will show values on hover.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'std' => 'yes', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'X-axis values', 'js_composer' ), 'param_name' => 'x_values', 'description' => esc_html__( 'Enter values for axis (Note: separate values with ";").', 'js_composer' ), 'value' => 'JAN; FEB; MAR; APR; MAY; JUN; JUL; AUG', ), array( 'type' => 'param_group', 'heading' => esc_html__( 'Values', 'js_composer' ), 'param_name' => 'values', 'value' => rawurlencode( wp_json_encode( array( array( 'title' => esc_html__( 'One', 'js_composer' ), 'y_values' => '10; 15; 20; 25; 27; 25; 23; 25', 'color' => 'blue', ), array( 'title' => esc_html__( 'Two', 'js_composer' ), 'y_values' => '25; 18; 16; 17; 20; 25; 30; 35', 'color' => 'pink', ), ) ) ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter title for chart dataset.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Y-axis values', 'js_composer' ), 'param_name' => 'y_values', 'description' => esc_html__( 'Enter values for axis (Note: separate values with ";").', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => vc_get_shared( 'colors-dashed' ), 'description' => esc_html__( 'Select chart color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom color', 'js_composer' ), 'param_name' => 'custom_color', 'description' => esc_html__( 'Select custom chart color.', 'js_composer' ), ), ), 'callbacks' => array( 'after_add' => 'vcChartParamAfterAddCallback', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Animation', 'js_composer' ), 'description' => esc_html__( 'Select animation style.', 'js_composer' ), 'param_name' => 'animation', 'value' => vc_get_shared( 'animation styles' ), 'std' => 'easeInOutCubic', ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! ;hK K content/shortcode-vc-gmaps.phpnu [ esc_html__( 'Google Maps', 'js_composer' ), 'base' => 'vc_gmaps', 'icon' => 'icon-wpb-map-pin', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Map block', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'textarea_safe', 'heading' => esc_html__( 'Map embed iframe', 'js_composer' ), 'param_name' => 'link', 'value' => '', 'description' => sprintf( esc_html__( 'Visit %s to create your map (Step by step: 1) Find location 2) Click the cog symbol in the lower right corner and select "Share or embed map" 3) On modal window select "Embed map" 4) Copy iframe code and paste it).' ), '' . esc_html__( 'Google maps', 'js_composer' ) . '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Map height', 'js_composer' ), 'param_name' => 'size', 'value' => 'standard', 'admin_label' => true, 'description' => esc_html__( 'Enter map height (in pixels or leave empty for responsive map).', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! s{O, , content/shortcode-vc-video.phpnu [ esc_html__( 'Video Player', 'js_composer' ), 'base' => 'vc_video', 'icon' => 'icon-wpb-film-youtube', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Embed YouTube/Vimeo player', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Video link', 'js_composer' ), 'param_name' => 'link', 'value' => 'https://vimeo.com/51589652', 'admin_label' => true, 'description' => sprintf( esc_html__( 'Enter link to video (Note: read more about available formats at WordPress %scodex page%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Video width', 'js_composer' ), 'param_name' => 'el_width', 'value' => array( '100%' => '100', '90%' => '90', '80%' => '80', '70%' => '70', '60%' => '60', '50%' => '50', '40%' => '40', '30%' => '30', '20%' => '20', '10%' => '10', ), 'description' => esc_html__( 'Select video width (percentage).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Video aspect ratio', 'js_composer' ), 'param_name' => 'el_aspect', 'value' => array( '16:9' => '169', '4:3' => '43', '2.35:1' => '235', '9:16' => '916', '3:4' => '34', '1:2.35' => '1235', ), 'description' => esc_html__( 'Select video aspect ratio.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Alignment', 'js_composer' ), 'param_name' => 'align', 'description' => esc_html__( 'Select video alignment.', 'js_composer' ), 'value' => array( esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', esc_html__( 'Center', 'js_composer' ) => 'center', ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! %B( B( content/shortcode-vc-message.phpnu [ 'info', esc_html__( 'Warning', 'js_composer' ) => 'warning', esc_html__( 'Success', 'js_composer' ) => 'success', esc_html__( 'Error', 'js_composer' ) => 'danger', esc_html__( 'Informational Classic', 'js_composer' ) => 'alert-info', esc_html__( 'Warning Classic', 'js_composer' ) => 'alert-warning', esc_html__( 'Success Classic', 'js_composer' ) => 'alert-success', esc_html__( 'Error Classic', 'js_composer' ) => 'alert-danger', ); return array( 'name' => esc_html__( 'Message Box', 'js_composer' ), 'base' => 'vc_message', 'icon' => 'icon-wpb-information-white', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Notification box', 'js_composer' ), 'params' => array( array( 'type' => 'params_preset', 'heading' => esc_html__( 'Message Box Presets', 'js_composer' ), 'param_name' => 'color', // due to backward compatibility, really it is message_box_type 'value' => '', 'options' => array( array( 'label' => esc_html__( 'Custom', 'js_composer' ), 'value' => '', 'params' => array(), ), array( 'label' => esc_html__( 'Informational', 'js_composer' ), 'value' => 'info', 'params' => array( 'message_box_color' => 'info', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fas fa-info-circle', ), ), array( 'label' => esc_html__( 'Warning', 'js_composer' ), 'value' => 'warning', 'params' => array( 'message_box_color' => 'warning', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fas fa-exclamation-triangle', ), ), array( 'label' => esc_html__( 'Success', 'js_composer' ), 'value' => 'success', 'params' => array( 'message_box_color' => 'success', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fas fa-check', ), ), array( 'label' => esc_html__( 'Error', 'js_composer' ), 'value' => 'danger', 'params' => array( 'message_box_color' => 'danger', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fas fa-times', ), ), array( 'label' => esc_html__( 'Informational Classic', 'js_composer' ), 'value' => 'alert-info', // due to backward compatibility 'params' => array( 'message_box_color' => 'alert-info', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-info', ), ), array( 'label' => esc_html__( 'Warning Classic', 'js_composer' ), 'value' => 'alert-warning', // due to backward compatibility 'params' => array( 'message_box_color' => 'alert-warning', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-alert', ), ), array( 'label' => esc_html__( 'Success Classic', 'js_composer' ), 'value' => 'alert-success', // due to backward compatibility 'params' => array( 'message_box_color' => 'alert-success', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-tick', ), ), array( 'label' => esc_html__( 'Error Classic', 'js_composer' ), 'value' => 'alert-danger', // due to backward compatibility 'params' => array( 'message_box_color' => 'alert-danger', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-explanation', ), ), ), 'description' => esc_html__( 'Select predefined message box design or choose "Custom" for custom styling.', 'js_composer' ), 'param_holder_class' => 'vc_message-type vc_colored-dropdown', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'param_name' => 'message_box_style', 'value' => vc_get_shared( 'message_box_styles' ), 'description' => esc_html__( 'Select message box design style.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Shape', 'js_composer' ), 'param_name' => 'style', // due to backward compatibility message_box_shape 'std' => 'rounded', 'value' => array( esc_html__( 'Square', 'js_composer' ) => 'square', esc_html__( 'Rounded', 'js_composer' ) => 'rounded', esc_html__( 'Round', 'js_composer' ) => 'round', ), 'description' => esc_html__( 'Select message box shape.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'message_box_color', 'value' => $custom_colors + vc_get_shared( 'colors' ), 'description' => esc_html__( 'Select message box color.', 'js_composer' ), 'param_holder_class' => 'vc_message-type vc_colored-dropdown', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Icon library', 'js_composer' ), 'value' => array( esc_html__( 'Font Awesome 5', 'js_composer' ) => 'fontawesome', esc_html__( 'Open Iconic', 'js_composer' ) => 'openiconic', esc_html__( 'Typicons', 'js_composer' ) => 'typicons', esc_html__( 'Entypo', 'js_composer' ) => 'entypo', esc_html__( 'Linecons', 'js_composer' ) => 'linecons', esc_html__( 'Pixel', 'js_composer' ) => 'pixelicons', esc_html__( 'Mono Social', 'js_composer' ) => 'monosocial', ), 'param_name' => 'icon_type', 'description' => esc_html__( 'Choose icon library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_fontawesome', 'value' => 'fas fa-info-circle', 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'iconsPerPage' => 500, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'icon_type', 'value' => 'fontawesome', ), 'description' => esc_html__( 'Choose icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_openiconic', 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'openiconic', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'icon_type', 'value' => 'openiconic', ), 'description' => esc_html__( 'Choose icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_typicons', 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'typicons', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'icon_type', 'value' => 'typicons', ), 'description' => esc_html__( 'Choose icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_entypo', 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'entypo', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'icon_type', 'value' => 'entypo', ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_linecons', 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'linecons', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'icon_type', 'value' => 'linecons', ), 'description' => esc_html__( 'Choose icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_pixelicons', 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'pixelicons', 'source' => $pixel_icons, ), 'dependency' => array( 'element' => 'icon_type', 'value' => 'pixelicons', ), 'description' => esc_html__( 'Choose icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_monosocial', 'value' => 'vc-mono vc-mono-fivehundredpx', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'monosocial', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'icon_type', 'value' => 'monosocial', ), 'description' => esc_html__( 'Choose icon from library.', 'js_composer' ), ), array( 'type' => 'textarea_html', 'holder' => 'div', 'class' => 'messagebox_text', 'heading' => esc_html__( 'Message text', 'js_composer' ), 'param_name' => 'content', 'value' => '' . esc_html__( 'I am message box. Click edit button to change this text.', 'js_composer' ) . '
', ), vc_map_add_css_animation( false ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), 'js_view' => 'VcMessageView_Backend', ); PK ! _ȵ content/shortcode-vc-pie.phpnu [ esc_html__( 'Pie Chart', 'js_composer' ), 'base' => 'vc_pie', 'class' => '', 'icon' => 'icon-wpb-vc_pie', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Animated pie chart', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Value', 'js_composer' ), 'param_name' => 'value', 'description' => esc_html__( 'Enter value for graph (Note: choose range from 0 to 100).', 'js_composer' ), 'value' => '50', 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Label value', 'js_composer' ), 'param_name' => 'label_value', 'description' => esc_html__( 'Enter label for pie chart (Note: leaving empty will set value from "Value" field).', 'js_composer' ), 'value' => '', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Units', 'js_composer' ), 'param_name' => 'units', 'description' => esc_html__( 'Enter measurement units (Example: %, px, points, etc. Note: graph value and units will be appended to graph title).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => vc_get_shared( 'colors-dashed' ) + array( esc_html__( 'Custom', 'js_composer' ) => 'custom' ), 'description' => esc_html__( 'Select pie chart color.', 'js_composer' ), 'admin_label' => true, 'param_holder_class' => 'vc_colored-dropdown', 'std' => 'grey', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom color', 'js_composer' ), 'param_name' => 'custom_color', 'description' => esc_html__( 'Select custom color.', 'js_composer' ), 'dependency' => array( 'element' => 'color', 'value' => array( 'custom' ), ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! H%Qt t % content/shortcode-vc-single-image.phpnu [ esc_html__( 'Single Image', 'js_composer' ), 'base' => 'vc_single_image', 'icon' => 'icon-wpb-single-image', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Simple image with CSS animation', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Image source', 'js_composer' ), 'param_name' => 'source', 'value' => array( esc_html__( 'Media library', 'js_composer' ) => 'media_library', esc_html__( 'External link', 'js_composer' ) => 'external_link', esc_html__( 'Featured Image', 'js_composer' ) => 'featured_image', ), 'std' => 'media_library', 'description' => esc_html__( 'Select image source.', 'js_composer' ), ), array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image', 'js_composer' ), 'param_name' => 'image', 'value' => '', 'description' => esc_html__( 'Select image from media library.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'media_library', ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'External link', 'js_composer' ), 'param_name' => 'custom_src', 'description' => esc_html__( 'Select external link.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'external_link', ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Image size', 'js_composer' ), 'param_name' => 'img_size', 'value' => 'thumbnail', 'description' => esc_html__( 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => array( 'media_library', 'featured_image', ), ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Image size', 'js_composer' ), 'param_name' => 'external_img_size', 'value' => '', 'description' => esc_html__( 'Enter image size in pixels. Example: 200x100 (Width x Height).', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'external_link', ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Caption', 'js_composer' ), 'param_name' => 'caption', 'description' => esc_html__( 'Enter text for image caption.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'external_link', ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Add caption?', 'js_composer' ), 'param_name' => 'add_caption', 'description' => esc_html__( 'Add image caption.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'dependency' => array( 'element' => 'source', 'value' => array( 'media_library', 'featured_image', ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Image alignment', 'js_composer' ), 'param_name' => 'alignment', 'value' => array( esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', esc_html__( 'Center', 'js_composer' ) => 'center', ), 'description' => esc_html__( 'Select image alignment.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Image style', 'js_composer' ), 'param_name' => 'style', 'value' => vc_get_shared( 'single image styles' ), 'description' => esc_html__( 'Select image display style.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => array( 'media_library', 'featured_image', ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Image style', 'js_composer' ), 'param_name' => 'external_style', 'value' => vc_get_shared( 'single image external styles' ), 'description' => esc_html__( 'Select image display style.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'external_link', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Border color', 'js_composer' ), 'param_name' => 'border_color', 'value' => vc_get_shared( 'colors' ), 'std' => 'grey', 'dependency' => array( 'element' => 'style', 'value' => array( 'vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle', 'vc_box_border_circle_2', 'vc_box_outline_circle_2', ), ), 'description' => esc_html__( 'Border color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Border color', 'js_composer' ), 'param_name' => 'external_border_color', 'value' => vc_get_shared( 'colors' ), 'std' => 'grey', 'dependency' => array( 'element' => 'external_style', 'value' => array( 'vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle', ), ), 'description' => esc_html__( 'Border color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'On click action', 'js_composer' ), 'param_name' => 'onclick', 'value' => array( esc_html__( 'None', 'js_composer' ) => '', esc_html__( 'Link to large image', 'js_composer' ) => 'img_link_large', esc_html__( 'Open prettyPhoto', 'js_composer' ) => 'link_image', esc_html__( 'Open custom link', 'js_composer' ) => 'custom_link', esc_html__( 'Zoom', 'js_composer' ) => 'zoom', ), 'description' => esc_html__( 'Select action for click action.', 'js_composer' ), 'std' => '', ), array( 'type' => 'href', 'heading' => esc_html__( 'Image link', 'js_composer' ), 'param_name' => 'link', 'description' => esc_html__( 'Enter URL if you want this image to have a link (Note: parameters like "mailto:" are also accepted).', 'js_composer' ), 'dependency' => array( 'element' => 'onclick', 'value' => 'custom_link', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Link Target', 'js_composer' ), 'param_name' => 'img_link_target', 'value' => vc_target_param_list(), 'dependency' => array( 'element' => 'onclick', 'value' => array( 'custom_link', 'img_link_large', ), ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), // backward compatibility. since 4.6 array( 'type' => 'hidden', 'param_name' => 'img_link_large', ), ), ); PK ! + % content/vc-custom-heading-element.phpnu [ esc_html__( 'Custom Heading', 'js_composer' ), 'base' => 'vc_custom_heading', 'icon' => 'icon-wpb-ui-custom_heading', 'show_settings_on_create' => true, 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Text with Google fonts', 'js_composer' ), 'params' => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Text source', 'js_composer' ), 'param_name' => 'source', 'value' => array( esc_html__( 'Custom text', 'js_composer' ) => '', esc_html__( 'Post or Page Title', 'js_composer' ) => 'post_title', ), 'std' => '', 'description' => esc_html__( 'Select text source.', 'js_composer' ), ), array( 'type' => 'textarea', 'heading' => esc_html__( 'Text', 'js_composer' ), 'param_name' => 'text', 'admin_label' => true, 'value' => esc_html__( 'This is custom heading element', 'js_composer' ), 'description' => esc_html__( 'Note: If you are using non-latin characters be sure to activate them under Settings/WPBakery Page Builder/General Settings.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'is_empty' => true, ), ), array( 'type' => 'vc_link', 'heading' => esc_html__( 'URL (Link)', 'js_composer' ), 'param_name' => 'link', 'description' => esc_html__( 'Add link to custom heading.', 'js_composer' ), // compatible with btn2 and converted from href{btn1} ), array( 'type' => 'font_container', 'param_name' => 'font_container', 'value' => 'tag:h2|text_align:left', 'settings' => array( 'fields' => array( 'tag' => 'h2', // default value h2 'text_align', 'font_size', 'line_height', 'color', 'tag_description' => esc_html__( 'Select element tag.', 'js_composer' ), 'text_align_description' => esc_html__( 'Select text alignment.', 'js_composer' ), 'font_size_description' => esc_html__( 'Enter font size.', 'js_composer' ), 'line_height_description' => esc_html__( 'Enter line height.', 'js_composer' ), 'color_description' => esc_html__( 'Select heading color.', 'js_composer' ), ), ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Use theme default font family?', 'js_composer' ), 'param_name' => 'use_theme_fonts', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'description' => esc_html__( 'Use font family from the theme.', 'js_composer' ), ), array( 'type' => 'google_fonts', 'param_name' => 'google_fonts', 'value' => 'font_family:Abril%20Fatface%3Aregular|font_style:400%20regular%3A400%3Anormal', 'settings' => array( 'fields' => array( 'font_family_description' => esc_html__( 'Select font family.', 'js_composer' ), 'font_style_description' => esc_html__( 'Select font styling.', 'js_composer' ), ), ), 'dependency' => array( 'element' => 'use_theme_fonts', 'value_not_equal_to' => 'yes', ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); } PK ! %=% % ! content/shortcode-vc-hoverbox.phpnu [ array( 'source', 'text', 'css', ), ), array( 'element' => 'use_custom_fonts_primary_title', 'value' => 'true', ) ); // This is needed to remove custom heading _tag and _align options. if ( is_array( $h2_custom_heading ) && ! empty( $h2_custom_heading ) ) { foreach ( $h2_custom_heading as $key => $param ) { if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) { $h2_custom_heading[ $key ]['value'] = ''; if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) { $sub_key = array_search( 'tag', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['tag'] ) ) { unset( $h2_custom_heading[ $key ]['settings']['fields']['tag'] ); } $sub_key = array_search( 'text_align', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['text_align'] ) ) { unset( $h2_custom_heading[ $key ]['settings']['fields']['text_align'] ); } } } } } $h4_custom_heading = vc_map_integrate_shortcode( vc_custom_heading_element_params(), 'hover_title_', esc_html__( 'Hover Title', 'js_composer' ), array( 'exclude' => array( 'source', 'text', 'css', ), ), array( 'element' => 'use_custom_fonts_hover_title', 'value' => 'true', ) ); // This is needed to remove custom heading _tag and _align options. if ( is_array( $h4_custom_heading ) && ! empty( $h4_custom_heading ) ) { foreach ( $h4_custom_heading as $key => $param ) { if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) { $h4_custom_heading[ $key ]['value'] = ''; if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) { $sub_key = array_search( 'tag', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['tag'] ) ) { unset( $h4_custom_heading[ $key ]['settings']['fields']['tag'] ); } $sub_key = array_search( 'text_align', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['text_align'] ) ) { unset( $h4_custom_heading[ $key ]['settings']['fields']['text_align'] ); } } } } } $params = array_merge( array( array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image', 'js_composer' ), 'param_name' => 'image', 'value' => '', 'description' => esc_html__( 'Select image from media library.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Primary title', 'js_composer' ), 'admin_label' => true, 'param_name' => 'primary_title', 'value' => esc_html__( 'Hover Box Element', 'js_composer' ), 'description' => esc_html__( 'Enter text for heading line.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-9', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Use custom font?', 'js_composer' ), 'param_name' => 'use_custom_fonts_primary_title', 'description' => esc_html__( 'Enable Google fonts.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-3', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Primary title alignment', 'js_composer' ), 'param_name' => 'primary_align', 'value' => vc_get_shared( 'text align' ), 'std' => 'center', 'description' => esc_html__( 'Select text alignment for primary title.', 'js_composer' ), ), ), $h2_custom_heading, array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Hover title', 'js_composer' ), 'param_name' => 'hover_title', 'value' => 'Hover Box Element', 'description' => esc_html__( 'Hover Box Element', 'js_composer' ), 'group' => esc_html__( 'Hover Block', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-9', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Use custom font?', 'js_composer' ), 'param_name' => 'use_custom_fonts_hover_title', 'description' => esc_html__( 'Enable custom font option.', 'js_composer' ), 'group' => esc_html__( 'Hover Block', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-3', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Hover title alignment', 'js_composer' ), 'param_name' => 'hover_align', 'value' => vc_get_shared( 'text align' ), 'std' => 'center', 'group' => esc_html__( 'Hover Block', 'js_composer' ), 'description' => esc_html__( 'Select text alignment for hovered title.', 'js_composer' ), ), array( 'type' => 'textarea_html', 'heading' => esc_html__( 'Hover text', 'js_composer' ), 'param_name' => 'content', 'value' => esc_html__( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ), 'group' => esc_html__( 'Hover Block', 'js_composer' ), 'description' => esc_html__( 'Hover part text.', 'js_composer' ), ), ), $h4_custom_heading, array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Shape', 'js_composer' ), 'param_name' => 'shape', 'std' => 'rounded', 'value' => array( esc_html__( 'Square', 'js_composer' ) => 'square', esc_html__( 'Rounded', 'js_composer' ) => 'rounded', esc_html__( 'Round', 'js_composer' ) => 'round', ), 'description' => esc_html__( 'Select block shape.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Background Color', 'js_composer' ), 'param_name' => 'hover_background_color', 'value' => vc_get_shared( 'colors-dashed' ) + array( esc_html__( 'Custom', 'js_composer' ) => 'custom' ), 'description' => esc_html__( 'Select color schema.', 'js_composer' ), 'std' => 'grey', 'group' => esc_html__( 'Hover Block', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown vc_cta3-colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Background color', 'js_composer' ), 'param_name' => 'hover_custom_background', 'description' => esc_html__( 'Select custom background color.', 'js_composer' ), 'group' => esc_html__( 'Hover Block', 'js_composer' ), 'dependency' => array( 'element' => 'hover_background_color', 'value' => array( 'custom' ), ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Width', 'js_composer' ), 'param_name' => 'el_width', 'value' => array( '100%' => '100', '90%' => '90', '80%' => '80', '70%' => '70', '60%' => '60', '50%' => '50', '40%' => '40', '30%' => '30', '20%' => '20', '10%' => '10', ), 'description' => esc_html__( 'Select block width (percentage).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Alignment', 'js_composer' ), 'param_name' => 'align', 'description' => esc_html__( 'Select block alignment.', 'js_composer' ), 'value' => array( esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', esc_html__( 'Center', 'js_composer' ) => 'center', ), 'std' => 'center', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Add button', 'js_composer' ) . '?', 'description' => esc_html__( 'Add button for call to action.', 'js_composer' ), 'group' => esc_html__( 'Hover Block', 'js_composer' ), 'param_name' => 'hover_add_button', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Reverse blocks', 'js_composer' ), 'param_name' => 'reverse', 'description' => esc_html__( 'Reverse hover and primary block.', 'js_composer' ), ), ), vc_map_integrate_shortcode( 'vc_btn', 'hover_btn_', esc_html__( 'Hover Button', 'js_composer' ), array( 'exclude' => array( 'css' ), ), array( 'element' => 'hover_add_button', 'not_empty' => true, ) ), array( vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ) ); return array( 'name' => esc_html__( 'Hover Box', 'js_composer' ), 'base' => 'vc_cta', 'icon' => 'vc_icon-vc-hoverbox', 'category' => array( esc_html__( 'Content', 'js_composer' ) ), 'description' => esc_html__( 'Animated flip box with image and text', 'js_composer' ), 'params' => $params, ); PK ! !u ' content/shortcode-vc-custom-heading.phpnu [ esc_html__( 'Posts Slider', 'js_composer' ), 'base' => 'vc_posts_slider', 'icon' => 'icon-wpb-slideshow', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Slider with WP Posts', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Slider type', 'js_composer' ), 'param_name' => 'type', 'admin_label' => true, 'value' => array( esc_html__( 'Flex slider fade', 'js_composer' ) => 'flexslider_fade', esc_html__( 'Flex slider slide', 'js_composer' ) => 'flexslider_slide', esc_html__( 'Nivo slider', 'js_composer' ) => 'nivo', ), 'description' => esc_html__( 'Select slider type.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Slider count', 'js_composer' ), 'param_name' => 'count', 'value' => 3, 'description' => esc_html__( 'Enter number of slides to display (Note: Enter "All" to display all slides).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Auto rotate', 'js_composer' ), 'param_name' => 'interval', 'value' => array( 3, 5, 10, 15, esc_html__( 'Disable', 'js_composer' ) => 0, ), 'description' => esc_html__( 'Auto rotate slides each X seconds.', 'js_composer' ), ), array( 'type' => 'posttypes', 'heading' => esc_html__( 'Post types', 'js_composer' ), 'param_name' => 'posttypes', 'description' => esc_html__( 'Select source for slider.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Description', 'js_composer' ), 'param_name' => 'slides_content', 'value' => array( esc_html__( 'No description', 'js_composer' ) => '', esc_html__( 'Teaser (Excerpt)', 'js_composer' ) => 'teaser', ), 'description' => esc_html__( 'Select source to use for description (Note: some sliders do not support it).', 'js_composer' ), 'dependency' => array( 'element' => 'type', 'value' => array( 'flexslider_fade', 'flexslider_slide', ), ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Output post title?', 'js_composer' ), 'param_name' => 'slides_title', 'description' => esc_html__( 'If selected, title will be printed before the teaser text.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => true ), 'dependency' => array( 'element' => 'slides_content', 'value' => array( 'teaser' ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Link', 'js_composer' ), 'param_name' => 'link', 'value' => array( esc_html__( 'Link to post', 'js_composer' ) => 'link_post', esc_html__( 'Link to bigger image', 'js_composer' ) => 'link_image', esc_html__( 'Open custom links', 'js_composer' ) => 'custom_link', esc_html__( 'No link', 'js_composer' ) => 'link_no', ), 'description' => esc_html__( 'Link type.', 'js_composer' ), ), array( 'type' => 'exploded_textarea_safe', 'heading' => esc_html__( 'Custom links', 'js_composer' ), 'param_name' => 'custom_links', 'value' => site_url() . '/', 'dependency' => array( 'element' => 'link', 'value' => 'custom_link', ), 'description' => esc_html__( 'Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Thumbnail size', 'js_composer' ), 'param_name' => 'thumb_size', 'value' => 'medium', 'description' => esc_html__( 'Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Post/Page IDs', 'js_composer' ), 'param_name' => 'posts_in', 'description' => esc_html__( 'Enter page/posts IDs to display only those records (Note: separate values by commas (,)). Use this field in conjunction with "Post types" field.', 'js_composer' ), ), array( 'type' => 'exploded_textarea_safe', 'heading' => esc_html__( 'Categories', 'js_composer' ), 'param_name' => 'categories', 'description' => esc_html__( 'Enter categories by names to narrow output (Note: only listed categories will be displayed, divide categories with linebreak (Enter)).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Order by', 'js_composer' ), 'param_name' => 'orderby', 'value' => array( '', esc_html__( 'Date', 'js_composer' ) => 'date', esc_html__( 'ID', 'js_composer' ) => 'ID', esc_html__( 'Author', 'js_composer' ) => 'author', esc_html__( 'Title', 'js_composer' ) => 'title', esc_html__( 'Modified', 'js_composer' ) => 'modified', esc_html__( 'Random', 'js_composer' ) => 'rand', esc_html__( 'Comment count', 'js_composer' ) => 'comment_count', esc_html__( 'Menu order', 'js_composer' ) => 'menu_order', ), 'description' => sprintf( esc_html__( 'Select how to sort retrieved posts. More at %s.', 'js_composer' ), 'WordPress codex page' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Sort order', 'js_composer' ), 'param_name' => 'order', 'value' => array( esc_html__( 'Descending', 'js_composer' ) => 'DESC', esc_html__( 'Ascending', 'js_composer' ) => 'ASC', ), 'description' => sprintf( esc_html__( 'Select ascending or descending order. More at %s.', 'js_composer' ), 'WordPress codex page' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! .ˇ} } content/shortcode-vc-icon.phpnu [ 'vc_flickr', 'name' => esc_html__( 'Flickr Widget', 'js_composer' ), 'icon' => 'icon-wpb-flickr', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Image feed from Flickr account', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Flickr ID', 'js_composer' ), 'param_name' => 'flickr_id', 'value' => '95572727@N00', 'admin_label' => true, 'description' => sprintf( esc_html__( 'To find your flickID visit %s.', 'js_composer' ), 'idGettr' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Number of photos', 'js_composer' ), 'param_name' => 'count', 'value' => array( 9, 8, 7, 6, 5, 4, 3, 2, 1, ), 'description' => esc_html__( 'Select number of photos to display.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Type', 'js_composer' ), 'param_name' => 'type', 'value' => array( esc_html__( 'User', 'js_composer' ) => 'user', esc_html__( 'Group', 'js_composer' ) => 'group', ), 'description' => esc_html__( 'Select photo stream type.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Display order', 'js_composer' ), 'param_name' => 'display', 'value' => array( esc_html__( 'Latest first', 'js_composer' ) => 'latest', esc_html__( 'Random', 'js_composer' ) => 'random', ), 'description' => esc_html__( 'Select photo display order.', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! cܩ content/shortcode-vc-zigzag.phpnu [ esc_html__( 'ZigZag Separator', 'js_composer' ), 'base' => 'vc_zigzag', 'icon' => 'vc_icon-vc-zigzag', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Horizontal zigzag separator line', 'js_composer' ), 'params' => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ), 'std' => 'grey', 'description' => esc_html__( 'Select color of separator.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom Color', 'js_composer' ), 'param_name' => 'custom_color', 'description' => esc_html__( 'Select color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'color', 'value' => array( 'custom' ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Alignment', 'js_composer' ), 'param_name' => 'align', 'value' => array( esc_html__( 'Center', 'js_composer' ) => 'center', esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', ), 'description' => esc_html__( 'Select separator alignment.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Element width', 'js_composer' ), 'param_name' => 'el_width', 'value' => array( '100%' => '100', '90%' => '90', '80%' => '80', '70%' => '70', '60%' => '60', '50%' => '50', '40%' => '40', '30%' => '30', '20%' => '20', '10%' => '10', ), 'description' => esc_html__( 'Select separator width (percentage).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Border width', 'js_composer' ), 'param_name' => 'el_border_width', 'std' => '12', 'value' => array( esc_html__( 'Extra small', 'js_composer' ) => '8', esc_html__( 'Small', 'js_composer' ) => '10', esc_html__( 'Medium', 'js_composer' ) => '12', esc_html__( 'Large', 'js_composer' ) => '15', esc_html__( 'Extra large', 'js_composer' ) => '20', ), 'description' => esc_html__( 'Select separator border width.', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! bx % content/shortcode-vc-progress-bar.phpnu [ '', ), array( esc_html__( 'Classic Grey', 'js_composer' ) => 'bar_grey', esc_html__( 'Classic Blue', 'js_composer' ) => 'bar_blue', esc_html__( 'Classic Turquoise', 'js_composer' ) => 'bar_turquoise', esc_html__( 'Classic Green', 'js_composer' ) => 'bar_green', esc_html__( 'Classic Orange', 'js_composer' ) => 'bar_orange', esc_html__( 'Classic Red', 'js_composer' ) => 'bar_red', esc_html__( 'Classic Black', 'js_composer' ) => 'bar_black', ), vc_get_shared( 'colors-dashed' ), array( esc_html__( 'Custom Color', 'js_composer' ) => 'custom', ) ); $bg_color_value = array_merge( array( esc_html__( 'Classic Grey', 'js_composer' ) => 'bar_grey', esc_html__( 'Classic Blue', 'js_composer' ) => 'bar_blue', esc_html__( 'Classic Turquoise', 'js_composer' ) => 'bar_turquoise', esc_html__( 'Classic Green', 'js_composer' ) => 'bar_green', esc_html__( 'Classic Orange', 'js_composer' ) => 'bar_orange', esc_html__( 'Classic Red', 'js_composer' ) => 'bar_red', esc_html__( 'Classic Black', 'js_composer' ) => 'bar_black', ), vc_get_shared( 'colors-dashed' ), array( esc_html__( 'Custom Color', 'js_composer' ) => 'custom', ) ); return array( 'name' => esc_html__( 'Progress Bar', 'js_composer' ), 'base' => 'vc_progress_bar', 'icon' => 'icon-wpb-graph', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Animated progress bar', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'param_group', 'heading' => esc_html__( 'Values', 'js_composer' ), 'param_name' => 'values', 'description' => esc_html__( 'Enter values for graph - value, title and color.', 'js_composer' ), 'value' => rawurlencode( wp_json_encode( array( array( 'label' => esc_html__( 'Development', 'js_composer' ), 'value' => '90', ), array( 'label' => esc_html__( 'Design', 'js_composer' ), 'value' => '80', ), array( 'label' => esc_html__( 'Marketing', 'js_composer' ), 'value' => '70', ), ) ) ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Label', 'js_composer' ), 'param_name' => 'label', 'description' => esc_html__( 'Enter text used as title of bar.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Value', 'js_composer' ), 'param_name' => 'value', 'description' => esc_html__( 'Enter value of bar.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => $color_value, 'description' => esc_html__( 'Select single bar background color.', 'js_composer' ), 'admin_label' => true, 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom color', 'js_composer' ), 'param_name' => 'customcolor', 'description' => esc_html__( 'Select custom single bar background color.', 'js_composer' ), 'dependency' => array( 'element' => 'color', 'value' => array( 'custom' ), ), ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom text color', 'js_composer' ), 'param_name' => 'customtxtcolor', 'description' => esc_html__( 'Select custom single bar text color.', 'js_composer' ), 'dependency' => array( 'element' => 'color', 'value' => array( 'custom' ), ), ), ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Units', 'js_composer' ), 'param_name' => 'units', 'description' => esc_html__( 'Enter measurement units (Example: %, px, points, etc. Note: graph value and units will be appended to graph title).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'bgcolor', 'value' => $bg_color_value, 'description' => esc_html__( 'Select bar background color.', 'js_composer' ), 'admin_label' => true, 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Bar custom background color', 'js_composer' ), 'param_name' => 'custombgcolor', 'description' => esc_html__( 'Select custom background color for bars.', 'js_composer' ), 'dependency' => array( 'element' => 'bgcolor', 'value' => array( 'custom' ), ), ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Bar custom text color', 'js_composer' ), 'param_name' => 'customtxtcolor', 'description' => esc_html__( 'Select custom text color for bars.', 'js_composer' ), 'dependency' => array( 'element' => 'bgcolor', 'value' => array( 'custom' ), ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Options', 'js_composer' ), 'param_name' => 'options', 'value' => array( esc_html__( 'Add stripes', 'js_composer' ) => 'striped', esc_html__( 'Add animation (Note: visible only with striped bar).', 'js_composer' ) => 'animated', ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! ձR $ content/shortcode-vc-round-chart.phpnu [ esc_html__( 'Round Chart', 'js_composer' ), 'base' => 'vc_round_chart', 'class' => '', 'icon' => 'icon-wpb-vc-round-chart', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Pie and Doughnut charts', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Design', 'js_composer' ), 'param_name' => 'type', 'value' => array( esc_html__( 'Pie', 'js_composer' ) => 'pie', esc_html__( 'Doughnut', 'js_composer' ) => 'doughnut', ), 'description' => esc_html__( 'Select type of chart.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'description' => esc_html__( 'Select chart color style.', 'js_composer' ), 'param_name' => 'style', 'value' => array( esc_html__( 'Flat', 'js_composer' ) => 'flat', esc_html__( 'Modern', 'js_composer' ) => 'modern', esc_html__( 'Custom', 'js_composer' ) => 'custom', ), 'dependency' => array( 'callback' => 'vcChartCustomColorDependency', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Gap', 'js_composer' ), 'param_name' => 'stroke_width', 'value' => array( 0 => 0, 1 => 1, 2 => 2, 5 => 5, ), 'description' => esc_html__( 'Select gap size.', 'js_composer' ), 'std' => 2, ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Outline color', 'js_composer' ), 'param_name' => 'stroke_color', 'value' => vc_get_shared( 'colors-dashed' ) + array( esc_html__( 'Custom', 'js_composer' ) => 'custom' ), 'description' => esc_html__( 'Select outline color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', 'std' => 'white', 'dependency' => array( 'element' => 'stroke_width', 'value_not_equal_to' => '0', ), ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom outline color', 'js_composer' ), 'param_name' => 'custom_stroke_color', 'description' => esc_html__( 'Select custom outline color.', 'js_composer' ), 'dependency' => array( 'element' => 'stroke_color', 'value' => array( 'custom' ), ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Show legend?', 'js_composer' ), 'param_name' => 'legend', 'description' => esc_html__( 'If checked, chart will have legend.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'std' => 'yes', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Show hover values?', 'js_composer' ), 'param_name' => 'tooltips', 'description' => esc_html__( 'If checked, chart will show values on hover.', 'js_composer' ), 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes' ), 'std' => 'yes', ), array( 'type' => 'param_group', 'heading' => esc_html__( 'Values', 'js_composer' ), 'param_name' => 'values', 'value' => rawurlencode( wp_json_encode( array( array( 'title' => esc_html__( 'One', 'js_composer' ), 'value' => '60', 'color' => 'blue', ), array( 'title' => esc_html__( 'Two', 'js_composer' ), 'value' => '40', 'color' => 'pink', ), ) ) ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter title for chart area.', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Value', 'js_composer' ), 'param_name' => 'value', 'description' => esc_html__( 'Enter value for area.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => vc_get_shared( 'colors-dashed' ), 'description' => esc_html__( 'Select area color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom color', 'js_composer' ), 'param_name' => 'custom_color', 'description' => esc_html__( 'Select custom area color.', 'js_composer' ), ), ), 'callbacks' => array( 'after_add' => 'vcChartParamAfterAddCallback', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Animation', 'js_composer' ), 'description' => esc_html__( 'Select animation style.', 'js_composer' ), 'param_name' => 'animation', 'value' => vc_get_shared( 'animation styles' ), 'std' => 'easeInOutCubic', ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! -M M content/shortcode-vc-gallery.phpnu [ esc_html__( 'Image Gallery', 'js_composer' ), 'base' => 'vc_gallery', 'icon' => 'icon-wpb-images-stack', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Responsive image gallery', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Gallery type', 'js_composer' ), 'param_name' => 'type', 'value' => array( esc_html__( 'Flex slider fade', 'js_composer' ) => 'flexslider_fade', esc_html__( 'Flex slider slide', 'js_composer' ) => 'flexslider_slide', esc_html__( 'Nivo slider', 'js_composer' ) => 'nivo', esc_html__( 'Image grid', 'js_composer' ) => 'image_grid', ), 'description' => esc_html__( 'Select gallery type.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Auto rotate', 'js_composer' ), 'param_name' => 'interval', 'value' => array( 3, 5, 10, 15, esc_html__( 'Disable', 'js_composer' ) => 0, ), 'description' => esc_html__( 'Auto rotate slides each X seconds.', 'js_composer' ), 'dependency' => array( 'element' => 'type', 'value' => array( 'flexslider_fade', 'flexslider_slide', 'nivo', ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Image source', 'js_composer' ), 'param_name' => 'source', 'value' => array( esc_html__( 'Media library', 'js_composer' ) => 'media_library', esc_html__( 'External links', 'js_composer' ) => 'external_link', ), 'std' => 'media_library', 'description' => esc_html__( 'Select image source.', 'js_composer' ), ), array( 'type' => 'attach_images', 'heading' => esc_html__( 'Images', 'js_composer' ), 'param_name' => 'images', 'value' => '', 'description' => esc_html__( 'Select images from media library.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'media_library', ), ), array( 'type' => 'exploded_textarea_safe', 'heading' => esc_html__( 'External links', 'js_composer' ), 'param_name' => 'custom_srcs', 'description' => esc_html__( 'Enter external link for each gallery image (Note: divide links with linebreaks (Enter)).', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'external_link', ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Image size', 'js_composer' ), 'param_name' => 'img_size', 'value' => 'thumbnail', 'description' => esc_html__( 'Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size.', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'media_library', ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Image size', 'js_composer' ), 'param_name' => 'external_img_size', 'value' => '', 'description' => esc_html__( 'Enter image size in pixels. Example: 200x100 (Width x Height).', 'js_composer' ), 'dependency' => array( 'element' => 'source', 'value' => 'external_link', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'On click action', 'js_composer' ), 'param_name' => 'onclick', 'value' => array( esc_html__( 'None', 'js_composer' ) => '', esc_html__( 'Link to large image', 'js_composer' ) => 'img_link_large', esc_html__( 'Open prettyPhoto', 'js_composer' ) => 'link_image', esc_html__( 'Open custom link', 'js_composer' ) => 'custom_link', ), 'description' => esc_html__( 'Select action for click action.', 'js_composer' ), 'std' => 'link_image', ), array( 'type' => 'exploded_textarea_safe', 'heading' => esc_html__( 'Custom links', 'js_composer' ), 'param_name' => 'custom_links', 'description' => esc_html__( 'Enter links for each slide (Note: divide links with linebreaks (Enter)).', 'js_composer' ), 'dependency' => array( 'element' => 'onclick', 'value' => array( 'custom_link' ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Custom link target', 'js_composer' ), 'param_name' => 'custom_links_target', 'description' => esc_html__( 'Select where to open custom links.', 'js_composer' ), 'dependency' => array( 'element' => 'onclick', 'value' => array( 'custom_link', 'img_link_large', ), ), 'value' => vc_target_param_list(), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), ); PK ! ~<$ $ content/vc-icon-element.phpnu [ esc_html__( 'Icon', 'js_composer' ), 'base' => 'vc_icon', 'icon' => 'icon-wpb-vc_icon', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Eye catching icons from libraries', 'js_composer' ), 'params' => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Icon library', 'js_composer' ), 'value' => array( esc_html__( 'Font Awesome 5', 'js_composer' ) => 'fontawesome', esc_html__( 'Open Iconic', 'js_composer' ) => 'openiconic', esc_html__( 'Typicons', 'js_composer' ) => 'typicons', esc_html__( 'Entypo', 'js_composer' ) => 'entypo', esc_html__( 'Linecons', 'js_composer' ) => 'linecons', esc_html__( 'Mono Social', 'js_composer' ) => 'monosocial', esc_html__( 'Material', 'js_composer' ) => 'material', ), 'admin_label' => true, 'param_name' => 'type', 'description' => esc_html__( 'Select icon library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_fontawesome', 'value' => 'fas fa-adjust', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'iconsPerPage' => 500, // default 100, how many icons per/page to display, we use (big number) to display all icons in single page ), 'dependency' => array( 'element' => 'type', 'value' => 'fontawesome', ), 'description' => esc_html__( 'Select icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_openiconic', 'value' => 'vc-oi vc-oi-dial', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'openiconic', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'type', 'value' => 'openiconic', ), 'description' => esc_html__( 'Select icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_typicons', 'value' => 'typcn typcn-adjust-brightness', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'typicons', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'type', 'value' => 'typicons', ), 'description' => esc_html__( 'Select icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_entypo', 'value' => 'entypo-icon entypo-icon-note', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'entypo', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'type', 'value' => 'entypo', ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_linecons', 'value' => 'vc_li vc_li-heart', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'linecons', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'type', 'value' => 'linecons', ), 'description' => esc_html__( 'Select icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_monosocial', 'value' => 'vc-mono vc-mono-fivehundredpx', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'monosocial', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'type', 'value' => 'monosocial', ), 'description' => esc_html__( 'Select icon from library.', 'js_composer' ), ), array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'icon_material', 'value' => 'vc-material vc-material-cake', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'material', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => 'type', 'value' => 'material', ), 'description' => esc_html__( 'Select icon from library.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Icon color', 'js_composer' ), 'param_name' => 'color', 'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ), 'description' => esc_html__( 'Select icon color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom color', 'js_composer' ), 'param_name' => 'custom_color', 'description' => esc_html__( 'Select custom icon color.', 'js_composer' ), 'dependency' => array( 'element' => 'color', 'value' => 'custom', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Background shape', 'js_composer' ), 'param_name' => 'background_style', 'value' => array( esc_html__( 'None', 'js_composer' ) => '', esc_html__( 'Circle', 'js_composer' ) => 'rounded', esc_html__( 'Square', 'js_composer' ) => 'boxed', esc_html__( 'Rounded', 'js_composer' ) => 'rounded-less', esc_html__( 'Outline Circle', 'js_composer' ) => 'rounded-outline', esc_html__( 'Outline Square', 'js_composer' ) => 'boxed-outline', esc_html__( 'Outline Rounded', 'js_composer' ) => 'rounded-less-outline', ), 'description' => esc_html__( 'Select background shape and style for icon.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Background color', 'js_composer' ), 'param_name' => 'background_color', 'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ), 'std' => 'grey', 'description' => esc_html__( 'Select background color for icon.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array( 'element' => 'background_style', 'not_empty' => true, ), ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom background color', 'js_composer' ), 'param_name' => 'custom_background_color', 'description' => esc_html__( 'Select custom icon background color.', 'js_composer' ), 'dependency' => array( 'element' => 'background_color', 'value' => 'custom', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Size', 'js_composer' ), 'param_name' => 'size', 'value' => array_merge( vc_get_shared( 'sizes' ), array( 'Extra Large' => 'xl' ) ), 'std' => 'md', 'description' => esc_html__( 'Icon size.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Icon alignment', 'js_composer' ), 'param_name' => 'align', 'value' => array( esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', esc_html__( 'Center', 'js_composer' ) => 'center', ), 'description' => esc_html__( 'Select icon alignment.', 'js_composer' ), ), array( 'type' => 'vc_link', 'heading' => esc_html__( 'URL (Link)', 'js_composer' ), 'param_name' => 'link', 'description' => esc_html__( 'Add link to icon.', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), 'js_view' => 'VcIconElementView_Backend', ); } PK ! ,}Z Z ' content/shortcode-vc-text-separator.phpnu [ array( 'align', 'css', 'el_class', 'el_id', 'link', 'css_animation', ), // we need only type, icon_fontawesome, icon_blabla..., NOT color and etc ), array( 'element' => 'add_icon', 'value' => 'true', ) ); // populate integrated vc_icons params. if ( is_array( $icons_params ) && ! empty( $icons_params ) ) { foreach ( $icons_params as $key => $param ) { if ( is_array( $param ) && ! empty( $param ) ) { if ( isset( $param['admin_label'] ) ) { // remove admin label unset( $icons_params[ $key ]['admin_label'] ); } } } } return array( 'name' => esc_html__( 'Separator with Text', 'js_composer' ), 'base' => 'vc_text_separator', 'icon' => 'icon-wpb-ui-separator-label', 'category' => esc_html__( 'Content', 'js_composer' ), 'description' => esc_html__( 'Horizontal separator line with heading', 'js_composer' ), 'params' => array_merge( array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Title', 'js_composer' ), 'param_name' => 'title', 'holder' => 'div', 'value' => esc_html__( 'Title', 'js_composer' ), 'description' => esc_html__( 'Add text to separator.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Add icon?', 'js_composer' ), 'param_name' => 'add_icon', ), ), $icons_params, array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Title position', 'js_composer' ), 'param_name' => 'title_align', 'value' => array( esc_html__( 'Center', 'js_composer' ) => 'separator_align_center', esc_html__( 'Left', 'js_composer' ) => 'separator_align_left', esc_html__( 'Right', 'js_composer' ) => 'separator_align_right', ), 'description' => esc_html__( 'Select title location.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Separator alignment', 'js_composer' ), 'param_name' => 'align', 'value' => array( esc_html__( 'Center', 'js_composer' ) => 'align_center', esc_html__( 'Left', 'js_composer' ) => 'align_left', esc_html__( 'Right', 'js_composer' ) => 'align_right', ), 'description' => esc_html__( 'Select separator alignment.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => array_merge( vc_get_shared( 'colors' ), array( esc_html__( 'Custom color', 'js_composer' ) => 'custom' ) ), 'std' => 'grey', 'description' => esc_html__( 'Select color of separator.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom Color', 'js_composer' ), 'param_name' => 'accent_color', 'description' => esc_html__( 'Custom separator color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'color', 'value' => array( 'custom' ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'param_name' => 'style', 'value' => vc_get_shared( 'separator styles' ), 'description' => esc_html__( 'Separator display style.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Border width', 'js_composer' ), 'param_name' => 'border_width', 'value' => vc_get_shared( 'separator border widths' ), 'description' => esc_html__( 'Select border width (pixels).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Element width', 'js_composer' ), 'param_name' => 'el_width', 'value' => vc_get_shared( 'separator widths' ), 'description' => esc_html__( 'Separator element width in percents.', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'hidden', 'param_name' => 'layout', 'value' => 'separator_with_text', ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ) ), 'js_view' => 'VcTextSeparatorView', ); PK ! DX' ' buttons/shortcode-vc-cta.phpnu [ array( 'source', 'text', 'css', ), ), array( 'element' => 'use_custom_fonts_h2', 'value' => 'true', ) ); // This is needed to remove custom heading _tag and _align options. if ( is_array( $h2_custom_heading ) && ! empty( $h2_custom_heading ) ) { foreach ( $h2_custom_heading as $key => $param ) { if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) { $h2_custom_heading[ $key ]['value'] = ''; if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) { $sub_key = array_search( 'tag', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['tag'] ) ) { unset( $h2_custom_heading[ $key ]['settings']['fields']['tag'] ); } $sub_key = array_search( 'text_align', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h2_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['text_align'] ) ) { unset( $h2_custom_heading[ $key ]['settings']['fields']['text_align'] ); } } } } } $h4_custom_heading = vc_map_integrate_shortcode( vc_custom_heading_element_params(), 'h4_', esc_html__( 'Subheading', 'js_composer' ), array( 'exclude' => array( 'source', 'text', 'css', ), ), array( 'element' => 'use_custom_fonts_h4', 'value' => 'true', ) ); // This is needed to remove custom heading _tag and _align options. if ( is_array( $h4_custom_heading ) && ! empty( $h4_custom_heading ) ) { foreach ( $h4_custom_heading as $key => $param ) { if ( is_array( $param ) && isset( $param['type'] ) && 'font_container' === $param['type'] ) { $h4_custom_heading[ $key ]['value'] = ''; if ( isset( $param['settings'] ) && is_array( $param['settings'] ) && isset( $param['settings']['fields'] ) ) { $sub_key = array_search( 'tag', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['tag'] ) ) { unset( $h4_custom_heading[ $key ]['settings']['fields']['tag'] ); } $sub_key = array_search( 'text_align', $param['settings']['fields'], true ); if ( false !== $sub_key ) { unset( $h4_custom_heading[ $key ]['settings']['fields'][ $sub_key ] ); } elseif ( isset( $param['settings']['fields']['text_align'] ) ) { unset( $h4_custom_heading[ $key ]['settings']['fields']['text_align'] ); } } } } } $params = array_merge( array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Heading', 'js_composer' ), 'admin_label' => true, 'param_name' => 'h2', 'value' => esc_html__( 'Hey! I am first heading line feel free to change me', 'js_composer' ), 'description' => esc_html__( 'Enter text for heading line.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-9', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Use custom font?', 'js_composer' ), 'param_name' => 'use_custom_fonts_h2', 'description' => esc_html__( 'Enable Google fonts.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-3', ), ), $h2_custom_heading, array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Subheading', 'js_composer' ), 'param_name' => 'h4', 'value' => '', 'description' => esc_html__( 'Enter text for subheading line.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-9', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Use custom font?', 'js_composer' ), 'param_name' => 'use_custom_fonts_h4', 'description' => esc_html__( 'Enable custom font option.', 'js_composer' ), 'edit_field_class' => 'vc_col-sm-3', ), ), $h4_custom_heading, array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Text alignment', 'js_composer' ), 'param_name' => 'txt_align', 'value' => vc_get_shared( 'text align' ), // default left 'description' => esc_html__( 'Select text alignment in "Call to Action" block.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Shape', 'js_composer' ), 'param_name' => 'shape', 'std' => 'rounded', 'value' => array( esc_html__( 'Square', 'js_composer' ) => 'square', esc_html__( 'Rounded', 'js_composer' ) => 'rounded', esc_html__( 'Round', 'js_composer' ) => 'round', ), 'description' => esc_html__( 'Select call to action shape.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'param_name' => 'style', 'value' => array( esc_html__( 'Classic', 'js_composer' ) => 'classic', esc_html__( 'Flat', 'js_composer' ) => 'flat', esc_html__( 'Outline', 'js_composer' ) => 'outline', esc_html__( '3d', 'js_composer' ) => '3d', esc_html__( 'Custom', 'js_composer' ) => 'custom', ), 'std' => 'classic', 'description' => esc_html__( 'Select call to action display style.', 'js_composer' ), ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Background color', 'js_composer' ), 'param_name' => 'custom_background', 'description' => esc_html__( 'Select custom background color.', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'custom' ), ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Text color', 'js_composer' ), 'param_name' => 'custom_text', 'description' => esc_html__( 'Select custom text color.', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'custom' ), ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'value' => array( esc_html__( 'Classic', 'js_composer' ) => 'classic' ) + vc_get_shared( 'colors-dashed' ), 'std' => 'classic', 'description' => esc_html__( 'Select color schema.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown vc_cta3-colored-dropdown', 'dependency' => array( 'element' => 'style', 'value_not_equal_to' => array( 'custom' ), ), ), array( 'type' => 'textarea_html', 'heading' => esc_html__( 'Text', 'js_composer' ), 'param_name' => 'content', 'value' => esc_html__( 'I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Width', 'js_composer' ), 'param_name' => 'el_width', 'value' => array( '100%' => '', '90%' => 'xl', '80%' => 'lg', '70%' => 'md', '60%' => 'sm', '50%' => 'xs', ), 'description' => esc_html__( 'Select call to action width (percentage).', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Add button', 'js_composer' ) . '?', 'description' => esc_html__( 'Add button for call to action.', 'js_composer' ), 'param_name' => 'add_button', 'value' => array( esc_html__( 'No', 'js_composer' ) => '', esc_html__( 'Top', 'js_composer' ) => 'top', esc_html__( 'Bottom', 'js_composer' ) => 'bottom', esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', ), ), ), vc_map_integrate_shortcode( 'vc_btn', 'btn_', esc_html__( 'Button', 'js_composer' ), array( 'exclude' => array( 'css' ), ), array( 'element' => 'add_button', 'not_empty' => true, ) ), array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Add icon?', 'js_composer' ), 'description' => esc_html__( 'Add icon for call to action.', 'js_composer' ), 'param_name' => 'add_icon', 'value' => array( esc_html__( 'No', 'js_composer' ) => '', esc_html__( 'Top', 'js_composer' ) => 'top', esc_html__( 'Bottom', 'js_composer' ) => 'bottom', esc_html__( 'Left', 'js_composer' ) => 'left', esc_html__( 'Right', 'js_composer' ) => 'right', ), ), array( 'type' => 'checkbox', 'param_name' => 'i_on_border', 'heading' => esc_html__( 'Place icon on border?', 'js_composer' ), 'description' => esc_html__( 'Display icon on call to action element border.', 'js_composer' ), 'group' => esc_html__( 'Icon', 'js_composer' ), 'dependency' => array( 'element' => 'add_icon', 'not_empty' => true, ), ), ), vc_map_integrate_shortcode( 'vc_icon', 'i_', esc_html__( 'Icon', 'js_composer' ), array( 'exclude' => array( 'align', 'css', ), ), array( 'element' => 'add_icon', 'not_empty' => true, ) ), array( // cta3 vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ) ); return array( 'name' => esc_html__( 'Call to Action', 'js_composer' ), 'base' => 'vc_cta', 'icon' => 'icon-wpb-call-to-action', 'category' => array( esc_html__( 'Content', 'js_composer' ) ), 'description' => esc_html__( 'Catch visitors attention with CTA block', 'js_composer' ), 'since' => '4.5', 'params' => $params, 'js_view' => 'VcCallToActionView3', ); PK ! QX0 0 buttons/shortcode-vc-btn.phpnu [ '/^(type|icon_\w*)/', // we need only type, icon_fontawesome, icon_blabla..., NOT color and etc ), array( 'element' => 'add_icon', 'value' => 'true', ) ); // populate integrated vc_icons params. if ( is_array( $icons_params ) && ! empty( $icons_params ) ) { foreach ( $icons_params as $key => $param ) { if ( is_array( $param ) && ! empty( $param ) ) { if ( 'i_type' === $param['param_name'] ) { // append pixelicons to dropdown $icons_params[ $key ]['value'][ esc_html__( 'Pixel', 'js_composer' ) ] = 'pixelicons'; } if ( isset( $param['admin_label'] ) ) { // remove admin label unset( $icons_params[ $key ]['admin_label'] ); } } } } $color_value = array_merge( array( // Btn1 Colors esc_html__( 'Classic Grey', 'js_composer' ) => 'default', esc_html__( 'Classic Blue', 'js_composer' ) => 'primary', esc_html__( 'Classic Turquoise', 'js_composer' ) => 'info', esc_html__( 'Classic Green', 'js_composer' ) => 'success', esc_html__( 'Classic Orange', 'js_composer' ) => 'warning', esc_html__( 'Classic Red', 'js_composer' ) => 'danger', esc_html__( 'Classic Black', 'js_composer' ) => 'inverse', // + Btn2 Colors (default color set) ), vc_get_shared( 'colors-dashed' ) ); $params = array_merge( array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Text', 'js_composer' ), 'param_name' => 'title', // fully compatible to btn1 and btn2 'value' => esc_html__( 'Text on the button', 'js_composer' ), ), array( 'type' => 'vc_link', 'heading' => esc_html__( 'URL (Link)', 'js_composer' ), 'param_name' => 'link', 'description' => esc_html__( 'Add link to button.', 'js_composer' ), // compatible with btn2 and converted from href{btn1} ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'js_composer' ), 'description' => esc_html__( 'Select button display style.', 'js_composer' ), 'param_name' => 'style', // partly compatible with btn2, need to be converted shape+style from btn2 and btn1 'value' => array( esc_html__( 'Modern', 'js_composer' ) => 'modern', esc_html__( 'Classic', 'js_composer' ) => 'classic', esc_html__( 'Flat', 'js_composer' ) => 'flat', esc_html__( 'Outline', 'js_composer' ) => 'outline', esc_html__( '3d', 'js_composer' ) => '3d', esc_html__( 'Custom', 'js_composer' ) => 'custom', esc_html__( 'Outline custom', 'js_composer' ) => 'outline-custom', esc_html__( 'Gradient', 'js_composer' ) => 'gradient', esc_html__( 'Gradient Custom', 'js_composer' ) => 'gradient-custom', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Gradient Color 1', 'js_composer' ), 'param_name' => 'gradient_color_1', 'description' => esc_html__( 'Select first color for gradient.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => vc_get_shared( 'colors-dashed' ), 'std' => 'turquoise', 'dependency' => array( 'element' => 'style', 'value' => array( 'gradient' ), ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Gradient Color 2', 'js_composer' ), 'param_name' => 'gradient_color_2', 'description' => esc_html__( 'Select second color for gradient.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => vc_get_shared( 'colors-dashed' ), 'std' => 'blue', // must have default color grey 'dependency' => array( 'element' => 'style', 'value' => array( 'gradient' ), ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Gradient Color 1', 'js_composer' ), 'param_name' => 'gradient_custom_color_1', 'description' => esc_html__( 'Select first color for gradient.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => '#dd3333', 'dependency' => array( 'element' => 'style', 'value' => array( 'gradient-custom' ), ), 'edit_field_class' => 'vc_col-sm-4', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Gradient Color 2', 'js_composer' ), 'param_name' => 'gradient_custom_color_2', 'description' => esc_html__( 'Select second color for gradient.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => '#eeee22', 'dependency' => array( 'element' => 'style', 'value' => array( 'gradient-custom' ), ), 'edit_field_class' => 'vc_col-sm-4', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Button Text Color', 'js_composer' ), 'param_name' => 'gradient_text_color', 'description' => esc_html__( 'Select button text color.', 'js_composer' ), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => '#ffffff', // must have default color grey 'dependency' => array( 'element' => 'style', 'value' => array( 'gradient-custom' ), ), 'edit_field_class' => 'vc_col-sm-4', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Background', 'js_composer' ), 'param_name' => 'custom_background', 'description' => esc_html__( 'Select custom background color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'custom' ), ), 'edit_field_class' => 'vc_col-sm-6', 'std' => '#ededed', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Text', 'js_composer' ), 'param_name' => 'custom_text', 'description' => esc_html__( 'Select custom text color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'custom' ), ), 'edit_field_class' => 'vc_col-sm-6', 'std' => '#666', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Outline and Text', 'js_composer' ), 'param_name' => 'outline_custom_color', 'description' => esc_html__( 'Select outline and text color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'outline-custom' ), ), 'edit_field_class' => 'vc_col-sm-4', 'std' => '#666', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Hover background', 'js_composer' ), 'param_name' => 'outline_custom_hover_background', 'description' => esc_html__( 'Select hover background color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'outline-custom' ), ), 'edit_field_class' => 'vc_col-sm-4', 'std' => '#666', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Hover text', 'js_composer' ), 'param_name' => 'outline_custom_hover_text', 'description' => esc_html__( 'Select hover text color for your element.', 'js_composer' ), 'dependency' => array( 'element' => 'style', 'value' => array( 'outline-custom' ), ), 'edit_field_class' => 'vc_col-sm-4', 'std' => '#fff', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Shape', 'js_composer' ), 'description' => esc_html__( 'Select button shape.', 'js_composer' ), 'param_name' => 'shape', // need to be converted 'value' => array( esc_html__( 'Rounded', 'js_composer' ) => 'rounded', esc_html__( 'Square', 'js_composer' ) => 'square', esc_html__( 'Round', 'js_composer' ) => 'round', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Color', 'js_composer' ), 'param_name' => 'color', 'description' => esc_html__( 'Select button color.', 'js_composer' ), // compatible with btn2, need to be converted from btn1 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => $color_value, 'std' => 'grey', // must have default color grey 'dependency' => array( 'element' => 'style', 'value_not_equal_to' => array( 'custom', 'outline-custom', 'gradient', 'gradient-custom', ), ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Size', 'js_composer' ), 'param_name' => 'size', 'description' => esc_html__( 'Select button display size.', 'js_composer' ), // compatible with btn2, default md, but need to be converted from btn1 to btn2 'std' => 'md', 'value' => vc_get_shared( 'sizes' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Alignment', 'js_composer' ), 'param_name' => 'align', 'description' => esc_html__( 'Select button alignment.', 'js_composer' ), // compatible with btn2, default left to be compatible with btn1 'value' => array( esc_html__( 'Inline', 'js_composer' ) => 'inline', // default as well esc_html__( 'Left', 'js_composer' ) => 'left', // default as well esc_html__( 'Right', 'js_composer' ) => 'right', esc_html__( 'Center', 'js_composer' ) => 'center', ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Set full width button?', 'js_composer' ), 'param_name' => 'button_block', 'dependency' => array( 'element' => 'align', 'value_not_equal_to' => 'inline', ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Add icon?', 'js_composer' ), 'param_name' => 'add_icon', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Icon Alignment', 'js_composer' ), 'description' => esc_html__( 'Select icon alignment.', 'js_composer' ), 'param_name' => 'i_align', 'value' => array( esc_html__( 'Left', 'js_composer' ) => 'left', // default as well esc_html__( 'Right', 'js_composer' ) => 'right', ), 'dependency' => array( 'element' => 'add_icon', 'value' => 'true', ), ), ), $icons_params, array( array( 'type' => 'iconpicker', 'heading' => esc_html__( 'Icon', 'js_composer' ), 'param_name' => 'i_icon_pixelicons', 'value' => 'vc_pixel_icon vc_pixel_icon-alert', 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'pixelicons', 'source' => $pixel_icons, ), 'dependency' => array( 'element' => 'i_type', 'value' => 'pixelicons', ), 'description' => esc_html__( 'Select icon from library.', 'js_composer' ), ), ), array( vc_map_add_css_animation( true ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Advanced on click action', 'js_composer' ), 'param_name' => 'custom_onclick', 'description' => esc_html__( 'Insert inline onclick javascript action.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'On click code', 'js_composer' ), 'param_name' => 'custom_onclick_code', 'description' => esc_html__( 'Enter onclick action code.', 'js_composer' ), 'dependency' => array( 'element' => 'custom_onclick', 'not_empty' => true, ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ) ); /** * @class WPBakeryShortCode_Vc_Btn */ return array( 'name' => esc_html__( 'Button', 'js_composer' ), 'base' => 'vc_btn', 'icon' => 'icon-wpb-ui-button', 'category' => array( esc_html__( 'Content', 'js_composer' ), ), 'description' => esc_html__( 'Eye catching button', 'js_composer' ), 'params' => $params, 'js_view' => 'VcButton3View', 'custom_markup' => '{{title}}', ); PK ! ) structure/shortcode-vc-widget-sidebar.phpnu [ esc_html__( 'Widgetised Sidebar', 'js_composer' ), 'base' => 'vc_widget_sidebar', 'class' => 'wpb_widget_sidebar_widget', 'icon' => 'icon-wpb-layout_sidebar', 'category' => esc_html__( 'Structure', 'js_composer' ), 'description' => esc_html__( 'WordPress widgetised sidebar', 'js_composer' ), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Widget title', 'js_composer' ), 'param_name' => 'title', 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ), 'admin_label' => true, ), array( 'type' => 'widgetised_sidebars', 'heading' => esc_html__( 'Sidebar', 'js_composer' ), 'param_name' => 'sidebar_id', 'description' => esc_html__( 'Select widget area to display.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! ! structure/shortcode-vc-raw-js.phpnu [ esc_html__( 'Raw JS', 'js_composer' ), 'base' => 'vc_raw_js', 'icon' => 'icon-wpb-raw-javascript', 'category' => esc_html__( 'Structure', 'js_composer' ), 'wrapper_class' => 'clearfix', 'description' => esc_html__( 'Output raw JavaScript code on your page', 'js_composer' ), 'params' => array( array( 'type' => 'textarea_raw_html', 'holder' => 'div', 'heading' => esc_html__( 'JavaScript Code', 'js_composer' ), 'param_name' => 'content', // @codingStandardsIgnoreLine 'value' => base64_encode( '<' . $custom_tag . '> alert( "' . esc_attr__( 'Enter your js here!', 'js_composer' ) . '" ) ' . $custom_tag . '>' ), 'description' => esc_html__( 'Enter your JavaScript code.', 'js_composer' ), ), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '', '' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), ), ); PK ! 7b0 0 # structure/shortcode-vc-raw-html.phpnu [ esc_html__( 'Raw HTML', 'js_composer' ), 'base' => 'vc_raw_html', 'icon' => 'icon-wpb-raw-html', 'category' => esc_html__( 'Structure', 'js_composer' ), 'wrapper_class' => 'clearfix', 'description' => esc_html__( 'Output raw HTML code on your page', 'js_composer' ), 'params' => array( array( 'type' => 'textarea_raw_html', 'holder' => 'div', 'heading' => esc_html__( 'Raw HTML', 'js_composer' ), 'param_name' => 'content', // @codingStandardsIgnoreLine 'value' => base64_encode( 'I am raw html block.
Click edit button to change this html