| 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 |
|
| 7 |
|
| 8 |
<div class="lineanimation"> |
| 9 |
<svg width="350" height="350" viewBox="0 0 308 309" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 10 |
<defs> |
| 11 |
<circle id="a" cx="150" cy="150" r="150"></circle> |
| 12 |
<linearGradient x1="50%" y1="0%" x2="50%" y2="62.304%" id="c"> |
| 13 |
<stop stop-color="#09DFF3" offset="0%"></stop> |
| 14 |
<stop stop-color="#44BEFF" offset="100%"></stop> |
| 15 |
</linearGradient> |
| 16 |
</defs> |
| 17 |
<g> |
| 18 |
<path id="l1" d="M0 130 L300 130"></path> |
| 19 |
<path id="l2" d="M0 150 L300 150"></path> |
| 20 |
<path id="l3" d="M0 170 L300 170"></path> |
| 21 |
<path id="l4" d="M0 190 L300 190"></path> |
| 22 |
</g> |
| 23 |
</svg> |
| 24 |
</div> |
| 25 |
|
| 26 |
<div class="row"> |
| 27 |
|
| 28 |
<div class="col-auto me-auto ai-settings-title-container"> |
| 29 |
|
| 30 |
<h4><?php esc_html_e( 'AI Settings','openai_addon');?></h4> |
| 31 |
|
| 32 |
<select id="ai-provider-selector" class="form-select ai-settings-selector"> |
| 33 |
<option value="openai" <?php echo (get_option( 'ai_enabled') == 1) ? esc_attr( 'selected','wpchatbot') :'';?> ><?php echo esc_html__( 'OpenAI','wpchatbot')?></option> |
| 34 |
|
| 35 |
<option value="openrouter" <?php echo (get_option( 'qcld_openrouter_enabled') == 1) ? esc_attr( 'selected','wpchatbot') :'';?> ><?php echo esc_html__( 'OpenRouter','wpchatbot')?></option> |
| 36 |
</select> |
| 37 |
</div> |
| 38 |
|
| 39 |
</div> |
| 40 |
</div> |
| 41 |
<div id="openai-settings" class="ai-settings-provider" <?php echo (get_option( 'ai_enabled') == 1) || (get_option( 'qcld_openrouter_enabled') == 0) ? 'style="display: block;"' :'style="display: none;"';?> > |
| 42 |
<?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openai/admin/admin_ui2.php'); ?> |
| 43 |
</div> |
| 44 |
<div id="openrouter-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_openrouter_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> > |
| 45 |
<?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openrouter/admin/settings.php'); ?> |
| 46 |
</div> |
| 47 |
<div class="card-footer bg-dark text-white py-sm-4 border-0"></div> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
|
| 53 |
|
| 54 |
<style> |
| 55 |
|
| 56 |
div#promotion-wpchatbot { |
| 57 |
margin: 0; |
| 58 |
padding: 0; |
| 59 |
border: none; |
| 60 |
max-width: initial !important; |
| 61 |
padding: 0 !important; |
| 62 |
margin: 20px 20px 20px 0 !important; |
| 63 |
padding: 15px 15px 15px 0 !important; |
| 64 |
border: none !important; |
| 65 |
border-radius: 6px !important; |
| 66 |
box-shadow: 0px 4px 6px 1px #ebebeb !important; |
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
.qc-review-notice{ |
| 71 |
max-width: initial !important; |
| 72 |
padding: 0 !important; |
| 73 |
margin: 20px 20px 20px 0 !important; |
| 74 |
padding: 15px 15px 15px 0 !important; |
| 75 |
border: none !important; |
| 76 |
border-radius: 6px !important; |
| 77 |
box-shadow: 0px 4px 6px 1px #ebebeb !important; |
| 78 |
background: #fff; |
| 79 |
color: #000; |
| 80 |
} |
| 81 |
|
| 82 |
.qc-review-text h3 { |
| 83 |
color: #000000; |
| 84 |
} |
| 85 |
.qc-review-text p { |
| 86 |
color: #000000; |
| 87 |
} |
| 88 |
</style> |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|