‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT pages/partials/_settings_tabs.php000060400000000723151732637250013214 0ustar00 pages/partials/_tabs.php000060400000001001151732637250011262 0ustar00 pages/partials/.htaccess000044400000000177151732637250011276 0ustar00 Order allow,deny Deny from all pages/partials/vc-roles-parts/_settings.tpl.php000060400000001705151732637250015663 0ustar00getTabs() as $tab => $title ) { $tabs[] = array( $tab . '-tab', $title ); } vc_include_template( 'pages/partials/vc-roles-parts/_part.tpl.php', array( 'part' => $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'custom_value' => 'custom', 'capabilities' => $tabs, 'options' => array( array( true, esc_html__( 'All', 'js_composer' ) ), array( 'custom', esc_html__( 'Custom', 'js_composer' ) ), array( false, esc_html__( 'Disabled', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Settings options', 'js_composer' ), 'custom_label' => esc_html__( 'Settings options', 'js_composer' ), 'description' => esc_html__( 'Control access rights to WPBakery Page Builder admin settings tabs (e.g. General Settings, Shortcode Mapper, ...)', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_templates.tpl.php000060400000001400151732637250016011 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'options' => array( array( true, esc_html__( 'All', 'js_composer' ) ), array( 'add', esc_html__( 'Apply templates only', 'js_composer' ) ), array( false, esc_html__( 'Disabled', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Templates', 'js_composer' ), 'description' => esc_html__( 'Control access rights to templates and predefined templates. Note: "Apply templates only" restricts users from saving new templates and deleting existing.', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_shortcodes.tpl.php000060400000002405151732637250016176 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'custom_value' => 'custom', 'capabilities' => WPBMap::getSortedAllShortCodes(), 'ignore_capabilities' => array( 'vc_gitem', 'vc_gitem_animated_block', 'vc_gitem_zone', 'vc_gitem_zone_a', 'vc_gitem_zone_b', 'vc_gitem_zone_c', 'vc_column', 'vc_row_inner', 'vc_column_inner', 'vc_posts_grid', ), 'categories' => WPBMap::getCategories(), 'cap_types' => array( array( 'all', esc_html__( 'All', 'js_composer' ) ), array( 'edit', esc_html__( 'Edit', 'js_composer' ) ), ), 'item_header_name' => esc_html__( 'Element', 'js_composer' ), 'options' => array( array( true, esc_html__( 'All', 'js_composer' ) ), array( 'edit', esc_html__( 'Edit only', 'js_composer' ) ), array( 'custom', esc_html__( 'Custom', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Elements', 'js_composer' ), 'custom_label' => esc_html__( 'Elements', 'js_composer' ), 'description' => esc_html__( 'Control user access to content elements.', 'js_composer' ), 'use_table' => true, ) ); pages/partials/vc-roles-parts/.htaccess000044400000000177151732637250014157 0ustar00 Order allow,deny Deny from all pages/partials/vc-roles-parts/_part.tpl.php000060400000015470151732637250014775 0ustar00

$categories, ) ) ?> > >
renderIcon( $cap ); ?>
' . esc_html( $cap['description'] ) . '' : ''; ?>
pages/partials/vc-roles-parts/_presets.tpl.php000060400000001402151732637250015502 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'options' => array( array( true, esc_html__( 'All', 'js_composer' ) ), array( 'add', esc_html__( 'Apply presets only', 'js_composer' ) ), array( false, esc_html__( 'Disabled', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Element Presets', 'js_composer' ), 'description' => esc_html__( 'Control access rights to element presets in element edit form. Note: "Apply presets only" restricts users from saving new presets and deleting existing.', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_grid_builder.tpl.php000060400000001317151732637250016455 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'options' => array( array( true, esc_html__( 'Enabled', 'js_composer' ), ), array( false, esc_html__( 'Disabled', 'js_composer' ), ), ), 'main_label' => esc_html__( 'Grid Builder', 'js_composer' ), 'custom_label' => esc_html__( 'Grid Builder', 'js_composer' ), 'description' => esc_html__( 'Control user access to Grid Builder and Grid Builder Elements.', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_dragndrop.tpl.php000060400000001207151732637250016000 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'options' => array( array( true, esc_html__( 'Enabled', 'js_composer' ) ), array( false, esc_html__( 'Disabled', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Drag and Drop', 'js_composer' ), 'description' => esc_html__( 'Control access rights to drag and drop functionality within the editor.', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_frontend_editor.tpl.php000060400000001307151732637250017206 0ustar00inlineEnabled() ) { /** @var string $part */ vc_include_template( 'pages/partials/vc-roles-parts/_part.tpl.php', array( 'part' => $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'custom_value' => 'custom', 'options' => array( array( true, esc_html__( 'Enabled', 'js_composer' ), ), array( false, esc_html__( 'Disabled', 'js_composer' ), ), ), 'main_label' => esc_html__( 'Frontend editor', 'js_composer' ), 'custom_label' => esc_html__( 'Frontend editor', 'js_composer' ), ) ); } pages/partials/vc-roles-parts/_post_types.tpl.php000060400000001564151732637250016237 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'custom_value' => 'custom', 'capabilities' => $vc_role->getPostTypes(), 'options' => array( array( true, esc_html__( 'Pages only', 'js_composer' ) ), array( 'custom', esc_html__( 'Custom', 'js_composer' ) ), array( false, esc_html__( 'Disabled', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Post types', 'js_composer' ), 'custom_label' => esc_html__( 'Post types', 'js_composer' ), 'description' => esc_html__( 'Enable WPBakery Page Builder for pages, posts and custom post types. Note: By default WPBakery Page Builder is available for pages only.', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_unfiltered_html.tpl.php000060400000001164151732637250017207 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'options' => array( array( true, esc_html__( 'Enabled', 'js_composer' ) ), array( false, esc_html__( 'Disabled', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Unfiltered HTML', 'js_composer' ), 'description' => esc_html__( 'Allow to use Custom HTML in WPBakery Page Builder.', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_post_settings.tpl.php000060400000001251151732637250016724 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'options' => array( array( true, esc_html__( 'Enabled', 'js_composer' ) ), array( false, esc_html__( 'Disabled', 'js_composer' ) ), ), 'main_label' => esc_html__( 'Page settings', 'js_composer' ), 'description' => esc_html__( 'Control access to WPBakery Page Builder page settings. Note: Disable page settings to restrict editing of Custom CSS through page.', 'js_composer' ), ) ); pages/partials/vc-roles-parts/_backend_editor.tpl.php000060400000001464151732637250016762 0ustar00 $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who( $role )->part( $part ), 'capabilities' => array( array( 'disabled_ce_editor', esc_html__( 'Disable Classic editor', 'js_composer' ), ), ), 'options' => array( array( true, esc_html__( 'Enabled', 'js_composer' ), ), array( 'default', esc_html__( 'Enabled and default', 'js_composer' ), ), array( false, esc_html__( 'Disabled', 'js_composer' ), ), ), 'main_label' => esc_html__( 'Backend editor', 'js_composer' ), 'custom_label' => esc_html__( 'Backend editor', 'js_composer' ), ) ); pages/vc-settings/index.php000060400000000642151732637250011742 0ustar00

$active_page->getSlug(), 'tabs' => $pages, ) ); ?> render(); ?>
pages/vc-settings/vc-automapper.php000060400000000666151732637250013424 0ustar00 <> window.vcAdminNonce = ''; >
renderHtml(); ?>
pages/vc-settings/tab-vc-roles.php000060400000007412151732637250013133 0ustar00getSlug() ) ); $editable_roles = get_editable_roles(); require_once vc_path_dir( 'SETTINGS_DIR', 'class-vc-roles.php' ); $vc_role = new Vc_Roles(); ?>

$details ) : $name = translate_user_role( $details['name'] ); $unique_id = 'vc_role-' . $role; $valid_roles = array(); foreach ( $vc_role->getParts() as $part ) { if ( $vc_role->hasRoleCapability( $role, $vc_role->getPartCapability( $part ) ) ) { $valid_roles[] = $part; } } if ( count( $valid_roles ) > 0 ) : ?>

$part, 'role' => $role, 'vc_role' => $vc_role, ) ); } ?>
pages/vc-settings/.htaccess000044400000000177151732637250011725 0ustar00 Order allow,deny Deny from all pages/vc-settings/default-template-post-type.tpl.php000060400000003073151732637250016631 0ustar00
labels->name : $post_type[0] ); ?>
pages/vc-settings/tab.php000060400000012171151732637250011401 0ustar00getSlug() ) ); $use_custom = get_option( vc_settings()->getFieldPrefix() . 'use_custom' ); $css = ( ( 'color' === $tab ) && $use_custom ) ? ' color_enabled' : ''; $dev_environment = vc_license()->isDevEnvironment(); $license_key = vc_license()->getLicenseKey(); $classes = 'vc_settings-tab-content vc_settings-tab-content-active ' . esc_attr( $css ); $custom_tag = 'script'; ?> <> window.vcAdminNonce = ''; > isActivated() ) : ?>

> getOptionGroup() . '_' . $tab ); ?> page() . '_' . $tab ); ?>

isActivated() ) : ?>


spinner

', '' ); ?>


spinner

', '' ); ?>

pages/vc-welcome/index.php000060400000004102151732637250011530 0ustar00

wpAny( 'manage_options' ) ->part( 'settings' ) ->can( 'vc-general-tab' ) ->get() && ( ! is_multisite() || ! is_main_site() ) ) : ?> <>! function ( d, s, id ) { var js, fjs = d.getElementsByTagName( s )[ 0 ], p = /^http:/.test( d.location ) ? 'http' : 'https'; if ( ! d.getElementById( id ) ) { js = d.createElement( s ); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore( js, fjs ); } }( document, 'script', 'twitter-wjs' );>

$page->getSlug(), 'active_tab' => $active_page->getSlug(), 'tabs' => $pages, ) ); ?> render(); ?>
pages/vc-welcome/vc-resources.php000060400000004274151732637250013053 0ustar00

', '', '', '' ); ?>

', '' ); ?>

pages/vc-welcome/vc-faq.php000060400000015061151732637250011604 0ustar00

kb.wpbakery.com' ); ?>

pages/vc-welcome/vc-welcome.php000060400000001305151732637250012464 0ustar00

Thank you for choosing WPBakery Page Builder,
Michael M, CEO at WPBakery

pages/vc-welcome/.htaccess000044400000000177151732637250011520 0ustar00 Order allow,deny Deny from all pages/.htaccess000044400000000177151732637250007457 0ustar00 Order allow,deny Deny from all params/google_fonts/.htaccess000044400000000177151732637250012330 0ustar00 Order allow,deny Deny from all params/google_fonts/template.php000060400000005530151732637250013052 0ustar00
0 ) : ?>
0 ) : ?>
:
params/.htaccess000044400000000177151732637250007643 0ustar00 Order allow,deny Deny from all params/vc_grid_item/shortcodes/vc_icon.php000060400000004535151732637250015006 0ustar00getShortcode(), $atts ); extract( $atts ); $link = vc_gitem_create_link( $atts, 'vc_icon_element-link' ); $class_to_filter = $this->getCSSAnimation( $css_animation ); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); // Enqueue needed icon font. vc_icon_element_fonts_enqueue( $type ); $has_style = false; if ( strlen( $background_style ) > 0 ) { $has_style = true; if ( false !== strpos( $background_style, 'outline' ) ) { $background_style .= ' vc_icon_element-outline'; // if we use outline style it is border in css } else { $background_style .= ' vc_icon_element-background'; } } $style = ''; if ( 'custom' === $background_color ) { if ( false !== strpos( $background_style, 'outline' ) ) { $style = 'border-color:' . $custom_background_color; } else { $style = 'background-color:' . $custom_background_color; } } $style = $style ? 'style="' . esc_attr( $style ) . '"' : ''; $output = ''; $output .= '
'; $output .= '
'; if ( strlen( $link ) > 0 ) { $output .= '<' . $link . '>'; } $output .= '
'; return $output; params/vc_grid_item/shortcodes/.htaccess000044400000000177151732637250014453 0ustar00 Order allow,deny Deny from all params/vc_grid_item/shortcodes/vc_btn.php000060400000000161151732637250014630 0ustar00getAttributes( $atts ) ); extract( $this->getStyles( $el_class, $css, $google_fonts_data, $font_container_data, $atts ) ); $settings = get_option( 'wpb_js_google_fonts_subsets' ); if ( is_array( $settings ) && ! empty( $settings ) ) { $subsets = '&subset=' . implode( ',', $settings ); } else { $subsets = ''; } $link = vc_gitem_create_link( $atts ); if ( ! empty( $link ) ) { $text = '<' . $link . '>' . $text . ''; } if ( ( ! isset( $atts['use_theme_fonts'] ) || 'yes' !== $atts['use_theme_fonts'] ) && ! empty( $google_fonts_data ) && isset( $google_fonts_data['values']['font_family'] ) ) { wp_enqueue_style( 'vc_google_fonts_' . vc_build_safe_css_class( $google_fonts_data['values']['font_family'] ), 'https://fonts.googleapis.com/css?family=' . $google_fonts_data['values']['font_family'] . $subsets, [], WPB_VC_VERSION ); } if ( ! empty( $styles ) ) { $style = 'style="' . esc_attr( implode( ';', $styles ) ) . '"'; } else { $style = ''; } if ( 'post_title' === $atts['source'] ) { $text = get_the_title( get_the_ID() ); } $output = ''; if ( apply_filters( 'vc_custom_heading_template_use_wrapper', false ) ) { $output .= '
'; $output .= '<' . $font_container_data['values']['tag'] . ' ' . $style . ' >'; $output .= $text; $output .= ''; $output .= '
'; } else { $output .= '<' . $font_container_data['values']['tag'] . ' ' . $style . ' class="' . esc_attr( $css_class ) . '">'; $output .= $text; $output .= ''; } return $output; params/vc_grid_item/shortcodes/vc_single_image.php000060400000004160151732637250016473 0ustar00getShortcode(), $atts ); extract( $atts ); $default_src = vc_asset_url( 'vc/no_image.png' ); $style = ( '' !== $style ) ? $style : ''; $border_color = ( '' !== $border_color ) ? ' vc_box_border_' . $border_color : ''; $img_id = preg_replace( '/[^\d]/', '', $image ); switch ( $source ) { case 'media_library': $img = wpb_getImageBySize( array( 'attach_id' => $img_id, 'thumb_size' => $img_size, 'class' => 'vc_single_image-img', ) ); break; case 'external_link': $dimensions = vc_extract_dimensions( $img_size ); $hwstring = $dimensions ? image_hwstring( $dimensions[0], $dimensions[1] ) : ''; $custom_src = $custom_src ? esc_attr( $custom_src ) : $default_src; $img = array( 'thumbnail' => '', ); break; default: $img = false; } if ( ! $img ) { $img['thumbnail'] = ''; } $wrapperClass = 'vc_single_image-wrapper ' . $style . ' ' . $border_color; $link = vc_gitem_create_link( $atts, $wrapperClass ); $image_string = ! empty( $link ) ? '<' . $link . '>' . $img['thumbnail'] . '' : '
' . $img['thumbnail'] . '
'; $class_to_filter = 'wpb_single_image wpb_content_element vc_align_' . $alignment . ' ' . $this->getCSSAnimation( $css_animation ); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $output = '
' . wpb_widget_title( array( 'title' => $title, 'extraclass' => 'wpb_singleimage_heading', ) ) . '
' . $image_string . '
'; return $output; params/vc_grid_item/shortcodes/vc_button2.php000060400000005611151732637250015447 0ustar00getShortcode(), $atts ); extract( $atts ); $class = 'vc_btn'; // parse link $class .= ( '' !== $color ) ? ( ' vc_btn_' . $color . ' vc_btn-' . $color ) : ''; $class .= ( '' !== $size ) ? ( ' vc_btn_' . $size . ' vc_btn-' . $size ) : ''; $class .= ( '' !== $style ) ? ' vc_btn_' . $style : ''; $css = isset( $css ) ? $css : ''; $class_to_filter = $class; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $link = 'class="' . esc_attr( $css_class ) . '"'; $target = ''; $rel = ''; if ( isset( $atts['link'] ) ) { $css_class .= ' vc_gitem-link'; if ( 'custom' === $atts['link'] && ! empty( $atts['url'] ) ) { $vc_link = vc_build_link( $atts['url'] ); if ( strlen( $vc_link['target'] ) ) { $target = ' target="' . esc_attr( $vc_link['target'] ) . '"'; } if ( strlen( $vc_link['rel'] ) ) { $rel = ' rel="' . esc_attr( $vc_link['rel'] ) . '"'; } $link = 'href="' . esc_url( $vc_link['url'] ) . '" class="' . esc_attr( $css_class ) . '"'; } elseif ( 'post_link' === $atts['link'] ) { $target = isset( $atts['link_target'] ) && $atts['link_target'] ? ' target="_blank"' : ''; $link = 'href="{{ post_link_url }}" class="' . esc_attr( $css_class ) . '"' . $target; } elseif ( 'image' === $atts['link'] ) { $target = isset( $atts['link_target'] ) && $atts['link_target'] ? ' target="_blank"' : ''; $link = '{{ post_image_url_href }} class="' . esc_attr( $css_class ) . '"' . $target; } elseif ( 'image_lightbox' === $atts['link'] ) { $target = isset( $atts['link_target'] ) && $atts['link_target'] ? ' target="_blank"' : ''; $link = '{{ post_image_url_attr_prettyphoto:' . esc_attr( $css_class ) . ' }}' . $target; } elseif ( 'image_full' === $atts['link'] ) { $target = isset( $atts['link_target'] ) && $atts['link_target'] ? ' target="_blank"' : ''; $link = '{{ post_full_image_url_href }} class="' . esc_attr( $css_class ) . '"' . $target; } elseif ( 'image_full_lightbox' === $atts['link'] ) { $target = isset( $atts['link_target'] ) && $atts['link_target'] ? ' target="_blank"' : ''; $link = '{{ post_full_image_url_attr_prettyphoto:' . esc_attr( $css_class ) . ' }}' . $target; } } $link = apply_filters( 'vc_gitem_post_data_get_link_link', 'a ' . $link, $atts, $css_class ) . apply_filters( 'vc_gitem_post_data_get_link_target', $target, $atts ) . apply_filters( 'vc_gitem_post_data_get_link_rel', $rel, $atts ); if ( $align ) { $wrapper_css_class .= ' vc_button-2-align-' . $align; } $output = '
'; $output .= '<' . $link . $target . $rel . '>' . $title . ''; $output .= '
'; return $output; params/vc_grid_item/attributes/.htaccess000044400000000177151732637250014464 0ustar00 Order allow,deny Deny from all params/vc_grid_item/attributes/vc_btn.php000060400000020314151732637250014643 0ustar00includeClass( 'WPBakeryShortCode_Vc_Btn' ); $vc_btn = new WPBakeryShortCode_Vc_Btn( array( 'base' => 'vc_btn' ) ); $style = $shape = $color = $size = $custom_background = $custom_text = $align = $link = $title = $button_block = $el_class = $outline_custom_color = $outline_custom_hover_background = $outline_custom_hover_text = $add_icon = $i_align = $i_type = $i_icon_entypo = $i_icon_fontawesome = $i_icon_linecons = $i_icon_pixelicons = $i_icon_typicons = $css = $css_animation = ''; $gradient_color_1 = $gradient_color_2 = $gradient_custom_color_1 = $gradient_custom_color_2 = $gradient_text_color = ''; $custom_onclick = $custom_onclick_code = ''; $a_href = $a_title = $a_target = $a_rel = ''; $styles = array(); $icon_wrapper = false; $icon_html = false; $attributes = array(); /** @var WPBakeryShortCode_Vc_Btn $vc_btn */ $atts = vc_map_get_attributes( $vc_btn->getShortcode(), $atts ); extract( $atts ); // parse link $link = trim( $link ); $use_link = strlen( $link ) > 0 && 'none' !== $link; $wrapper_classes = array( 'vc_btn3-container', $vc_btn->getExtraClass( $el_class ), $vc_btn->getCSSAnimation( $css_animation ), 'vc_btn3-' . $align, ); $button_classes = array( 'vc_general', 'vc_btn3', 'vc_btn3-size-' . $size, 'vc_btn3-shape-' . $shape, 'vc_btn3-style-' . $style, ); $button_html = $title; if ( '' === trim( $title ) ) { $button_classes[] = 'vc_btn3-o-empty'; $button_html = ' '; } if ( 'true' === $button_block && 'inline' !== $align ) { $button_classes[] = 'vc_btn3-block'; } if ( 'true' === $add_icon ) { $button_classes[] = 'vc_btn3-icon-' . $i_align; vc_icon_element_fonts_enqueue( $i_type ); if ( isset( ${'i_icon_' . $i_type} ) ) { if ( 'pixelicons' === $i_type ) { $icon_wrapper = true; } $icon_class = ${'i_icon_' . $i_type}; } else { $icon_class = 'fa fa-adjust'; } if ( $icon_wrapper ) { $icon_html = ''; } else { $icon_html = ''; } if ( 'left' === $i_align ) { $button_html = $icon_html . ' ' . $button_html; } else { $button_html .= ' ' . $icon_html; } } $output = ''; if ( 'custom' === $style ) { if ( $custom_background ) { $styles[] = vc_get_css_color( 'background-color', $custom_background ); } if ( $custom_text ) { $styles[] = vc_get_css_color( 'color', $custom_text ); } if ( ! $custom_background && ! $custom_text ) { $button_classes[] = 'vc_btn3-color-grey'; } } elseif ( 'outline-custom' === $style ) { if ( $outline_custom_color ) { $styles[] = vc_get_css_color( 'border-color', $outline_custom_color ); $styles[] = vc_get_css_color( 'color', $outline_custom_color ); $attributes[] = 'onmouseleave="this.style.borderColor=\'' . $outline_custom_color . '\'; this.style.backgroundColor=\'transparent\'; this.style.color=\'' . $outline_custom_color . '\'"'; } else { $attributes[] = 'onmouseleave="this.style.borderColor=\'\'; this.style.backgroundColor=\'transparent\'; this.style.color=\'\'"'; } $onmouseenter = array(); if ( $outline_custom_hover_background ) { $onmouseenter[] = 'this.style.borderColor=\'' . $outline_custom_hover_background . '\';'; $onmouseenter[] = 'this.style.backgroundColor=\'' . $outline_custom_hover_background . '\';'; } if ( $outline_custom_hover_text ) { $onmouseenter[] = 'this.style.color=\'' . $outline_custom_hover_text . '\';'; } if ( $onmouseenter ) { $attributes[] = 'onmouseenter="' . implode( ' ', $onmouseenter ) . '"'; } if ( ! $outline_custom_color && ! $outline_custom_hover_background && ! $outline_custom_hover_text ) { $button_classes[] = 'vc_btn3-color-inverse'; foreach ( $button_classes as $k => $v ) { if ( 'vc_btn3-style-outline-custom' === $v ) { unset( $button_classes[ $k ] ); break; } } $button_classes[] = 'vc_btn3-style-outline'; } } elseif ( 'gradient' === $style || 'gradient-custom' === $style ) { $gradient_color_1 = vc_convert_vc_color( $gradient_color_1 ); $gradient_color_2 = vc_convert_vc_color( $gradient_color_2 ); $button_text_color = '#fff'; if ( 'gradient-custom' === $style ) { $gradient_color_1 = $gradient_custom_color_1; $gradient_color_2 = $gradient_custom_color_2; $button_text_color = $gradient_text_color; } $gradient_css = array(); $gradient_css[] = 'color: ' . $button_text_color; $gradient_css[] = 'border: none'; $gradient_css[] = 'background-color: ' . $gradient_color_1; $gradient_css[] = 'background-image: -webkit-linear-gradient(left, ' . $gradient_color_1 . ' 0%, ' . $gradient_color_2 . ' 50%,' . $gradient_color_1 . ' 100%)'; $gradient_css[] = 'background-image: linear-gradient(to right, ' . $gradient_color_1 . ' 0%, ' . $gradient_color_2 . ' 50%,' . $gradient_color_1 . ' 100%)'; $gradient_css[] = '-webkit-transition: all .2s ease-in-out'; $gradient_css[] = 'transition: all .2s ease-in-out'; $gradient_css[] = 'background-size: 200% 100%'; // hover css $gradient_css_hover = array(); $gradient_css_hover[] = 'color: ' . $button_text_color; $gradient_css_hover[] = 'background-color: ' . $gradient_color_2; $gradient_css_hover[] = 'border: none'; $gradient_css_hover[] = 'background-position: 100% 0'; $uid = uniqid(); $first_tag = 'style'; $output .= '<' . $first_tag . '>.vc_btn3-style-' . esc_attr( $style ) . '.vc_btn-gradient-btn-' . esc_attr( $uid ) . ':hover{' . esc_attr( implode( ';', $gradient_css_hover ) ) . ';' . '}'; $output .= '<' . $first_tag . '>.vc_btn3-style-' . esc_attr( $style ) . '.vc_btn-gradient-btn-' . esc_attr( $uid ) . '{' . esc_attr( implode( ';', $gradient_css ) ) . ';' . '}'; $button_classes[] = 'vc_btn-gradient-btn-' . $uid; $attributes[] = 'data-vc-gradient-1="' . $gradient_color_1 . '"'; $attributes[] = 'data-vc-gradient-2="' . $gradient_color_2 . '"'; } else { $button_classes[] = 'vc_btn3-color-' . $color; } if ( $styles ) { $attributes[] = 'style="' . implode( ' ', $styles ) . '"'; } $class_to_filter = implode( ' ', array_filter( $wrapper_classes ) ); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $vc_btn->settings( 'base' ), $atts ); if ( $button_classes ) { $button_classes = esc_attr( apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode( ' ', array_filter( $button_classes ) ), $vc_btn->settings( 'base' ), $atts ) ); $attributes[] = 'class="' . trim( $button_classes ) . '"'; } if ( $use_link ) { $link_output = vc_gitem_create_link_real( $atts, $post, 'vc_general vc_btn3 ' . trim( $button_classes ), $title ); $attributes[] = $link_output; } if ( ! empty( $custom_onclick ) && $custom_onclick_code ) { $attributes[] = 'onclick="' . esc_attr( $custom_onclick_code ) . '"'; } $attributes = implode( ' ', $attributes ); $output .= '
'; if ( $use_link ) { if ( preg_match( '/href=\"[^\"]+/', $link_output ) ) { $output .= '' . $button_html . ''; } elseif ( 'load-more-grid' === $link ) { $output .= '' . $button_html . ''; } } else { $output .= ''; } $output .= '
'; return $output; params/vc_grid_item/attributes/featured_image.php000060400000003617151732637250016340 0ustar00includeClass( 'WPBakeryShortCode_Vc_Single_image' ); $atts = array(); parse_str( $data, $atts ); $el_class = $image = $img_size = $img_link = $img_link_target = $img_link_large = $title = $alignment = $css_animation = $css = ''; $image_string = ''; $img_class = new WPBakeryShortCode_Vc_Single_image( array( 'base' => 'vc_single_image' ) ); /** @var WPBakeryShortCode_Vc_Single_image $img_class */ $atts = vc_map_get_attributes( $img_class->getShortcode(), $atts ); extract( $atts ); $style = ( '' !== $style ) ? $style : ''; $border_color = ( '' !== $border_color ) ? ' vc_box_border_' . $border_color : ''; $img_id = has_post_thumbnail( $post->ID ) ? get_post_thumbnail_id( $post->ID ) : $post->ID; $img = wpb_getImageBySize( array( 'attach_id' => $img_id, 'thumb_size' => $img_size, 'class' => 'vc_single_image-img', ) ); $img = apply_filters( 'vc_gitem_attribute_featured_image_img', $img ); if ( null === $img || false === $img ) { return ''; } $el_class = $img_class->getExtraClass( $el_class ); $style = preg_replace( '/_circle_2$/', '_circle', $style ); $wrapperClass = 'vc_single_image-wrapper ' . $style . ' ' . $border_color; $link = vc_gitem_create_link_real( $atts, $post, $wrapperClass, $title ); $image_string = ! empty( $link ) ? '<' . $link . '>' . $img['thumbnail'] . '' : '
' . $img['thumbnail'] . '
'; $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_single_image wpb_content_element' . $el_class . vc_shortcode_custom_css_class( $css, ' ' ), $img_class->settings( 'base' ), $atts ); $css_class .= $img_class->getCSSAnimation( $css_animation ); $css_class .= ' vc_align_' . $alignment; $output = '
' . $image_string . '
'; return $output; params/vc_grid_item/attributes/post_categories.php000060400000004234151732637250016565 0ustar00includeClass( 'WPBakeryShortCode_Vc_Gitem_Post_Categories' ); $categories = get_the_category(); $separator = ''; $css_class = array( 'vc_gitem-post-data' ); $css_class[] = vc_shortcode_custom_css_class( $atts['css'] ); $css_class[] = $atts['el_class']; $css_class[] = 'vc_gitem-post-data-source-post_categories'; $css_class[] = 'vc_grid-filter vc_clearfix'; $css_class[] = 'vc_grid-filter vc_clearfix'; $style = trim( str_replace( ',', 'comma', $atts['category_style'] ) ); $css_class[] = 'vc_grid-filter-' . esc_attr( $style ); $css_class[] = 'vc_grid-filter-size-' . esc_attr( $atts['category_size'] ); $css_class[] = 'vc_grid-filter-' . esc_attr( $atts['alignment'] ); $css_class[] = 'vc_grid-filter-' . esc_attr( $atts['alignment'] ); if ( ! empty( $style ) && 'none' !== $style ) { $css_class[] = 'vc_grid-filter-color-' . esc_attr( $atts['category_color'] ); } $output = '
'; $data = array(); if ( ! empty( $categories ) ) { foreach ( $categories as $category ) { $category_link = ''; if ( ! empty( $atts['link'] ) ) { $category_link = 'href="' . esc_url( get_category_link( $category->term_id ) ) . '" alt="' . sprintf( esc_attr__( 'View all posts in %s', 'js_composer' ), $category->name ) . '"'; } $wrapper = '
'; $content = esc_html( $category->name ); if ( ! empty( $category_link ) ) { $content = ''; } else { $content = ''; } $wrapper_end = '
'; $data[] = $wrapper . $content . $wrapper_end; } } if ( empty( $atts['category_style'] ) || ' ' === $atts['category_style'] || ', ' === $atts['category_style'] ) { $separator = $atts['category_style']; } $output .= implode( $separator, $data ); $output .= '
'; return $output; params/vc_grid_item/preview.tpl.php000060400000004355151732637250013470 0ustar00 > <?php wp_title( '|', true, 'right' ); ?> <> body { background-color: #FFF; color: #000; font-size: 12px; } parseShortcodesCustomCss( $shortcodes_string ); ?> .vc_gitem-preview { margin: 60px auto; } .vc_gitem-preview .vc_grid-item { display: block; margin: 0 auto; } .vc_grid-item-width-dropdown { margin-top: 10px; text-align: center; } .vc_container { margin: 0 15px; } img { width: 100%; } >
renderItem( $post ); ?>
<> var currentWidth = '', vcSetItemWidth = function ( value ) { jQuery( '.vc_grid-item' ).removeClass( 'vc_col-sm-' + currentWidth ) .addClass( 'vc_col-sm-' + value ); currentWidth = value; }, changeAnimation; changeAnimation = function ( animation ) { var $animatedBlock, prevAnimation; $animatedBlock = jQuery( '.vc_gitem-animated-block' ); prevAnimation = $animatedBlock.data( 'vcAnimation' ); $animatedBlock.hide() .addClass( 'vc_gitem-animate vc_gitem-animate-' + animation ) .removeClass( 'vc_gitem-animate-' + prevAnimation ) .data( 'vcAnimation', animation ); setTimeout( function () { $animatedBlock.show(); }, 100 ); }; jQuery( document ).ready( function ( $ ) { window.parent.vc && window.parent.vc.app.showPreview( currentWidth ); } ); > params/vc_grid_item/editor/partials/.htaccess000044400000000177151732637250015403 0ustar00 Order allow,deny Deny from all params/vc_grid_item/editor/partials/vc_grid_item_editor_footer.tpl.php000060400000004761151732637250022474 0ustar00render(); // Edit form for mapped shortcode. wpbakery()->editForm()->render(); require_once vc_path_dir( 'PARAMS_DIR', 'vc_grid_item/editor/popups/class-vc-templates-editor-grid-item.php' ); $templates_editor = new Vc_Templates_Editor_Grid_Item(); $templates_editor->renderUITemplate(); $grid_item = new Vc_Grid_Item(); $shortcodes = $grid_item->shortcodes(); if ( vc_user_access()->part( 'presets' )->can()->get() ) { require_once vc_path_dir( 'AUTOLOAD_DIR', 'class-vc-settings-presets.php' ); $vc_vendor_settings_presets = Vc_Settings_Preset::listDefaultVendorSettingsPresets(); $vc_all_presets = Vc_Settings_Preset::listAllPresets(); } else { $vc_vendor_settings_presets = array(); $vc_all_presets = array(); } $custom_tag = 'script'; ?> <> window.vc_user_mapper = ; window.vc_mapper = ; window.vc_vendor_settings_presets = ; window.vc_all_presets = ; window.vc_frontend_enabled = false; window.vc_mode = ''; window.vcAdminNonce = ''; > < type="text/html" id="vc_settings-image-block">
  • > $el ) : ?> < type="text/html" id="vc_shortcode-template-"> getShortCode( $sc_base )->template(); ?> > registerBackendCss(); $vc_grid_item_editor->registerBackendJavascript(); add_filter( 'admin_body_class', array( $vc_grid_item_editor->templatesEditor(), 'addBodyClassTemplatePreview' ) ); add_action( 'admin_enqueue_scripts', array( &$vc_grid_item_editor, 'enqueueEditorScripts' ) ); add_action( 'admin_footer', array( &$vc_grid_item_editor, 'renderEditorFooter' ) ); add_filter( 'vc_wpbakery_shortcode_get_controls_list', array( $vc_grid_item_editor, 'shortcodesControls' ) ); } add_action( 'admin_enqueue_scripts', array( wpbakery()->templatesPanelEditor(), 'enqueuePreviewScripts' ) ); global $menu, $submenu, $parent_file, $post_ID, $post, $post_type; $post_ID = $editorPost->ID; $post_type = $editorPost->post_type; $post_title = trim( $editorPost->post_title ); $nonce_action = $nonce_action = 'update-post_' . $post_ID; $user_ID = isset( $current_user ) && isset( $current_user->ID ) ? (int) $current_user->ID : 0; $form_action = 'editpost'; $menu = array(); remove_action( 'wp_head', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'admin_print_styles', 'print_emoji_styles' ); add_thickbox(); wp_enqueue_media( array( 'post' => $post_ID ) ); wpbakery()->templatesPanelEditor()->registerPreviewScripts(); require_once ABSPATH . 'wp-admin/admin-header.php'; $custom_tag = 'script'; $first_tag = 'style'; ?> <> #screen-meta, #adminmenumain, .notice, #wpfooter, #message, .updated { display: none !important; } #wpcontent { margin-left: 0 !important; padding-left: 0 !important; } .vc_not-remove-overlay { position: fixed !important; width: 100%; height: 100%; z-index: 199999999; } html { overflow: hidden; background: transparent; } >
    <> /** * Get content of grid item editor of current post. Data is used as models collection of shortcodes. * Data always wrapped with vc_gitem shortcode. * @return {*} */ var vcDefaultGridItemContent = '' + '[vc_gitem]' + '[vc_gitem_animated_block]' + '[vc_gitem_zone_a]' + '[vc_gitem_row position="top"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="middle"]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="bottom"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[/vc_gitem_zone_a]' + '[vc_gitem_zone_b]' + '[vc_gitem_row position="top"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="middle"]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="bottom"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[/vc_gitem_zone_b]' + '[/vc_gitem_animated_block]' + '[/vc_gitem]'; > Order allow,deny Deny from all params/vc_grid_item/editor/vc_grid_item_editor.tpl.php000060400000004743151732637250017277 0ustar00render(); $custom_tag = 'script'; ?>
    <> window.vc_post_id = ; /** * Get content of grid item editor of current post. Data is used as models collection of shortcodes. * Data always wrapped with vc_gitem shortcode. * @return {*} */ var vcDefaultGridItemContent = '' + '[vc_gitem]' + '[vc_gitem_animated_block]' + '[vc_gitem_zone_a]' + '[vc_gitem_row position="top"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="middle"]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="bottom"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[/vc_gitem_zone_a]' + '[vc_gitem_zone_b]' + '[vc_gitem_row position="top"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="middle"]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[vc_gitem_col width="1/2"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[vc_gitem_row position="bottom"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' + '[/vc_gitem_zone_b]' + '[/vc_gitem_animated_block]' + '[/vc_gitem]'; > params/vc_grid_item/.htaccess000044400000000177151732637250012276 0ustar00 Order allow,deny Deny from all params/loop/.htaccess000044400000000177151732637250010614 0ustar00 Order allow,deny Deny from all params/loop/templates.html000060400000015701151732637250011677 0ustar00 params/column_offset/.htaccess000044400000000177151732637250012506 0ustar00 Order allow,deny Deny from all params/column_offset/template.tpl.php000060400000005266151732637250014034 0ustar00 'portrait-smartphones', 'sm' => 'portrait-tablets', 'md' => 'landscape-tablets', 'lg' => 'default', ); $custom_tag = 'script'; ?>
    get( 'not_responsive_css' ) ) : ?>

    ', '' ); ?>

    $size ) : ?>
    offsetControl( $key ); ?> sizeControl( $key ); ?>
    <> window.VcI8nColumnOffsetParam = esc_html__( 'Inherit: ', 'js_composer' ), 'inherit_default' => esc_html__( 'Inherit from default', 'js_composer' ), ) ) ?> ; > params/options/templates.html000060400000005032151732637250012415 0ustar00 params/options/.htaccess000044400000000177151732637250011336 0ustar00 Order allow,deny Deny from all params/param_group/inner_content.tpl.php000060400000002417151732637250014532 0ustar00
    %content%
    '; params/param_group/add.tpl.php000060400000000431151732637250012407 0ustar00' . $template . ''; params/param_group/content.tpl.php000060400000000342151732637250013332 0ustar00' . $template . ''; params/param_group/.htaccess000044400000000177151732637250012157 0ustar00 Order allow,deny Deny from all editors/backend_editor.tpl.php000060400000006342151732637250012475 0ustar00part( 'presets' )->can()->get() ) { require_once vc_path_dir( 'AUTOLOAD_DIR', 'class-vc-settings-presets.php' ); $vc_all_presets = Vc_Settings_Preset::listAllPresets(); } else { $vc_all_presets = array(); } // [/shortcodes presets data] global $wp_version; $custom_tag = 'script'; // TODO: Use ajax for variables $is_gutenberg = version_compare( $wp_version, '4.9.8', '>' ) && ! get_option( 'wpb_js_gutenberg_disable' ); if ( $is_gutenberg ) { $is_gutenberg = get_post_type_object( get_post_type() )->show_in_rest; } ?> <> window.vc_all_presets = ; window.vc_post_id = ; window.wpbGutenbergEditorUrl = ''; window.wpbGutenbergEditorSWitchUrl = ''; window.wpbGutenbergEditorClassicSWitchUrl = ''; window.wpbIsGutenberg = ; > render(); $first_tag = 'style'; /** @var Vc_Backend_Editor $editor */ ?> <> #wpb_wpbakery { display: none; } >
    ID, '_wpb_vc_js_status', true ) ) ); if ( '' === $wpb_vc_status || ! isset( $wpb_vc_status ) ) { $wpb_vc_status = vc_user_access()->part( 'backend_editor' )->checkState( 'default' )->get() ? 'true' : 'false'; } ?> editors/popups/vc_ui-header.tpl.php000060400000003413151732637250013415 0ustar00
    $control ) : ?>

    editors/popups/shared-templates/category.tpl.php000060400000017341151732637250016146 0ustar00 <> window.vcTemplatesLibraryData = { templates: }; >
    isActivated() ) : ?>

    isActivated() ) : ?>

    part( 'templates' )->checkStateAny( true, null )->get() ) : ?>

    < type="text/html" id="vc_template-item">
    part( 'templates' )->checkStateAny( true, null )->get() ) : ?>
    > < type="text/html" id="vc_template-grid-item">
    isActivated() ) : ?> <% if (!downloaded) { %> <% } else if (downloaded && downloaded.version < version) { %> <% } %> <%- title %> <%= status %>
    > editors/popups/shared-templates/.htaccess000044400000000177151732637250014621 0ustar00 Order allow,deny Deny from all editors/popups/vc_ui-panel-row-layout.tpl.php000060400000004454151732637250015412 0ustar00
    esc_html__( 'Row Layout', 'js_composer' ), 'controls' => array( 'minimize', 'close' ), 'header_css_class' => 'vc_ui-row-layout-header-container', )); ?>
    esc_html__( 'My Elements', 'js_composer' ), 'controls' => array( 'minimize', 'close', ), 'header_css_class' => 'vc_ui-preset-panel-header-container', ) ); ?>

    getPresets(); ?>
    editors/popups/vc_ui-panel-post-settings.tpl.php000060400000004466151732637250016116 0ustar00
    esc_html__( 'Page Settings', 'js_composer' ), 'controls' => array( 'minimize', 'close' ), 'header_css_class' => 'vc_ui-post-settings-header-container', 'content_template' => '', )); ?>
    
    					
    						
    array( array( 'name' => 'close', 'label' => esc_html__( 'Close', 'js_composer' ), ), array( 'name' => 'save', 'label' => esc_html__( 'Save changes', 'js_composer' ), 'css_classes' => 'vc_ui-button-fw', 'style' => 'action', ), ), )); ?>
    editors/popups/modal_edit_element.tpl.php000060400000001624151732637250014676 0ustar00 editors/popups/vc_ui-panel-add-element.tpl.php000060400000004651151732637250015446 0ustar00
    esc_html__( 'Add Element', 'js_composer' ), 'controls' => array( 'close' ), 'header_css_class' => 'vc_ui-add-element-header-container', 'content_template' => 'editors/partials/add_element_tabs.tpl.php', 'search_template' => 'editors/partials/add_element_search.tpl.php', 'template_variables' => $template_variables, ) ) ?>
    • getControls(); ?>
    • isShowEmptyMessage() && true !== $box->getPartState() ) : ?>
    part( 'presets' )->checkStateAny( true, null )->get() ) : ?>
    editors/popups/.htaccess000044400000000177151732637250011357 0ustar00 Order allow,deny Deny from all editors/popups/panel_multi_shortcode_edit_form.tpl.php000060400000001662151732637250017501 0ustar00

    editors/popups/panel_shortcode_edit_form.tpl.php000060400000002041151732637250016257 0ustar00

    editors/popups/vc_ui-panel-edit-element.tpl.php000060400000003110151732637250015630 0ustar00
    part( 'presets' )->checkStateAny( true, null )->get() || vc_user_access()->part( 'templates' )->checkStateAny( true, null )->get() ) { $controls = array_merge( array( 'settings' => array( 'template' => 'editors/partials/vc_ui-settings-dropdown.tpl.php', ), ), $controls ); } vc_include_template( 'editors/popups/vc_ui-header.tpl.php', array( 'title' => esc_html__( 'Page settings', 'js_composer' ), 'controls' => $controls, 'header_css_class' => 'vc_ui-post-settings-header-container', 'content_template' => '', ) ); ?>
    array( array( 'name' => 'close', 'label' => esc_html__( 'Close', 'js_composer' ), 'css_classes' => 'vc_ui-button-fw', ), array( 'name' => 'save', 'label' => esc_html__( 'Save changes', 'js_composer' ), 'css_classes' => 'vc_ui-button-fw', 'style' => 'action', ), ), ) ); ?>
    editors/popups/vc_ui-panel-templates.tpl.php000060400000003653151732637250015266 0ustar00
    getAllTemplatesSorted(); $categories = $box->getAllCategoriesNames( $categories_data ); ?> esc_html__( 'Templates', 'js_composer' ), 'controls' => array( 'minimize', 'close', ), 'header_css_class' => 'vc_ui-template-panel-header-container', 'content_template' => 'editors/partials/vc_ui-templates-tabs.tpl.php', 'search_template' => 'editors/partials/templates_search.tpl.php', 'template_variables' => array( 'categories_data' => $categories_data, 'categories' => $categories, ), ) ); ?>
    $category ) : echo '
    '; $templates_block = apply_filters( 'vc_templates_render_category', $category ); if ( isset( $templates_block['output'] ) && is_string( $templates_block['output'] ) ) { // @codingStandardsIgnoreLine print $templates_block['output']; } echo '
    '; $first = false; endforeach; ?>
    editors/vc_ui-template-preview.tpl.php000060400000007620151732637250014135 0ustar00templatesPanelEditor(), 'enqueuePreviewScripts' ) ); add_filter( 'admin_body_class', array( wpbakery()->templatesPanelEditor(), 'addBodyClassTemplatePreview' ) ); do_action( 'vc-render-templates-preview-template' ); global $menu, $submenu, $parent_file, $post_ID, $post, $post_type; $post_ID = $editorPost->ID; $post_type = $editorPost->post_type; $post_title = trim( $editorPost->post_title ); $nonce_action = $nonce_action = 'update-post_' . $post_ID; $user_ID = isset( $current_user ) && isset( $current_user->ID ) ? (int) $current_user->ID : 0; $form_action = 'editpost'; $menu = array(); remove_action( 'wp_head', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'admin_print_styles', 'print_emoji_styles' ); add_thickbox(); wp_enqueue_script( 'vc_editors-templates-preview-js' ); wp_enqueue_media( array( 'post' => $post_ID ) ); wpbakery()->templatesPanelEditor()->registerPreviewScripts(); require_once ABSPATH . 'wp-admin/admin-header.php'; $custom_tag = 'script'; $first_tag = 'style'; ?> <> window.vc_user_mapper = ; window.vc_mapper = ; window.vc_roles = []; window.vcAdminNonce = ''; window.vc_post_id = ; > <> #screen-meta, #adminmenumain, .notice, #wpfooter, #message, .updated { display: none !important; } #wpcontent { margin-left: 0 !important; padding-left: 0 !important; } .vc_not-remove-overlay { position: fixed !important; width: 100%; height: 100%; z-index: 199999999; } html { overflow: hidden; background: transparent; } >
    editors/navbar/.htaccess000044400000000177151732637250011302 0ustar00 Order allow,deny Deny from all editors/partials/vc_settings-image-block.tpl.php000060400000001061151732637250016050 0ustar00 < type="text/html" id="vc_settings-image-block">
  • > editors/partials/prompt-presets.tpl.php000060400000002362151732637250014361 0ustar00
    editors/partials/templates_search.tpl.php000060400000000727151732637250014703 0ustar00
    editors/partials/post_shortcodes.tpl.php000060400000000541151732637250014574 0ustar00 <> window.vc_post_shortcodes = JSON.parse( decodeURIComponent( ("post_shortcodes ) ); ?>" + '') ) ); > editors/partials/prompt-templates.tpl.php000060400000002416151732637250014672 0ustar00
    editors/partials/settings_presets_popup.tpl.php000060400000003075151732637250016207 0ustar00
    part( 'templates' )->checkStateAny( true, null )->get() ) : ?> part( 'presets' )->checkStateAny( true, null )->get() ) : ?> <> window.vc_presets_data = { "presets": , "presetsCount": , "defaultId": , "can": part( 'presets' )->can()->get(); ?>, "defaultTitle": "" } >
    editors/partials/backend_controls_tab.tpl.php000060400000003603151732637250015514 0ustar00
    part( 'shortcodes' )->checkStateAny( true, 'custom', null )->get() ) : ?>
    editors/partials/backend-shortcodes-templates.tpl.php000060400000004167151732637250017120 0ustar00part( 'presets' )->can()->get() ) { $vc_vendor_settings_presets = Vc_Settings_Preset::listDefaultVendorSettingsPresets(); $vc_all_presets = Vc_Settings_Preset::listAllPresets(); } else { $vc_vendor_settings_presets = array(); $vc_all_presets = array(); } $custom_tag = 'script'; // TODO: Use HTML Shadow dom or ajax response for templates ?> <> var vc_user_mapper = , vc_mapper = , vc_vendor_settings_presets = , vc_roles = [], vc_frontend_enabled = , vc_all_presets = , vc_mode = '', vcAdminNonce = ''; > $el ) : ?> < type="text/html" id="vc_shortcode-template-"> getShortCode( $sc_base )->template(); ?> > < type="text/html" id="vc_row-inner-element-template"> getShortCode( 'vc_row_inner' )->template(); ?> > < type="text/html" id="vc_settings-page-param-block">
    <%= heading %>
    <%= form_element %>
    > editors/partials/vc_ui-templates-tabs.tpl.php000060400000002244151732637250015404 0ustar00 0; if ( count( $categories ) > 0 ) : $first = true; ?> '; endif; ?> editors/partials/vc_welcome_block.tpl.php000060400000006301151732637250014647 0ustar00templatesPanelEditor()->loadDefaultTemplates(); $templates_total_count = count( $total_templates ); ?>
    part( 'shortcodes' )->checkStateAny( true, 'custom', null )->get() && vc_user_access_check_shortcode_all( 'vc_row' ) && vc_user_access_check_shortcode_all( 'vc_column' ) ) : ?>

    part( 'shortcodes' )->checkStateAny( true, 'custom', null ) ->get() && vc_user_access_check_shortcode_all( 'vc_row' ) && vc_user_access_check_shortcode_all( 'vc_column' ) ) : ?> part( 'shortcodes' )->can( 'vc_column_text_all' )->get() ) : ?> 0 && vc_user_access()->part( 'templates' )->can()->get() ) : ?>
    part( 'shortcodes' )->checkStateAny( true, 'custom', null ) ->get() && vc_user_access_check_shortcode_all( 'vc_row' ) && vc_user_access_check_shortcode_all( 'vc_column' ) ) : ?>

    ' . esc_html__( 'knowledge base', 'js_composer' ) . '' ); ?>

    editors/partials/frontend_controls.tpl.php000060400000053347151732637250015130 0ustar00 < type="text/html" id="vc_controls-template-default">
    {# if( can_all && moveAccess ) { #}{# } #} {{ name }} {# if( can_edit ) { #}{# } if( can_all ) { #}{# } #}
    > < type="text/html" id="vc_controls-template-container">
    {# if( can_all && moveAccess ) { #} {{ name }}{# } else { #} {{ name }}{# } #}{# if( can_edit ) { #}{# } #}{# if( 'edit' !== state ) { #}{# } #}{# if( can_all ) { #}{# } #}
    {# if( 'edit' !== state ) { #}
    {# } #}
    > < type="text/html" id="vc_controls-template-container-width-parent">
    {# if( can_all && moveAccess ) { #} {{ parent_name }}{# } else { #} {{ parent_name }}{# } #}{# if( parent_can_edit ) { #}{# } #}{# if( allowAdd ) { #}{# } #}{# if( parent_can_all ) { #}{# } #}
    {# if( can_all && moveAccess ) { #} {{ name }}{# } else { #} {{ name }}{# } #}{# if( can_edit ) { #}{# } #}{# if( 'edit' !== state ) { #}{# } #}
    {# if( 'edit' !== state ) { #}
    {# } #}
    > < type="text/html" id="vc_controls-template-vc_column">
    {# if( parent_can_all && moveAccess ) { #} {{ parent_name }}{# } else { #} {{ parent_name }}{# } #}{# if( parent_can_edit ) { #}{# } #}{# if( parent_can_all ) { #}{# } #}{# if( allowAdd ) { #}{# } #}{# if( parent_can_all ) { #}{# } #}
    {# if( can_all && moveAccess ) { #} {{ name }}{# } else { #} {{ name }}{# } #}{# if( can_edit ) { #}{# } #}{# if( 'edit' !== state ) { #}{# } #}{# if( can_all ) { #}{# } #}">
    {# if( 'edit' !== state ) { #}
    {# } #}
    > < type="text/html" id="vc_controls-template-vc_tab">
    {# if( parent_can_all && moveAccess ) { #} {{ parent_name }}{# } else { #} {{ parent_name }}{# } #}{# if( parent_can_edit ) { #}{# } #}{# if( allowAdd ) { #}{# } #}{# if( parent_can_all ) { #}{# } #}
    {# if( can_all && moveAccess ) { #} {{ name }}{# } else { #} {{ name }}{# } #}{# if( can_edit ) { #}{# } #}{# if( 'edit' !== state ) { #}{# } #}{# if( can_all ) { #}{# } #}
    {# if( 'edit' !== state ) { #}
    {# } #}
    > < type="text/html" id="vc_controls-template-vc_tta_section">
    {# if( parent_can_all && moveAccess ) { #} {{ parent_name }}{# } else { #} {{ parent_name }}{# } #}{# if( parent_can_edit ) { #}{# } #}{# if( allowAdd ) { #}{# } #}{# if( parent_can_all ) { #}{# } #}
    {# if( can_all && moveAccess ) { #} {{ name }}{# } else { #} {{ name }}{# } #}{# if( can_edit ) { #}{# } #}{# if( 'edit' !== state ) { #}{# } #}{# if( can_all ) { #}{# } #}
    {# if( 'edit' !== state ) { #}
    {# } #}
    > editors/partials/.htaccess000044400000000177151732637250011650 0ustar00 Order allow,deny Deny from all editors/partials/vc_ui-settings-dropdown.tpl.php000060400000001355151732637250016153 0ustar00
    editors/partials/backend_editor_footer.tpl.php000060400000002347151732637250015673 0ustar00render(); // [/add element box] // [rendering edit form] wpbakery()->editForm()->render(); // [/rendering edit form] // [rendering templates panel editor] if ( vc_user_access()->part( 'templates' )->can()->get() ) { wpbakery()->templatesPanelEditor()->renderUITemplate(); } // [/rendering templates panel editor] // [preset panel editor render] wpbakery()->presetPanelEditor()->renderUIPreset(); // [/preset panel editor render] // [post settings] if ( vc_user_access()->part( 'post_settings' )->can()->get() ) { require_once vc_path_dir( 'EDITORS_DIR', 'popups/class-vc-post-settings.php' ); $post_settings = new Vc_Post_Settings( $editor ); $post_settings->renderUITemplate(); } // [/post settings] // [shortcode edit layout] require_once vc_path_dir( 'EDITORS_DIR', 'popups/class-vc-edit-layout.php' ); $edit_layout = new Vc_Edit_Layout(); $edit_layout->renderUITemplate(); // [/shortcode edit layout] vc_include_template( 'editors/partials/backend-shortcodes-templates.tpl.php' ); editors/partials/access-manager-js.tpl.php000060400000010163151732637250014636 0ustar00 < id="vc_role_access_manager_script"> (function ( $ ) { var _localCapabilities, _check, _groupAccessRules, _shortcodesPartSet, _mergedCaps; _localCapabilities = ; _shortcodesPartSet = part( 'shortcodes' )->checkStateAny( true, null )->get() ? 'true' : 'false'; ?>; _groupAccessRules = wp_get_current_user()->roles ), (array) vc_settings()->get( 'groups_access_rules' ) ) ); ?>; _mergedCaps = part( 'shortcodes' )->getMergedCaps() ); ?>; _check = function ( part, rule, custom, not_check_state ) { var state, partObj, findRule; partObj = _.isUndefined( _localCapabilities[ part ] ) ? {} : _localCapabilities[ part ]; rule = vc_user_access().updateMergedCaps( rule ); if ( ! not_check_state ) { state = _.isUndefined( partObj.state ) ? false : partObj.state; // if we don't have state it is incorrect part if ( null === state ) { return true; } else if ( _.isBoolean( state ) ) { return state; } } findRule = ( _.isUndefined( partObj.capabilities ) || _.isUndefined( partObj.capabilities[ rule ] ) ) ? false : partObj.capabilities[ rule ]; return _.isBoolean( findRule ) ? findRule : findRule === custom; }; // global function window.vc_user_access = function () { return { editor: function ( editor ) { return this.partAccess( editor ); }, partAccess: function ( editor ) { return !_.isUndefined( _localCapabilities[ editor ] ) && false !== _localCapabilities[ editor ][ 'state' ]; }, check: function ( part, rule, custom, not_check_state ) { return _check( part, rule, custom, not_check_state ); }, getState: function ( part ) { var state, partObj; partObj = _.isUndefined( _localCapabilities[ 'shortcodes' ] ) ? {} : _localCapabilities[ part ]; state = _.isUndefined( partObj.state ) ? false : partObj.state; return state; }, shortcodeAll: function ( shortcode ) { if ( ! _shortcodesPartSet ) { return this.shortcodeValidateOldMethod( shortcode ); } var state = this.getState( 'shortcodes' ); if ( state === 'edit' ) { return false; } return _check( 'shortcodes', shortcode + '_all' ); }, shortcodeEdit: function ( shortcode ) { if ( ! _shortcodesPartSet ) { return this.shortcodeValidateOldMethod( shortcode ); } var state = this.getState( 'shortcodes' ); if ( state === 'edit' ) { return true; } return _check( 'shortcodes', shortcode + '_all' ) || _check( 'shortcodes', shortcode + '_edit' ); }, shortcodeValidateOldMethod: function ( shortcode ) { if ( 'vc_row' === shortcode ) { return true; } return _.every( _groupAccessRules.current_user, function ( role ) { return ! (! _.isUndefined( _groupAccessRules[ role ] ) && ! _.isUndefined( _groupAccessRules[ role ][ 'shortcodes' ] ) && _.isUndefined( _groupAccessRules[ role ][ 'shortcodes' ][ shortcode ] )); } ); }, updateMergedCaps: function ( rule ) { if ( undefined !== _mergedCaps[ rule ] ) { return _mergedCaps[ rule ]; } return rule; }, isBlockEditorIsEnabled: function () { return ; } }; }; })( window.jQuery ); > editors/partials/add_element_tabs.tpl.php000060400000003741151732637250014631 0ustar00 esc_html__( 'All', 'js_composer' ), 'active' => true, 'filter' => '*', ), ); foreach ( $categories as $key => $name ) { if ( '_other_category_' === $name ) { $other_tab = array( 'name' => esc_html__( 'Other', 'js_composer' ), 'filter' => '.js-category-' . $key, 'active' => false, ); continue; } if ( 'deprecated' === $name ) { $name = esc_html__( 'Deprecated', 'js_composer' ); $filter = '.js-category-deprecated'; } elseif ( '_my_elements_' === $name ) { $name = esc_html__( 'My Elements', 'js_composer' ); $filter = '.js-category-_my_elements_'; } else { $filter = '.js-category-' . md5( $name ); } $tabs[] = array( 'name' => $name, 'filter' => $filter, 'active' => false, ); } if ( $other_tab ) { $tabs[] = $other_tab; } $tabs = apply_filters( 'vc_add_element_categories', $tabs ); ?> editors/partials/backend_controls.tpl.php000060400000004411151732637250014664 0ustar00part( 'dragndrop' )->checkStateAny( true, null )->get(); // @codingStandardsIgnoreStart ?>
    '; endif; echo esc_html( $name ); ?>
    editors/frontend_template.tpl.php000060400000001050151732637250013241 0ustar00
    parseShortcodesString( $editor->getTemplateContent() ) ); ?>
    post_shortcodes ) ); ?>
    editors/frontend_editor.tpl.php000060400000012234151732637250012722 0ustar00post_id; $post = $editor->post; $post_type = $post->post_type; $post_type_object = get_post_type_object( $post_type ); $post_title = trim( $post->post_title ); $nonce_action = $nonce_action = 'update-post_' . $editor->post_id; $user_ID = isset( $editor->current_user ) && isset( $editor->current_user->ID ) ? (int) $editor->current_user->ID : 0; $form_action = 'editpost'; $menu = array(); add_thickbox(); wp_enqueue_media( array( 'post' => $editor->post_id ) ); require_once $editor->adminFile( 'admin-header.php' ); // @since 4.8 js logic for user role access manager. vc_include_template( 'editors/partials/access-manager-js.tpl.php' ); $custom_tag = 'script'; ?>
    <> document.getElementById( 'vc_preloader' ).style.height = window.screen.availHeight; window.vc_mode = ''; window.vc_iframe_src = 'url ); ?>'; window.wpbGutenbergEditorUrl = ''; > render(); // [/vc_navbar frontend] ?>
    render(); // [/add element popup/box] // [shortcodes edit form panel render] wpbakery()->editForm()->render(); // [/shortcodes edit form panel render] // [templates panel editor render] if ( vc_user_access()->part( 'templates' )->can()->get() ) { wpbakery()->templatesPanelEditor()->renderUITemplate(); } // [/templates panel editor render] // [preset panel editor render] wpbakery()->presetPanelEditor()->renderUIPreset(); // [/preset panel editor render] // [post settings panel render] if ( vc_user_access()->part( 'post_settings' )->can()->get() ) { require_once vc_path_dir( 'EDITORS_DIR', 'popups/class-vc-post-settings.php' ); $post_settings = new Vc_Post_Settings( $editor ); $post_settings->renderUITemplate(); } // [/post settings panel render] // [panel edit layout render] require_once vc_path_dir( 'EDITORS_DIR', 'popups/class-vc-edit-layout.php' ); $edit_layout = new Vc_Edit_Layout(); $edit_layout->renderUITemplate(); // [/panel edit layout render] // fe controls vc_include_template( 'editors/partials/frontend_controls.tpl.php' ); // [shortcodes presets data] if ( vc_user_access()->part( 'presets' )->can()->get() ) { require_once vc_path_dir( 'AUTOLOAD_DIR', 'class-vc-settings-presets.php' ); $vc_vendor_settings_presets = Vc_Settings_Preset::listDefaultVendorSettingsPresets(); $vc_all_presets = Vc_Settings_Preset::listAllPresets(); } else { $vc_vendor_settings_presets = array(); $vc_all_presets = array(); } // [/shortcodes presets data] ?> <> window.vc_user_mapper = ; window.vc_mapper = ; window.vc_vendor_settings_presets = ; window.vc_all_presets = ; window.vc_roles = []; window.vcAdminNonce = ''; window.wpb_js_google_fonts_save_nonce = ''; window.vc_post_id = ; >
    300, 'tinymce' => array( 'resize' => false, 'wp_autoresize_on' => false, 'add_unload_trigger' => false, 'wp_keep_scroll_position' => ! $is_IE, ), ) ); // Fix: WP 4.0 wp_dequeue_script( 'editor-expand' ); do_action( 'vc_frontend_editor_render_template' ); ?>
    adminFile( 'admin-footer.php' ); ?> editors/.htaccess000044400000000177151732637250010031 0ustar00 Order allow,deny Deny from all shortcodes/vc_line_chart.php000060400000012017151732637250012242 0ustar00getShortcode(), $atts ); extract( $atts ); $base_colors = array( 'normal' => array( 'blue' => '#5472d2', 'turquoise' => '#00c1cf', 'pink' => '#fe6c61', 'violet' => '#8d6dc4', 'peacoc' => '#4cadc9', 'chino' => '#cec2ab', 'mulled-wine' => '#50485b', 'vista-blue' => '#75d69c', 'orange' => '#f7be68', 'sky' => '#5aa1e3', 'green' => '#6dab3c', 'juicy-pink' => '#f4524d', 'sandy-brown' => '#f79468', 'purple' => '#b97ebb', 'black' => '#2a2a2a', 'grey' => '#ebebeb', 'white' => '#ffffff', 'default' => '#f7f7f7', 'primary' => '#0088cc', 'info' => '#58b9da', 'success' => '#6ab165', 'warning' => '#ff9900', 'danger' => '#ff675b', 'inverse' => '#555555', ), 'active' => array( 'blue' => '#3c5ecc', 'turquoise' => '#00a4b0', 'pink' => '#fe5043', 'violet' => '#7c57bb', 'peacoc' => '#39a0bd', 'chino' => '#c3b498', 'mulled-wine' => '#413a4a', 'vista-blue' => '#5dcf8b', 'orange' => '#f5b14b', 'sky' => '#4092df', 'green' => '#5f9434', 'juicy-pink' => '#f23630', 'sandy-brown' => '#f57f4b', 'purple' => '#ae6ab0', 'black' => '#1b1b1b', 'grey' => '#dcdcdc', 'white' => '#f0f0f0', 'default' => '#e8e8e8', 'primary' => '#0074ad', 'info' => '#3fafd4', 'success' => '#59a453', 'warning' => '#e08700', 'danger' => '#ff4b3c', 'inverse' => '#464646', ), ); $colors = array( 'flat' => array( 'normal' => $base_colors['normal'], 'active' => $base_colors['active'], ), ); foreach ( $base_colors['normal'] as $name => $color ) { $colors['modern']['normal'][ $name ] = array( vc_colorCreator( $color, 7 ), $color ); } foreach ( $base_colors['active'] as $name => $color ) { $colors['modern']['active'][ $name ] = array( vc_colorCreator( $color, 7 ), $color ); } wp_enqueue_script( 'vc_line_chart' ); $class_to_filter = 'vc_chart vc_line-chart wpb_content_element'; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $options = array(); if ( ! empty( $legend ) ) { $options[] = 'data-vc-legend="1"'; } if ( ! empty( $tooltips ) ) { $options[] = 'data-vc-tooltips="1"'; } if ( ! empty( $animation ) ) { $options[] = 'data-vc-animation="' . esc_attr( str_replace( 'easein', 'easeIn', $animation ) ) . '"'; } $values = (array) vc_param_group_parse_atts( $values ); $data = array( 'labels' => explode( ';', trim( $x_values, ';' ) ), 'datasets' => array(), ); foreach ( $values as $k => $v ) { if ( 'custom' === $style ) { if ( ! empty( $v['custom_color'] ) ) { $color = $v['custom_color']; $highlight = vc_colorCreator( $v['custom_color'], - 10 ); // 10% darker } else { $color = 'grey'; $highlight = 'grey'; } } else { $color = isset( $colors[ $style ]['normal'][ $v['color'] ] ) ? $colors[ $style ]['normal'][ $v['color'] ] : $v['normal']['color']; $highlight = isset( $colors[ $style ]['active'][ $v['color'] ] ) ? $colors[ $style ]['active'][ $v['color'] ] : $v['active']['color']; } // don't use gradients for lines if ( 'line' === $type ) { $color = is_array( $color ) ? end( $color ) : $color; $highlight = is_array( $highlight ) ? end( $highlight ) : $highlight; $rgb = vc_hex2rgb( $color ); $fill_color = 'rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.1)'; } else { $fill_color = $color; } if ( 'modern' === $style ) { $stroke_color = is_array( $color ) ? end( $color ) : $color; $highlight_stroke_color = vc_colorCreator( $stroke_color, - 7 ); } else { $stroke_color = $color; $highlight_stroke_color = $highlight; } $data['datasets'][] = array( 'label' => isset( $v['title'] ) ? $v['title'] : '', 'borderColor' => $stroke_color, 'backgroundColor' => ( 'modern' === $style ? [ $stroke_color, $highlight_stroke_color, ] : $stroke_color ), 'data' => explode( ';', isset( $v['y_values'] ) ? trim( $v['y_values'], ';' ) : '' ), ); } $options[] = 'data-vc-type="' . esc_attr( $type ) . '"'; $options[] = 'data-vc-values="' . htmlentities( wp_json_encode( $data ) ) . '"'; if ( '' !== $title ) { $title = '

    ' . $title . '

    '; } $canvas_html = ''; if ( ! empty( $el_id ) ) { $options[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = '
    ' . $title . '
    ' . $canvas_html . '
    ' . '
    ' . ' '; return $output; shortcodes/vc_tta_global.php000060400000003271151732637250012244 0ustar00getShortcode(), $atts ); $this->resetVariables( $atts, $content ); extract( $atts ); $this->setGlobalTtaInfo(); $this->enqueueTtaStyles(); $this->enqueueTtaScript(); // It is required to be before tabs-list-top/left/bottom/right for tabs/tours $prepareContent = $this->getTemplateVariable( 'content' ); $class_to_filter = $this->getTtaGeneralClasses(); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $output = '
    getWrapperAttributes() . '>'; $output .= $this->getTemplateVariable( 'title' ); $output .= '
    '; $output .= $this->getTemplateVariable( 'tabs-list-top' ); $output .= $this->getTemplateVariable( 'tabs-list-left' ); $output .= '
    '; $output .= $this->getTemplateVariable( 'pagination-top' ); $output .= '
    '; $output .= $prepareContent; $output .= '
    '; $output .= $this->getTemplateVariable( 'pagination-bottom' ); $output .= '
    '; $output .= $this->getTemplateVariable( 'tabs-list-bottom' ); $output .= $this->getTemplateVariable( 'tabs-list-right' ); $output .= '
    '; $output .= '
    '; return $output; shortcodes/vc_tta_section.php000060400000002134151732637250012445 0ustar00getShortcode(), $atts ); $this->resetVariables( $atts, $content ); WPBakeryShortCode_Vc_Tta_Section::$self_count ++; WPBakeryShortCode_Vc_Tta_Section::$section_info[] = $atts; $isPageEditable = vc_is_page_editable(); $output = ''; $output .= '
    getTemplateVariable( 'tab_id' ) ) . '"'; $output .= ' data-vc-content=".vc_tta-panel-body">'; $output .= '
    '; $output .= $this->getTemplateVariable( 'heading' ); $output .= '
    '; $output .= '
    '; if ( $isPageEditable ) { $output .= '
    '; // fix for fe - shortcodes container, not required in b.e. } $output .= $this->getTemplateVariable( 'content' ); if ( $isPageEditable ) { $output .= '
    '; } $output .= '
    '; $output .= '
    '; return $output; shortcodes/vc_posts_slider.php000060400000015353151732637250012652 0ustar00getShortcode(), $atts ); extract( $atts ); $gal_images = ''; $link_start = ''; $link_end = ''; $el_start = ''; $el_end = ''; $slides_wrap_start = ''; $slides_wrap_end = ''; if ( 'nivo' === $type ) { $type = ' wpb_slider_nivo theme-default'; wp_enqueue_script( 'nivo-slider' ); wp_enqueue_style( 'nivo-slider-css' ); wp_enqueue_style( 'nivo-slider-theme' ); $slides_wrap_start = '
    '; $slides_wrap_end = '
    '; } elseif ( 'flexslider' === $type || 'flexslider_fade' === $type || 'flexslider_slide' === $type || 'fading' === $type ) { $el_start = '
  • '; $el_end = '
  • '; $slides_wrap_start = ''; wp_enqueue_style( 'flexslider' ); wp_enqueue_script( 'flexslider' ); } $flex_fx = ''; if ( 'flexslider' === $type || 'flexslider_fade' === $type || 'fading' === $type ) { $type = ' wpb_flexslider flexslider_fade flexslider'; $flex_fx = ' data-flex_fx="fade"'; } elseif ( 'flexslider_slide' === $type ) { $type = ' wpb_flexslider flexslider_slide flexslider'; $flex_fx = ' data-flex_fx="slide"'; } if ( 'link_image' === $link ) { wp_enqueue_script( 'lightbox2' ); wp_enqueue_style( 'lightbox2' ); } $query_args = array( 'post_status' => 'publish', ); // exclude current post/page from query if ( '' !== $posts_in ) { $query_args['post__in'] = explode( ',', $posts_in ); } global $vc_posts_grid_exclude_id; $vc_posts_grid_exclude_id[] = get_the_ID(); $query_args['post__not_in'] = array( get_the_ID() ); // Post teasers count if ( '' !== $count && ! is_numeric( $count ) ) { $count = - 1; } if ( '' !== $count && is_numeric( $count ) ) { $query_args['posts_per_page'] = $count; } // Post types $pt = array(); if ( '' !== $posttypes ) { $posttypes = explode( ',', $posttypes ); foreach ( $posttypes as $post_type ) { array_push( $pt, $post_type ); } $query_args['post_type'] = $pt; } // Narrow by categories if ( '' !== $categories ) { $categories = explode( ',', $categories ); $gc = array(); foreach ( $categories as $grid_cat ) { array_push( $gc, $grid_cat ); } $gc = implode( ',', $gc ); // http://snipplr.com/view/17434/wordpress-get-category-slug/ $query_args['category_name'] = $gc; $taxonomies = get_taxonomies( '', 'object' ); $query_args['tax_query'] = array( 'relation' => 'OR' ); foreach ( $taxonomies as $t ) { if ( in_array( $t->object_type[0], $pt, true ) ) { $query_args['tax_query'][] = array( 'taxonomy' => $t->name, 'terms' => $categories, 'field' => 'slug', ); } } } // Order posts if ( null !== $orderby ) { $query_args['orderby'] = $orderby; } $query_args['order'] = $order; // Run query $my_query = new WP_Query( $query_args ); $pretty_rel_random = ' data-lightbox="lightbox[rel-' . get_the_ID() . '-' . wp_rand() . ']"'; if ( 'custom_link' === $link ) { $custom_links = explode( ',', vc_value_from_safe( $custom_links ) ); } $teasers = ''; $i = - 1; while ( $my_query->have_posts() ) { $i ++; $my_query->the_post(); $post_title = the_title( '', '', false ); $post_id = $my_query->post->ID; if ( in_array( get_the_ID(), $vc_posts_grid_exclude_id, true ) ) { continue; } if ( 'teaser' === $slides_content ) { $content = apply_filters( 'the_excerpt', get_the_excerpt() ); } else { $content = ''; } $thumbnail = ''; // Thumbnail logic $post_thumbnail = $p_img_large = ''; $post_thumbnail = wpb_getImageBySize( array( 'post_id' => $post_id, 'thumb_size' => $thumb_size, ) ); $thumbnail = $post_thumbnail['thumbnail']; $p_img_large = $post_thumbnail['p_img_large']; // Link logic if ( 'link_no' !== $link ) { if ( 'link_post' === $link ) { $link_image_start = ''; } elseif ( 'link_image' === $link ) { $p_video = get_post_meta( $post_id, '_p_video', true ); if ( '' !== $p_video ) { $p_link = $p_video; } else { $p_link = isset( $p_img_large[0] ) ? $p_img_large[0] : ''; } $link_image_start = ''; } elseif ( 'custom_link' === $link ) { if ( isset( $custom_links[ $i ] ) ) { $slide_custom_link = $custom_links[ $i ]; } else { $slide_custom_link = $custom_links[0]; } $link_image_start = ''; } $link_image_end = ''; } else { $link_image_start = ''; $link_image_end = ''; } $description = ''; if ( '' !== $slides_content && '' !== $content && ( ' wpb_flexslider flexslider_fade flexslider' === $type || ' wpb_flexslider flexslider_slide flexslider' === $type ) ) { $description = '
    '; if ( $slides_title ) { $description .= '

    ' . $link_image_start . $post_title . $link_image_end . '

    '; } $description .= $content; $description .= '
    '; } $teasers .= $el_start . $link_image_start . $thumbnail . $link_image_end . $description . $el_end; }//end while wp_reset_postdata(); if ( $teasers ) { $teasers = $slides_wrap_start . $teasers . $slides_wrap_end; } else { $teasers = esc_html__( 'Nothing found.', 'js_composer' ); } $class_to_filter = 'wpb_gallery wpb_posts_slider wpb_content_element'; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = '
    ' . wpb_widget_title( array( 'title' => $title, 'extraclass' => 'wpb_posts_slider_heading', ) ) . '
    '; return $output; shortcodes/vc_cta_button2.php000060400000004543151732637250012363 0ustar00getShortcode(), $atts ); extract( $atts ); $class = 'vc_call_to_action wpb_content_element'; $link = ( '||' === $link ) ? '' : $link; $class .= ( '' !== $position ) ? ' vc_cta_btn_pos_' . $position : ''; $class .= ( '' !== $el_width ) ? ' vc_el_width_' . $el_width : ''; $class .= ( '' !== $color ) ? ' vc_cta_' . $color : ''; $class .= ( '' !== $style ) ? ' vc_cta_' . $style : ''; $class .= ( '' !== $txt_align ) ? ' vc_txt_align_' . $txt_align : ''; $inline_css = ( '' !== $accent_color ) ? ' style="' . vc_get_css_color( 'background-color', $accent_color ) . vc_get_css_color( 'border-color', $accent_color ) . '"' : ''; $class .= $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class, $this->settings['base'], $atts ); $css_class .= $this->getCSSAnimation( $css_animation ); $output = ''; $output .= '
    '; if ( '' !== $link && 'bottom' !== $position ) { $output .= do_shortcode( '[vc_button2 align="' . $position . '" link="' . $link . '" title="' . $title . '" color="' . $color . '" size="' . $size . '" style="' . $btn_style . '" el_class="vc_cta_btn"]' ); } if ( '' !== $h2 || '' !== $h4 ) { $output .= '
    '; if ( '' !== $h2 ) { $output .= '

    ' . $h2 . '

    '; } if ( '' !== $h4 ) { $output .= '

    ' . $h4 . '

    '; } $output .= '
    '; } $output .= wpb_js_remove_wpautop( $content, true ); if ( '' !== $link && 'bottom' === $position ) { $output .= do_shortcode( '[vc_button2 link="' . $link . '" title="' . $title . '" color="' . $color . '" size="' . $size . '" style="' . $btn_style . '" el_class="vc_cta_btn"]' ); } $output .= '
    '; echo $output; shortcodes/vc_toggle.php000060400000003773151732637250011424 0ustar00getShortcode(), $atts ); extract( $atts ); // checking is color inverted $style = str_replace( '_outline', '', $style, $inverted ); /** * @since 4.4 */ $elementClass = array( 'base' => apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'vc_toggle', $this->settings['base'], $atts ), // TODO: check this code, don't know how to get base class names from params 'style' => 'vc_toggle_' . $style, 'color' => ( $color ) ? 'vc_toggle_color_' . $color : '', 'inverted' => ( $inverted ) ? 'vc_toggle_color_inverted' : '', 'size' => ( $size ) ? 'vc_toggle_size_' . $size : '', 'open' => ( 'true' === $open ) ? 'vc_toggle_active' : '', 'extra' => $this->getExtraClass( $el_class ), 'css_animation' => $this->getCSSAnimation( $css_animation ), // TODO: remove getCssAnimation as function in helpers ); $class_to_filter = trim( implode( ' ', $elementClass ) ); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $heading_output = apply_filters( 'wpb_toggle_heading', $this->getHeading( $atts ), array( 'title' => $title, 'open' => $open, ) ); $output = '
    ' . $heading_output . '
    ' . wpb_js_remove_wpautop( apply_filters( 'the_content', $content ), true ) . '
    '; return $output; shortcodes/vc_gitem_image.php000060400000000171151732637250012377 0ustar00getShortcode(), $atts ); extract( $atts ); $class_to_filter = ''; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); // Enqueue needed icon font. vc_icon_element_fonts_enqueue( $type ); $url = vc_build_link( $link ); $has_style = false; if ( strlen( $background_style ) > 0 ) { $has_style = true; if ( false !== strpos( $background_style, 'outline' ) ) { $background_style .= ' vc_icon_element-outline'; // if we use outline style it is border in css } else { $background_style .= ' vc_icon_element-background'; } } $iconClass = isset( ${'icon_' . $type} ) ? esc_attr( ${'icon_' . $type} ) : 'fa fa-adjust'; $style = ''; if ( 'custom' === $background_color ) { if ( false !== strpos( $background_style, 'outline' ) ) { $style = 'border-color:' . $custom_background_color; } else { $style = 'background-color:' . $custom_background_color; } } $style = $style ? ' style="' . esc_attr( $style ) . '"' : ''; $rel = ''; if ( ! empty( $url['rel'] ) ) { $rel = ' rel="' . esc_attr( $url['rel'] ) . '"'; } $output = ''; $output .= '
    '; if ( strlen( $link ) > 0 && strlen( $url['url'] ) > 0 ) { $output .= ''; } $output .= '
    '; return $output; shortcodes/vc_gitem_animated_block.php000060400000002223151732637250014251 0ustar00 '', // unmapped 'animation' => '', ), $atts ) ); $css_style = ''; $css_class = 'vc_gitem-animated-block ' . vc_shortcode_custom_css_class( $css, ' ' ); if ( ! empty( $animation ) ) { $css_class .= ' vc_gitem-animate vc_gitem-animate-' . $animation; $animation_attr .= ' data-vc-animation="' . esc_attr( $animation ) . '"'; } elseif ( 'vc_gitem_preview' !== vc_request_param( 'action' ) && vc_verify_admin_nonce() && ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ) ) ) { $content = preg_replace( '/(?<=\[)(vc_gitem_zone_b\b)/', '$1 render="no"', $content ); } $output = ''; $output .= '
    '; $output .= do_shortcode( $content ); $output .= '
    '; echo $output; shortcodes/layerslider_vc.php000060400000001536151732637250012455 0ustar00getShortcode(), $atts ); extract( $atts ); $el_class = $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_layerslider_element wpb_content_element' . $el_class, $this->settings['base'], $atts ); $output .= '
    '; $output .= wpb_widget_title( array( 'title' => $title, 'extraclass' => 'wpb_layerslider_heading', ) ); $output .= apply_filters( 'vc_layerslider_shortcode', do_shortcode( '[layerslider id="' . esc_attr( $id ) . '"]' ) ); $output .= '
    '; echo $output; shortcodes/vc_hoverbox.php000060400000004675151732637250012001 0ustar00getShortcode(), $atts ); if ( ! empty( $atts['image'] ) ) { $image = intval( $atts['image'] ); $image_data = wp_get_attachment_image_src( $image, 'large' ); $image_src = $image_data[0]; } else { $image_src = vc_asset_url( 'vc/no_image.png' ); } $image_src = esc_url( $image_src ); $align = 'vc-hoverbox-align--' . esc_attr( $atts['align'] ); $shape = 'vc-hoverbox-shape--' . esc_attr( $atts['shape'] ); $width = 'vc-hoverbox-width--' . esc_attr( $atts['el_width'] ); $reverse = 'vc-hoverbox-direction--default'; if ( ! empty( $atts['reverse'] ) ) { $reverse = 'vc-hoverbox-direction--reverse'; } $id = ''; if ( ! empty( $atts['el_id'] ) ) { $id = 'id="' . esc_attr( $atts['el_id'] ) . '"'; } $class_to_filter = vc_shortcode_custom_css_class( $atts['css'], ' ' ) . $this->getExtraClass( $atts['el_class'] ) . $this->getCSSAnimation( $atts['css_animation'] ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $css_class = esc_attr( $css_class ); // Hover Background color if ( 'custom' !== $atts['hover_background_color'] ) { $hover_background_color = vc_convert_vc_color( $atts['hover_background_color'] ); } else { $hover_background_color = esc_attr( $atts['hover_custom_background'] ); } $primary_title = $this->getHeading( 'primary_title', $atts, $atts['primary_align'] ); $hover_title = $this->getHeading( 'hover_title', $atts, $atts['hover_align'] ); $content = wpb_js_remove_wpautop( $content, true ); $button = ''; if ( $atts['hover_add_button'] ) { $button = $this->renderButton( $atts ); } $template = <<
    $primary_title
    $hover_title $content $button
    HTML; return $template; shortcodes/vc_column.php000060400000006314151732637250011432 0ustar00getShortcode(), $atts ); extract( $atts ); wp_enqueue_script( 'wpb_composer_front_js' ); $width = wpb_translateColumnWidthToSpan( $width ); $width = vc_column_offset_class_merge( $offset, $width ); $css_classes = array( $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ), 'wpb_column', 'vc_column_container', $width, ); if ( vc_shortcode_custom_css_has_property( $css, array( 'border', 'background', ) ) || $video_bg || $parallax ) { $css_classes[] = 'vc_col-has-fill'; } $wrapper_attributes = array(); $has_video_bg = ( ! empty( $video_bg ) && ! empty( $video_bg_url ) && vc_extract_youtube_id( $video_bg_url ) ); $parallax_speed = $parallax_speed_bg; if ( $has_video_bg ) { $parallax = $video_bg_parallax; $parallax_speed = $parallax_speed_video; $parallax_image = $video_bg_url; $css_classes[] = 'vc_video-bg-container'; wp_enqueue_script( 'vc_youtube_iframe_api_js' ); } if ( ! empty( $parallax ) ) { wp_enqueue_script( 'vc_jquery_skrollr_js' ); $wrapper_attributes[] = 'data-vc-parallax="' . esc_attr( $parallax_speed ) . '"'; // parallax speed $css_classes[] = 'vc_general vc_parallax vc_parallax-' . $parallax; if ( false !== strpos( $parallax, 'fade' ) ) { $css_classes[] = 'js-vc_parallax-o-fade'; $wrapper_attributes[] = 'data-vc-parallax-o-fade="on"'; } elseif ( false !== strpos( $parallax, 'fixed' ) ) { $css_classes[] = 'js-vc_parallax-o-fixed'; } } if ( ! empty( $parallax_image ) ) { if ( $has_video_bg ) { $parallax_image_src = $parallax_image; } else { $parallax_image_id = preg_replace( '/[^\d]/', '', $parallax_image ); $parallax_image_src = wp_get_attachment_image_src( $parallax_image_id, 'full' ); if ( ! empty( $parallax_image_src[0] ) ) { $parallax_image_src = $parallax_image_src[0]; } } $wrapper_attributes[] = 'data-vc-parallax-image="' . esc_attr( $parallax_image_src ) . '"'; } if ( ! $parallax && $has_video_bg ) { $wrapper_attributes[] = 'data-vc-video-bg="' . esc_attr( $video_bg_url ) . '"'; } $css_class = preg_replace( '/\s+/', ' ', apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode( ' ', array_filter( $css_classes ) ), $this->settings['base'], $atts ) ); $wrapper_attributes[] = 'class="' . esc_attr( trim( $css_class ) ) . '"'; if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output .= '
    '; $innerColumnClass = 'vc_column-inner ' . esc_attr( trim( vc_shortcode_custom_css_class( $css ) ) ); $output .= '
    '; $output .= '
    '; $output .= wpb_js_remove_wpautop( $content ); $output .= '
    '; $output .= '
    '; $output .= '
    '; echo $output; shortcodes/vc_facebook.php000060400000002357151732637250011711 0ustar00getShortcode(), $atts ); extract( $atts ); $url = get_permalink(); $el_class = isset( $el_class ) ? $el_class : ''; $class_to_filter = 'fb_like wpb_content_element fb_type_' . $type; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = '
    '; return $output; shortcodes/vc_basic_grid.php000060400000005171151732637250012223 0ustar00post_id = false; $this->items = array(); $css = $el_class = ''; $posts = $filter_terms = array(); $this->buildAtts( $atts, $content ); $css = isset( $atts['css'] ) ? $atts['css'] : ''; $el_class = isset( $atts['el_class'] ) ? $atts['el_class'] : ''; $class_to_filter = 'vc_grid-container vc_clearfix wpb_content_element ' . $this->shortcode; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); wp_enqueue_script( 'lightbox2' ); wp_enqueue_style( 'lightbox2' ); if ( 'true' === $this->atts['btn_add_icon'] ) { vc_icon_element_fonts_enqueue( $this->atts['btn_i_type'] ); } $this->buildGridSettings(); if ( isset( $this->atts['style'] ) && 'pagination' === $this->atts['style'] ) { wp_enqueue_script( 'twbs-pagination' ); } if ( ! empty( $atts['page_id'] ) ) { $this->grid_settings['page_id'] = (int) $atts['page_id']; } $this->enqueueScripts(); $animation = isset( $this->atts['initial_loading_animation'] ) ? $this->atts['initial_loading_animation'] : 'zoomIn'; // Used for preload first page if ( ! vc_is_page_editable() ) { $haystack = array( 'load-more', 'lazy', 'all', ); if ( in_array( $this->atts['style'], $haystack, true ) && in_array( $this->settings['base'], array( 'vc_basic_grid' ), true ) ) { $this->atts['max_items'] = 'all' === $this->atts['style'] || $this->atts['items_per_page'] > $this->atts['max_items'] ? $this->atts['max_items'] : $this->atts['items_per_page']; $this->buildItems(); } } $render = false; if ( ! isset( $this->atts['orderby'] ) || 'rand' !== $this->atts['orderby'] ) { $render = true; } $output = '
    pagable_type ) . '-settings="' . esc_attr( wp_json_encode( $this->grid_settings ) ) . '" data-vc-request="' . esc_attr( apply_filters( 'vc_grid_request_url', admin_url( 'admin-ajax.php' ) ) ) . '" data-vc-post-id="' . esc_attr( get_the_ID() ) . '" data-vc-public-nonce="' . esc_attr( vc_generate_nonce( 'vc-public-nonce' ) ) . '"> ' . ( $render ? $this->renderItems() : '' ) . '
    '; return $output; shortcodes/vc_accordion_tab.php000060400000001775151732637250012732 0ustar00getShortcode(), $atts ); extract( $atts ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_accordion_section group', $this->settings['base'], $atts ); $output = '

    ' . $title . '

    ' . ( ( '' === trim( $content ) ) ? esc_html__( 'Empty section. Edit page to add content here.', 'js_composer' ) : wpb_js_remove_wpautop( $content ) ) . '
    '; return $output; shortcodes/vc_gitem_row.php000060400000001352151732637250012126 0ustar00 '', 'el_class' => '', 'position' => 'top', ), $atts ) ); $css_class = 'vc_gitem_row vc_row' . ( strlen( $el_class ) ? ' ' . $el_class : '' ) . vc_shortcode_custom_css_class( $css, ' ' ) . ( $position ? ' vc_gitem-row-position-' . $position : '' ); if ( ! vc_gitem_has_content( $content ) ) { return; } $output = '
    ' . do_shortcode( $content ) . '
    '; echo $output; shortcodes/vc_cta.php000060400000003431151732637250010701 0ustar00getShortcode(), $atts ); $this->buildTemplate( $atts, $content ); $containerClass = trim( 'vc_cta3-container ' . esc_attr( implode( ' ', $this->getTemplateVariable( 'container-class' ) ) ) ); $cssClass = trim( 'vc_general ' . esc_attr( implode( ' ', $this->getTemplateVariable( 'css-class' ) ) ) ); $output = ''; $output .= '
    '; $output .= '
    getTemplateVariable( 'inline-css' ) ) { $output .= ' style="' . esc_attr( implode( ' ', $this->getTemplateVariable( 'inline-css' ) ) ) . '"'; } $output .= '>'; // div $output .= $this->getTemplateVariable( 'icons-top' ); $output .= $this->getTemplateVariable( 'icons-left' ); $output .= '
    '; $output .= $this->getTemplateVariable( 'actions-top' ); $output .= $this->getTemplateVariable( 'actions-left' ); $output .= '
    '; $output .= '
    '; $output .= $this->getTemplateVariable( 'heading1' ); $output .= $this->getTemplateVariable( 'heading2' ); $output .= '
    '; $output .= $this->getTemplateVariable( 'content' ); $output .= '
    '; $output .= $this->getTemplateVariable( 'actions-bottom' ); $output .= $this->getTemplateVariable( 'actions-right' ); $output .= '
    '; $output .= $this->getTemplateVariable( 'icons-bottom' ); $output .= $this->getTemplateVariable( 'icons-right' ); $output .= '
    '; return $output; shortcodes/vc_message.php000060400000006120151732637250011554 0ustar00convertAttributesToMessageBox2( $atts ); $atts = vc_map_get_attributes( $this->getShortcode(), $atts ); extract( $atts ); $elementClass = array( 'base' => apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'vc_message_box', $this->settings['base'], $atts ), 'style' => 'vc_message_box-' . $message_box_style, 'shape' => 'vc_message_box-' . $style, 'color' => ( ( strlen( $color ) > 0 && false === strpos( 'alert', $color ) ) ? ( 'vc_color-' . $color ) : ( 'vc_color-' . $message_box_color ) ), 'css_animation' => $this->getCSSAnimation( $css_animation ), ); $class_to_filter = preg_replace( array( '/\s+/', '/^\s|\s$/', ), array( ' ', '', ), implode( ' ', $elementClass ) ); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); // Pick up icons $iconClass = isset( ${'icon_' . $icon_type} ) ? ${'icon_' . $icon_type} : $defaultIconClass; switch ( $color ) { case 'info': $icon_type = 'fontawesome'; $iconClass = 'fas fa-info-circle'; break; case 'alert-info': $icon_type = 'pixelicons'; $iconClass = 'vc_pixel_icon vc_pixel_icon-info'; break; case 'success': $icon_type = 'fontawesome'; $iconClass = 'fas fa-check'; break; case 'alert-success': $icon_type = 'pixelicons'; $iconClass = 'vc_pixel_icon vc_pixel_icon-tick'; break; case 'warning': $icon_type = 'fontawesome'; $iconClass = 'fas fa-exclamation-triangle'; break; case 'alert-warning': $icon_type = 'pixelicons'; $iconClass = 'vc_pixel_icon vc_pixel_icon-alert'; break; case 'danger': $icon_type = 'fontawesome'; $iconClass = 'fas fa-times'; break; case 'alert-danger': $icon_type = 'pixelicons'; $iconClass = 'vc_pixel_icon vc_pixel_icon-explanation'; break; case 'alert-custom': default: break; } // Enqueue needed font for icon element if ( 'pixelicons' !== $icon_type ) { vc_icon_element_fonts_enqueue( $icon_type ); } $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = ''; $output .= '
    ' . '
    ' . wpb_js_remove_wpautop( $content, true ) . '
    '; return $output; shortcodes/vc_gitem_post_meta.php000060400000001552151732637250013314 0ustar00getShortcode(), $atts ); extract( $atts ); $css_class = 'vc_gitem-post-meta-field-' . $key . ( strlen( $el_class ) ? ' ' . $el_class : '' ) . ( strlen( $align ) ? ' vc_gitem-align-' . $align : '' ); if ( strlen( $label ) ) { $label_html = '' . esc_html( $label ) . ''; } $output = ''; if ( strlen( $key ) ) { $output .= '
    '; $output .= $label_html; $output .= '{{ post_meta_value:' . esc_attr( $key ) . ' }}'; $output .= '
    '; } return $output; shortcodes/vc_wp_text.php000060400000002275151732637250011631 0ustar00getShortcode(), $atts ); $atts['filter'] = true; // Hack to make sure that

    added extract( $atts ); $el_class = $this->getExtraClass( $el_class ); $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $output = '

    '; $type = 'WP_Widget_Text'; $args = array(); $content = apply_filters( 'vc_wp_text_widget_shortcode', $content ); if ( strlen( $content ) > 0 ) { $atts['text'] = $content; } global $wp_widget_factory; // to avoid unwanted warnings let's check before using widget if ( is_object( $wp_widget_factory ) && isset( $wp_widget_factory->widgets, $wp_widget_factory->widgets[ $type ] ) ) { ob_start(); the_widget( $type, $atts, $args ); $output .= ob_get_clean(); $output .= '
    '; return $output; } shortcodes/vc_gitem_block.php000060400000001315151732637250012410 0ustar00getShortcode(), $atts ); extract( $atts ); if ( ! empty( $background_color ) ) { $background_color = ' vc_bg-' . $background_color; } $output = '
    ' . do_shortcode( $content ) . '
    '; echo $output; shortcodes/vc_gmaps.php000060400000004040151732637250011236 0ustar00getShortcode(), $atts ); extract( $atts ); $zoom = 14; // deprecated 4.0.2. In 4.6 was moved outside from shortcode_atts $type = 'm'; // deprecated 4.0.2 $bubble = ''; // deprecated 4.0.2 if ( '' === $link ) { return null; } $link = trim( vc_value_from_safe( $link ) ); $bubble = ( '' !== $bubble && '0' !== $bubble ) ? '&iwloc=near' : ''; $size = str_replace( array( 'px', ' ', ), array( '', '', ), $size ); if ( is_numeric( $size ) ) { $link = preg_replace( '/height="[0-9]*"/', 'height="' . $size . '"', $link ); } $class_to_filter = 'wpb_gmaps_widget wpb_content_element' . ( '' === $size ? ' vc_map_responsive' : '' ); $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $output = ''; $output .= '
    '; $output .= wpb_widget_title( array( 'title' => $title, 'extraclass' => 'wpb_map_heading', ) ); $output .= '
    '; if ( preg_match( '/^\'; } $output .= '
    '; return $output; shortcodes/vc_text_separator.php000060400000006333151732637250013202 0ustar00getShortcode(), $atts ); extract( $atts ); $class = 'vc_separator wpb_content_element'; $class .= ( '' !== $title_align ) ? ' vc_' . $title_align : ''; $class .= ( '' !== $el_width ) ? ' vc_sep_width_' . $el_width : ' vc_sep_width_100'; $class .= ( '' !== $style ) ? ' vc_sep_' . $style : ''; $class .= ( '' !== $border_width ) ? ' vc_sep_border_width_' . $border_width : ''; $class .= ( '' !== $align ) ? ' vc_sep_pos_' . $align : ''; $class .= ( 'separator_no_text' === $layout ) ? ' vc_separator_no_text' : ''; if ( '' !== $color && 'custom' !== $color ) { $class .= ' vc_sep_color_' . $color; } if ( 'custom' === $color && '' !== $accent_color ) { if ( 'shadow' === $style ) { $inline_css = vc_get_css_color( 'color', $accent_color ); } else { $inline_css = vc_get_css_color( 'border-color', $accent_color ); } if ( $inline_css ) { $inline_css = ' style="' . $inline_css .'"'; } } $inline_css = esc_attr( $inline_css ); $class_to_filter = $class; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); $css_class = esc_attr( trim( $css_class ) ); $icon = ''; if ( 'true' === $add_icon ) { vc_icon_element_fonts_enqueue( $i_type ); $icon = $this->getVcIcon( $atts ); } $content = ''; if ( $icon ) { $content = $icon; } if ( '' !== $title && 'separator_no_text' !== $layout ) { $css_class .= ' vc_separator-has-text'; $content .= '

    ' . $title . '

    '; } $wrapper_attributes = array(); if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } $wrapper_attributes_html = implode( ' ', $wrapper_attributes ); $separatorHtml = <<