芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Navigation.php
= 0 ) { if ( function_exists( 'vc_add_shortcode_param' ) ) { vc_add_shortcode_param( 'ultimate_navigation', array( &$this, 'icon_settings_field' ) ); } } else { if ( function_exists( 'add_shortcode_param' ) ) { add_shortcode_param( 'ultimate_navigation', array( &$this, 'icon_settings_field' ) ); } } } /** * Icon_settings_field. * * @param array $settings Settings. * @param string $value Value. */ public function icon_settings_field( $settings, $value ) { $dependency = ''; $uid = uniqid(); $param_name = isset( $settings['param_name'] ) ? $settings['param_name'] : ''; $type = isset( $settings['type'] ) ? $settings['type'] : ''; $class = isset( $settings['class'] ) ? $settings['class'] : ''; if ( 'next_icon' == $param_name ) { $icons = array( 'ultsl-arrow-right', 'ultsl-arrow-right2', 'ultsl-arrow-right3', 'ultsl-arrow-right4', 'ultsl-arrow-right6' ); } if ( 'prev_icon' == $param_name ) { $icons = array( 'ultsl-arrow-left', 'ultsl-arrow-left2', 'ultsl-arrow-left3', 'ultsl-arrow-left4', 'ultsl-arrow-left6' ); } if ( 'dots_icon' == $param_name ) { $icons = array( 'ultsl-checkbox-unchecked', 'ultsl-checkbox-partial', 'ultsl-stop', 'ultsl-radio-checked', 'ultsl-radio-unchecked', 'ultsl-record' ); } $output = '
'; $output .= '
'; $output .= '
'; $n = 1; foreach ( $icons as $icon ) { $selected = ( $icon == $value ) ? 'class="selected"' : ''; $id = 'icon-' . $n; $output .= '
' . esc_html( $icon ) . '
'; $n++; } $output .= '
'; $output .= '
'; $output .= ''; $output .= ''; return $output; } } } if ( class_exists( 'Ultimate_VC_Addons_Navigation' ) ) { $ultimate_navigation = new Ultimate_VC_Addons_Navigation(); }