PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } define( 'TAB_TITLE', __( 'Tab', 'js_composer' ) ); require_once vc_path_dir( 'SHORTCODES_DIR', 'vc-column.php' ); class WPBakeryShortCode_VC_Tab extends WPBakeryShortCode_VC_Column { protected $controls_css_settings = 'tc vc_control-container'; protected $controls_list = array( 'add', 'edit', 'clone', 'delete' ); protected $predefined_atts = array( 'tab_id' => '', 'title' => '', ); protected $controls_template_file = 'editors/partials/backend_controls_tab.tpl.php'; public function __construct( $settings ) { parent::__construct( $settings ); } public function customAdminBlockParams() { return ' id="tab-' . $this->atts['tab_id'] . '"'; } public function mainHtmlBlockParams( $width, $i ) { $sortable = ( vc_user_access_check_shortcode_all( $this->shortcode ) ? 'wpb_sortable' : $this->nonDraggableClass ); return 'data-element_type="' . $this->settings['base'] . '" class="wpb_' . $this->settings['base'] . ' ' . $sortable . ' wpb_content_holder"' . $this->customAdminBlockParams(); } public function containerHtmlBlockParams( $width, $i ) { return 'class="wpb_column_container vc_container_for_children"'; } public function getColumnControls( $controls, $extended_css = '' ) { return $this->getColumnControlsModular( $extended_css ); } } /** * @param $settings * @param $value * * @since 4.4 * @return string */ function vc_tab_id_settings_field( $settings, $value ) { return '<div class="my_param_block">' . '<input name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" type="hidden" value="' . $value . '" />' . '<label>' . $value . '</label>' . '</div>'; // TODO: Add data-js-function to documentation } vc_add_shortcode_param( 'tab_id', 'vc_tab_id_settings_field' );
[+]
..
[-] shortcodes.php
[edit]
[-] vc-images-carousel.php
[edit]
[-] vc-zigzag.php
[edit]
[-] vc-empty-space.php
[edit]
[-] vc-posts-slider.php
[edit]
[-] vc-cta.php
[edit]
[-] vc-tta-section.php
[edit]
[-] vc-cta-button2.php
[edit]
[-] vc-gitem-post-categories.php
[edit]
[-] vc-pie.php
[edit]
[-] vc-progress-bar.php
[edit]
[-] vc-gitem-zone-b.php
[edit]
[-] vc-button2.php
[edit]
[-] vc-accordion.php
[edit]
[-] vc-posts-grid.php
[edit]
[-] vc-tabs.php
[edit]
[-] vc-gitem-post-author.php
[edit]
[-] vc-gitem-col.php
[edit]
[-] vc-facebook.php
[edit]
[-] vc-widget-sidebar.php
[edit]
[-] vc-hoverbox.php
[edit]
[-] vc-single-image.php
[edit]
[-] vc-gitem-zone-c.php
[edit]
[-] example.php
[edit]
[-] vc-pinterest.php
[edit]
[-] layerslider-vc.php
[edit]
[-] vc-round-chart.php
[edit]
[-] vc-column-inner.php
[edit]
[-] vc-masonry-media-grid.php
[edit]
[-] vc-masonry-grid.php
[edit]
[-] vc-gitem-post-title.php
[edit]
[-] vc-tta-tour.php
[edit]
[-] vc-cta-button.php
[edit]
[-] vc-gmaps.php
[edit]
[-] vc-tweetmeme.php
[edit]
[-] vc-btn.php
[edit]
[-] vc-gitem-post-data.php
[edit]
[-] vc-gitem.php
[edit]
[-] vc-gitem-row.php
[edit]
[-] vc-twitter.php
[edit]
[-] vc-message.php
[edit]
[-] vc-row.php
[edit]
[-] vc-tta-tabs.php
[edit]
[-] vc-button.php
[edit]
[-] wordpress-widgets.php
[edit]
[-] vc-gitem-post-date.php
[edit]
[-] vc-gallery.php
[edit]
[-] vc-custom-field.php
[edit]
[+]
paginator
[-] vc-tta-accordion.php
[edit]
[-] vc-accordion-tab.php
[edit]
[-] rev-slider-vc.php
[edit]
[-] vc-basic-grid.php
[edit]
[-] vc-tab.php
[edit]
[-] vc-gitem-post-meta.php
[edit]
[-] vc-custom-heading.php
[edit]
[-] vc-tta-pageable.php
[edit]
[-] vc-text-separator.php
[edit]
[-] vc-video.php
[edit]
[-] vc-gitem-zone.php
[edit]
[-] vc-media-grid.php
[edit]
[-] vc-googleplus.php
[edit]
[-] vc-section.php
[edit]
[-] vc-toggle.php
[edit]
[-] vc-column-text.php
[edit]
[-] vc-tour.php
[edit]
[-] vc-gitem-image.php
[edit]
[-] vc-row-inner.php
[edit]
[-] vc-icon.php
[edit]
[-] vc-column.php
[edit]
[-] vc-separator.php
[edit]
[-] vc-line-chart.php
[edit]
[-] vc-carousel.php
[edit]
[-] vc-gitem-post-excerpt.php
[edit]
[-] vc-raw-js.php
[edit]
[-] vc-gitem-animated-block.php
[edit]
[-] vc-flickr.php
[edit]
[-] vc-raw-html.php
[edit]
[-] vc-gitem-zone-a.php
[edit]