Skip to content
coordinacion@albaceteentransicion.org

Comercio referente de la salud natural y la alimentación ecológica.

Dirección: C/. Mayor, 18
classes ) . '">'; } $link_attrs = [ 'id' => ! empty( $atts['unique_id'] ) ? $atts['unique_id'] : null, 'href' => $link, 'class' => esc_attr( $button_classes ), 'style' => $inline_style, 'data' => $button_data, ]; unset( $onclick_attrs['href'] ); $link_attrs = array_merge( $link_attrs, $onclick_attrs ); if ( ! empty( $atts['aria_label'] ) ) { $link_attrs['aria-label'] = esc_attr( trim( $atts['aria_label'] ) ); } if ( vcex_validate_att_boolean( 'download_attribute', $atts, false ) ) { $link_attrs['download'] = 'download'; } if ( 'toggle_element' === $onclick ) { $link_attrs['aria-expanded'] = ( 'active' === $button_state ) ? 'true' : 'false'; $link_attrs['aria-controls'] = str_replace( '#', '', $link_attrs['href'] ); if ( ! empty( $atts['toggle_element_active_text'] ) ) { $link_attrs['data-open-text'] = wp_strip_all_tags( vcex_parse_text( $content ) ); $active_text = wp_strip_all_tags( vcex_parse_text( $atts['toggle_element_active_text'] ) ); if ( 'active' === $button_state ) { $content = $active_text; } $link_attrs['data-close-text'] = $active_text; } } // Open Link. $output .= ''; // Open inner span. $output .= ''; // Left Icon. if ( $icon_left ) { $icon_left_style = vcex_inline_style ( [ 'color' => $atts['icon_color'] ?? '', 'padding_right' => $atts['icon_left_padding'] ?? null, ] ); $attrs = [ 'class' => [ 'vcex-button-icon', 'vcex-icon-wrap', 'theme-button-icon-left', ], 'style' => $icon_left_style, ]; if ( ! empty( $atts['icon_left_transform'] ) ) { $attrs['class'][] = 'wpex-transition-transform wpex-duration-200'; $attrs['data-wpex-hover'] = htmlspecialchars( wp_json_encode( [ 'parent' => '.vcex-button', 'transform' => 'translateX(' . vcex_validate_font_size( $atts['icon_left_transform'] ) . ')', ] ) ); } $output .= '' . $icon_left . ''; } // Text. if ( 'toggle_element' === $onclick ) { // Adds wrapper for the text for the text swapping. $output .= '' . vcex_parse_text( $content ) . ''; } else { $output .= vcex_parse_text( $content ); } // Icon Right. if ( $icon_right ) { $icon_right_style = vcex_inline_style ( [ 'color' => $atts['icon_color'] ?? '', 'padding_left' => $atts['icon_right_padding'] ?? '', ] ); $attrs = [ 'class' => [ 'vcex-button-icon', 'vcex-icon-wrap', 'theme-button-icon-right', ], 'style' => $icon_right_style, ]; if ( ! empty( $atts['icon_right_transform'] ) ) { $attrs['class'][] = 'wpex-transition-transform wpex-duration-200'; $attrs['data-wpex-hover'] = htmlspecialchars( wp_json_encode( [ 'parent' => '.vcex-button', 'transform' => 'translateX(' . vcex_validate_font_size( $atts['icon_right_transform'] ) . ')', ] ) ); } $output .= '' . $icon_right . ''; } // Close inner span. $output .= ''; // Close link. $output .= ''; // Close wrapper for specific button styles. if ( $wrap_classes ) { $output .= '
'; } // Close css wrap div. if ( ! empty( $atts['css_wrap'] ) ) { $output .= '
'; } // @codingStandardsIgnoreLine echo $output . ' ';
Volver arriba