芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Animator.php
= 0 ) { if ( function_exists( 'vc_add_shortcode_param' ) ) { vc_add_shortcode_param( 'animator', array( $this, 'animator_param' ) ); } } else { if ( function_exists( 'add_shortcode_param' ) ) { add_shortcode_param( 'animator', array( $this, 'animator_param' ) ); } } } /** * Animator_param. * * @param array $settings Settings. * @param string $value Value. */ public function animator_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 = ultimate_get_animation_json(); $jsoniterator = json_decode( $json, true ); $width_float_style = 'width: 45%; float: left;'; $anim_prev_1 = 'padding: 8px; width: 45%; float: left; text-align: center; margin-left: 15px;'; $anim_prev_2 = 'padding: 15px; background: #1C8FCF; color: #FFF;'; $animators = '
'; foreach ( $jsoniterator as $key => $val ) { if ( is_array( $val ) ) { $labels = str_replace( '_', ' ', $key ); $animators .= '
'; foreach ( $val as $label => $style ) { $label = str_replace( '_', ' ', $label ); if ( $label == $value ) { $animators .= '
' . esc_html__( $label, 'ultimate_vc' ) . '
'; } else { $animators .= '
' . esc_html__( $label, 'ultimate_vc' ) . '
'; } } } else { if ( $key == $value ) { $animators .= '
' . esc_html__( $key, 'ultimate_vc' ) . '
'; } else { $animators .= '
' . esc_html__( $key, 'ultimate_vc' ) . '
'; } } } $animators .= '
'; $output = ''; $output .= '
'; $output .= $animators; $output .= '
'; $output .= '
Animation Preview
'; $output .= ''; return $output; } } } if ( class_exists( 'Ultimate_VC_Addons_Animator_Param' ) ) { $ultimate_animator_param = new Ultimate_VC_Addons_Animator_Param(); }