PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
jscomposer
/
include
/
classes
/
shortcodes
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } require_once vc_path_dir( 'SHORTCODES_DIR', 'vc-tab.php' ); class WPBakeryShortCode_VC_Accordion_tab extends WPBakeryShortCode_VC_Tab { protected $controls_css_settings = 'tc vc_control-container'; protected $controls_list = array( 'add', 'edit', 'clone', 'delete' ); protected $predefined_atts = array( 'el_class' => '', 'width' => '', 'title' => '', ); public $nonDraggableClass = 'vc-non-draggable-container'; public function contentAdmin( $atts, $content = null ) { $width = $el_class = $title = ''; extract( shortcode_atts( $this->predefined_atts, $atts ) ); $output = ''; $column_controls = $this->getColumnControls( $this->settings( 'controls' ) ); $column_controls_bottom = $this->getColumnControls( 'add', 'bottom-controls' ); if ( 'column_14' === $width || '1/4' === $width ) { $width = array( 'vc_col-sm-3' ); } elseif ( 'column_14-14-14-14' === $width ) { $width = array( 'vc_col-sm-3', 'vc_col-sm-3', 'vc_col-sm-3', 'vc_col-sm-3', ); } elseif ( 'column_13' === $width || '1/3' === $width ) { $width = array( 'vc_col-sm-4' ); } elseif ( 'column_13-23' === $width ) { $width = array( 'vc_col-sm-4', 'vc_col-sm-8' ); } elseif ( 'column_13-13-13' === $width ) { $width = array( 'vc_col-sm-4', 'vc_col-sm-4', 'vc_col-sm-4' ); } elseif ( 'column_12' === $width || '1/2' === $width ) { $width = array( 'vc_col-sm-6' ); } elseif ( 'column_12-12' === $width ) { $width = array( 'vc_col-sm-6', 'vc_col-sm-6' ); } elseif ( 'column_23' === $width || '2/3' === $width ) { $width = array( 'vc_col-sm-8' ); } elseif ( 'column_34' === $width || '3/4' === $width ) { $width = array( 'vc_col-sm-9' ); } elseif ( 'column_16' === $width || '1/6' === $width ) { $width = array( 'vc_col-sm-2' ); } else { $width = array( '' ); } $sortable = ( vc_user_access_check_shortcode_all( $this->shortcode ) ? 'wpb_sortable' : $this->nonDraggableClass ); for ( $i = 0; $i < count( $width ); $i ++ ) { $output .= '<div class="group ' . $sortable . '">'; $output .= '<h3><span class="tab-label"><%= params.title %></span></h3>'; $output .= '<div ' . $this->mainHtmlBlockParams( $width, $i ) . '>'; $output .= str_replace( '%column_size%', wpb_translateColumnWidthToFractional( $width[ $i ] ), $column_controls ); $output .= '<div class="wpb_element_wrapper">'; $output .= '<div ' . $this->containerHtmlBlockParams( $width, $i ) . '>'; $output .= do_shortcode( shortcode_unautop( $content ) ); $output .= '</div>'; if ( isset( $this->settings['params'] ) ) { $inner = ''; foreach ( $this->settings['params'] as $param ) { $param_value = isset( ${$param['param_name']} ) ? ${$param['param_name']} : ''; if ( is_array( $param_value ) ) { // Get first element from the array reset( $param_value ); $first_key = key( $param_value ); $param_value = $param_value[ $first_key ]; } $inner .= $this->singleParamHtmlHolder( $param, $param_value ); } $output .= $inner; } $output .= '</div>'; $output .= str_replace( '%column_size%', wpb_translateColumnWidthToFractional( $width[ $i ] ), $column_controls_bottom ); $output .= '</div>'; $output .= '</div>'; } return $output; } public function mainHtmlBlockParams( $width, $i ) { return 'data-element_type="' . $this->settings['base'] . '" class=" wpb_' . $this->settings['base'] . '"' . $this->customAdminBlockParams(); } public function containerHtmlBlockParams( $width, $i ) { return 'class="wpb_column_container vc_container_for_children"'; } public function contentAdmin_old( $atts, $content = null ) { $width = $el_class = $title = ''; extract( shortcode_atts( $this->predefined_atts, $atts ) ); $output = ''; $column_controls = $this->getColumnControls( $this->settings( 'controls' ) ); for ( $i = 0; $i < count( $width ); $i ++ ) { $output .= '<div class="group wpb_sortable">'; $output .= '<div class="wpb_element_wrapper">'; $output .= '<div class="vc_row-fluid wpb_row_container">'; $output .= '<h3><a href="#">' . $title . '</a></h3>'; $output .= '<div data-element_type="' . $this->settings['base'] . '" class=" wpb_' . $this->settings['base'] . ' wpb_sortable">'; $output .= '<div class="wpb_element_wrapper">'; $output .= '<div class="vc_row-fluid wpb_row_container">'; $output .= do_shortcode( shortcode_unautop( $content ) ); $output .= '</div>'; if ( isset( $this->settings['params'] ) ) { $inner = ''; foreach ( $this->settings['params'] as $param ) { $param_value = isset( ${$param['param_name']} ) ? ${$param['param_name']} : ''; if ( is_array( $param_value ) ) { // Get first element from the array reset( $param_value ); $first_key = key( $param_value ); $param_value = $param_value[ $first_key ]; } $inner .= $this->singleParamHtmlHolder( $param, $param_value ); } $output .= $inner; } $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; } return $output; } protected function outputTitle( $title ) { return ''; } public function customAdminBlockParams() { return ''; } }
[+]
..
[-] vc-accordion-tab.php
[edit]
[-] vc-widget-sidebar.php
[edit]
[-] vc-separator.php
[edit]
[-] vc-tta-accordion.php
[edit]
[-] vc-row-inner.php
[edit]
[-] vc-cta.php
[edit]
[-] vc-gitem-zone-a.php
[edit]
[-] vc-zigzag.php
[edit]
[-] vc-posts-grid.php
[edit]
[-] vc-gmaps.php
[edit]
[-] vc-masonry-media-grid.php
[edit]
[-] vc-pie.php
[edit]
[-] vc-gitem-post-meta.php
[edit]
[-] vc-tta-tabs.php
[edit]
[-] vc-icon.php
[edit]
[-] vc-column-text.php
[edit]
[-] vc-tour.php
[edit]
[-] vc-twitter.php
[edit]
[-] vc-message.php
[edit]
[-] vc-gitem-image.php
[edit]
[-] vc-gitem-post-date.php
[edit]
[-] vc-gitem-post-categories.php
[edit]
[-] vc-gallery.php
[edit]
[-] vc-tta-pageable.php
[edit]
[-] vc-gitem-row.php
[edit]
[-] vc-gitem-animated-block.php
[edit]
[-] vc-cta-button.php
[edit]
[-] vc-carousel.php
[edit]
[-] vc-section.php
[edit]
[-] vc-custom-field.php
[edit]
[-] vc-raw-html.php
[edit]
[-] vc-btn.php
[edit]
[-] vc-text-separator.php
[edit]
[-] vc-custom-heading.php
[edit]
[-] vc-button.php
[edit]
[-] vc-gitem-post-author.php
[edit]
[-] vc-row.php
[edit]
[-] vc-pinterest.php
[edit]
[+]
paginator
[-] rev-slider-vc.php
[edit]
[-] vc-basic-grid.php
[edit]
[-] shortcodes.php
[edit]
[-] vc-gitem-post-excerpt.php
[edit]
[-] vc-video.php
[edit]
[-] wordpress-widgets.php
[edit]
[-] vc-images-carousel.php
[edit]
[-] vc-tweetmeme.php
[edit]
[-] vc-gitem-zone-c.php
[edit]
[-] vc-single-image.php
[edit]
[-] layerslider-vc.php
[edit]
[-] vc-masonry-grid.php
[edit]
[-] vc-column-inner.php
[edit]
[-] vc-hoverbox.php
[edit]
[-] vc-round-chart.php
[edit]
[-] example.php
[edit]
[-] vc-tab.php
[edit]
[-] vc-button2.php
[edit]
[-] vc-facebook.php
[edit]
[-] vc-gutenberg.php
[edit]
[-] vc-accordion.php
[edit]
[-] vc-gitem-zone.php
[edit]
[-] vc-column.php
[edit]
[-] vc-gitem-post-title.php
[edit]
[-] vc-media-grid.php
[edit]
[-] vc-googleplus.php
[edit]
[-] vc-gitem-post-data.php
[edit]
[-] vc-line-chart.php
[edit]
[-] vc-toggle.php
[edit]
[-] vc-tabs.php
[edit]
[-] vc-empty-space.php
[edit]
[-] vc-flickr.php
[edit]
[-] vc-posts-slider.php
[edit]
[-] vc-cta-button2.php
[edit]
[-] vc-tta-section.php
[edit]
[-] vc-tta-tour.php
[edit]
[-] vc-gitem.php
[edit]
[-] vc-raw-js.php
[edit]
[-] vc-gitem-col.php
[edit]
[-] vc-gitem-zone-b.php
[edit]
[-] vc-progress-bar.php
[edit]