| @@ -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,13 @@ | ||
| 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-reload" title="Reset"><span class="dashicons dashicons-update-alt"></span></div> | |
| 27 | + <!-- <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> --> | |
| 28 | + <div id="wp-chatbot-desktop-close"><span class="dashicons dashicons-no"></span></div> | |
| 57 | 29 | </div> |
| 58 | 30 | |
| 59 | 31 | <!--wp-chatbot-header--> |
| 60 | 32 | <div class="wp-chatbot-ball-inner wp-chatbot-content"> |
| @@ -73,21 +45,20 @@ | ||
| 73 | 45 | </div> |
| 74 | 46 | </div> |
| 75 | 47 | <div class="wp-chatbot-footer"> |
| 76 | 48 | <div id="wp-chatbot-editor-container" class="wp-chatbot-editor-container"> |
| 77 | - | |
| 78 | 49 | <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')))); ?>" |
| 79 | 50 | > |
| 80 | - <button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><span class="dashicons dashicons-arrow-up-alt"></span></button> | |
| 51 | + <button type="button" id="wp-chatbot-send-message" class="wp-chatbot-button"><?php esc_html_e('send', 'wpchatbot'); ?></button> | |
| 81 | 52 | </div> |
| 82 | 53 | <!--wp-chatbot-editor-container--> |
| 83 | 54 | <div class="wp-chatbot-tab-nav"> |
| 84 | 55 | |
| 85 | 56 | <ul> |
| 86 | - <li><a class="wp-chatbot-operation-option" data-option="help" href="" title="<?php echo esc_html__('Help', 'chatbot'); ?>"></a></li> | |
| 57 | + <li><a class="wp-chatbot-operation-option" data-option="help" href="" title="<?php echo esc_html__('Help', 'wpchatbot'); ?>"></a></li> | |
| 87 | 58 | |
| 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> | |
| 59 | + <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> | |
| 60 | + <li><a class="wp-chatbot-operation-option" data-option="support" href="" title="<?php echo esc_html__('Support', 'wpchatbot'); ?>"></a></li> | |
| 90 | 61 | </ul> |
| 91 | 62 | </div> |
| 92 | 63 | <!--wp-chatbot-tab-nav--> |
| 93 | 64 | </div> |