PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.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 All 37 releases
← All changes | elementor-elements/views/wdk-button-login.php +26 -11 1.1.8 → 1.5.9 View file →
@@ -10,9 +10,9 @@
10 10 }
11 11
12 12 ?>
13 13
14 -<div class="wdk-element" id="wdk_el_<?php echo esc_html($id_element);?>">
14 +<div class="wdk-element wdk-button-login" id="wdk_el_<?php echo esc_html($id_element);?>">
15 15 <?php if(!is_user_logged_in()):?>
16 16 <a href="<?php echo esc_attr(wmvc_show_data('link_not_login_url', $settings));?>" id="<?php echo esc_attr(wmvc_show_data('link_not_login_id', $settings));?>" class="wdk-element-button login">
17 17 <?php if(wmvc_show_data('link_not_login_icon_position', $settings) == 'left') :?>
18 18 <?php \Elementor\Icons_Manager::render_icon( $settings['link_not_login_icon'], [ 'aria-hidden' => 'true' ] ); ?>
@@ -35,18 +35,33 @@
35 35 <?php if(wmvc_show_data('link_login_icon_position', $settings) == 'right') :?>
36 36 <?php \Elementor\Icons_Manager::render_icon( $settings['link_login_icon'], [ 'aria-hidden' => 'true' ] ); ?>
37 37 <?php endif;?>
38 38 </a>
39 - <a href="<?php echo esc_attr(wmvc_show_data('link_dash_url', $settings));?>"
40 - title="<?php echo esc_attr(wmvc_show_data('link_dash_text_attr', $settings));?>"
41 - id="<?php echo esc_attr(wmvc_show_data('link_dash_id', $settings));?>" class="wdk-element-button logout">
42 - <?php if(wmvc_show_data('link_dash_icon_position', $settings) == 'left') :?>
43 - <?php \Elementor\Icons_Manager::render_icon( $settings['link_dash_icon'], [ 'aria-hidden' => 'true' ] ); ?>
39 + <span class="dash-span">
40 + <a href="<?php echo esc_attr(wmvc_show_data('link_dash_url', $settings));?>"
41 + title="<?php echo esc_attr(wmvc_show_data('link_dash_text_attr', $settings));?>"
42 + id="<?php echo esc_attr(wmvc_show_data('link_dash_id', $settings));?>" class="wdk-element-button dash logout">
43 + <?php if(wmvc_show_data('link_dash_icon_position', $settings) == 'left') :?>
44 + <?php \Elementor\Icons_Manager::render_icon( $settings['link_dash_icon'], [ 'aria-hidden' => 'true' ] ); ?>
45 + <?php endif;?>
46 + <?php echo esc_html(wmvc_show_data('link_dash_text', $settings));?>
47 + <?php if(wmvc_show_data('link_dash_icon_position', $settings) == 'right') :?>
48 + <?php \Elementor\Icons_Manager::render_icon( $settings['link_dash_icon'], [ 'aria-hidden' => 'true' ] ); ?>
49 + <?php endif;?>
50 + </a>
51 + <?php if(function_exists('run_wdk_messages_chat') && function_exists('wdk_dash_url')):?>
52 + <?php
53 + global $Winter_MVC_wdk_messages_chat;
54 + $this->WMVC->model('messages_m');
55 + $total_new_message = $this->WMVC->messages_m->total_unread();
56 + if($total_new_message):
57 + ?>
58 + <a href="<?php echo esc_url(wdk_dash_url('dash_page=messages&function=chat'));?>"
59 + title="<?php echo esc_attr__('New messages', 'wpdirectorykit');?>" class="count_messages">
60 + <?php echo esc_html($total_new_message);?>
61 + </a>
62 + <?php endif;?>
44 63 <?php endif;?>
45 - <?php echo esc_html(wmvc_show_data('link_dash_text', $settings));?>
46 - <?php if(wmvc_show_data('link_dash_icon_position', $settings) == 'right') :?>
47 - <?php \Elementor\Icons_Manager::render_icon( $settings['link_dash_icon'], [ 'aria-hidden' => 'true' ] ); ?>
48 - <?php endif;?>
49 - </a>
64 + </span>
50 65 <?php endif;?>
51 66 </div>
52 67