This commit is contained in:
Roman Pyrih
2024-08-26 15:58:29 +02:00
parent 11ea3f98bd
commit a4c4b7f3c3
5 changed files with 233 additions and 4 deletions

View File

@@ -109,9 +109,9 @@ class Elementor_Button_Addon extends \Elementor\Widget_Base {
if ( ! empty( $settings['link']['url'] ) ) {
$this->add_link_attributes( 'url', $settings['link'] );
$title = sprintf( '<a %1$s class="addon-btn-title">%2$s <div class="elementor-icon"><i aria-hidden="true" class=" ti-arrow-top-right"></i></div></a>', $this->get_render_attribute_string( 'url' ), $title );
$title = sprintf( '<a %1$s class="addon-btn-title"><span>%2$s</span><div class="elementor-icon"><i aria-hidden="true" class=" ti-arrow-top-right"></i></div></a>', $this->get_render_attribute_string( 'url' ), $title );
} else {
$title = sprintf( '<p class="addon-btn-title">%1$s <div class="elementor-icon"><i aria-hidden="true" class=" ti-arrow-top-right"></i></div></p>', $title );
$title = sprintf( '<p class="addon-btn-title"><span>%1$s</span><div class="elementor-icon"><i aria-hidden="true" class=" ti-arrow-top-right"></i></div></p>', $title );
}
echo $title;