# wpdirectorykit/1.5.9/elementor-elements/views/wdk-button-share.php

WP Directory Kit, version 1.5.9. 25 lines.

- Page: https://pluginprobe.com/plugins/wpdirectorykit/1.5.9/code/elementor-elements/views/wdk-button-share.php
- Raw: https://pluginprobe.com/plugins/wpdirectorykit/1.5.9/raw/elementor-elements/views/wdk-button-share.php
- Modified: 2026-10-04T19:48:12+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.5.9/code/elementor-elements/views/wdk-button-share.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($link_url);?>" id="<?php echo esc_attr(wmvc_show_data('link_id', $settings));?>" class="wdk-element-button wdk-device-share-link">
        <?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>


```
