| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly |
| 3 |
if(get_option('enable_wp_chatbot_custom_color')==1 && get_option('wp_chatbot_theme_primary_color') && get_option('wp_chatbot_theme_primary_color')!=''): ?> |
| 4 |
<style> |
| 5 |
.wp-chatbot-tab-nav{ |
| 6 |
background-color: <?php echo esc_attr( get_option('wp_chatbot_theme_primary_color') ); ?> !important; |
| 7 |
} |
| 8 |
.wp-chatbot-board-container:after { |
| 9 |
border-top: 30px solid <?php echo esc_attr( get_option('wp_chatbot_theme_primary_color') ); ?> !important; |
| 10 |
} |
| 11 |
</style> |
| 12 |
<?php endif; ?> |
| 13 |
<?php if(get_option('enable_wp_chatbot_custom_color')==1 && get_option('wp_chatbot_theme_secondary_color') && get_option('wp_chatbot_theme_secondary_color')!=''): ?> |
| 14 |
<style> |
| 15 |
|
| 16 |
.wp-chatbot-tab-nav ul li.wp-chatbot-operation-active a:before, .wp-chatbot-tab-nav ul li:hover a:before { |
| 17 |
border: 2px solid <?php echo esc_attr( get_option('wp_chatbot_theme_secondary_color') ); ?> !important; |
| 18 |
} |
| 19 |
.wp-chatbot-tab-nav ul li a[data-option="chat"]:after { |
| 20 |
|
| 21 |
border: 3px solid <?php echo esc_attr( get_option('wp_chatbot_theme_secondary_color') ); ?> !important; |
| 22 |
} |
| 23 |
|
| 24 |
</style> |
| 25 |
<?php endif; ?> |
| 26 |
<div id="wp-chatbot-ball-container" class="template-vertical" aria-haspopup aria-live="polite" aria-expanded="false"> |
| 27 |
<?php do_action('render_start_menu'); ?> |
| 28 |
<div class="wpbot-saas-live-chat"> |
| 29 |
|
| 30 |
</div> |
| 31 |
<div class="wp-chatbot-container"> |
| 32 |
|
| 33 |
<?php |
| 34 |
if(function_exists('qcpd_wpwc_addon_lang_init')){ |
| 35 |
do_action('qcld_wpwc_product_details_woocommerce'); |
| 36 |
} |
| 37 |
|
| 38 |
?> |
| 39 |
<!-- wp-chatbot-product-container--> |
| 40 |
<div id="wp-chatbot-board-container" class="wp-chatbot-board-container"> |
| 41 |
|
| 42 |
<div class="wp-chatbot-header"> |
| 43 |
<?php do_action('render_back_to_menu_button'); ?> |
| 44 |
<div id="wp-chatbot-desktop-reload" title="<?php echo esc_attr( (get_option('qlcd_wp_chatbot_reset_lan') != '' ? get_option('qlcd_wp_chatbot_reset_lan') : 'Reset') ); ?>"><span class="dashicons dashicons-update-alt"></span></div> |
| 45 |
|
| 46 |
<div id="wp-chatbot-desktop-close" title="<?php echo esc_attr( (get_option('qlcd_wp_chatbot_close_lan') != '' ? get_option('qlcd_wp_chatbot_close_lan') : 'Close') ); ?>"><span class="dashicons dashicons-no"></span</div> |
| 47 |
|
| 48 |
<?php |
| 49 |
if( function_exists( 'qcld_wpbotml' ) && count( qcld_wpbotml()->languages ) > 1){ |
| 50 |
do_action('ml_render_lan_dropdown'); |
| 51 |
} |
| 52 |
?> |
| 53 |
</div> |
| 54 |
|
| 55 |
<!--wp-chatbot-header--> |
| 56 |
<div class="wp-chatbot-ball-inner wp-chatbot-content"> |
| 57 |
<!-- only show on Mobile app --> |
| 58 |
<?php if (isset($template_app) && $template_app == 'yes') { ?> |
| 59 |
<div class="wp-chatbot-cart-checkout-wrapper"> |
| 60 |
<div id="wp-chatbot-cart-short-code"> |
| 61 |
</div> |
| 62 |
<div id="wp-chatbot-checkout-short-code"> |
| 63 |
</div> |
| 64 |
</div> |
| 65 |
<?php } ?> |
| 66 |
<div class="wp-chatbot-messages-wrapper"> |
| 67 |
<ul id="wp-chatbot-messages-container" class="wp-chatbot-messages-container"> |
| 68 |
</ul> |
| 69 |
</div> |
| 70 |
<?php do_action('wpbot_voice_record_wrapper'); ?> |
| 71 |
</div> |
| 72 |
<div class="wp-chatbot-footer"> |
| 73 |
|
| 74 |
<div id="wp-chatbot-editor-container" class="wp-chatbot-editor-container"> |
| 75 |
|
| 76 |
<input id="wp-chatbot-editor" class="wp-chatbot-editor" required placeholder="<?php echo esc_attr(wpb_randmom_message_handle(unserialize(get_option('qlcd_wp_chatbot_send_a_msg')))); ?>" |
| 77 |
> |
| 78 |
<button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><span class="dashicons dashicons-arrow-up-alt"></span></button> |
| 79 |
</div> |
| 80 |
<!--wp-chatbot-editor-container--> |
| 81 |
<!--wp-chatbot-editor-container--> |
| 82 |
<div class="wp-chatbot-tab-nav"> |
| 83 |
<ul> |
| 84 |
<li><a class="wp-chatbot-operation-option" data-option="help" href="" title="<?php echo esc_html__('Help', 'chatbot'); ?>"></a></li> |
| 85 |
|
| 86 |
<li class="wp-chatbot-operation-active"><a class="wp-chatbot-operation-option" data-option="chat" href="" title="<?php echo esc_html__('Chat', 'chatbot'); ?>"></a></li> |
| 87 |
<li><a class="wp-chatbot-operation-option" data-option="support" href="" title="<?php echo esc_html__('Support', 'chatbot'); ?>"></a></li> |
| 88 |
</ul> |
| 89 |
</div> |
| 90 |
<!--wp-chatbot-tab-nav--> |
| 91 |
<!--wp-chatbot-tab-nav--> |
| 92 |
</div> |
| 93 |
<!--wp-chatbot-footer--> |
| 94 |
</div> |
| 95 |
<!-- wp-chatbot-board-container--> |
| 96 |
</div> |
| 97 |
</div> |
| 98 |
|