File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/motors-wpbakery-widgets/templates/stm_aircraft_data_table.php
Back
<?php $atts = vc_map_get_attributes( $this->getShortcode(), $atts ); extract( $atts ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract $css_class = ( ! empty( $css ) ) ? apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ) ) : ''; ?> <div class="stm-data-table"> <?php if ( ! empty( $title ) ) : ?> <h3> <?php stm_dynamic_string_translation_e( 'Aircraft data table title', $title ); ?> </h3> <?php endif; ?> <div class="stm-data-table-wrap"> <?php $stm_cats = explode( ',', $taxonomy_list_col_one ); foreach ( $stm_cats as $stm_cat ) { $tax_name = get_taxonomy( $stm_cat ); if ( $tax_name ) { $tax_data = get_the_terms( get_the_ID(), $stm_cat ); $tax_value = ''; if ( $tax_data ) { if ( count( $tax_data ) > 1 ) { foreach ( $tax_data as $k => $stm_tax ) { if ( 0 !== $k ) { $tax_value .= ', '; } $tax_value .= $stm_tax->name; } } else { $tax_value = ( $tax_data ) ? $tax_data[0]->name : ''; } } else { $tax_value = get_post_meta( get_the_ID(), $stm_cat, true ); } ?> <div class="data-row-wrap heading-font"> <div class="left"> <span><?php stm_dynamic_string_translation_e( 'Aircraft taxonomy name', $tax_name->label ); ?></span> </div> <div class="right"> <span><?php stm_dynamic_string_translation_e( 'Aircraft taxonomy value', $tax_value ); ?></span> </div> </div> <?php } } ?> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings