| @@ -1,108 +1,68 @@ | ||
| 1 | - | |
| 2 | -<div class="qcl-openai"> | |
| 3 | - <div class="row gx-0"> | |
| 4 | - <div class="col-xs-12"> | |
| 5 | - <div class="card admin-maxwith qcld-openai-main-box"> | |
| 6 | - <div class="card-header bg-dark text-white py-sm-4 border-0">> | |
| 7 | - | |
| 8 | - <div class="row"> | |
| 9 | - <div class="col-auto me-auto"> | |
| 10 | - <h4><?php | |
| 11 | -if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
| 12 | -esc_html_e( 'OpenAI Settings','chatbot');?></h4> | |
| 13 | - </div> | |
| 14 | - </div> | |
| 15 | - </div> | |
| 16 | - <div class="card-body p-sm-0"> | |
| 17 | - <!-- <div class="alert alert-danger" role="alert"> | |
| 18 | - <?php // echo esc_html__('OpenAI has disabled some of the older models. Please use GPT 3.5 or 4 to Fine tune. You need to update the dataset and Fine tune again. Please check the Help section for details.', 'chatbot'); ?> | |
| 19 | - </div> --> | |
| 20 | - <ul class="nav nav-tabs"> | |
| 21 | - <li class="active"><a data-toggle="tab" href="#wp-chatbot-openai-settings"><i class="dashicons dashicons-admin-generic"></i><?php echo esc_html__('OpenAI settings', 'chatbot'); ?></a></li> | |
| 22 | - <li><a data-toggle="tab" href="#wp-chatbot-openai-training-model"><i class="dashicons dashicons-plugins-checked"></i> <?php echo esc_html__('Training Model', 'chatbot'); ?></a></li> | |
| 23 | - <li><a data-toggle="tab" href="#wp-chatbot-openai-assistants"> <i class="dashicons dashicons-admin-home"></i><?php echo esc_html__('GPT Assistant', 'chatbot'); ?></a></li> | |
| 24 | - <li><a data-toggle="tab" href="#wp-chatbot-data_post_converter"><i class="dashicons dashicons-database-add"></i><?php echo esc_html__('Fine Tune with Website Data', 'chatbot'); ?></a></li> | |
| 25 | - <li><a data-toggle="tab" href="#wp-chatbot-img_generator"><i class="dashicons dashicons-format-gallery"></i><?php echo esc_html__('AI Image Generator', 'chatbot'); ?></a></li> | |
| 26 | - <li><a data-toggle="tab" href="#wp-chatbot-content_writer"><i class="dashicons dashicons-format-status"></i><?php echo esc_html__('AI Article Generator', 'chatbot'); ?></a></li> | |
| 27 | - <li><a data-toggle="tab" href="#wp-chatbot-openai-help"><i class="dashicons dashicons-editor-help"></i> <?php echo esc_html__('Help', 'chatbot'); ?></a></li> | |
| 28 | - </ul> | |
| 29 | - <div class="tab-content"> | |
| 30 | - <div id="wp-chatbot-openai-settings" class="tab-pane in active"> | |
| 31 | - <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/settings.php'); ?> | |
| 32 | - </div> | |
| 33 | - <div id="wp-chatbot-openai-training-model" class="tab-pane"> | |
| 34 | - <?php | |
| 35 | - require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/files.php'); | |
| 36 | - ?> | |
| 37 | - </div> | |
| 38 | - <div id="wp-chatbot-openai-assistants" class="tab-pane"> | |
| 39 | - <?php | |
| 40 | - require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/assistant.php'); | |
| 41 | - ?> | |
| 42 | - </div> | |
| 43 | - <div id="wp-chatbot-data_post_converter" class="tab-pane"> | |
| 44 | - <?php | |
| 45 | - require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/data_post_converter.php'); | |
| 46 | - ?> | |
| 47 | - </div> | |
| 48 | - <div id="wp-chatbot-img_generator" class="tab-pane"> | |
| 49 | - <div class="row"> | |
| 50 | - <div class="col-xs-12"> | |
| 51 | - <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/img_generator.php' ); ?> | |
| 52 | - </div> | |
| 53 | - </div> | |
| 54 | - </div> | |
| 55 | - <div id="wp-chatbot-content_writer" class="tab-pane"> | |
| 56 | - <div class="row"> | |
| 57 | - <div class="col-xs-12"> | |
| 58 | - <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/content_writer.php' ); ?> | |
| 59 | - </div> | |
| 60 | - </div> | |
| 61 | - </div> | |
| 62 | - <div id="wp-chatbot-openai-help" class="tab-pane"> | |
| 63 | - <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/help.php' ); ?> | |
| 64 | - </div> | |
| 65 | - </div> | |
| 66 | - </div> | |
| 67 | - <div class="card-footer bg-dark text-white py-sm-4 border-0"></div> | |
| 68 | - </div> | |
| 69 | - </div> | |
| 70 | - </div> | |
| 71 | -</div> | |
| 72 | - | |
| 73 | - | |
| 74 | -<style> | |
| 75 | - | |
| 76 | -div#promotion-wpchatbot { | |
| 77 | - margin: 0; | |
| 78 | - padding: 0; | |
| 79 | - border: none; | |
| 80 | - max-width: initial !important; | |
| 81 | - padding: 0 !important; | |
| 82 | - margin: 20px 20px 20px 0 !important; | |
| 83 | - padding: 15px 15px 15px 0 !important; | |
| 84 | - border: none !important; | |
| 85 | - border-radius: 6px !important; | |
| 86 | - box-shadow: 0px 4px 6px 1px #ebebeb !important; | |
| 87 | -} | |
| 88 | - | |
| 89 | - | |
| 90 | -.qc-review-notice{ | |
| 91 | - max-width: initial !important; | |
| 92 | - padding: 0 !important; | |
| 93 | - margin: 20px 20px 20px 0 !important; | |
| 94 | - padding: 15px 15px 15px 0 !important; | |
| 95 | - border: none !important; | |
| 96 | - border-radius: 6px !important; | |
| 97 | - box-shadow: 0px 4px 6px 1px #ebebeb !important; | |
| 98 | - background: #fff; | |
| 99 | - color: #000; | |
| 100 | -} | |
| 101 | - | |
| 102 | -.qc-review-text h3 { | |
| 103 | - color: #000000; | |
| 104 | -} | |
| 105 | -.qc-review-text p { | |
| 106 | - color: #000000; | |
| 107 | -} | |
| 108 | -</style> | |
| 1 | +<div class="qcl-openai"> | |
| 2 | + <div class="row gx-0"> | |
| 3 | + <div class="col-xs-12"> | |
| 4 | + <div class="card admin-maxwith"> | |
| 5 | + <div class="card-header bg-dark text-white py-sm-4 border-0"> | |
| 6 | + <div class="row"> | |
| 7 | + <div class="col-auto me-auto"> | |
| 8 | + <h4><?php esc_html_e( 'OpenAI Settings','openai_addon');?></h4> | |
| 9 | + </div> | |
| 10 | + </div> | |
| 11 | + </div> | |
| 12 | + <div class="card-body p-sm-0"> | |
| 13 | + <!-- <div class="alert alert-danger" role="alert"> | |
| 14 | + <?php // echo esc_html__('OpenAI has disabled some of the older models. Please use GPT 3.5 or 4 to Fine tune. You need to update the dataset and Fine tune again. Please check the Help section for details.', 'wpchatbot'); ?> | |
| 15 | + </div> --> | |
| 16 | + <ul class="nav nav-tabs"> | |
| 17 | + <li class="active"><a data-toggle="tab" href="#wp-chatbot-openai-settings"><?php echo esc_html__('OpenAI settings', 'wpchatbot'); ?></a></li> | |
| 18 | + <li><a data-toggle="tab" href="#wp-chatbot-openai-training-model"><?php echo esc_html__('Training Model', 'wpchatbot'); ?></a></li> | |
| 19 | + <li><a data-toggle="tab" href="#wp-chatbot-openai-assistants"><?php echo esc_html__('GPT Assistant', 'wpchatbot'); ?></a></li> | |
| 20 | + <li><a data-toggle="tab" href="#wp-chatbot-data_post_converter"><?php echo esc_html__('Fine Tune with Website Data', 'wpchatbot'); ?></a></li> | |
| 21 | + <li><a data-toggle="tab" href="#wp-chatbot-img_generator"><?php echo esc_html__('AI Image Generator', 'wpchatbot'); ?></a></li> | |
| 22 | + <li><a data-toggle="tab" href="#wp-chatbot-content_writer"><?php echo esc_html__('AI Article Generator', 'wpchatbot'); ?></a></li> | |
| 23 | + <li><a data-toggle="tab" href="#wp-chatbot-openai-help"><?php echo esc_html__('Help', 'wpchatbot'); ?></a></li> | |
| 24 | + </ul> | |
| 25 | + <div class="tab-content"> | |
| 26 | + <div id="wp-chatbot-openai-settings" class="tab-pane in active"> | |
| 27 | + <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/settings.php'); ?> | |
| 28 | + </div> | |
| 29 | + <div id="wp-chatbot-openai-training-model" class="tab-pane"> | |
| 30 | + <?php | |
| 31 | + require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/files.php'); | |
| 32 | + ?> | |
| 33 | + </div> | |
| 34 | + <div id="wp-chatbot-openai-assistants" class="tab-pane"> | |
| 35 | + <?php | |
| 36 | + require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/assistant.php'); | |
| 37 | + ?> | |
| 38 | + </div> | |
| 39 | + <div id="wp-chatbot-data_post_converter" class="tab-pane"> | |
| 40 | + <?php | |
| 41 | + require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/data_post_converter.php'); | |
| 42 | + ?> | |
| 43 | + </div> | |
| 44 | + <div id="wp-chatbot-img_generator" class="tab-pane"> | |
| 45 | + <div class="row"> | |
| 46 | + <div class="col-xs-12"> | |
| 47 | + <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/img_generator.php' ); ?> | |
| 48 | + </div> | |
| 49 | + </div> | |
| 50 | + </div> | |
| 51 | + <div id="wp-chatbot-content_writer" class="tab-pane"> | |
| 52 | + <div class="row"> | |
| 53 | + <div class="col-xs-12"> | |
| 54 | + <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/content_writer.php' ); ?> | |
| 55 | + </div> | |
| 56 | + </div> | |
| 57 | + </div> | |
| 58 | + <div id="wp-chatbot-openai-help" class="tab-pane"> | |
| 59 | + <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/openai/admin/help.php' ); ?> | |
| 60 | + </div> | |
| 61 | + </div> | |
| 62 | + </div> | |
| 63 | + <div class="card-footer bg-dark text-white py-sm-4 border-0"></div> | |
| 64 | + </div> | |
| 65 | + </div> | |
| 66 | + </div> | |
| 67 | +</div> | |
| 68 | + | |