| @@ -1,13 +1,11 @@ | ||
| 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')!=''): ?> | |
| 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')!=''): ?> | |
| 4 | 2 | <style> |
| 5 | 3 | .wp-chatbot-tab-nav{ |
| 6 | - background-color: <?php echo esc_attr( get_option('wp_chatbot_theme_primary_color') ); ?> !important; | |
| 4 | + background-color: <?php echo get_option('wp_chatbot_theme_primary_color') ?> !important; | |
| 7 | 5 | } |
| 8 | 6 | .wp-chatbot-board-container:after { |
| 9 | - border-top: 30px solid <?php echo esc_attr( get_option('wp_chatbot_theme_primary_color') ); ?> !important; | |
| 7 | + border-top: 30px solid <?php echo get_option('wp_chatbot_theme_primary_color') ?> !important; | |
| 10 | 8 | } |
| 11 | 9 | </style> |
| 12 | 10 | <?php endif; ?> |
| 13 | 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')!=''): ?> |
| @@ -13,13 +11,13 @@ | ||
| 13 | 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')!=''): ?> |
| 14 | 12 | <style> |
| 15 | 13 | |
| 16 | 14 | .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; | |
| 15 | + border: 2px solid <?php echo get_option('wp_chatbot_theme_secondary_color') ?> !important; | |
| 18 | 16 | } |
| 19 | 17 | .wp-chatbot-tab-nav ul li a[data-option="chat"]:after { |
| 20 | 18 | |
| 21 | - border: 3px solid <?php echo esc_attr( get_option('wp_chatbot_theme_secondary_color') ); ?> !important; | |
| 19 | + border: 3px solid <?php echo get_option('wp_chatbot_theme_secondary_color') ?> !important; | |
| 22 | 20 | } |
| 23 | 21 | |
| 24 | 22 | </style> |
| 25 | 23 | <?php endif; ?> |
| @@ -36,16 +34,15 @@ | ||
| 36 | 34 | } |
| 37 | 35 | |
| 38 | 36 | ?> |
| 39 | 37 | <!-- 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); ?>"> | |
| 38 | + <div id="wp-chatbot-board-container" class="wp-chatbot-board-container"> | |
| 42 | 39 | |
| 43 | 40 | <div class="wp-chatbot-header"> |
| 44 | 41 | <?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> | |
| 42 | + <div id="wp-chatbot-desktop-reload" title="<?php echo(get_option('qlcd_wp_chatbot_reset_lan') != '' ? get_option('qlcd_wp_chatbot_reset_lan') : 'Reset'); ?>"><span class="dashicons dashicons-update-alt"></span></div> | |
| 46 | 43 | |
| 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> | |
| 44 | + <div id="wp-chatbot-desktop-close" title="<?php echo(get_option('qlcd_wp_chatbot_close_lan') != '' ? get_option('qlcd_wp_chatbot_close_lan') : 'Close'); ?>"><span class="dashicons dashicons-no"></span</div> | |
| 48 | 45 | |
| 49 | 46 | <?php |
| 50 | 47 | if( function_exists( 'qcld_wpbotml' ) && count( qcld_wpbotml()->languages ) > 1){ |
| 51 | 48 | do_action('ml_render_lan_dropdown'); |
| @@ -72,24 +69,37 @@ | ||
| 72 | 69 | </div> |
| 73 | 70 | <div class="wp-chatbot-footer"> |
| 74 | 71 | |
| 75 | 72 | <div id="wp-chatbot-editor-container" class="wp-chatbot-editor-container"> |
| 76 | - | |
| 77 | 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')))); ?>" |
| 78 | 74 | > |
| 79 | - <button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><span class="dashicons dashicons-arrow-up-alt"></span></button> | |
| 75 | + <button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><?php esc_html_e('', 'wpchatbot'); ?></button> | |
| 80 | 76 | </div> |
| 81 | 77 | <!--wp-chatbot-editor-container--> |
| 82 | - <!--wp-chatbot-editor-container--> | |
| 78 | + <?php if(get_option('enable_wp_chatbot_disable_allicon')!='1'): ?> | |
| 83 | 79 | <div class="wp-chatbot-tab-nav"> |
| 84 | 80 | <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> | |
| 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 (get_option('qlcd_wp_chatbot_help')?qcld_wpb_randmom_message_handle(maybe_unserialize(get_option('qlcd_wp_chatbot_help'))):__('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 (get_option('qlcd_wp_chatbot_support')?qcld_wpb_randmom_message_handle(maybe_unserialize(get_option('qlcd_wp_chatbot_support'))):__('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 (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; ?> | |
| 89 | 99 | </ul> |
| 90 | 100 | </div> |
| 91 | - <!--wp-chatbot-tab-nav--> | |
| 101 | + <?php endif; ?> | |
| 92 | 102 | <!--wp-chatbot-tab-nav--> |
| 93 | 103 | </div> |
| 94 | 104 | <!--wp-chatbot-footer--> |
| 95 | 105 | </div> |