' . esc_html__('Chat is currently disabled.', 'ai-eshop-optimizer') . '

'; } if (get_option('aieo_chat_require_login', '0') === '1' && !is_user_logged_in()) { return '

' . sprintf( wp_kses_post(__('Please log in to use the chat.', 'ai-eshop-optimizer')), esc_url(wp_login_url(get_permalink())) ) . '

'; } $atts = shortcode_atts(array( 'height' => '600px', 'width' => '800px', 'pictures' => 'enabled' ), $atts); $chat_id = 'aieo-chat-' . wp_rand(1000, 9999); wp_enqueue_style('aieo-chat-frontend'); wp_enqueue_script('aieo-chat-frontend'); $output = '
'; $output .= '
' . esc_html__('Loading chat...', 'ai-eshop-optimizer') . '
'; $output .= '
'; return $output; } }