Alaska White – MSI Surfaces
Call for pricing
/** * WPBakery Page Builder shortcode default attributes functions for rendering. * * @package WPBakeryPageBuilder * @since 4.4 */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } if ( ! function_exists( 'vc_textfield_form_field' ) ) : /** * Textfield shortcode attribute type generator. * * @param array $settings * @param mixed $value * * @return string - html string. * @since 4.4 */ function vc_textfield_form_field( $settings, $value ) { $value = is_string( $value ) ? nl2br( htmlspecialchars( $value ) ) : ''; $value_type = isset( $settings['value_type'] ) ? $settings['value_type'] : 'html'; $placeholder = $settings['placeholder'] ?? ''; return ''; } endif; if ( ! function_exists( 'vc_dropdown_form_field' ) ) : /** * Dropdown(select with options) shortcode attribute type generator. * * @param array $settings * @param mixed $value * * @return string - html string. * @since 4.4 */ function vc_dropdown_form_field( $settings, $value ) { // phpcs:ignore:Generic.Metrics.CyclomaticComplexity.TooHigh, CognitiveComplexity.Complexity.MaximumComplexity.TooHigh $output = ''; $css_option = str_replace( '#', 'hash-', vc_get_dropdown_option( $settings, $value ) ); $output .= ''; return $output; } endif; if ( ! function_exists( 'vc_checkbox_form_field' ) ) : /** * Checkbox shortcode attribute type generator. * * @param array $settings * @param mixed $value * * @return string - html string. * @since 4.4 */ function vc_checkbox_form_field( $settings, $value ) { $output = ''; if ( is_array( $value ) || is_null( $value ) ) { $value = ''; // fix #1239. } $current_value = strlen( $value ) > 0 ? explode( ',', $value ) : []; $values = isset( $settings['value'] ) && is_array( $settings['value'] ) ? $settings['value'] : [ esc_html__( 'Yes', 'js_composer' ) => 'true' ]; if ( ! empty( $values ) ) { foreach ( $values as $label => $v ) { // NOTE!! Don't use strict compare here for BC! // @codingStandardsIgnoreLine $checked = in_array( $v, $current_value ) ? 'checked' : ''; $output .= ' '; } } return $output; } endif; if ( ! function_exists( 'vc_posttypes_form_field' ) ) : /** * Checkbox shortcode attribute type generator. * * @param array $settings * @param mixed $value * * @return string - html string. * @since 4.4 */ function vc_posttypes_form_field( $settings, $value ) { $output = ''; $args = [ 'public' => true, ]; $post_types = get_post_types( $args ); $value = is_null( $value ) ? '' : $value; foreach ( $post_types as $post_type ) { $checked = ''; if ( 'attachment' !== $post_type ) { if ( in_array( $post_type, explode( ',', $value ), true ) ) { $checked = 'checked="checked"'; } $output .= ''; } } return $output; } endif; if ( ! function_exists( 'vc_taxonomies_form_field' ) ) : /** * Taxonomies shortcode attribute type generator. * * @param array $settings * @param mixed $value * * @return string - html string. * @since 4.4 */ function vc_taxonomies_form_field( $settings, $value ) { $output = ''; $post_types = get_post_types( [ 'public' => false, 'name' => 'attachment', ], 'names', 'NOT' ); $value = is_string( $value ) ? $value : ''; foreach ( $post_types as $type ) { $taxonomies = get_object_taxonomies( $type, '' ); foreach ( $taxonomies as $tax ) { $checked = ''; if ( in_array( $tax->name, explode( ',', $value ), true ) ) { $checked = 'checked'; } $output .= ' '; } } return $output; } endif; if ( ! function_exists( 'vc_exploded_textarea_form_field' ) ) : /** * Exploded textarea shortcode attribute type generator. * * Data saved and coma-separated values are merged with line breaks and returned in a textarea. * * @param array $settings * @param mixed $value * * @return string - html string. * @since 4.4 */ function vc_exploded_textarea_form_field( $settings, $value ) { $value = is_string( $value ) ? $value : ''; $value = str_replace( ',', "\n", $value ); return ''; } endif; if ( ! function_exists( 'vc_exploded_textarea_safe_form_field' ) ) : /** * Safe Textarea shortcode attribute type generator. * * @param array $settings * @param mixed $value * * @return string - html string. * @since 4.8.2 */ function vc_exploded_textarea_safe_form_field( $settings, $value ) { $value = vc_value_from_safe( $value, true ); if ( isset( $value ) ) { $value = str_replace( ',', "\n", $value ); } return ''; } endif; if ( ! function_exists( 'vc_range_form_field' ) ) : /** * Range input and number input shortcode attribute type generator. * * @param array $settings * @param string $value * * @return string */ function vc_range_form_field( $settings, $value ) { $value = is_string( $value ) ? htmlspecialchars( $value ) : ''; $value_type = isset( $settings['value_type'] ) ? $settings['value_type'] : 'html'; $placeholder = $settings['placeholder'] ?? ''; $min = isset( $settings['min'] ) ? $settings['min'] : 1; $max = isset( $settings['max'] ) ? $settings['max'] : 100; return '