' . $attributes['badge_content'] . ' '; } $icon = null; if ( !empty( $attributes['include_icon'] ) && !empty( $attributes['icon'] ) && !empty( $attributes['icon_size'] ) ) { $icon_margin = !empty( $attributes['icon_position'] ) && $attributes['icon_position'] == 'prepend' ? 'me-3' : 'ms-3'; $icon_size = !empty( $attributes['icon_size'] ) ? $attributes['icon_size'] : '24'; $icon = ' '; } $button_open = ' <' . $attributes['type'] . ' ' . areoi_return_id( $attributes ) . ' class="' . areoi_format_block_id( $attributes['block_id'] ) . ' ' . $class . '" '; if ( !empty( $attributes['url'] ) ) { $button_open .= ' href="' . $attributes['url'] . '"'; } if ( !empty( $attributes['rel'] ) ) { $button_open .= ' rel="' . $attributes['rel'] . '"'; } if ( !empty( $attributes['linkTarget'] ) ) { $button_open .= ' target="' . $attributes['linkTarget'] . '"'; } if ( !empty( $attributes['dropdown'] ) ) { $button_open .= ' data-bs-toggle="dropdown"'; $button_open .= ' data-bs-auto-close="' . $attributes['dropdown_auto_close'] . '"'; } $button_open .= ' ' . $tooltip . '>'; $output = ''; if ( !empty( $attributes['dropdown'] ) ) { $output .= '