public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php
/**
		 * @param $param
		 * @param $value
		 *
		 * vc_filter: vc_wpbakeryshortcode_single_param_html_holder_value - hook to override param value (param type and etc is available in args)
		 *
		 * @return string
		 */


hook to override param value (param type and etc is available in args)

@return string
hook to override param value ( param type and etc is available in args ) @return string
public function singleParamHtmlHolder( $param, $value ) {
			$value = apply_filters( 'vc_wpbakeryshortcode_single_param_html_holder_value', $value, $param, $this->settings, $this->atts );
			$output = '';
			$old_names = array(
				'yellow_message',
				'blue_message',
				'green_message',
				'button_green',
				'button_grey',
				'button_yellow',
				'button_blue',
				'button_red',
				'button_orange'
			);
			$new_names = array(
				'alert-block',
				'alert-info',
				'alert-success',
				'btn-success',
				'btn',
				'btn-info',
				'btn-primary',
				'btn-danger',
				'btn-warning'
			);
			$value = str_ireplace( $old_names, $new_names, $value );
			$param_name = isset( $param['param_name'] ) ? $param['param_name'] : '';
			$type = isset( $param['type'] ) ? $param['type'] : '';
			$class = isset( $param['class'] ) ? $param['class'] : '';
			if ( ! empty( $param['holder'] ) ) {
				if ( $param['holder'] === 'input' ) {
					$output .= '<' . $param['holder'] . ' readonly="true" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="' . $value . '">';
				} elseif ( in_array( $param['holder'], array( 'img', 'iframe' ) ) ) {
					$output .= '<' . $param['holder'] . ' class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" src="' . $value . '">';
				} elseif ( $param['holder'] !== 'hidden' ) {
					$output .= '<' . $param['holder'] . ' class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '">' . $value . '</' . $param['holder'] . '>';
				}
			}
			if ( ! empty( $param['admin_label'] ) && $param['admin_label'] === true ) {
				$output .= '<span class="vc_admin_label admin_label_' . $param['param_name'] . ( empty( $value ) ? ' hidden-label' : '' ) . '"><label>' . $param['heading'] . '</label>: ' . $value . '</span>';
			}
			return $output;
		}
public function singleParamHtmlHolder ( $ param , $ value ) { $ value = apply_filters ( 'vc_wpbakeryshortcode_single_param_html_holder_value' , $ value , $ param , $ this -> settings , $ this -> atts ) ; $ output = '' ; $ old_names = array ( 'yellow_message' , 'blue_message' , 'green_message' , 'button_green' , 'button_grey' , 'button_yellow' , 'button_blue' , 'button_red' , 'button_orange' ) ; $ new_names = array ( 'alert-block' , 'alert-info' , 'alert-success' , 'btn-success' , 'btn' , 'btn-info' , 'btn-primary' , 'btn-danger' , 'btn-warning' ) ; $ value = str_ireplace ( $ old_names , $ new_names , $ value ) ; $ param_name = isset ( $ param [ 'param_name' ] ) ? $ param [ 'param_name' ] : '' ; $ type = isset ( $ param [ 'type' ] ) ? $ param [ 'type' ] : '' ; $ class = isset ( $ param [ 'class' ] ) ? $ param [ 'class' ] : '' ; if ( ! empty ( $ param [ 'holder' ] ) ) { if ( $ param [ 'holder' ] === 'input' ) { $ output .= '<' . $ param [ 'holder' ] . ' readonly="true" class="wpb_vc_param_value ' . $ param_name . ' ' . $ type . ' ' . $ class . '" name="' . $ param_name . '" value="' . $ value . '">' ; } elseif ( in_array ( $ param [ 'holder' ] , array ( 'img' , 'iframe' ) ) ) { $ output .= '<' . $ param [ 'holder' ] . ' class="wpb_vc_param_value ' . $ param_name . ' ' . $ type . ' ' . $ class . '" name="' . $ param_name . '" src="' . $ value . '">' ; } elseif ( $ param [ 'holder' ] !== 'hidden' ) { $ output .= '<' . $ param [ 'holder' ] . ' class="wpb_vc_param_value ' . $ param_name . ' ' . $ type . ' ' . $ class . '" name="' . $ param_name . '">' . $ value . '</' . $ param [ 'holder' ] . '>' ; } } if ( ! empty ( $ param [ 'admin_label' ] ) && $ param [ 'admin_label' ] === true ) { $ output .= '<span class="vc_admin_label admin_label_' . $ param [ 'param_name' ] . ( empty ( $ value ) ? ' hidden-label' : '' ) . '"><label>' . $ param [ 'heading' ] . '</label>: ' . $ value . '</span>' ; } return $ output ; }
@param $param
 @param $value
@param $param @param $value
// Compatibility fixes