# wpdirectorykit/1.3.4/elementor-elements/views/wdk-button.php

WP Directory Kit, version 1.3.4. 25 lines.

- Page: https://pluginprobe.com/plugins/wpdirectorykit/1.3.4/code/elementor-elements/views/wdk-button.php
- Raw: https://pluginprobe.com/plugins/wpdirectorykit/1.3.4/raw/elementor-elements/views/wdk-button.php
- Modified: 2024-06-20T21:53:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpdirectorykit/1.3.4/code/elementor-elements/views/wdk-button.php#L10-L20`.

```php
<?php
/**
 * The template for Element Button.
 * This is the template that elementor element button, link
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

?>
<div class="wdk-element" id="wdk_el_<?php echo esc_html($id_element);?>">
    <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">
        <?php if(wmvc_show_data('link_icon_position', $settings) == 'left') :?>
            <?php \Elementor\Icons_Manager::render_icon( $settings['link_icon'], [ 'aria-hidden' => 'true' ] ); ?>
        <?php endif;?>
        <?php echo esc_html(wmvc_show_data('link_text', $settings));?>
        <?php if(wmvc_show_data('link_icon_position', $settings) == 'right') :?>
            <?php \Elementor\Icons_Manager::render_icon( $settings['link_icon'], [ 'aria-hidden' => 'true' ] ); ?>
        <?php endif;?>
    </a>
</div>


```
