Files
eveAI/integrations/Wordpress/eveai-chat/admin/views/settings-page.php

24 lines
1.2 KiB
PHP

<div class="wrap">
<h1><?php echo esc_html(get_admin_page_title()); ?></h1>
<form action="options.php" method="post">
<?php
settings_fields('eveai_chat_settings');
do_settings_sections('eveai-chat-settings');
submit_button('Save Settings');
?>
</form>
<div class="eveai-chat-help">
<h2><?php esc_html_e('How to Use EveAI Chat', 'eveai-chat'); ?></h2>
<p><?php esc_html_e('To add the chat widget to your pages or posts, use the following shortcode:', 'eveai-chat'); ?></p>
<code>[eveai_chat language="en" languages="en,fr,de" specialist_id="1"]</code>
<h3><?php esc_html_e('Available Shortcode Parameters:', 'eveai-chat'); ?></h3>
<ul>
<li><strong>language</strong>: <?php esc_html_e('Default language for the chat widget (default: en)', 'eveai-chat'); ?></li>
<li><strong>languages</strong>: <?php esc_html_e('Comma-separated list of supported languages (default: en)', 'eveai-chat'); ?></li>
<li><strong>specialist_id</strong>: <?php esc_html_e('ID of the specialist to use (default: 1)', 'eveai-chat'); ?></li>
</ul>
</div>
</div>