| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for Element Button. |
| 4 |
* This is the template that elementor element button, link |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
|
| 12 |
?> |
| 13 |
<div class="wdk-element" id="wdk_el_<?php echo esc_html($id_element);?>"> |
| 14 |
<a href="<?php echo esc_attr(wmvc_show_data('link_url', $settings));?>" id="<?php echo esc_attr(wmvc_show_data('link_id', $settings));?>" class="wdk-element-button"> |
| 15 |
<?php if(wmvc_show_data('link_icon_position', $settings) == 'left') :?> |
| 16 |
<?php \Elementor\Icons_Manager::render_icon( $settings['link_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 17 |
<?php endif;?> |
| 18 |
<?php echo esc_html(wmvc_show_data('link_text', $settings));?> |
| 19 |
<?php if(wmvc_show_data('link_icon_position', $settings) == 'right') :?> |
| 20 |
<?php \Elementor\Icons_Manager::render_icon( $settings['link_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 21 |
<?php endif;?> |
| 22 |
</a> |
| 23 |
</div> |
| 24 |
|
| 25 |
|