芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Button.php
= 0 ) { if ( function_exists( 'vc_add_shortcode_param' ) ) { vc_add_shortcode_param( 'ult_button', array( $this, 'button_prev_param' ) ); } } else { if ( function_exists( 'add_shortcode_param' ) ) { add_shortcode_param( 'ult_button', array( $this, 'button_prev_param' ) ); } } } /** * Button prev param * * @param array $settings Settings. * @param array $value Value. */ public function button_prev_param( $settings, $value ) { $param_name = isset( $settings['param_name'] ) ? $settings['param_name'] : ''; $type = isset( $settings['type'] ) ? $settings['type'] : ''; $class = isset( $settings['class'] ) ? $settings['class'] : ''; $json = isset( $settings['json'] ) ? $settings['json'] : ''; $jsoniterator = json_decode( $json, true ); $selector = '
'; foreach ( $jsoniterator as $key => $val ) { if ( is_array( $val ) ) { $labels = str_replace( '_', ' ', $key ); $selector .= '
'; foreach ( $val as $label => $style ) { $label = str_replace( '_', ' ', $label ); if ( $style == $value ) { $selector .= '
' . esc_html__( $label, 'ultimate_vc' ) . '
'; } else { $selector .= '
' . esc_html__( $label, 'ultimate_vc' ) . '
'; } } } else { if ( $val == $value ) { $selector .= '
' . esc_html__( $key, 'ultimate_vc' ) . '
'; } else { $selector .= '
' . esc_html__( $key, 'ultimate_vc' ) . '
'; } } } $selector .= '
'; $output = ''; $output .= '
'; $output .= $selector; $output .= '
'; $output .= '
'; $output .= '
' . __( 'Button', 'ultimate_vc' ) . '
'; $output .= '
'; $output .= ''; return $output; } } } if ( class_exists( 'Ultimate_VC_Addons_Button_Param' ) ) { $ultimate_button_param = new Ultimate_VC_Addons_Button_Param(); }