| 1 |
<?php if(get_option('enable_wp_chatbot_custom_color')==1 && get_option('wp_chatbot_theme_primary_color') && get_option('wp_chatbot_theme_primary_color')!=''): ?> |
| 2 |
<style> |
| 3 |
.wp-chatbot-tab-nav{ |
| 4 |
background-color: <?php echo esc_attr( get_option('wp_chatbot_theme_primary_color') ); ?> !important; |
| 5 |
} |
| 6 |
.wp-chatbot-board-container:after { |
| 7 |
border-top: 30px solid <?php echo esc_attr( get_option('wp_chatbot_theme_primary_color') ); ?> !important; |
| 8 |
} |
| 9 |
</style> |
| 10 |
<?php endif; ?> |
| 11 |
<?php if(get_option('enable_wp_chatbot_custom_color')==1 && get_option('wp_chatbot_theme_secondary_color') && get_option('wp_chatbot_theme_secondary_color')!=''): ?> |
| 12 |
<style> |
| 13 |
|
| 14 |
.wp-chatbot-tab-nav ul li.wp-chatbot-operation-active a:before, .wp-chatbot-tab-nav ul li:hover a:before { |
| 15 |
border: 2px solid <?php echo esc_attr( get_option('wp_chatbot_theme_secondary_color') ); ?> !important; |
| 16 |
} |
| 17 |
.wp-chatbot-tab-nav ul li a[data-option="chat"]:after { |
| 18 |
|
| 19 |
border: 3px solid <?php echo esc_attr( get_option('wp_chatbot_theme_secondary_color') ); ?> !important; |
| 20 |
} |
| 21 |
|
| 22 |
</style> |
| 23 |
<?php endif; ?> |
| 24 |
<div id="wp-chatbot-ball-container" class="template-vertical" aria-haspopup aria-live="polite" aria-expanded="false"> |
| 25 |
<?php do_action('render_start_menu'); ?> |
| 26 |
<div class="wpbot-saas-live-chat"> |
| 27 |
|
| 28 |
</div> |
| 29 |
<div class="wp-chatbot-container"> |
| 30 |
|
| 31 |
<?php |
| 32 |
if(function_exists('qcpd_wpwc_addon_lang_init')){ |
| 33 |
do_action('qcld_wpwc_product_details_woocommerce'); |
| 34 |
} |
| 35 |
|
| 36 |
?> |
| 37 |
<!-- wp-chatbot-product-container--> |
| 38 |
<div id="wp-chatbot-board-container" class="wp-chatbot-board-container"> |
| 39 |
|
| 40 |
<div class="wp-chatbot-header"> |
| 41 |
<?php do_action('render_back_to_menu_button'); ?> |
| 42 |
<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> |
| 43 |
|
| 44 |
<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> |
| 45 |
|
| 46 |
<?php |
| 47 |
if( function_exists( 'qcld_wpbotml' ) && count( qcld_wpbotml()->languages ) > 1){ |
| 48 |
do_action('ml_render_lan_dropdown'); |
| 49 |
} |
| 50 |
?> |
| 51 |
</div> |
| 52 |
|
| 53 |
<!--wp-chatbot-header--> |
| 54 |
<div class="wp-chatbot-ball-inner wp-chatbot-content"> |
| 55 |
<!-- only show on Mobile app --> |
| 56 |
<?php if (isset($template_app) && $template_app == 'yes') { ?> |
| 57 |
<div class="wp-chatbot-cart-checkout-wrapper"> |
| 58 |
<div id="wp-chatbot-cart-short-code"> |
| 59 |
</div> |
| 60 |
<div id="wp-chatbot-checkout-short-code"> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
<?php } ?> |
| 64 |
<div class="wp-chatbot-messages-wrapper"> |
| 65 |
<ul id="wp-chatbot-messages-container" class="wp-chatbot-messages-container"> |
| 66 |
</ul> |
| 67 |
</div> |
| 68 |
<?php do_action('wpbot_voice_record_wrapper'); ?> |
| 69 |
</div> |
| 70 |
<div class="wp-chatbot-footer"> |
| 71 |
|
| 72 |
<div id="wp-chatbot-editor-container" class="wp-chatbot-editor-container"> |
| 73 |
<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')))); ?>" |
| 74 |
> |
| 75 |
<button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><?php esc_html_e('', 'wpchatbot'); ?></button> |
| 76 |
</div> |
| 77 |
<!--wp-chatbot-editor-container--> |
| 78 |
<?php if(get_option('enable_wp_chatbot_disable_allicon')!='1'): ?> |
| 79 |
<div class="wp-chatbot-tab-nav"> |
| 80 |
<ul> |
| 81 |
<?php if(get_option('enable_wp_chatbot_disable_helpicon')!='1'): ?> |
| 82 |
<li><a class="wp-chatbot-operation-option" data-option="help" href="" title="<?php echo esc_attr( (get_option('qlcd_wp_chatbot_help')?qcld_wpb_randmom_message_handle(maybe_unserialize(get_option('qlcd_wp_chatbot_help'))):esc_html__('Help', 'wpchatbot')) ); ?>"></a></li> |
| 83 |
<?php endif; ?> |
| 84 |
<?php if(get_option('enable_wp_chatbot_disable_supporticon')!='1'): ?> |
| 85 |
<li><a class="wp-chatbot-operation-option" data-option="support" href="" title="<?php echo esc_attr( (get_option('qlcd_wp_chatbot_support')?qcld_wpb_randmom_message_handle(maybe_unserialize(get_option('qlcd_wp_chatbot_support'))):esc_html__('Support', 'wpchatbot')) ); ?>"></a></li> |
| 86 |
<?php endif; ?> |
| 87 |
|
| 88 |
|
| 89 |
<?php |
| 90 |
if(function_exists('qcpd_wpwc_addon_lang_init')){ |
| 91 |
do_action('qcld_wpwc_template_bottom_icon_woocommerce', $cart_items_number); |
| 92 |
} |
| 93 |
|
| 94 |
?> |
| 95 |
|
| 96 |
<?php if(get_option('enable_wp_chatbot_disable_chaticon')!='1'): ?> |
| 97 |
<li class="wp-chatbot-operation-active"><a class="wp-chatbot-operation-option" data-option="chat" href="" title="<?php echo esc_attr( (get_option('qlcd_wp_chatbot_skip_conversation')?qcld_wpb_randmom_message_handle(maybe_unserialize(get_option('qlcd_wp_chatbot_skip_conversation'))):'Click this button to skip the conversation') ); ?>"></a></li> |
| 98 |
<?php endif; ?> |
| 99 |
</ul> |
| 100 |
</div> |
| 101 |
<?php endif; ?> |
| 102 |
<!--wp-chatbot-tab-nav--> |
| 103 |
</div> |
| 104 |
<!--wp-chatbot-footer--> |
| 105 |
</div> |
| 106 |
<!-- wp-chatbot-board-container--> |
| 107 |
</div> |
| 108 |
</div> |
| 109 |
|