public_html/wp-content/plugins/js_composer/include/classes/editors/class-vc-edit-form-fields.php
/**
	 * Get shortcode attribute value.
	 *
	 * This function checks if value isn't set then it uses std or value fields in param settings.
	 * @since 4.4
	 *
	 * @param $param_settings
	 * @param $value
	 *
	 * @return null
	 */
Get shortcode attribute value.
This function checks if value isn't set then it uses std or value fields in param settings.

@param $param_settings
@param $value

@return null
Get shortcode attribute value . This function checks if value isn ' t set then it uses std or value fields in param settings . @param $param_settings @param $value @return null
protected function parseShortcodeAttributeValue( $param_settings, $value ) {
		if ( is_null( $value ) ) { 
			if ( isset( $param_settings['std'] ) ) {
				$value = $param_settings['std'];
			} elseif ( isset( $param_settings['value'] ) && is_array( $param_settings['value'] ) && ! empty( $param_settings['type'] ) && $param_settings['type'] !== 'checkbox'
			) {
				$first_key = key( $param_settings['value'] );
				$value = $first_key ? $param_settings['value'][ $first_key ] : '';
			} elseif ( isset( $param_settings['value'] ) && ! is_array( $param_settings['value'] ) ) {
				$value = $param_settings['value'];
			}
		}
		return $value;
	}
protected function parseShortcodeAttributeValue ( $ param_settings , $ value ) { if ( is_null ( $ value ) ) { if ( isset ( $ param_settings [ 'std' ] ) ) { $ value = $ param_settings [ 'std' ] ; } elseif ( isset ( $ param_settings [ 'value' ] ) && is_array ( $ param_settings [ 'value' ] ) && ! empty ( $ param_settings [ 'type' ] ) && $ param_settings [ 'type' ] !== 'checkbox' ) { $ first_key = key ( $ param_settings [ 'value' ] ) ; $ value = $ first_key ? $ param_settings [ 'value' ] [ $ first_key ] : '' ; } elseif ( isset ( $ param_settings [ 'value' ] ) && ! is_array ( $ param_settings [ 'value' ] ) ) { $ value = $ param_settings [ 'value' ] ; } } return $ value ; }
Get shortcode attribute value.
Get shortcode attribute value .
// If value doesn't exists