| @@ -1,98 +1,97 @@ | ||
| 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 | - <?php $avatar_loc = get_option('qcld_chatbot_avatar_location', 'inside'); ?> | |
| 41 | - <div id="wp-chatbot-board-container" class="wp-chatbot-board-container wp-chatbot-avatar-<?php echo esc_attr($avatar_loc); ?>"> | |
| 42 | - | |
| 43 | - <div class="wp-chatbot-header"> | |
| 44 | - <?php do_action('render_back_to_menu_button'); ?> | |
| 45 | - <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> | |
| 46 | - | |
| 47 | - <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> | |
| 48 | - | |
| 49 | - <?php | |
| 50 | - if( function_exists( 'qcld_wpbotml' ) && count( qcld_wpbotml()->languages ) > 1){ | |
| 51 | - do_action('ml_render_lan_dropdown'); | |
| 52 | - } | |
| 53 | - ?> | |
| 54 | - </div> | |
| 55 | - | |
| 56 | - <!--wp-chatbot-header--> | |
| 57 | - <div class="wp-chatbot-ball-inner wp-chatbot-content"> | |
| 58 | - <!-- only show on Mobile app --> | |
| 59 | - <?php if (isset($template_app) && $template_app == 'yes') { ?> | |
| 60 | - <div class="wp-chatbot-cart-checkout-wrapper"> | |
| 61 | - <div id="wp-chatbot-cart-short-code"> | |
| 62 | - </div> | |
| 63 | - <div id="wp-chatbot-checkout-short-code"> | |
| 64 | - </div> | |
| 65 | - </div> | |
| 66 | - <?php } ?> | |
| 67 | - <div class="wp-chatbot-messages-wrapper"> | |
| 68 | - <ul id="wp-chatbot-messages-container" class="wp-chatbot-messages-container"> | |
| 69 | - </ul> | |
| 70 | - </div> | |
| 71 | - <?php do_action('wpbot_voice_record_wrapper'); ?> | |
| 72 | - </div> | |
| 73 | - <div class="wp-chatbot-footer"> | |
| 74 | - | |
| 75 | - <div id="wp-chatbot-editor-container" class="wp-chatbot-editor-container"> | |
| 76 | - | |
| 77 | - <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')))); ?>" | |
| 78 | - > | |
| 79 | - <button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><span class="dashicons dashicons-arrow-up-alt"></span></button> | |
| 80 | - </div> | |
| 81 | - <!--wp-chatbot-editor-container--> | |
| 82 | - <!--wp-chatbot-editor-container--> | |
| 83 | - <div class="wp-chatbot-tab-nav"> | |
| 84 | - <ul> | |
| 85 | - <li><a class="wp-chatbot-operation-option" data-option="help" href="" title="<?php echo esc_html__('Help', 'chatbot'); ?>"></a></li> | |
| 86 | - | |
| 87 | - <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> | |
| 88 | - <li><a class="wp-chatbot-operation-option" data-option="support" href="" title="<?php echo esc_html__('Support', 'chatbot'); ?>"></a></li> | |
| 89 | - </ul> | |
| 90 | - </div> | |
| 91 | - <!--wp-chatbot-tab-nav--> | |
| 92 | - <!--wp-chatbot-tab-nav--> | |
| 93 | - </div> | |
| 94 | - <!--wp-chatbot-footer--> | |
| 95 | - </div> | |
| 96 | - <!-- wp-chatbot-board-container--> | |
| 97 | - </div> | |
| 98 | -</div> | |
| 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> | |