PluginProbe
WP Directory Kit / 1.2.7
WP Directory Kit v1.2.7
1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 1.4.0 1.4.1 All 35 releases
wpdirectorykit / elementor-elements / views / wdk-button-addlisting.php

wdk-button-addlisting.php in WP Directory Kit 1.2.7, at elementor-elements/views/wdk-button-addlisting.php

33 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The template for Element Button Add Listing.
4 * This is the template that elementor element add listing button
5 *
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 ?>
13
14 <div class="wdk-element" id="wdk_el_<?php echo esc_html($id_element);?>">
15 <?php if(is_user_logged_in() && !function_exists('run_wdk_membership') && !wmvc_user_in_role('administrator')):?>
16 <a target="_blank" href="https://wpdirectorykit.com/plugins/wp-directory-membership.html" id="<?php echo esc_attr(wmvc_show_data('link_id', $settings));?>" class="wdk-element-button">
17 <?php elseif(!empty($this->data['settings']['custom_link']['url'])):?>
18 <a <?php echo $this->get_render_attribute_string( 'custom_link'); ?> class="wdk-element-button">
19 <?php else:?>
20 <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">
21 <?php endif;?>
22
23 <?php if(wmvc_show_data('link_icon_position', $settings) == 'left') :?>
24 <?php \Elementor\Icons_Manager::render_icon( $settings['link_icon'], [ 'aria-hidden' => 'true' ] ); ?>
25 <?php endif;?>
26 <?php echo esc_html(wmvc_show_data('link_text', $settings));?>
27 <?php if(wmvc_show_data('link_icon_position', $settings) == 'right') :?>
28 <?php \Elementor\Icons_Manager::render_icon( $settings['link_icon'], [ 'aria-hidden' => 'true' ] ); ?>
29 <?php endif;?>
30 </a>
31 </div>
32
33