PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wpnull24
/
framework
/
templates
/
elements
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Shortcode: vc_tta_section * * Overloaded by UpSolution custom implementation. * * Dev note: if you want to change some of the default values or acceptable attributes, overload the shortcodes config. * * @var $shortcode string Current shortcode name * @var $shortcode_base string The original called shortcode name (differs if called an alias) * @var $content string Shortcode's inner content * * @var $title string Section title * @var $tab_id string Section slug * @var $icon string Icon * @var $i_position string Icon position: 'left' / 'right' * @var $active bool Tab is opened when page loads * @var $indents string Indents type: '' / 'none' * @var $bg_color string Background color * @var $text_color string Text color * @var $c_position string Control position (inherited from wrapping vc_tta_tabs shortcode): 'left' / 'right' * @var $title_tag string Title HTML tag (inherited from wrapping vc_tta_tabs shortcode): 'div' / 'h2'/ 'h3'/ 'h4'/ 'h5'/ 'h6'/ 'p' * @var $title_size string Title Size * @var $el_class string Extra class name */ global $us_tabs_atts, $us_tab_index; // Tab indexes start from 1 $us_tab_index = isset( $us_tab_index ) ? ( $us_tab_index + 1 ) : 1; // We could overload some of the atts at vc_tabs implementation, so apply them here as well if ( isset( $us_tab_index ) AND isset( $us_tabs_atts[ $us_tab_index - 1 ] ) ) { foreach ( $us_tabs_atts[ $us_tab_index - 1 ] as $_key => $_value ) { ${$_key} = $_value; } } $content_html = do_shortcode( $content ); $classes = $item_tag_href = ''; if ( $icon ) { $classes .= ' with_icon'; } if ( $indents == 'none' ) { $classes .= ' no_indents'; } if ( $active ) { $classes .= ' active'; } // Hide the section with empty content if ( $content_html == '' ) { $classes .= ' content-empty'; } if ( ! empty( $el_class ) ) { $classes .= ' ' . $el_class; } $item_tag = 'div'; if ( ! empty( $tab_id ) ) { $item_tag = 'a'; $item_tag_href = ' href="#' . $tab_id . '"'; $tab_id = ' id="' . $tab_id . '"'; } $inline_css = us_prepare_inline_css( array( 'background' => $bg_color, 'color' => $text_color, ) ); if ( ! empty( $inline_css ) ) { $classes .= ' color_custom'; } // Replace comments amount instead of variable $title = us_replace_comment_count_var( $title ); // Output the element $output = '<div class="w-tabs-section' . $classes . '"' . $tab_id . $inline_css . '>'; $output .= '<' . $item_tag . $item_tag_href . ' class="w-tabs-section-header"' . us_prepare_inline_css( array( 'font-size' => $title_size ) ) . '><div class="w-tabs-section-header-h">'; if ( $c_position == 'left' ) { $output .= '<div class="w-tabs-section-control"></div>'; } if ( $icon AND $i_position == 'left' ) { $output .= us_prepare_icon_tag( $icon ); } $output .= '<' . $title_tag . ' class="w-tabs-section-title">' . $title . '</' . $title_tag . '>'; if ( $icon AND $i_position == 'right' ) { $output .= us_prepare_icon_tag( $icon ); } if ( $c_position == 'right' ) { $output .= '<div class="w-tabs-section-control"></div>'; } $output .= '</div></' . $item_tag . '>'; $output .= '<div class="w-tabs-section-content"><div class="w-tabs-section-content-h i-cf">' . $content_html . '</div></div>'; $output .= '</div>'; echo $output;
[+]
..
[-] person.php
[edit]
[-] separator.php
[edit]
[-] post_custom_field.php
[edit]
[-] post_image.php
[edit]
[-] page_block.php
[edit]
[-] image_slider.php
[edit]
[-] cform.php
[edit]
[-] progbar.php
[edit]
[-] btn.php
[edit]
[-] product_field.php
[edit]
[-] socials.php
[edit]
[-] cta.php
[edit]
[-] message.php
[edit]
[-] vc_wp_custommenu.php
[edit]
[-] contacts.php
[edit]
[-] post_taxonomy.php
[edit]
[-] flipbox.php
[edit]
[-] grid.php
[edit]
[-] post_comments.php
[edit]
[-] gallery.php
[edit]
[-] sharing.php
[edit]
[-] post_date.php
[edit]
[-] product_ordering.php
[edit]
[-] post_navigation.php
[edit]
[-] add_to_cart.php
[edit]
[-] product_gallery.php
[edit]
[-] gmaps.php
[edit]
[-] vc_tta_tabs.php
[edit]
[-] breadcrumbs.php
[edit]
[-] page_title.php
[edit]
[-] counter.php
[edit]
[-] vc_video.php
[edit]
[-] cart.php
[edit]
[-] post_content.php
[edit]
[-] image.php
[edit]
[-] vc_row_inner.php
[edit]
[-] dropdown.php
[edit]
[-] iconbox.php
[edit]
[-] vc_column.php
[edit]
[-] post_title.php
[edit]
[-] hwrapper.php
[edit]
[-] .elements.php
[edit]
[-] vc_column_text.php
[edit]
[-] additional_menu.php
[edit]
[-] vc_tta_section.php
[edit]
[-] popup.php
[edit]
[-] scroller.php
[edit]
[-] menu.php
[edit]
[-] pricing.php
[edit]
[-] search.php
[edit]
[-] text.php
[edit]
[-] post_author.php
[edit]
[-] vc_row.php
[edit]
[-] itext.php
[edit]
[-] html.php
[edit]