| @@ -1,5 +1,5 @@ | ||
| 1 | -<div id="wp-chatbot-ball-container" class="wp-chatbot-template-01 wp-chatbot-template-001"> | |
| 1 | +<div id="wp-chatbot-ball-container" class="wp-chatbot-template-01"> | |
| 2 | 2 | <div class="wp-chatbot-container"> |
| 3 | 3 | <div class="wp-chatbot-product-container"> |
| 4 | 4 | <div class="wp-chatbot-product-details"> |
| 5 | 5 | <div class="wp-chatbot-product-image-col"> |
| @@ -20,41 +20,11 @@ | ||
| 20 | 20 | </div> |
| 21 | 21 | <!-- wp-chatbot-product-details--> |
| 22 | 22 | </div> |
| 23 | 23 | <!-- wp-chatbot-product-container--> |
| 24 | - <?php $avatar_loc = get_option('qcld_chatbot_avatar_location', 'inside'); ?> | |
| 25 | - <div id="wp-chatbot-board-container" class="wp-chatbot-board-container wp-chatbot-avatar-<?php echo esc_attr($avatar_loc); ?>"> | |
| 24 | + <div id="wp-chatbot-board-container" class="wp-chatbot-board-container"> | |
| 26 | 25 | <div class="wp-chatbot-header"> |
| 27 | - <?php | |
| 28 | - $wpbot_header_name = get_option('qlcd_wp_chatbot_host'); | |
| 29 | - if (empty($wpbot_header_name)) { | |
| 30 | - $wpbot_header_name = get_bloginfo('name'); | |
| 31 | - } | |
| 32 | - ?> | |
| 33 | - <div class="wp-chatbot-header-left"> | |
| 34 | - | |
| 35 | - <div id="wp-chatbot-desktop-expand" title="<?php esc_attr_e('Expand', 'chatbot'); ?>"><span class="dashicons dashicons-fullscreen-alt"></span></div> | |
| 36 | - | |
| 37 | - <div class="wp-chatbot-header-avatar"> | |
| 38 | - <?php | |
| 39 | - if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
| 40 | - if (get_option('wp_chatbot_icon') == "custom.png") { | |
| 41 | - $wp_chatbot_custom_icon_path = (!empty(get_option('wp_chatbot_custom_icon_path'))) ? get_option('wp_chatbot_custom_icon_path') : QCLD_wpCHATBOT_IMG_URL . 'icon-1.png'; | |
| 42 | - | |
| 43 | - } else if (get_option('wp_chatbot_icon') != "custom.png") { | |
| 44 | - $wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . get_option('wp_chatbot_icon'); | |
| 45 | - } else { | |
| 46 | - $wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . 'custom.png'; | |
| 47 | - } | |
| 48 | - ?> | |
| 49 | - <img src="<?php echo esc_url($wp_chatbot_custom_icon_path); ?>" | |
| 50 | - alt="wpChatIcon" qcld_agent="<?php echo esc_url($wp_chatbot_custom_icon_path); ?>" > | |
| 51 | - </div> | |
| 52 | - </div> | |
| 53 | - <div class="wp-chatbot-header-actions"> | |
| 54 | - <div id="wp-chatbot-desktop-reload" title="Reset"><span class="dashicons dashicons-update-alt"></span></div> | |
| 55 | - <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> | |
| 56 | - </div> | |
| 26 | + <div id="wp-chatbot-desktop-close" title="<?php echo(get_option('qlcd_wp_chatbot_close_lan') != '' ? get_option('qlcd_wp_chatbot_close_lan') : 'Close'); ?>"><i class="fa fa-times" aria-hidden="true"></i></div> | |
| 57 | 27 | </div> |
| 58 | 28 | |
| 59 | 29 | <!--wp-chatbot-header--> |
| 60 | 30 | <div class="wp-chatbot-ball-inner wp-chatbot-content"> |
| @@ -73,21 +43,31 @@ | ||
| 73 | 43 | </div> |
| 74 | 44 | </div> |
| 75 | 45 | <div class="wp-chatbot-footer"> |
| 76 | 46 | <div id="wp-chatbot-editor-container" class="wp-chatbot-editor-container"> |
| 77 | - | |
| 78 | - <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')))); ?>" | |
| 47 | + <input id="wp-chatbot-editor" class="wp-chatbot-editor" required placeholder="<?php echo wpb_randmom_message_handle(unserialize(get_option('qlcd_wp_chatbot_send_a_msg'))); ?>" | |
| 79 | 48 | > |
| 80 | - <button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><span class="dashicons dashicons-arrow-up-alt"></span></button> | |
| 49 | + <button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><?php esc_html_e('send', 'wpchatbot'); ?></button> | |
| 81 | 50 | </div> |
| 82 | 51 | <!--wp-chatbot-editor-container--> |
| 83 | 52 | <div class="wp-chatbot-tab-nav"> |
| 84 | - | |
| 53 | + <!--<ul> | |
| 54 | + <li><a class="wp-chatbot-operation-option" data-option="help" href=""></a></li> | |
| 55 | + <li><a class="wp-chatbot-operation-option" data-option="support" href=""></a></li> | |
| 56 | + <li class="wp-chatbot-operation-active"><a class="wp-chatbot-operation-option" data-option="chat" href=""></a></li> | |
| 57 | + <li><a class="wp-chatbot-operation-option" data-option="recent" href=""></a></li> | |
| 58 | + <li> | |
| 59 | + <a class="wp-chatbot-operation-option" data-option="cart" href=""> | |
| 60 | + <?php if (get_option('disable_wp_chatbot_cart_item_number') != 1) { ?> <span | |
| 61 | + id="wp-chatbot-cart-numbers"><?php echo $cart_items_number; ?></span> <?php } ?> | |
| 62 | + </a> | |
| 63 | + </li> | |
| 64 | + </ul>--> | |
| 85 | 65 | <ul> |
| 86 | - <li><a class="wp-chatbot-operation-option" data-option="help" href="" title="<?php echo esc_html__('Help', 'chatbot'); ?>"></a></li> | |
| 66 | + <li><a class="wp-chatbot-operation-option" data-option="help" href="" title="<?php echo esc_html__('Help', 'wpchatbot'); ?>"></a></li> | |
| 87 | 67 | |
| 88 | - <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> | |
| 89 | - <li><a class="wp-chatbot-operation-option" data-option="support" href="" title="<?php echo esc_html__('Support', 'chatbot'); ?>"></a></li> | |
| 68 | + <li class="wp-chatbot-operation-active"><a class="wp-chatbot-operation-option" data-option="chat" href="" title="<?php echo esc_html__('Chat', 'wpchatbot'); ?>"></a></li> | |
| 69 | + <li><a class="wp-chatbot-operation-option" data-option="support" href="" title="<?php echo esc_html__('Support', 'wpchatbot'); ?>"></a></li> | |
| 90 | 70 | </ul> |
| 91 | 71 | </div> |
| 92 | 72 | <!--wp-chatbot-tab-nav--> |
| 93 | 73 | </div> |