' . esc_html__('Customize the appearance of your chatbot to match your website\'s theme.', 'ai-blog-helper') . '
'; } public function content_section_callback() { echo '' . esc_html__('Configure the content displayed in the chat window.', 'ai-blog-helper') . '
'; } public function contact_section_callback() { echo '' . esc_html__('Enable and configure the contact form feature.', 'ai-blog-helper') . '
'; } public function email_section_callback() { echo '' . esc_html__('Configure Gmail SMTP settings for sending emails from your website.', 'ai-blog-helper') . '
'; } /** * Field callbacks */ public function gemini_api_key_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['gemini_api_key']) ? $options['gemini_api_key'] : ''; echo ''; echo '' . esc_html__('Enter your Google Gemini API key.', 'ai-blog-helper') . '
'; } public function theme_color_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['theme_color']) ? $options['theme_color'] : '#0073aa'; echo ''; echo '' . esc_html__('Select the primary color for the chatbot.', 'ai-blog-helper') . '
'; } public function bot_icon_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['bot_icon']) ? $options['bot_icon'] : ''; $site_icon = get_site_icon_url(); echo ''; echo '' . esc_html__('Upload a custom bot icon. If no icon is uploaded, the default three-dot icon will be used.', 'ai-blog-helper') . '
'; } public function bot_icon_color_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['bot_icon_color']) ? $options['bot_icon_color'] : '#ffffff'; echo ''; echo '' . esc_html__('Select the color for the default three-dot bot icon.', 'ai-blog-helper') . '
'; } public function header_logo_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['header_logo']) ? $options['header_logo'] : ''; echo '' . esc_html__('Upload a logo to display at the top of the chat window.', 'ai-blog-helper') . '
'; } public function welcome_message_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['welcome_message']) ? $options['welcome_message'] : 'Welcome [WebsiteName] reader, have a nice day! How can I help you?'; echo ''; echo '' . esc_html__('Customize the welcome message. Use [WebsiteName] as a placeholder for your site name.', 'ai-blog-helper') . '
'; } public function contact_enabled_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['contact_enabled']) ? $options['contact_enabled'] : false; echo ''; echo ''; } public function smtp_username_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['smtp_username']) ? $options['smtp_username'] : ''; echo ''; echo '' . esc_html__('Enter your Gmail address (e.g., yourname@gmail.com).', 'ai-blog-helper') . '
'; } public function smtp_password_callback() { $options = get_option('aiblhewi_options'); $value = isset($options['smtp_password']) ? $options['smtp_password'] : ''; echo ''; echo '' . wp_kses_post( __('Enter your Google App Password (not your regular Gmail password). Generate one at Google App Passwords.', 'ai-blog-helper') ) . '
'; } }