Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/aimogen-pro/res/aiomatic-main.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
defined('ABSPATH') or die();
3
+
function aiomatic_admin_settings()
4
+
{
5
+
if(!function_exists('is_plugin_active'))
6
+
{
7
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
8
+
}
9
+
$all_models = aiomatic_get_all_models(true);
10
+
$all_assistants = aiomatic_get_all_assistants(true);
11
+
require_once (dirname(__FILE__) . "/aiomatic-languages.php");
12
+
?>
13
+
<div class="wp-header-end"></div>
14
+
<div class="ai-display-grid aiomatic-client-settings-wrapper">
15
+
<div>
16
+
<div class="ultimate-header">
17
+
<img class="client-logo" src="<?php echo esc_url(plugins_url( '/../images/ai.png', __FILE__ )); ?>" alt="WordPress" height="50" width="62" />
18
+
<h1><?php esc_html_e( 'Aimogen Pro - AI Content Writer, Editor, ChatBot & AI Toolkit', 'aiomatic-automatic-ai-content-writer' ); ?><span class="aiomatic-brand-dash-developer"><?php esc_html_e( 'Version', 'aiomatic-automatic-ai-content-writer' ); ?> <?php echo esc_html(aimogenpro_get_version());?></span></h1>
19
+
</div></div>
20
+
<div class="wrap">
21
+
<div class="aiomatic-page-navigation vertical left clearfix">
22
+
<div class="aiomatic-tabs-navigation-wrapper">
23
+
<nav class="nav-tab-wrapper">
24
+
<a href="#tab-15" class="aiomatic-nav-tab"><?php echo esc_html__("Welcome", 'aiomatic-automatic-ai-content-writer');?></a>
25
+
<a href="#tab-1" class="aiomatic-nav-tab"><?php echo esc_html__("Plugin Activation", 'aiomatic-automatic-ai-content-writer');?></a>
26
+
<?php
27
+
$plugin = plugin_basename(__FILE__);
28
+
$plugin_slug = explode('/', $plugin);
29
+
$plugin_slug = $plugin_slug[0];
30
+
$uoptions = array();
31
+
$is_activated = aiomatic_is_activated($plugin_slug, $uoptions);
32
+
if($is_activated === true || $is_activated === 2 || $is_activated === -2)
33
+
{
34
+
?>
35
+
<a href="#tab-2" class="aiomatic-nav-tab"><?php echo esc_html__("API Keys", 'aiomatic-automatic-ai-content-writer');?></a>
36
+
<a href="#tab-7" class="aiomatic-nav-tab"><?php echo esc_html__("General Settings", 'aiomatic-automatic-ai-content-writer');?></a>
37
+
<a href="#tab-17" class="aiomatic-nav-tab"><?php echo esc_html__("Bulk Posts", 'aiomatic-automatic-ai-content-writer');?></a>
38
+
<a href="#tab-32" class="aiomatic-nav-tab"><?php echo esc_html__("OmniBlocks", 'aiomatic-automatic-ai-content-writer');?></a>
39
+
<a href="#tab-34" class="aiomatic-nav-tab"><?php echo esc_html__("AI Undetectability", 'aiomatic-automatic-ai-content-writer');?></a>
40
+
<a href="#tab-29" class="aiomatic-nav-tab"><?php echo esc_html__("Advanced AI Settings", 'aiomatic-automatic-ai-content-writer');?></a>
41
+
<a href="#tab-4" class="aiomatic-nav-tab"><?php echo esc_html__("AI Images", 'aiomatic-automatic-ai-content-writer');?></a>
42
+
<a href="#tab-31" class="aiomatic-nav-tab"><?php echo esc_html__("AI Videos", 'aiomatic-automatic-ai-content-writer');?></a>
43
+
<a href="#tab-8" class="aiomatic-nav-tab"><?php echo esc_html__("Royalty Free Images", 'aiomatic-automatic-ai-content-writer');?></a>
44
+
<a href="#tab-28" class="aiomatic-nav-tab"><?php echo esc_html__("Cloud Storage", 'aiomatic-automatic-ai-content-writer');?></a>
45
+
<a href="#tab-5" class="aiomatic-nav-tab"><?php echo esc_html__("Statistics", 'aiomatic-automatic-ai-content-writer');?></a>
46
+
<a href="#tab-13" class="aiomatic-nav-tab"><?php echo esc_html__("Embeddings", 'aiomatic-automatic-ai-content-writer');?></a>
47
+
<a href="#tab-14" class="aiomatic-nav-tab"><?php echo esc_html__("AI Internet Access", 'aiomatic-automatic-ai-content-writer');?></a>
48
+
<a href="#tab-9" class="aiomatic-nav-tab"><?php echo esc_html__("Random Sentences", 'aiomatic-automatic-ai-content-writer');?></a>
49
+
<a href="#tab-10" class="aiomatic-nav-tab"><?php echo esc_html__("Custom HTML", 'aiomatic-automatic-ai-content-writer');?></a>
50
+
<a href="#tab-11" class="aiomatic-nav-tab"><?php echo esc_html__("Keyword Replacer", 'aiomatic-automatic-ai-content-writer');?></a>
51
+
<a href="#tab-20" class="aiomatic-nav-tab"><?php echo esc_html__("[aicontent] Shortcode", 'aiomatic-automatic-ai-content-writer');?></a>
52
+
<a href="#tab-16" class="aiomatic-nav-tab"><?php echo esc_html__("Content Wizard", 'aiomatic-automatic-ai-content-writer');?></a>
53
+
<a href="#tab-18" class="aiomatic-nav-tab"><?php echo esc_html__("AI Forms", 'aiomatic-automatic-ai-content-writer');?></a>
54
+
<a href="#tab-21" class="aiomatic-nav-tab"><?php echo esc_html__("AI Commenter", 'aiomatic-automatic-ai-content-writer');?></a>
55
+
<a href="#tab-23" class="aiomatic-nav-tab"><?php echo esc_html__("Link Keywords", 'aiomatic-automatic-ai-content-writer');?></a>
56
+
<a href="#tab-24" class="aiomatic-nav-tab"><?php echo esc_html__("Social Media Embeds", 'aiomatic-automatic-ai-content-writer');?></a>
57
+
<a href="#tab-26" class="aiomatic-nav-tab"><?php echo esc_html__("AI Image Selector", 'aiomatic-automatic-ai-content-writer');?></a>
58
+
<a href="#tab-27" class="aiomatic-nav-tab"><?php echo esc_html__("AI Writer", 'aiomatic-automatic-ai-content-writer');?></a>
59
+
<a href="#tab-30" class="aiomatic-nav-tab"><?php echo esc_html__("Web Scraping", 'aiomatic-automatic-ai-content-writer');?></a>
60
+
<a href="#tab-25" class="aiomatic-nav-tab"><?php echo esc_html__("WP-CLI", 'aiomatic-automatic-ai-content-writer');?></a>
61
+
<a href="#tab-33" class="aiomatic-nav-tab"><?php echo esc_html__("REST API", 'aiomatic-automatic-ai-content-writer');?></a>
62
+
<div class="aiomatic-nav-tab"> </div>
63
+
<div class="aiomatic-nav-tab"> </div>
64
+
<?php
65
+
}
66
+
?>
67
+
</nav>
68
+
</div>
69
+
</div>
70
+
<div class="aiomatic-tab-content">
71
+
<form id="myForm" method="post" class="form-table" action="<?php if(is_multisite() && is_network_admin()){echo '../options.php';}else{echo 'options.php';}?>">
72
+
<div class="aiomatic-inner-wrapper settings-dashboard">
73
+
<div class="cr_autocomplete">
74
+
<input type="password" id="PreventChromeAutocomplete"
75
+
name="PreventChromeAutocomplete" autocomplete="on" />
76
+
</div>
77
+
<?php
78
+
settings_fields('aiomatic_option_group');
79
+
do_settings_sections('aiomatic_option_group');
80
+
$aiomatic_Main_Settings = get_option('aiomatic_Main_Settings', false);
81
+
if (isset($aiomatic_Main_Settings['aiomatic_enabled'])) {
82
+
$aiomatic_enabled = $aiomatic_Main_Settings['aiomatic_enabled'];
83
+
} else {
84
+
$aiomatic_enabled = '';
85
+
}
86
+
87
+
if (isset($aiomatic_Main_Settings['sentence_list'])) {
88
+
$sentence_list = $aiomatic_Main_Settings['sentence_list'];
89
+
} else {
90
+
$sentence_list = '';
91
+
}
92
+
if (isset($aiomatic_Main_Settings['sentence_list2'])) {
93
+
$sentence_list2 = $aiomatic_Main_Settings['sentence_list2'];
94
+
} else {
95
+
$sentence_list2 = '';
96
+
}
97
+
if (isset($aiomatic_Main_Settings['player_height'])) {
98
+
$player_height = $aiomatic_Main_Settings['player_height'];
99
+
} else {
100
+
$player_height = '';
101
+
}
102
+
if (isset($aiomatic_Main_Settings['improve_yt_kw'])) {
103
+
$improve_yt_kw = $aiomatic_Main_Settings['improve_yt_kw'];
104
+
} else {
105
+
$improve_yt_kw = '';
106
+
}
107
+
if (isset($aiomatic_Main_Settings['yt_kw_model'])) {
108
+
$yt_kw_model = $aiomatic_Main_Settings['yt_kw_model'];
109
+
} else {
110
+
$yt_kw_model = '';
111
+
}
112
+
if (isset($aiomatic_Main_Settings['yt_assistant_id'])) {
113
+
$yt_assistant_id = $aiomatic_Main_Settings['yt_assistant_id'];
114
+
} else {
115
+
$yt_assistant_id = '';
116
+
}
117
+
if (isset($aiomatic_Main_Settings['kw_assistant_id'])) {
118
+
$kw_assistant_id = $aiomatic_Main_Settings['kw_assistant_id'];
119
+
} else {
120
+
$kw_assistant_id = '';
121
+
}
122
+
if (isset($aiomatic_Main_Settings['yt_kw_prompt'])) {
123
+
$yt_kw_prompt = $aiomatic_Main_Settings['yt_kw_prompt'];
124
+
} else {
125
+
$yt_kw_prompt = '';
126
+
}
127
+
if (isset($aiomatic_Main_Settings['insta_kw_prompt'])) {
128
+
$insta_kw_prompt = $aiomatic_Main_Settings['insta_kw_prompt'];
129
+
} else {
130
+
$insta_kw_prompt = '';
131
+
}
132
+
if (isset($aiomatic_Main_Settings['ai_writer_model'])) {
133
+
$ai_writer_model = $aiomatic_Main_Settings['ai_writer_model'];
134
+
} else {
135
+
$ai_writer_model = '';
136
+
}
137
+
if (isset($aiomatic_Main_Settings['writer_assistant_id'])) {
138
+
$writer_assistant_id = $aiomatic_Main_Settings['writer_assistant_id'];
139
+
} else {
140
+
$writer_assistant_id = '';
141
+
}
142
+
if (isset($aiomatic_Main_Settings['ai_writer_title_prompt'])) {
143
+
$ai_writer_title_prompt = $aiomatic_Main_Settings['ai_writer_title_prompt'];
144
+
} else {
145
+
$ai_writer_title_prompt = 'Don\'t act as a virtual assistant, return only the content you are asked. Create a captivating and concise SEO title in English for your WordPress %%post_type%%: "%%post_title_idea%%". Boost its search engine visibility with relevant keywords for maximum impact.';
146
+
}
147
+
if (isset($aiomatic_Main_Settings['ai_writer_seo_prompt'])) {
148
+
$ai_writer_seo_prompt = $aiomatic_Main_Settings['ai_writer_seo_prompt'];
149
+
} else {
150
+
$ai_writer_seo_prompt = 'Don\'t act as a virtual assistant, return only the content you are asked. Craft an enticing and succinct meta description in English for your WordPress %%post_type%%: "%%post_title_idea%%". Emphasize the notable features and advantages in just 155 characters, incorporating relevant keywords to optimize its SEO performance.';
151
+
}
152
+
if (isset($aiomatic_Main_Settings['ai_writer_seo_title_prompt'])) {
153
+
$ai_writer_seo_title_prompt = $aiomatic_Main_Settings['ai_writer_seo_title_prompt'];
154
+
} else {
155
+
$ai_writer_seo_title_prompt = 'Don\'t act as a virtual assistant, return only the content you are asked. Craft an enticing and succinct SEO meta title in English for your WordPress %%post_type%%: "%%post_title_idea%%".';
156
+
}
157
+
if (isset($aiomatic_Main_Settings['ai_writer_content_prompt'])) {
158
+
$ai_writer_content_prompt = $aiomatic_Main_Settings['ai_writer_content_prompt'];
159
+
} else {
160
+
$ai_writer_content_prompt = 'Don\'t act as a virtual assistant, return only the content you are asked. Create a captivating and comprehensive English description for your WordPress %%post_type%%: "%%post_title_idea%%". Dive into specific details, highlighting its unique features of this subject, if possible, benefits, and the value it brings. Craft a compelling narrative around the %%post_type%% that captivates the audience. Use HTML for formatting, include unnumbered lists and bold. Writing Style: Creative. Tone: Neutral.';
161
+
}
162
+
if (isset($aiomatic_Main_Settings['ai_writer_excerpt_prompt'])) {
163
+
$ai_writer_excerpt_prompt = $aiomatic_Main_Settings['ai_writer_excerpt_prompt'];
164
+
} else {
165
+
$ai_writer_excerpt_prompt = 'Don\'t act as a virtual assistant, return only the content you are asked. Write a captivating and succinct English summary for the WordPress %%post_type%%: "%%post_title_idea%%", accentuating its pivotal features, advantages, and distinctive qualities.';
166
+
}
167
+
if (isset($aiomatic_Main_Settings['ai_writer_tags_prompt'])) {
168
+
$ai_writer_tags_prompt = $aiomatic_Main_Settings['ai_writer_tags_prompt'];
169
+
} else {
170
+
$ai_writer_tags_prompt = 'Don\'t act as a virtual assistant, return only the content you are asked. Suggest a series of pertinent keywords in English for your WordPress %%post_type%%: "%%post_title_idea%%". These keywords should be closely connected to the %%post_type%%, optimizing its visibility. Please present the keywords in a comma-separated format without using symbols like -, #, etc.';
171
+
}
172
+
if (isset($aiomatic_Main_Settings['aiomatic_focus_prompt'])) {
173
+
$aiomatic_focus_prompt = $aiomatic_Main_Settings['aiomatic_focus_prompt'];
174
+
} else {
175
+
$aiomatic_focus_prompt = 'Don\'t act as a virtual assistant, return only the content you are asked. Craft a single focus keyword in English for your WordPress post: "%%post_title_idea%%".';
176
+
}
177
+
if (isset($aiomatic_Main_Settings['deepl_auth'])) {
178
+
$deepl_auth = $aiomatic_Main_Settings['deepl_auth'];
179
+
} else {
180
+
$deepl_auth = '';
181
+
}
182
+
if (isset($aiomatic_Main_Settings['deppl_free'])) {
183
+
$deppl_free = $aiomatic_Main_Settings['deppl_free'];
184
+
} else {
185
+
$deppl_free = '';
186
+
}
187
+
if (isset($aiomatic_Main_Settings['bing_auth'])) {
188
+
$bing_auth = $aiomatic_Main_Settings['bing_auth'];
189
+
} else {
190
+
$bing_auth = '';
191
+
}
192
+
if (isset($aiomatic_Main_Settings['bing_region'])) {
193
+
$bing_region = $aiomatic_Main_Settings['bing_region'];
194
+
} else {
195
+
$bing_region = '';
196
+
}
197
+
if (isset($aiomatic_Main_Settings['video_cfg_scale'])) {
198
+
$video_cfg_scale = $aiomatic_Main_Settings['video_cfg_scale'];
199
+
} else {
200
+
$video_cfg_scale = '';
201
+
}
202
+
if (isset($aiomatic_Main_Settings['cfg_seed'])) {
203
+
$cfg_seed = $aiomatic_Main_Settings['cfg_seed'];
204
+
} else {
205
+
$cfg_seed = '';
206
+
}
207
+
if (isset($aiomatic_Main_Settings['motion_bucket_id'])) {
208
+
$motion_bucket_id = $aiomatic_Main_Settings['motion_bucket_id'];
209
+
} else {
210
+
$motion_bucket_id = '';
211
+
}
212
+
if (isset($aiomatic_Main_Settings['kw_prompt'])) {
213
+
$kw_prompt = $aiomatic_Main_Settings['kw_prompt'];
214
+
} else {
215
+
$kw_prompt = 'Extract a comma-separated list of the most relevant single word keywords from the text, prioritizing specific references over general keywords. Add the highest priority to the most specific keyword that is still related to the main topic. The text is: \"%%content%%\".';
216
+
}
217
+
if (isset($aiomatic_Main_Settings['kw_model'])) {
218
+
$kw_model = $aiomatic_Main_Settings['kw_model'];
219
+
} else {
220
+
$kw_model = aiomatic_get_default_model_name($aiomatic_Main_Settings);
221
+
}
222
+
if (isset($aiomatic_Main_Settings['player_width'])) {
223
+
$player_width = $aiomatic_Main_Settings['player_width'];
224
+
} else {
225
+
$player_width = '';
226
+
}
227
+
if (isset($aiomatic_Main_Settings['global_req_words'])) {
228
+
$global_req_words = $aiomatic_Main_Settings['global_req_words'];
229
+
} else {
230
+
$global_req_words = '';
231
+
}
232
+
if (isset($aiomatic_Main_Settings['require_only_one'])) {
233
+
$require_only_one = $aiomatic_Main_Settings['require_only_one'];
234
+
} else {
235
+
$require_only_one = '';
236
+
}
237
+
if (isset($aiomatic_Main_Settings['global_ban_words'])) {
238
+
$global_ban_words = $aiomatic_Main_Settings['global_ban_words'];
239
+
} else {
240
+
$global_ban_words = '';
241
+
}
242
+
if (isset($aiomatic_Main_Settings['social_list'])) {
243
+
$social_list = $aiomatic_Main_Settings['social_list'];
244
+
} else {
245
+
$social_list = array();
246
+
}
247
+
if (isset($aiomatic_Main_Settings['youtube_cookies'])) {
248
+
$youtube_cookies = $aiomatic_Main_Settings['youtube_cookies'];
249
+
} else {
250
+
$youtube_cookies = '';
251
+
}
252
+
if (isset($aiomatic_Main_Settings['email_notification'])) {
253
+
$email_notification = $aiomatic_Main_Settings['email_notification'];
254
+
} else {
255
+
$email_notification = '';
256
+
}
257
+
if (isset($aiomatic_Main_Settings['image_ai_prompt'])) {
258
+
$image_ai_prompt = $aiomatic_Main_Settings['image_ai_prompt'];
259
+
} else {
260
+
$image_ai_prompt = '';
261
+
}
262
+
if (isset($aiomatic_Main_Settings['image_ai_model'])) {
263
+
$image_ai_model = $aiomatic_Main_Settings['image_ai_model'];
264
+
} else {
265
+
$image_ai_model = '';
266
+
}
267
+
if (isset($aiomatic_Main_Settings['img_assistant_id'])) {
268
+
$img_assistant_id = $aiomatic_Main_Settings['img_assistant_id'];
269
+
} else {
270
+
$img_assistant_id = '';
271
+
}
272
+
if (isset($aiomatic_Main_Settings['use_image_ai'])) {
273
+
$use_image_ai = $aiomatic_Main_Settings['use_image_ai'];
274
+
} else {
275
+
$use_image_ai = '';
276
+
}
277
+
if (isset($aiomatic_Main_Settings['gpt35_context_limit'])) {
278
+
$gpt35_context_limit = $aiomatic_Main_Settings['gpt35_context_limit'];
279
+
} else {
280
+
$gpt35_context_limit = '';
281
+
}
282
+
if (isset($aiomatic_Main_Settings['api_verbosity'])) {
283
+
$api_verbosity = $aiomatic_Main_Settings['api_verbosity'];
284
+
} else {
285
+
$api_verbosity = '';
286
+
}
287
+
if (isset($aiomatic_Main_Settings['api_reasoning'])) {
288
+
$api_reasoning = $aiomatic_Main_Settings['api_reasoning'];
289
+
} else {
290
+
$api_reasoning = '';
291
+
}
292
+
if (isset($aiomatic_Main_Settings['claude_context_limit'])) {
293
+
$claude_context_limit = $aiomatic_Main_Settings['claude_context_limit'];
294
+
} else {
295
+
$claude_context_limit = '';
296
+
}
297
+
if (isset($aiomatic_Main_Settings['claude_context_limit_200k'])) {
298
+
$claude_context_limit_200k = $aiomatic_Main_Settings['claude_context_limit_200k'];
299
+
} else {
300
+
$claude_context_limit_200k = '';
301
+
}
302
+
if (isset($aiomatic_Main_Settings['fallback_models'])) {
303
+
$fallback_models = $aiomatic_Main_Settings['fallback_models'];
304
+
} else {
305
+
$fallback_models = '';
306
+
}
307
+
if (isset($aiomatic_Main_Settings['assist_max_prompt_token'])) {
308
+
$assist_max_prompt_token = $aiomatic_Main_Settings['assist_max_prompt_token'];
309
+
} else {
310
+
$assist_max_prompt_token = '';
311
+
}
312
+
if (isset($aiomatic_Main_Settings['assist_max_completion_token'])) {
313
+
$assist_max_completion_token = $aiomatic_Main_Settings['assist_max_completion_token'];
314
+
} else {
315
+
$assist_max_completion_token = '';
316
+
}
317
+
if (isset($aiomatic_Main_Settings['gpt4_context_limit'])) {
318
+
$gpt4_context_limit = $aiomatic_Main_Settings['gpt4_context_limit'];
319
+
} else {
320
+
$gpt4_context_limit = '';
321
+
}
322
+
if (isset($aiomatic_Main_Settings['variable_list'])) {
323
+
$variable_list = $aiomatic_Main_Settings['variable_list'];
324
+
} else {
325
+
$variable_list = '';
326
+
}
327
+
if (isset($aiomatic_Main_Settings['enable_detailed_logging'])) {
328
+
$enable_detailed_logging = $aiomatic_Main_Settings['enable_detailed_logging'];
329
+
} else {
330
+
$enable_detailed_logging = '';
331
+
}
332
+
if (isset($aiomatic_Main_Settings['hide_videos'])) {
333
+
$hide_videos = $aiomatic_Main_Settings['hide_videos'];
334
+
} else {
335
+
$hide_videos = '';
336
+
}
337
+
if (isset($aiomatic_Main_Settings['proxy_url'])) {
338
+
$proxy_url = $aiomatic_Main_Settings['proxy_url'];
339
+
} else {
340
+
$proxy_url = '';
341
+
}
342
+
if (isset($aiomatic_Main_Settings['proxy_auth'])) {
343
+
$proxy_auth = $aiomatic_Main_Settings['proxy_auth'];
344
+
} else {
345
+
$proxy_auth = '';
346
+
}
347
+
if (isset($aiomatic_Main_Settings['proxy_ai'])) {
348
+
$proxy_ai = $aiomatic_Main_Settings['proxy_ai'];
349
+
} else {
350
+
$proxy_ai = '';
351
+
}
352
+
if (isset($aiomatic_Main_Settings['run_before'])) {
353
+
$run_before = $aiomatic_Main_Settings['run_before'];
354
+
} else {
355
+
$run_before = '';
356
+
}
357
+
if (isset($aiomatic_Main_Settings['run_after'])) {
358
+
$run_after = $aiomatic_Main_Settings['run_after'];
359
+
} else {
360
+
$run_after = '';
361
+
}
362
+
if (isset($aiomatic_Main_Settings['kw_lang'])) {
363
+
$kw_lang = $aiomatic_Main_Settings['kw_lang'];
364
+
} else {
365
+
$kw_lang = '';
366
+
}
367
+
if (isset($aiomatic_Main_Settings['kw_method'])) {
368
+
$kw_method = $aiomatic_Main_Settings['kw_method'];
369
+
} else {
370
+
$kw_method = 'builtin';
371
+
}
372
+
if (isset($aiomatic_Main_Settings['new_tab'])) {
373
+
$new_tab = $aiomatic_Main_Settings['new_tab'];
374
+
} else {
375
+
$new_tab = 'no';
376
+
}
377
+
if (isset($aiomatic_Main_Settings['max_len'])) {
378
+
$max_len = $aiomatic_Main_Settings['max_len'];
379
+
} else {
380
+
$max_len = '';
381
+
}
382
+
if (isset($aiomatic_Main_Settings['ai_image_size'])) {
383
+
$ai_image_size = $aiomatic_Main_Settings['ai_image_size'];
384
+
} else {
385
+
$ai_image_size = '512x512';
386
+
}
387
+
if (isset($aiomatic_Main_Settings['ai_image_model'])) {
388
+
$ai_image_model = $aiomatic_Main_Settings['ai_image_model'];
389
+
} else {
390
+
$ai_image_model = 'dalle2';
391
+
}
392
+
if (isset($aiomatic_Main_Settings['markdown_forms'])) {
393
+
$markdown_forms = $aiomatic_Main_Settings['markdown_forms'];
394
+
} else {
395
+
$markdown_forms = '';
396
+
}
397
+
if (isset($aiomatic_Main_Settings['katex_forms'])) {
398
+
$katex_forms = $aiomatic_Main_Settings['katex_forms'];
399
+
} else {
400
+
$katex_forms = '';
401
+
}
402
+
if (isset($aiomatic_Main_Settings['back_color'])) {
403
+
$back_color = $aiomatic_Main_Settings['back_color'];
404
+
} else {
405
+
$back_color = '#ffffff';
406
+
}
407
+
if (isset($aiomatic_Main_Settings['form_placeholder'])) {
408
+
$form_placeholder = $aiomatic_Main_Settings['form_placeholder'];
409
+
} else {
410
+
$form_placeholder = 'AI Result';
411
+
}
412
+
if (isset($aiomatic_Main_Settings['form_append'])) {
413
+
$form_append = $aiomatic_Main_Settings['form_append'];
414
+
} else {
415
+
$form_append = '';
416
+
}
417
+
if (isset($aiomatic_Main_Settings['form_prepend'])) {
418
+
$form_prepend = $aiomatic_Main_Settings['form_prepend'];
419
+
} else {
420
+
$form_prepend = '';
421
+
}
422
+
if (isset($aiomatic_Main_Settings['submit_location'])) {
423
+
$submit_location = $aiomatic_Main_Settings['submit_location'];
424
+
} else {
425
+
$submit_location = '1';
426
+
}
427
+
if (isset($aiomatic_Main_Settings['submit_align'])) {
428
+
$submit_align = $aiomatic_Main_Settings['submit_align'];
429
+
} else {
430
+
$submit_align = '1';
431
+
}
432
+
if (isset($aiomatic_Main_Settings['show_advanced'])) {
433
+
$show_advanced = $aiomatic_Main_Settings['show_advanced'];
434
+
} else {
435
+
$show_advanced = '';
436
+
}
437
+
if (isset($aiomatic_Main_Settings['store_data_forms'])) {
438
+
$store_data_forms = $aiomatic_Main_Settings['store_data_forms'];
439
+
} else {
440
+
$store_data_forms = '';
441
+
}
442
+
if (isset($aiomatic_Main_Settings['code_interpreter'])) {
443
+
$code_interpreter = $aiomatic_Main_Settings['code_interpreter'];
444
+
} else {
445
+
$code_interpreter = '';
446
+
}
447
+
if (isset($aiomatic_Main_Settings['web_search'])) {
448
+
$web_search = $aiomatic_Main_Settings['web_search'];
449
+
} else {
450
+
$web_search = '';
451
+
}
452
+
if (isset($aiomatic_Main_Settings['default_ai_model'])) {
453
+
$default_ai_model = $aiomatic_Main_Settings['default_ai_model'];
454
+
} else {
455
+
$default_ai_model = '';
456
+
}
457
+
if (isset($aiomatic_Main_Settings['show_rich_editor'])) {
458
+
$show_rich_editor = $aiomatic_Main_Settings['show_rich_editor'];
459
+
} else {
460
+
$show_rich_editor = '';
461
+
}
462
+
if (isset($aiomatic_Main_Settings['enable_copy'])) {
463
+
$enable_copy = $aiomatic_Main_Settings['enable_copy'];
464
+
} else {
465
+
$enable_copy = '';
466
+
}
467
+
if (isset($aiomatic_Main_Settings['enable_pdf'])) {
468
+
$enable_pdf = $aiomatic_Main_Settings['enable_pdf'];
469
+
} else {
470
+
$enable_pdf = '';
471
+
}
472
+
if (isset($aiomatic_Main_Settings['enable_download'])) {
473
+
$enable_download = $aiomatic_Main_Settings['enable_download'];
474
+
} else {
475
+
$enable_download = '';
476
+
}
477
+
if (isset($aiomatic_Main_Settings['disable_ai_form_saving'])) {
478
+
$disable_ai_form_saving = $aiomatic_Main_Settings['disable_ai_form_saving'];
479
+
} else {
480
+
$disable_ai_form_saving = '';
481
+
}
482
+
if (isset($aiomatic_Main_Settings['form_max_user'])) {
483
+
$form_max_user = $aiomatic_Main_Settings['form_max_user'];
484
+
} else {
485
+
$form_max_user = '';
486
+
}
487
+
if (isset($aiomatic_Main_Settings['enable_char_count'])) {
488
+
$enable_char_count = $aiomatic_Main_Settings['enable_char_count'];
489
+
} else {
490
+
$enable_char_count = '';
491
+
}
492
+
if (isset($aiomatic_Main_Settings['text_color'])) {
493
+
$text_color = $aiomatic_Main_Settings['text_color'];
494
+
} else {
495
+
$text_color = '#000000';
496
+
}
497
+
if (isset($aiomatic_Main_Settings['btext_color'])) {
498
+
$btext_color = $aiomatic_Main_Settings['btext_color'];
499
+
} else {
500
+
$btext_color = '#ffffff;';
501
+
}
502
+
if (isset($aiomatic_Main_Settings['aicontent_model'])) {
503
+
$aicontent_model = $aiomatic_Main_Settings['aicontent_model'];
504
+
} else {
505
+
$aicontent_model = '';
506
+
}
507
+
if (isset($aiomatic_Main_Settings['aicontent_assistant_id'])) {
508
+
$aicontent_assistant_id = $aiomatic_Main_Settings['aicontent_assistant_id'];
509
+
} else {
510
+
$aicontent_assistant_id = '';
511
+
}
512
+
if (isset($aiomatic_Main_Settings['disable_aicontent_saving'])) {
513
+
$disable_aicontent_saving = $aiomatic_Main_Settings['disable_aicontent_saving'];
514
+
} else {
515
+
$disable_aicontent_saving = '';
516
+
}
517
+
if (isset($aiomatic_Main_Settings['enable_wpcli'])) {
518
+
$enable_wpcli = $aiomatic_Main_Settings['enable_wpcli'];
519
+
} else {
520
+
$enable_wpcli = '';
521
+
}
522
+
if (isset($aiomatic_Main_Settings['rest_api_init'])) {
523
+
$rest_api_init = $aiomatic_Main_Settings['rest_api_init'];
524
+
} else {
525
+
$rest_api_init = '';
526
+
}
527
+
if (isset($aiomatic_Main_Settings['rest_api_keys'])) {
528
+
$rest_api_keys = $aiomatic_Main_Settings['rest_api_keys'];
529
+
} else {
530
+
$rest_api_keys = '';
531
+
}
532
+
if (isset($aiomatic_Main_Settings['rest_api_bearer'])) {
533
+
$rest_api_bearer = $aiomatic_Main_Settings['rest_api_bearer'];
534
+
} else {
535
+
$rest_api_bearer = '';
536
+
}
537
+
if (isset($aiomatic_Main_Settings['aicontent_temperature'])) {
538
+
$aicontent_temperature = $aiomatic_Main_Settings['aicontent_temperature'];
539
+
} else {
540
+
$aicontent_temperature = '1';
541
+
}
542
+
if (isset($aiomatic_Main_Settings['aicontent_top_p'])) {
543
+
$aicontent_top_p = $aiomatic_Main_Settings['aicontent_top_p'];
544
+
} else {
545
+
$aicontent_top_p = '1';
546
+
}
547
+
if (isset($aiomatic_Main_Settings['aicontent_presence_penalty'])) {
548
+
$aicontent_presence_penalty = $aiomatic_Main_Settings['aicontent_presence_penalty'];
549
+
} else {
550
+
$aicontent_presence_penalty = '0';
551
+
}
552
+
if (isset($aiomatic_Main_Settings['aicontent_frequency_penalty'])) {
553
+
$aicontent_frequency_penalty = $aiomatic_Main_Settings['aicontent_frequency_penalty'];
554
+
} else {
555
+
$aicontent_frequency_penalty = '0';
556
+
}
557
+
if (isset($aiomatic_Main_Settings['comment_model'])) {
558
+
$comment_model = $aiomatic_Main_Settings['comment_model'];
559
+
} else {
560
+
$comment_model = aiomatic_get_default_model_name($aiomatic_Main_Settings);
561
+
}
562
+
if (isset($aiomatic_Main_Settings['comment_prompt'])) {
563
+
$comment_prompt = $aiomatic_Main_Settings['comment_prompt'];
564
+
} else {
565
+
$comment_prompt = 'Write a reply for %%username%%\'s comment on the post titled "%%post_title%%". The user\'s comment is: %%comment%%';
566
+
}
567
+
if (isset($aiomatic_Main_Settings['comment_assistant_id'])) {
568
+
$comment_assistant_id = $aiomatic_Main_Settings['comment_assistant_id'];
569
+
} else {
570
+
$comment_assistant_id = '';
571
+
}
572
+
if (isset($aiomatic_Main_Settings['but_color'])) {
573
+
$but_color = $aiomatic_Main_Settings['but_color'];
574
+
} else {
575
+
$but_color = '#424242;';
576
+
}
577
+
if (isset($aiomatic_Main_Settings['min_len'])) {
578
+
$min_len = $aiomatic_Main_Settings['min_len'];
579
+
} else {
580
+
$min_len = '';
581
+
}
582
+
if (isset($aiomatic_Main_Settings['embeddings_model'])) {
583
+
$embeddings_model = $aiomatic_Main_Settings['embeddings_model'];
584
+
} else {
585
+
$embeddings_model = '';
586
+
}
587
+
if (isset($aiomatic_Main_Settings['pinecone_index'])) {
588
+
$pinecone_index = $aiomatic_Main_Settings['pinecone_index'];
589
+
} else {
590
+
$pinecone_index = '';
591
+
}
592
+
if (isset($aiomatic_Main_Settings['pinecone_namespace'])) {
593
+
$pinecone_namespace = $aiomatic_Main_Settings['pinecone_namespace'];
594
+
} else {
595
+
$pinecone_namespace = '';
596
+
}
597
+
if (isset($aiomatic_Main_Settings['qdrant_index'])) {
598
+
$qdrant_index = $aiomatic_Main_Settings['qdrant_index'];
599
+
} else {
600
+
$qdrant_index = '';
601
+
}
602
+
if (isset($aiomatic_Main_Settings['qdrant_name'])) {
603
+
$qdrant_name = $aiomatic_Main_Settings['qdrant_name'];
604
+
} else {
605
+
$qdrant_name = '';
606
+
}
607
+
if (isset($aiomatic_Main_Settings['pinecone_topk'])) {
608
+
$pinecone_topk = $aiomatic_Main_Settings['pinecone_topk'];
609
+
} else {
610
+
$pinecone_topk = '';
611
+
}
612
+
if (isset($aiomatic_Main_Settings['embeddings_single'])) {
613
+
$embeddings_single = $aiomatic_Main_Settings['embeddings_single'];
614
+
} else {
615
+
$embeddings_single = '';
616
+
}
617
+
if (isset($aiomatic_Main_Settings['embeddings_bulk'])) {
618
+
$embeddings_bulk = $aiomatic_Main_Settings['embeddings_bulk'];
619
+
} else {
620
+
$embeddings_bulk = '';
621
+
}
622
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_title'])) {
623
+
$embeddings_bulk_title = $aiomatic_Main_Settings['embeddings_bulk_title'];
624
+
} else {
625
+
$embeddings_bulk_title = '';
626
+
}
627
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_sections'])) {
628
+
$embeddings_bulk_sections = $aiomatic_Main_Settings['embeddings_bulk_sections'];
629
+
} else {
630
+
$embeddings_bulk_sections = '';
631
+
}
632
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_intro'])) {
633
+
$embeddings_bulk_intro = $aiomatic_Main_Settings['embeddings_bulk_intro'];
634
+
} else {
635
+
$embeddings_bulk_intro = '';
636
+
}
637
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_content'])) {
638
+
$embeddings_bulk_content = $aiomatic_Main_Settings['embeddings_bulk_content'];
639
+
} else {
640
+
$embeddings_bulk_content = '';
641
+
}
642
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_qa'])) {
643
+
$embeddings_bulk_qa = $aiomatic_Main_Settings['embeddings_bulk_qa'];
644
+
} else {
645
+
$embeddings_bulk_qa = '';
646
+
}
647
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_outro'])) {
648
+
$embeddings_bulk_outro = $aiomatic_Main_Settings['embeddings_bulk_outro'];
649
+
} else {
650
+
$embeddings_bulk_outro = '';
651
+
}
652
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_excerpt'])) {
653
+
$embeddings_bulk_excerpt = $aiomatic_Main_Settings['embeddings_bulk_excerpt'];
654
+
} else {
655
+
$embeddings_bulk_excerpt = '';
656
+
}
657
+
if (isset($aiomatic_Main_Settings['embeddings_edit'])) {
658
+
$embeddings_edit = $aiomatic_Main_Settings['embeddings_edit'];
659
+
} else {
660
+
$embeddings_edit = '';
661
+
}
662
+
if (isset($aiomatic_Main_Settings['embeddings_chat_short'])) {
663
+
$embeddings_chat_short = $aiomatic_Main_Settings['embeddings_chat_short'];
664
+
} else {
665
+
$embeddings_chat_short = '';
666
+
}
667
+
if (isset($aiomatic_Main_Settings['embeddings_article_short'])) {
668
+
$embeddings_article_short = $aiomatic_Main_Settings['embeddings_article_short'];
669
+
} else {
670
+
$embeddings_article_short = '';
671
+
}
672
+
if (isset($aiomatic_Main_Settings['embeddings_edit_short'])) {
673
+
$embeddings_edit_short = $aiomatic_Main_Settings['embeddings_edit_short'];
674
+
} else {
675
+
$embeddings_edit_short = '';
676
+
}
677
+
if (isset($aiomatic_Main_Settings['embeddings_related'])) {
678
+
$embeddings_related = $aiomatic_Main_Settings['embeddings_related'];
679
+
} else {
680
+
$embeddings_related = '';
681
+
}
682
+
if (isset($aiomatic_Main_Settings['embeddings_assistant'])) {
683
+
$embeddings_assistant = $aiomatic_Main_Settings['embeddings_assistant'];
684
+
} else {
685
+
$embeddings_assistant = '';
686
+
}
687
+
if (isset($aiomatic_Main_Settings['embeddings_forms'])) {
688
+
$embeddings_forms = $aiomatic_Main_Settings['embeddings_forms'];
689
+
} else {
690
+
$embeddings_forms = '';
691
+
}
692
+
if (isset($aiomatic_Main_Settings['embeddings_omni'])) {
693
+
$embeddings_omni = $aiomatic_Main_Settings['embeddings_omni'];
694
+
} else {
695
+
$embeddings_omni = '';
696
+
}
697
+
if (isset($aiomatic_Main_Settings['embeddings_single_namespace'])) {
698
+
$embeddings_single_namespace = $aiomatic_Main_Settings['embeddings_single_namespace'];
699
+
} else {
700
+
$embeddings_single_namespace = '';
701
+
}
702
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_namespace'])) {
703
+
$embeddings_bulk_namespace = $aiomatic_Main_Settings['embeddings_bulk_namespace'];
704
+
} else {
705
+
$embeddings_bulk_namespace = '';
706
+
}
707
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_title_namespace'])) {
708
+
$embeddings_bulk_title_namespace = $aiomatic_Main_Settings['embeddings_bulk_title_namespace'];
709
+
} else {
710
+
$embeddings_bulk_title_namespace = '';
711
+
}
712
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_sections_namespace'])) {
713
+
$embeddings_bulk_sections_namespace = $aiomatic_Main_Settings['embeddings_bulk_sections_namespace'];
714
+
} else {
715
+
$embeddings_bulk_sections_namespace = '';
716
+
}
717
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_intro_namespace'])) {
718
+
$embeddings_bulk_intro_namespace = $aiomatic_Main_Settings['embeddings_bulk_intro_namespace'];
719
+
} else {
720
+
$embeddings_bulk_intro_namespace = '';
721
+
}
722
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_content_namespace'])) {
723
+
$embeddings_bulk_content_namespace = $aiomatic_Main_Settings['embeddings_bulk_content_namespace'];
724
+
} else {
725
+
$embeddings_bulk_content_namespace = '';
726
+
}
727
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_qa_namespace'])) {
728
+
$embeddings_bulk_qa_namespace = $aiomatic_Main_Settings['embeddings_bulk_qa_namespace'];
729
+
} else {
730
+
$embeddings_bulk_qa_namespace = '';
731
+
}
732
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_outro_namespace'])) {
733
+
$embeddings_bulk_outro_namespace = $aiomatic_Main_Settings['embeddings_bulk_outro_namespace'];
734
+
} else {
735
+
$embeddings_bulk_outro_namespace = '';
736
+
}
737
+
if (isset($aiomatic_Main_Settings['embeddings_bulk_excerpt_namespace'])) {
738
+
$embeddings_bulk_excerpt_namespace = $aiomatic_Main_Settings['embeddings_bulk_excerpt_namespace'];
739
+
} else {
740
+
$embeddings_bulk_excerpt_namespace = '';
741
+
}
742
+
if (isset($aiomatic_Main_Settings['embeddings_edit_namespace'])) {
743
+
$embeddings_edit_namespace = $aiomatic_Main_Settings['embeddings_edit_namespace'];
744
+
} else {
745
+
$embeddings_edit_namespace = '';
746
+
}
747
+
if (isset($aiomatic_Main_Settings['embeddings_chat_short_namespace'])) {
748
+
$embeddings_chat_short_namespace = $aiomatic_Main_Settings['embeddings_chat_short_namespace'];
749
+
} else {
750
+
$embeddings_chat_short_namespace = '';
751
+
}
752
+
if (isset($aiomatic_Main_Settings['embeddings_article_short_namespace'])) {
753
+
$embeddings_article_short_namespace = $aiomatic_Main_Settings['embeddings_article_short_namespace'];
754
+
} else {
755
+
$embeddings_article_short_namespace = '';
756
+
}
757
+
if (isset($aiomatic_Main_Settings['embeddings_edit_short_namespace'])) {
758
+
$embeddings_edit_short_namespace = $aiomatic_Main_Settings['embeddings_edit_short_namespace'];
759
+
} else {
760
+
$embeddings_edit_short_namespace = '';
761
+
}
762
+
if (isset($aiomatic_Main_Settings['embeddings_related_namespace'])) {
763
+
$embeddings_related_namespace = $aiomatic_Main_Settings['embeddings_related_namespace'];
764
+
} else {
765
+
$embeddings_related_namespace = '';
766
+
}
767
+
if (isset($aiomatic_Main_Settings['embeddings_assistant_namespace'])) {
768
+
$embeddings_assistant_namespace = $aiomatic_Main_Settings['embeddings_assistant_namespace'];
769
+
} else {
770
+
$embeddings_assistant_namespace = '';
771
+
}
772
+
if (isset($aiomatic_Main_Settings['embeddings_forms_namespace'])) {
773
+
$embeddings_forms_namespace = $aiomatic_Main_Settings['embeddings_forms_namespace'];
774
+
} else {
775
+
$embeddings_forms_namespace = '';
776
+
}
777
+
if (isset($aiomatic_Main_Settings['embeddings_omni_namespace'])) {
778
+
$embeddings_omni_namespace = $aiomatic_Main_Settings['embeddings_omni_namespace'];
779
+
} else {
780
+
$embeddings_omni_namespace = '';
781
+
}
782
+
if (isset($aiomatic_Main_Settings['internet_single'])) {
783
+
$internet_single = $aiomatic_Main_Settings['internet_single'];
784
+
} else {
785
+
$internet_single = '';
786
+
}
787
+
if (isset($aiomatic_Main_Settings['internet_bulk'])) {
788
+
$internet_bulk = $aiomatic_Main_Settings['internet_bulk'];
789
+
} else {
790
+
$internet_bulk = '';
791
+
}
792
+
if (isset($aiomatic_Main_Settings['internet_bulk_title'])) {
793
+
$internet_bulk_title = $aiomatic_Main_Settings['internet_bulk_title'];
794
+
} else {
795
+
$internet_bulk_title = '';
796
+
}
797
+
if (isset($aiomatic_Main_Settings['internet_bulk_sections'])) {
798
+
$internet_bulk_sections = $aiomatic_Main_Settings['internet_bulk_sections'];
799
+
} else {
800
+
$internet_bulk_sections = '';
801
+
}
802
+
if (isset($aiomatic_Main_Settings['internet_bulk_intro'])) {
803
+
$internet_bulk_intro = $aiomatic_Main_Settings['internet_bulk_intro'];
804
+
} else {
805
+
$internet_bulk_intro = '';
806
+
}
807
+
if (isset($aiomatic_Main_Settings['internet_bulk_content'])) {
808
+
$internet_bulk_content = $aiomatic_Main_Settings['internet_bulk_content'];
809
+
} else {
810
+
$internet_bulk_content = '';
811
+
}
812
+
if (isset($aiomatic_Main_Settings['internet_bulk_qa'])) {
813
+
$internet_bulk_qa = $aiomatic_Main_Settings['internet_bulk_qa'];
814
+
} else {
815
+
$internet_bulk_qa = '';
816
+
}
817
+
if (isset($aiomatic_Main_Settings['internet_bulk_outro'])) {
818
+
$internet_bulk_outro = $aiomatic_Main_Settings['internet_bulk_outro'];
819
+
} else {
820
+
$internet_bulk_outro = '';
821
+
}
822
+
if (isset($aiomatic_Main_Settings['internet_bulk_excerpt'])) {
823
+
$internet_bulk_excerpt = $aiomatic_Main_Settings['internet_bulk_excerpt'];
824
+
} else {
825
+
$internet_bulk_excerpt = '';
826
+
}
827
+
if (isset($aiomatic_Main_Settings['internet_prompt'])) {
828
+
$internet_prompt = $aiomatic_Main_Settings['internet_prompt'];
829
+
} else {
830
+
$internet_prompt = '';
831
+
}
832
+
if (isset($aiomatic_Main_Settings['index_types'])) {
833
+
$index_types = $aiomatic_Main_Settings['index_types'];
834
+
} else {
835
+
$index_types = array();
836
+
}
837
+
if (isset($aiomatic_Main_Settings['auto_namspace'])) {
838
+
$auto_namspace = $aiomatic_Main_Settings['auto_namspace'];
839
+
} else {
840
+
$auto_namspace = '';
841
+
}
842
+
if (isset($aiomatic_Main_Settings['comment_index_types'])) {
843
+
$comment_index_types = $aiomatic_Main_Settings['comment_index_types'];
844
+
} else {
845
+
$comment_index_types = array();
846
+
}
847
+
if (isset($aiomatic_Main_Settings['comment_auto_types'])) {
848
+
$comment_auto_types = $aiomatic_Main_Settings['comment_auto_types'];
849
+
} else {
850
+
$comment_auto_types = array();
851
+
}
852
+
if (isset($aiomatic_Main_Settings['comment_assistant_id_auto'])) {
853
+
$comment_assistant_id_auto = $aiomatic_Main_Settings['comment_assistant_id_auto'];
854
+
} else {
855
+
$comment_assistant_id_auto = '';
856
+
}
857
+
if (isset($aiomatic_Main_Settings['comment_model_auto'])) {
858
+
$comment_model_auto = $aiomatic_Main_Settings['comment_model_auto'];
859
+
} else {
860
+
$comment_model_auto = '';
861
+
}
862
+
if (isset($aiomatic_Main_Settings['comment_prompt_auto'])) {
863
+
$comment_prompt_auto = $aiomatic_Main_Settings['comment_prompt_auto'];
864
+
} else {
865
+
$comment_prompt_auto = '';
866
+
}
867
+
if (isset($aiomatic_Main_Settings['no_approve'])) {
868
+
$no_approve = $aiomatic_Main_Settings['no_approve'];
869
+
} else {
870
+
$no_approve = '';
871
+
}
872
+
if (isset($aiomatic_Main_Settings['user_list'])) {
873
+
$user_list = $aiomatic_Main_Settings['user_list'];
874
+
} else {
875
+
$user_list = '';
876
+
}
877
+
if (isset($aiomatic_Main_Settings['email_list'])) {
878
+
$email_list = $aiomatic_Main_Settings['email_list'];
879
+
} else {
880
+
$email_list = '';
881
+
}
882
+
if (isset($aiomatic_Main_Settings['url_list'])) {
883
+
$url_list = $aiomatic_Main_Settings['url_list'];
884
+
} else {
885
+
$url_list = '';
886
+
}
887
+
if (isset($aiomatic_Main_Settings['comment_auto_namspace'])) {
888
+
$comment_auto_namspace = $aiomatic_Main_Settings['comment_auto_namspace'];
889
+
} else {
890
+
$comment_auto_namspace = '';
891
+
}
892
+
if (isset($aiomatic_Main_Settings['bulk_namspace'])) {
893
+
$bulk_namspace = $aiomatic_Main_Settings['bulk_namspace'];
894
+
} else {
895
+
$bulk_namspace = '';
896
+
}
897
+
if (isset($aiomatic_Main_Settings['custom_endpoint'])) {
898
+
$custom_endpoint = $aiomatic_Main_Settings['custom_endpoint'];
899
+
} else {
900
+
$custom_endpoint = '';
901
+
}
902
+
if (isset($aiomatic_Main_Settings['rewrite_embedding'])) {
903
+
$rewrite_embedding = $aiomatic_Main_Settings['rewrite_embedding'];
904
+
} else {
905
+
$rewrite_embedding = '';
906
+
}
907
+
if (isset($aiomatic_Main_Settings['embedding_template'])) {
908
+
$embedding_template = $aiomatic_Main_Settings['embedding_template'];
909
+
} else {
910
+
$embedding_template = '%%post_title%%
911
+
%%post_excerpt%%
912
+
Read more at: %%post_url%%';
913
+
}
914
+
if (isset($aiomatic_Main_Settings['bulk_embedding_template'])) {
915
+
$bulk_embedding_template = $aiomatic_Main_Settings['bulk_embedding_template'];
916
+
} else {
917
+
$bulk_embedding_template = '%%post_title%%
918
+
%%post_excerpt%%
919
+
Read more at: %%post_url%%';
920
+
}
921
+
if (isset($aiomatic_Main_Settings['comment_embedding_template'])) {
922
+
$comment_embedding_template = $aiomatic_Main_Settings['comment_embedding_template'];
923
+
} else {
924
+
$comment_embedding_template = '%%comment_content%%';
925
+
}
926
+
if (isset($aiomatic_Main_Settings['embedding_rw_prompt'])) {
927
+
$embedding_rw_prompt = $aiomatic_Main_Settings['embedding_rw_prompt'];
928
+
} else {
929
+
$embedding_rw_prompt = 'Rewrite the given content concisely, preserving its style and information, while ensuring the rewritten text stays within 300 words. Each paragraph should range between 60 to 120 words. Exclude non-textual elements and unnecessary repetition. Conclude with a statement directing readers to find more information at %%post_url%%. If these guidelines cannot be met, send an empty response. The content is as follows: %%post_content%%';
930
+
}
931
+
if (isset($aiomatic_Main_Settings['embedding_rw_model'])) {
932
+
$embedding_rw_model = $aiomatic_Main_Settings['embedding_rw_model'];
933
+
} else {
934
+
$embedding_rw_model = aiomatic_get_default_model_name($aiomatic_Main_Settings);
935
+
}
936
+
if (isset($aiomatic_Main_Settings['emb_assistant_id'])) {
937
+
$emb_assistant_id = $aiomatic_Main_Settings['emb_assistant_id'];
938
+
} else {
939
+
$emb_assistant_id = aiomatic_get_default_model_name($aiomatic_Main_Settings);
940
+
}
941
+
if (isset($aiomatic_Main_Settings['internet_single_template'])) {
942
+
$internet_single_template = $aiomatic_Main_Settings['internet_single_template'];
943
+
} else {
944
+
$internet_single_template = '';
945
+
}
946
+
if (isset($aiomatic_Main_Settings['keyword_extractor_prompt'])) {
947
+
$keyword_extractor_prompt = $aiomatic_Main_Settings['keyword_extractor_prompt'];
948
+
} else {
949
+
$keyword_extractor_prompt = '';
950
+
}
951
+
if (isset($aiomatic_Main_Settings['internet_gl'])) {
952
+
$internet_gl = $aiomatic_Main_Settings['internet_gl'];
953
+
} else {
954
+
$internet_gl = '';
955
+
}
956
+
if (isset($aiomatic_Main_Settings['internet_model'])) {
957
+
$internet_model = $aiomatic_Main_Settings['internet_model'];
958
+
} else {
959
+
$internet_model = '';
960
+
}
961
+
if (isset($aiomatic_Main_Settings['internet_assistant_id'])) {
962
+
$internet_assistant_id = $aiomatic_Main_Settings['internet_assistant_id'];
963
+
} else {
964
+
$internet_assistant_id = '';
965
+
}
966
+
if (isset($aiomatic_Main_Settings['results_num'])) {
967
+
$results_num = $aiomatic_Main_Settings['results_num'];
968
+
} else {
969
+
$results_num = '';
970
+
}
971
+
if (isset($aiomatic_Main_Settings['internet_edit'])) {
972
+
$internet_edit = $aiomatic_Main_Settings['internet_edit'];
973
+
} else {
974
+
$internet_edit = '';
975
+
}
976
+
if (isset($aiomatic_Main_Settings['internet_chat_short'])) {
977
+
$internet_chat_short = $aiomatic_Main_Settings['internet_chat_short'];
978
+
} else {
979
+
$internet_chat_short = '';
980
+
}
981
+
if (isset($aiomatic_Main_Settings['internet_article_short'])) {
982
+
$internet_article_short = $aiomatic_Main_Settings['internet_article_short'];
983
+
} else {
984
+
$internet_article_short = '';
985
+
}
986
+
if (isset($aiomatic_Main_Settings['internet_edit_short'])) {
987
+
$internet_edit_short = $aiomatic_Main_Settings['internet_edit_short'];
988
+
} else {
989
+
$internet_edit_short = '';
990
+
}
991
+
if (isset($aiomatic_Main_Settings['internet_related'])) {
992
+
$internet_related = $aiomatic_Main_Settings['internet_related'];
993
+
} else {
994
+
$internet_related = '';
995
+
}
996
+
if (isset($aiomatic_Main_Settings['internet_assistant'])) {
997
+
$internet_assistant = $aiomatic_Main_Settings['internet_assistant'];
998
+
} else {
999
+
$internet_assistant = '';
1000
+
}
1001
+
if (isset($aiomatic_Main_Settings['internet_forms'])) {
1002
+
$internet_forms = $aiomatic_Main_Settings['internet_forms'];
1003
+
} else {
1004
+
$internet_forms = '';
1005
+
}
1006
+
if (isset($aiomatic_Main_Settings['internet_omni'])) {
1007
+
$internet_omni = $aiomatic_Main_Settings['internet_omni'];
1008
+
} else {
1009
+
$internet_omni = '';
1010
+
}
1011
+
if (isset($aiomatic_Main_Settings['do_not_check_duplicates'])) {
1012
+
$do_not_check_duplicates = $aiomatic_Main_Settings['do_not_check_duplicates'];
1013
+
} else {
1014
+
$do_not_check_duplicates = '';
1015
+
}
1016
+
if (isset($aiomatic_Main_Settings['no_random_titles'])) {
1017
+
$no_random_titles = $aiomatic_Main_Settings['no_random_titles'];
1018
+
} else {
1019
+
$no_random_titles = '';
1020
+
}
1021
+
if (isset($aiomatic_Main_Settings['draft_first'])) {
1022
+
$draft_first = $aiomatic_Main_Settings['draft_first'];
1023
+
} else {
1024
+
$draft_first = '';
1025
+
}
1026
+
if (isset($aiomatic_Main_Settings['alternate_continue'])) {
1027
+
$alternate_continue = $aiomatic_Main_Settings['alternate_continue'];
1028
+
} else {
1029
+
$alternate_continue = '';
1030
+
}
1031
+
if (isset($aiomatic_Main_Settings['whole_prompt'])) {
1032
+
$whole_prompt = $aiomatic_Main_Settings['whole_prompt'];
1033
+
} else {
1034
+
$whole_prompt = '';
1035
+
}
1036
+
if (isset($aiomatic_Main_Settings['rule_webhook'])) {
1037
+
$rule_webhook = $aiomatic_Main_Settings['rule_webhook'];
1038
+
} else {
1039
+
$rule_webhook = '';
1040
+
}
1041
+
if (isset($aiomatic_Main_Settings['external_products'])) {
1042
+
$external_products = $aiomatic_Main_Settings['external_products'];
1043
+
} else {
1044
+
$external_products = '';
1045
+
}
1046
+
if (isset($aiomatic_Main_Settings['continue_prepend'])) {
1047
+
$continue_prepend = $aiomatic_Main_Settings['continue_prepend'];
1048
+
} else {
1049
+
$continue_prepend = '';
1050
+
}
1051
+
if (isset($aiomatic_Main_Settings['continue_append'])) {
1052
+
$continue_append = $aiomatic_Main_Settings['continue_append'];
1053
+
} else {
1054
+
$continue_append = '';
1055
+
}
1056
+
if (isset($aiomatic_Main_Settings['no_max'])) {
1057
+
$no_max = $aiomatic_Main_Settings['no_max'];
1058
+
} else {
1059
+
$no_max = '';
1060
+
}
1061
+
if (isset($aiomatic_Main_Settings['no_jobs'])) {
1062
+
$no_jobs = $aiomatic_Main_Settings['no_jobs'];
1063
+
} else {
1064
+
$no_jobs = '';
1065
+
}
1066
+
if (isset($aiomatic_Main_Settings['not_important'])) {
1067
+
$not_important = $aiomatic_Main_Settings['not_important'];
1068
+
} else {
1069
+
$not_important = '';
1070
+
}
1071
+
if (isset($aiomatic_Main_Settings['php_images'])) {
1072
+
$php_images = $aiomatic_Main_Settings['php_images'];
1073
+
} else {
1074
+
$php_images = '';
1075
+
}
1076
+
if (isset($aiomatic_Main_Settings['bing_off'])) {
1077
+
$bing_off = $aiomatic_Main_Settings['bing_off'];
1078
+
} else {
1079
+
$bing_off = '';
1080
+
}
1081
+
if (isset($aiomatic_Main_Settings['markdown_parse'])) {
1082
+
$markdown_parse = $aiomatic_Main_Settings['markdown_parse'];
1083
+
} else {
1084
+
$markdown_parse = '';
1085
+
}
1086
+
if (isset($aiomatic_Main_Settings['first_embeddings'])) {
1087
+
$first_embeddings = $aiomatic_Main_Settings['first_embeddings'];
1088
+
} else {
1089
+
$first_embeddings = '';
1090
+
}
1091
+
if (isset($aiomatic_Main_Settings['nlbr_parse'])) {
1092
+
$nlbr_parse = $aiomatic_Main_Settings['nlbr_parse'];
1093
+
} else {
1094
+
$nlbr_parse = '';
1095
+
}
1096
+
if (isset($aiomatic_Main_Settings['ai_off'])) {
1097
+
$ai_off = $aiomatic_Main_Settings['ai_off'];
1098
+
} else {
1099
+
$ai_off = '';
1100
+
}
1101
+
if (isset($aiomatic_Main_Settings['pre_code_off'])) {
1102
+
$pre_code_off = $aiomatic_Main_Settings['pre_code_off'];
1103
+
} else {
1104
+
$pre_code_off = '';
1105
+
}
1106
+
if (isset($aiomatic_Main_Settings['max_retry'])) {
1107
+
$max_retry = $aiomatic_Main_Settings['max_retry'];
1108
+
} else {
1109
+
$max_retry = '';
1110
+
}
1111
+
if (isset($aiomatic_Main_Settings['max_chat_retry'])) {
1112
+
$max_chat_retry = $aiomatic_Main_Settings['max_chat_retry'];
1113
+
} else {
1114
+
$max_chat_retry = '';
1115
+
}
1116
+
if (isset($aiomatic_Main_Settings['max_timeout'])) {
1117
+
$max_timeout = $aiomatic_Main_Settings['max_timeout'];
1118
+
} else {
1119
+
$max_timeout = '';
1120
+
}
1121
+
if (isset($aiomatic_Main_Settings['enable_logging'])) {
1122
+
$enable_logging = $aiomatic_Main_Settings['enable_logging'];
1123
+
} else {
1124
+
$enable_logging = '';
1125
+
}
1126
+
if (isset($aiomatic_Main_Settings['enable_tracking'])) {
1127
+
$enable_tracking = $aiomatic_Main_Settings['enable_tracking'];
1128
+
} else {
1129
+
$enable_tracking = '';
1130
+
}
1131
+
if (isset($aiomatic_Main_Settings['assistant_placement'])) {
1132
+
$assistant_placement = $aiomatic_Main_Settings['assistant_placement'];
1133
+
} else {
1134
+
$assistant_placement = '';
1135
+
}
1136
+
if (isset($aiomatic_Main_Settings['assistant_disable'])) {
1137
+
$assistant_disable = $aiomatic_Main_Settings['assistant_disable'];
1138
+
} else {
1139
+
$assistant_disable = '';
1140
+
}
1141
+
if (isset($aiomatic_Main_Settings['assistant_not_logged'])) {
1142
+
$assistant_not_logged = $aiomatic_Main_Settings['assistant_not_logged'];
1143
+
} else {
1144
+
$assistant_not_logged = '';
1145
+
}
1146
+
if (isset($aiomatic_Main_Settings['assistant_image_size'])) {
1147
+
$assistant_image_size = $aiomatic_Main_Settings['assistant_image_size'];
1148
+
} else {
1149
+
$assistant_image_size = '';
1150
+
}
1151
+
if (isset($aiomatic_Main_Settings['assistant_image_model'])) {
1152
+
$assistant_image_model = $aiomatic_Main_Settings['assistant_image_model'];
1153
+
} else {
1154
+
$assistant_image_model = '';
1155
+
}
1156
+
if (isset($aiomatic_Main_Settings['assistant_temperature'])) {
1157
+
$assistant_temperature = $aiomatic_Main_Settings['assistant_temperature'];
1158
+
} else {
1159
+
$assistant_temperature = '';
1160
+
}
1161
+
if (isset($aiomatic_Main_Settings['assistant_top_p'])) {
1162
+
$assistant_top_p = $aiomatic_Main_Settings['assistant_top_p'];
1163
+
} else {
1164
+
$assistant_top_p = '';
1165
+
}
1166
+
if (isset($aiomatic_Main_Settings['assistant_ppenalty'])) {
1167
+
$assistant_ppenalty = $aiomatic_Main_Settings['assistant_ppenalty'];
1168
+
} else {
1169
+
$assistant_ppenalty = '';
1170
+
}
1171
+
if (isset($aiomatic_Main_Settings['assistant_fpenalty'])) {
1172
+
$assistant_fpenalty = $aiomatic_Main_Settings['assistant_fpenalty'];
1173
+
} else {
1174
+
$assistant_fpenalty = '';
1175
+
}
1176
+
if (isset($aiomatic_Main_Settings['assistant_model'])) {
1177
+
$assistant_model = $aiomatic_Main_Settings['assistant_model'];
1178
+
} else {
1179
+
$assistant_model = '';
1180
+
}
1181
+
if (isset($aiomatic_Main_Settings['wizard_assistant_id'])) {
1182
+
$wizard_assistant_id = $aiomatic_Main_Settings['wizard_assistant_id'];
1183
+
} else {
1184
+
$wizard_assistant_id = '';
1185
+
}
1186
+
if (isset($aiomatic_Main_Settings['rel_search'])) {
1187
+
$rel_search = $aiomatic_Main_Settings['rel_search'];
1188
+
} else {
1189
+
$rel_search = array();
1190
+
}
1191
+
if (isset($aiomatic_Main_Settings['app_id'])) {
1192
+
$app_id = $aiomatic_Main_Settings['app_id'];
1193
+
} else {
1194
+
$app_id = '';
1195
+
}
1196
+
if (isset($aiomatic_Main_Settings['stability_app_id'])) {
1197
+
$stability_app_id = $aiomatic_Main_Settings['stability_app_id'];
1198
+
} else {
1199
+
$stability_app_id = '';
1200
+
}
1201
+
if (isset($aiomatic_Main_Settings['midjourney_app_id'])) {
1202
+
$midjourney_app_id = $aiomatic_Main_Settings['midjourney_app_id'];
1203
+
} else {
1204
+
$midjourney_app_id = '';
1205
+
}
1206
+
if (isset($aiomatic_Main_Settings['replicate_app_id'])) {
1207
+
$replicate_app_id = $aiomatic_Main_Settings['replicate_app_id'];
1208
+
} else {
1209
+
$replicate_app_id = '';
1210
+
}
1211
+
if (isset($aiomatic_Main_Settings['ideogram_app_id'])) {
1212
+
$ideogram_app_id = $aiomatic_Main_Settings['ideogram_app_id'];
1213
+
} else {
1214
+
$ideogram_app_id = '';
1215
+
}
1216
+
if (isset($aiomatic_Main_Settings['headlessbrowserapi_key'])) {
1217
+
$headlessbrowserapi_key = $aiomatic_Main_Settings['headlessbrowserapi_key'];
1218
+
} else {
1219
+
$headlessbrowserapi_key = '';
1220
+
}
1221
+
if (isset($aiomatic_Main_Settings['phantom_path'])) {
1222
+
$phantom_path = $aiomatic_Main_Settings['phantom_path'];
1223
+
} else {
1224
+
$phantom_path = '';
1225
+
}
1226
+
if (isset($aiomatic_Main_Settings['phantom_timeout'])) {
1227
+
$phantom_timeout = $aiomatic_Main_Settings['phantom_timeout'];
1228
+
} else {
1229
+
$phantom_timeout = '';
1230
+
}
1231
+
if (isset($aiomatic_Main_Settings['multi_separator'])) {
1232
+
$multi_separator = $aiomatic_Main_Settings['multi_separator'];
1233
+
} else {
1234
+
$multi_separator = '';
1235
+
}
1236
+
if (isset($aiomatic_Main_Settings['azure_endpoint'])) {
1237
+
$azure_endpoint = $aiomatic_Main_Settings['azure_endpoint'];
1238
+
} else {
1239
+
$azure_endpoint = '';
1240
+
}
1241
+
if (isset($aiomatic_Main_Settings['azure_api_selector_embeddings'])) {
1242
+
$azure_api_selector_embeddings = $aiomatic_Main_Settings['azure_api_selector_embeddings'];
1243
+
} else {
1244
+
$azure_api_selector_embeddings = '';
1245
+
}
1246
+
if (isset($aiomatic_Main_Settings['azure_api_selector_dalle2'])) {
1247
+
$azure_api_selector_dalle2 = $aiomatic_Main_Settings['azure_api_selector_dalle2'];
1248
+
} else {
1249
+
$azure_api_selector_dalle2 = '';
1250
+
}
1251
+
if (isset($aiomatic_Main_Settings['azure_api_selector_dalle3'])) {
1252
+
$azure_api_selector_dalle3 = $aiomatic_Main_Settings['azure_api_selector_dalle3'];
1253
+
} else {
1254
+
$azure_api_selector_dalle3 = '';
1255
+
}
1256
+
if (isset($aiomatic_Main_Settings['azure_api_selector_assistants'])) {
1257
+
$azure_api_selector_assistants = $aiomatic_Main_Settings['azure_api_selector_assistants'];
1258
+
} else {
1259
+
$azure_api_selector_assistants = '';
1260
+
}
1261
+
if (isset($aiomatic_Main_Settings['azure_api_selector_batch'])) {
1262
+
$azure_api_selector_batch = $aiomatic_Main_Settings['azure_api_selector_batch'];
1263
+
} else {
1264
+
$azure_api_selector_batch = '';
1265
+
}
1266
+
if (isset($aiomatic_Main_Settings['azure_api_selector'])) {
1267
+
$azure_api_selector = $aiomatic_Main_Settings['azure_api_selector'];
1268
+
} else {
1269
+
$azure_api_selector = '';
1270
+
}
1271
+
if (isset($aiomatic_Main_Settings['app_id_claude'])) {
1272
+
$app_id_claude = $aiomatic_Main_Settings['app_id_claude'];
1273
+
} else {
1274
+
$app_id_claude = '';
1275
+
}
1276
+
if (isset($aiomatic_Main_Settings['custom_models'])) {
1277
+
$custom_models = $aiomatic_Main_Settings['custom_models'];
1278
+
} else {
1279
+
$custom_models = '';
1280
+
}
1281
+
if (isset($aiomatic_Main_Settings['app_id_groq'])) {
1282
+
$app_id_groq = $aiomatic_Main_Settings['app_id_groq'];
1283
+
} else {
1284
+
$app_id_groq = '';
1285
+
}
1286
+
if (isset($aiomatic_Main_Settings['app_id_nvidia'])) {
1287
+
$app_id_nvidia = $aiomatic_Main_Settings['app_id_nvidia'];
1288
+
} else {
1289
+
$app_id_nvidia = '';
1290
+
}
1291
+
if (isset($aiomatic_Main_Settings['app_id_xai'])) {
1292
+
$app_id_xai = $aiomatic_Main_Settings['app_id_xai'];
1293
+
} else {
1294
+
$app_id_xai = '';
1295
+
}
1296
+
if (isset($aiomatic_Main_Settings['openai_organization'])) {
1297
+
$openai_organization = $aiomatic_Main_Settings['openai_organization'];
1298
+
} else {
1299
+
$openai_organization = '';
1300
+
}
1301
+
if (isset($aiomatic_Main_Settings['app_id_google'])) {
1302
+
$app_id_google = $aiomatic_Main_Settings['app_id_google'];
1303
+
} else {
1304
+
$app_id_google = '';
1305
+
}
1306
+
if (isset($aiomatic_Main_Settings['app_id_openrouter'])) {
1307
+
$app_id_openrouter = $aiomatic_Main_Settings['app_id_openrouter'];
1308
+
} else {
1309
+
$app_id_openrouter = '';
1310
+
}
1311
+
if (isset($aiomatic_Main_Settings['app_id_huggingface'])) {
1312
+
$app_id_huggingface = $aiomatic_Main_Settings['app_id_huggingface'];
1313
+
} else {
1314
+
$app_id_huggingface = '';
1315
+
}
1316
+
if (isset($aiomatic_Main_Settings['ollama_url'])) {
1317
+
$ollama_url = $aiomatic_Main_Settings['ollama_url'];
1318
+
} else {
1319
+
$ollama_url = '';
1320
+
}
1321
+
if (isset($aiomatic_Main_Settings['app_id_perplexity'])) {
1322
+
$app_id_perplexity = $aiomatic_Main_Settings['app_id_perplexity'];
1323
+
} else {
1324
+
$app_id_perplexity = '';
1325
+
}
1326
+
if (isset($aiomatic_Main_Settings['multiple_key'])) {
1327
+
$multiple_key = $aiomatic_Main_Settings['multiple_key'];
1328
+
} else {
1329
+
$multiple_key = '';
1330
+
}
1331
+
if (isset($aiomatic_Main_Settings['pinecone_app_id'])) {
1332
+
$pinecone_app_id = $aiomatic_Main_Settings['pinecone_app_id'];
1333
+
} else {
1334
+
$pinecone_app_id = '';
1335
+
}
1336
+
if (isset($aiomatic_Main_Settings['qdrant_app_id'])) {
1337
+
$qdrant_app_id = $aiomatic_Main_Settings['qdrant_app_id'];
1338
+
} else {
1339
+
$qdrant_app_id = '';
1340
+
}
1341
+
if (isset($aiomatic_Main_Settings['embeddings_api'])) {
1342
+
$embeddings_api = $aiomatic_Main_Settings['embeddings_api'];
1343
+
} else {
1344
+
$embeddings_api = '';
1345
+
}
1346
+
if (isset($aiomatic_Main_Settings['elevenlabs_app_id'])) {
1347
+
$elevenlabs_app_id = $aiomatic_Main_Settings['elevenlabs_app_id'];
1348
+
} else {
1349
+
$elevenlabs_app_id = '';
1350
+
}
1351
+
if (isset($aiomatic_Main_Settings['google_app_id'])) {
1352
+
$google_app_id = $aiomatic_Main_Settings['google_app_id'];
1353
+
} else {
1354
+
$google_app_id = '';
1355
+
}
1356
+
if (isset($aiomatic_Main_Settings['did_app_id'])) {
1357
+
$did_app_id = $aiomatic_Main_Settings['did_app_id'];
1358
+
} else {
1359
+
$did_app_id = '';
1360
+
}
1361
+
if (isset($aiomatic_Main_Settings['azure_speech_id'])) {
1362
+
$azure_speech_id = $aiomatic_Main_Settings['azure_speech_id'];
1363
+
} else {
1364
+
$azure_speech_id = '';
1365
+
}
1366
+
if (isset($aiomatic_Main_Settings['api_selector'])) {
1367
+
$api_selector = $aiomatic_Main_Settings['api_selector'];
1368
+
} else {
1369
+
$api_selector = 'openai';
1370
+
}
1371
+
if (isset($aiomatic_Main_Settings['steps'])) {
1372
+
$steps = $aiomatic_Main_Settings['steps'];
1373
+
} else {
1374
+
$steps = '';
1375
+
}
1376
+
if (isset($aiomatic_Main_Settings['cfg_scale'])) {
1377
+
$cfg_scale = $aiomatic_Main_Settings['cfg_scale'];
1378
+
} else {
1379
+
$cfg_scale = '';
1380
+
}
1381
+
if (isset($aiomatic_Main_Settings['clip_guidance_preset'])) {
1382
+
$clip_guidance_preset = $aiomatic_Main_Settings['clip_guidance_preset'];
1383
+
} else {
1384
+
$clip_guidance_preset = '';
1385
+
}
1386
+
if (isset($aiomatic_Main_Settings['clip_style_preset'])) {
1387
+
$clip_style_preset = $aiomatic_Main_Settings['clip_style_preset'];
1388
+
} else {
1389
+
$clip_style_preset = '';
1390
+
}
1391
+
if (isset($aiomatic_Main_Settings['stable_model'])) {
1392
+
$stable_model = $aiomatic_Main_Settings['stable_model'];
1393
+
} else {
1394
+
$stable_model = '';
1395
+
}
1396
+
if (isset($aiomatic_Main_Settings['prompt_strength'])) {
1397
+
$prompt_strength = $aiomatic_Main_Settings['prompt_strength'];
1398
+
} else {
1399
+
$prompt_strength = '';
1400
+
}
1401
+
if (isset($aiomatic_Main_Settings['num_inference_steps'])) {
1402
+
$num_inference_steps = $aiomatic_Main_Settings['num_inference_steps'];
1403
+
} else {
1404
+
$num_inference_steps = '';
1405
+
}
1406
+
if (isset($aiomatic_Main_Settings['ai_scheduler'])) {
1407
+
$ai_scheduler = $aiomatic_Main_Settings['ai_scheduler'];
1408
+
} else {
1409
+
$ai_scheduler = '';
1410
+
}
1411
+
if (isset($aiomatic_Main_Settings['custom_params_replicate'])) {
1412
+
$custom_params_replicate = $aiomatic_Main_Settings['custom_params_replicate'];
1413
+
} else {
1414
+
$custom_params_replicate = '';
1415
+
}
1416
+
if (isset($aiomatic_Main_Settings['replicate_ratio'])) {
1417
+
$replicate_ratio = $aiomatic_Main_Settings['replicate_ratio'];
1418
+
} else {
1419
+
$replicate_ratio = '';
1420
+
}
1421
+
if (isset($aiomatic_Main_Settings['ideogram_ratio'])) {
1422
+
$ideogram_ratio = $aiomatic_Main_Settings['ideogram_ratio'];
1423
+
} else {
1424
+
$ideogram_ratio = '';
1425
+
}
1426
+
if (isset($aiomatic_Main_Settings['ideogram_style'])) {
1427
+
$ideogram_style = $aiomatic_Main_Settings['ideogram_style'];
1428
+
} else {
1429
+
$ideogram_style = '';
1430
+
}
1431
+
if (isset($aiomatic_Main_Settings['ideogram_palette'])) {
1432
+
$ideogram_palette = $aiomatic_Main_Settings['ideogram_palette'];
1433
+
} else {
1434
+
$ideogram_palette = '';
1435
+
}
1436
+
if (isset($aiomatic_Main_Settings['sampler'])) {
1437
+
$sampler = $aiomatic_Main_Settings['sampler'];
1438
+
} else {
1439
+
$sampler = '';
1440
+
}
1441
+
if (isset($aiomatic_Main_Settings['auto_clear_logs'])) {
1442
+
$auto_clear_logs = $aiomatic_Main_Settings['auto_clear_logs'];
1443
+
} else {
1444
+
$auto_clear_logs = '';
1445
+
}
1446
+
if (isset($aiomatic_Main_Settings['rule_timeout'])) {
1447
+
$rule_timeout = $aiomatic_Main_Settings['rule_timeout'];
1448
+
} else {
1449
+
$rule_timeout = '';
1450
+
}
1451
+
if (isset($aiomatic_Main_Settings['send_email'])) {
1452
+
$send_email = $aiomatic_Main_Settings['send_email'];
1453
+
} else {
1454
+
$send_email = '';
1455
+
}
1456
+
if (isset($aiomatic_Main_Settings['convert_gutenberg'])) {
1457
+
$convert_gutenberg = $aiomatic_Main_Settings['convert_gutenberg'];
1458
+
} else {
1459
+
$convert_gutenberg = '';
1460
+
}
1461
+
if (isset($aiomatic_Main_Settings['no_intro_image'])) {
1462
+
$no_intro_image = $aiomatic_Main_Settings['no_intro_image'];
1463
+
} else {
1464
+
$no_intro_image = '';
1465
+
}
1466
+
if (isset($aiomatic_Main_Settings['email_address'])) {
1467
+
$email_address = $aiomatic_Main_Settings['email_address'];
1468
+
} else {
1469
+
$email_address = '';
1470
+
}
1471
+
if (isset($aiomatic_Main_Settings['translate'])) {
1472
+
$translate = $aiomatic_Main_Settings['translate'];
1473
+
} else {
1474
+
$translate = '';
1475
+
}
1476
+
if (isset($aiomatic_Main_Settings['translate_source'])) {
1477
+
$translate_source = $aiomatic_Main_Settings['translate_source'];
1478
+
} else {
1479
+
$translate_source = '';
1480
+
}
1481
+
if (isset($aiomatic_Main_Settings['second_translate'])) {
1482
+
$second_translate = $aiomatic_Main_Settings['second_translate'];
1483
+
} else {
1484
+
$second_translate = '';
1485
+
}
1486
+
if (isset($aiomatic_Main_Settings['spin_text'])) {
1487
+
$spin_text = $aiomatic_Main_Settings['spin_text'];
1488
+
} else {
1489
+
$spin_text = '';
1490
+
}
1491
+
if (isset($aiomatic_Main_Settings['spin_what'])) {
1492
+
$spin_what = $aiomatic_Main_Settings['spin_what'];
1493
+
} else {
1494
+
$spin_what = '';
1495
+
}
1496
+
if (isset($aiomatic_Main_Settings['best_humanize'])) {
1497
+
$best_humanize = $aiomatic_Main_Settings['best_humanize'];
1498
+
} else {
1499
+
$best_humanize = '';
1500
+
}
1501
+
if (isset($aiomatic_Main_Settings['no_title'])) {
1502
+
$no_title = $aiomatic_Main_Settings['no_title'];
1503
+
} else {
1504
+
$no_title = '';
1505
+
}
1506
+
if (isset($aiomatic_Main_Settings['swear_filter'])) {
1507
+
$swear_filter = $aiomatic_Main_Settings['swear_filter'];
1508
+
} else {
1509
+
$swear_filter = '';
1510
+
}
1511
+
if (isset($aiomatic_Main_Settings['no_undetectibility'])) {
1512
+
$no_undetectibility = $aiomatic_Main_Settings['no_undetectibility'];
1513
+
} else {
1514
+
$no_undetectibility = '';
1515
+
}
1516
+
if (isset($aiomatic_Main_Settings['no_undetectibility_single'])) {
1517
+
$no_undetectibility_single = $aiomatic_Main_Settings['no_undetectibility_single'];
1518
+
} else {
1519
+
$no_undetectibility_single = '';
1520
+
}
1521
+
if (isset($aiomatic_Main_Settings['no_undetectibility_bulk'])) {
1522
+
$no_undetectibility_bulk = $aiomatic_Main_Settings['no_undetectibility_bulk'];
1523
+
} else {
1524
+
$no_undetectibility_bulk = '';
1525
+
}
1526
+
if (isset($aiomatic_Main_Settings['no_undetectibility_omni'])) {
1527
+
$no_undetectibility_omni = $aiomatic_Main_Settings['no_undetectibility_omni'];
1528
+
} else {
1529
+
$no_undetectibility_omni = '';
1530
+
}
1531
+
if (isset($aiomatic_Main_Settings['no_undetectibility_editor'])) {
1532
+
$no_undetectibility_editor = $aiomatic_Main_Settings['no_undetectibility_editor'];
1533
+
} else {
1534
+
$no_undetectibility_editor = '';
1535
+
}
1536
+
if (isset($aiomatic_Main_Settings['no_typing_error'])) {
1537
+
$no_typing_error = $aiomatic_Main_Settings['no_typing_error'];
1538
+
} else {
1539
+
$no_typing_error = '';
1540
+
}
1541
+
if (isset($aiomatic_Main_Settings['no_synonym'])) {
1542
+
$no_synonym = $aiomatic_Main_Settings['no_synonym'];
1543
+
} else {
1544
+
$no_synonym = '';
1545
+
}
1546
+
if (isset($aiomatic_Main_Settings['no_parasite'])) {
1547
+
$no_parasite = $aiomatic_Main_Settings['no_parasite'];
1548
+
} else {
1549
+
$no_parasite = '';
1550
+
}
1551
+
if (isset($aiomatic_Main_Settings['no_regional'])) {
1552
+
$no_regional = $aiomatic_Main_Settings['no_regional'];
1553
+
} else {
1554
+
$no_regional = '';
1555
+
}
1556
+
if (isset($aiomatic_Main_Settings['no_add_chars'])) {
1557
+
$no_add_chars = $aiomatic_Main_Settings['no_add_chars'];
1558
+
} else {
1559
+
$no_add_chars = '';
1560
+
}
1561
+
if (isset($aiomatic_Main_Settings['no_media_library'])) {
1562
+
$no_media_library = $aiomatic_Main_Settings['no_media_library'];
1563
+
} else {
1564
+
$no_media_library = '';
1565
+
}
1566
+
if (isset($aiomatic_Main_Settings['no_post_editor'])) {
1567
+
$no_post_editor = $aiomatic_Main_Settings['no_post_editor'];
1568
+
} else {
1569
+
$no_post_editor = '';
1570
+
}
1571
+
if (isset($aiomatic_Main_Settings['no_elementor'])) {
1572
+
$no_elementor = $aiomatic_Main_Settings['no_elementor'];
1573
+
} else {
1574
+
$no_elementor = '';
1575
+
}
1576
+
if (isset($aiomatic_Main_Settings['clear_omni'])) {
1577
+
$clear_omni = $aiomatic_Main_Settings['clear_omni'];
1578
+
} else {
1579
+
$clear_omni = '';
1580
+
}
1581
+
if (isset($aiomatic_Main_Settings['no_pre_code_remove'])) {
1582
+
$no_pre_code_remove = $aiomatic_Main_Settings['no_pre_code_remove'];
1583
+
} else {
1584
+
$no_pre_code_remove = '';
1585
+
}
1586
+
if (isset($aiomatic_Main_Settings['no_omni_shortcode_render'])) {
1587
+
$no_omni_shortcode_render = $aiomatic_Main_Settings['no_omni_shortcode_render'];
1588
+
} else {
1589
+
$no_omni_shortcode_render = '';
1590
+
}
1591
+
if (isset($aiomatic_Main_Settings['azure_model_deployments'])) {
1592
+
$azure_model_deployments = $aiomatic_Main_Settings['azure_model_deployments'];
1593
+
} else {
1594
+
$azure_model_deployments = array();
1595
+
}
1596
+
if (isset($aiomatic_Main_Settings['ai_seed'])) {
1597
+
$ai_seed = $aiomatic_Main_Settings['ai_seed'];
1598
+
} else {
1599
+
$ai_seed = '';
1600
+
}
1601
+
if (isset($aiomatic_Main_Settings['responses_api'])) {
1602
+
$responses_api = $aiomatic_Main_Settings['responses_api'];
1603
+
} else {
1604
+
$responses_api = '';
1605
+
}
1606
+
if (isset($aiomatic_Main_Settings['store_data'])) {
1607
+
$store_data = $aiomatic_Main_Settings['store_data'];
1608
+
} else {
1609
+
$store_data = '';
1610
+
}
1611
+
if (isset($aiomatic_Main_Settings['store_data_rules'])) {
1612
+
$store_data_rules = $aiomatic_Main_Settings['store_data_rules'];
1613
+
} else {
1614
+
$store_data_rules = '';
1615
+
}
1616
+
if (isset($aiomatic_Main_Settings['google_trans_auth'])) {
1617
+
$google_trans_auth = $aiomatic_Main_Settings['google_trans_auth'];
1618
+
} else {
1619
+
$google_trans_auth = '';
1620
+
}
1621
+
if (isset($aiomatic_Main_Settings['serpapi_auth'])) {
1622
+
$serpapi_auth = $aiomatic_Main_Settings['serpapi_auth'];
1623
+
} else {
1624
+
$serpapi_auth = '';
1625
+
}
1626
+
if (isset($aiomatic_Main_Settings['bing_auth_internet'])) {
1627
+
$bing_auth_internet = $aiomatic_Main_Settings['bing_auth_internet'];
1628
+
} else {
1629
+
$bing_auth_internet = '';
1630
+
}
1631
+
if (isset($aiomatic_Main_Settings['google_search_api'])) {
1632
+
$google_search_api = $aiomatic_Main_Settings['google_search_api'];
1633
+
} else {
1634
+
$google_search_api = '';
1635
+
}
1636
+
if (isset($aiomatic_Main_Settings['toubiz_api'])) {
1637
+
$toubiz_api = $aiomatic_Main_Settings['toubiz_api'];
1638
+
} else {
1639
+
$toubiz_api = '';
1640
+
}
1641
+
if (isset($aiomatic_Main_Settings['google_search_cx'])) {
1642
+
$google_search_cx = $aiomatic_Main_Settings['google_search_cx'];
1643
+
} else {
1644
+
$google_search_cx = '';
1645
+
}
1646
+
if (isset($aiomatic_Main_Settings['valueserp_auth'])) {
1647
+
$valueserp_auth = $aiomatic_Main_Settings['valueserp_auth'];
1648
+
} else {
1649
+
$valueserp_auth = '';
1650
+
}
1651
+
if (isset($aiomatic_Main_Settings['spaceserp_auth'])) {
1652
+
$spaceserp_auth = $aiomatic_Main_Settings['spaceserp_auth'];
1653
+
} else {
1654
+
$spaceserp_auth = '';
1655
+
}
1656
+
if (isset($aiomatic_Main_Settings['random_serp_sources'])) {
1657
+
$random_serp_sources = $aiomatic_Main_Settings['random_serp_sources'];
1658
+
} else {
1659
+
$random_serp_sources = '';
1660
+
}
1661
+
if (isset($aiomatic_Main_Settings['serper_auth'])) {
1662
+
$serper_auth = $aiomatic_Main_Settings['serper_auth'];
1663
+
} else {
1664
+
$serper_auth = '';
1665
+
}
1666
+
if (isset($aiomatic_Main_Settings['tavily_auth'])) {
1667
+
$tavily_auth = $aiomatic_Main_Settings['tavily_auth'];
1668
+
} else {
1669
+
$tavily_auth = '';
1670
+
}
1671
+
if (isset($aiomatic_Main_Settings['duck_enable'])) {
1672
+
$duck_enable = $aiomatic_Main_Settings['duck_enable'];
1673
+
} else {
1674
+
$duck_enable = '';
1675
+
}
1676
+
if (isset($aiomatic_Main_Settings['bing_scrape'])) {
1677
+
$bing_scrape = $aiomatic_Main_Settings['bing_scrape'];
1678
+
} else {
1679
+
$bing_scrape = '';
1680
+
}
1681
+
if (isset($aiomatic_Main_Settings['yt_app_id'])) {
1682
+
$yt_app_id = $aiomatic_Main_Settings['yt_app_id'];
1683
+
} else {
1684
+
$yt_app_id = '';
1685
+
}
1686
+
if (isset($aiomatic_Main_Settings['ai_resize_width'])) {
1687
+
$ai_resize_width = $aiomatic_Main_Settings['ai_resize_width'];
1688
+
} else {
1689
+
$ai_resize_width = '';
1690
+
}
1691
+
if (isset($aiomatic_Main_Settings['copy_locally'])) {
1692
+
$copy_locally = $aiomatic_Main_Settings['copy_locally'];
1693
+
} else {
1694
+
$copy_locally = '';
1695
+
}
1696
+
if (isset($aiomatic_Main_Settings['disable_compress'])) {
1697
+
$disable_compress = $aiomatic_Main_Settings['disable_compress'];
1698
+
} else {
1699
+
$disable_compress = '';
1700
+
}
1701
+
if (isset($aiomatic_Main_Settings['compress_quality'])) {
1702
+
$compress_quality = $aiomatic_Main_Settings['compress_quality'];
1703
+
} else {
1704
+
$compress_quality = '';
1705
+
}
1706
+
if (isset($aiomatic_Main_Settings['url_image'])) {
1707
+
$url_image = $aiomatic_Main_Settings['url_image'];
1708
+
} else {
1709
+
$url_image = '';
1710
+
}
1711
+
if (isset($aiomatic_Main_Settings['drive_directory'])) {
1712
+
$drive_directory = $aiomatic_Main_Settings['drive_directory'];
1713
+
} else {
1714
+
$drive_directory = 'MyImages';
1715
+
}
1716
+
if (isset($aiomatic_Main_Settings['bucket_name'])) {
1717
+
$bucket_name = $aiomatic_Main_Settings['bucket_name'];
1718
+
} else {
1719
+
$bucket_name = '';
1720
+
}
1721
+
if (isset($aiomatic_Main_Settings['bucket_region'])) {
1722
+
$bucket_region = $aiomatic_Main_Settings['bucket_region'];
1723
+
} else {
1724
+
$bucket_region = '';
1725
+
}
1726
+
if (isset($aiomatic_Main_Settings['wasabi_region'])) {
1727
+
$wasabi_region = $aiomatic_Main_Settings['wasabi_region'];
1728
+
} else {
1729
+
$wasabi_region = '';
1730
+
}
1731
+
if (isset($aiomatic_Main_Settings['s3_user'])) {
1732
+
$s3_user = $aiomatic_Main_Settings['s3_user'];
1733
+
} else {
1734
+
$s3_user = '';
1735
+
}
1736
+
if (isset($aiomatic_Main_Settings['s3_pass'])) {
1737
+
$s3_pass = $aiomatic_Main_Settings['s3_pass'];
1738
+
} else {
1739
+
$s3_pass = '';
1740
+
}
1741
+
if (isset($aiomatic_Main_Settings['wasabi_directory'])) {
1742
+
$wasabi_directory = $aiomatic_Main_Settings['wasabi_directory'];
1743
+
} else {
1744
+
$wasabi_directory = '';
1745
+
}
1746
+
if (isset($aiomatic_Main_Settings['wasabi_bucket'])) {
1747
+
$wasabi_bucket = $aiomatic_Main_Settings['wasabi_bucket'];
1748
+
} else {
1749
+
$wasabi_bucket = '';
1750
+
}
1751
+
if (isset($aiomatic_Main_Settings['wasabi_region'])) {
1752
+
$wasabi_region = $aiomatic_Main_Settings['wasabi_region'];
1753
+
} else {
1754
+
$wasabi_region = '';
1755
+
}
1756
+
if (isset($aiomatic_Main_Settings['wasabi_user'])) {
1757
+
$wasabi_user = $aiomatic_Main_Settings['wasabi_user'];
1758
+
} else {
1759
+
$wasabi_user = '';
1760
+
}
1761
+
if (isset($aiomatic_Main_Settings['wasabi_pass'])) {
1762
+
$wasabi_pass = $aiomatic_Main_Settings['wasabi_pass'];
1763
+
} else {
1764
+
$wasabi_pass = '';
1765
+
}
1766
+
if (isset($aiomatic_Main_Settings['cloud_directory'])) {
1767
+
$cloud_directory = $aiomatic_Main_Settings['cloud_directory'];
1768
+
} else {
1769
+
$cloud_directory = '';
1770
+
}
1771
+
if (isset($aiomatic_Main_Settings['cloud_bucket'])) {
1772
+
$cloud_bucket = $aiomatic_Main_Settings['cloud_bucket'];
1773
+
} else {
1774
+
$cloud_bucket = '';
1775
+
}
1776
+
if (isset($aiomatic_Main_Settings['cloud_account'])) {
1777
+
$cloud_account = $aiomatic_Main_Settings['cloud_account'];
1778
+
} else {
1779
+
$cloud_account = '';
1780
+
}
1781
+
if (isset($aiomatic_Main_Settings['cloud_user'])) {
1782
+
$cloud_user = $aiomatic_Main_Settings['cloud_user'];
1783
+
} else {
1784
+
$cloud_user = '';
1785
+
}
1786
+
if (isset($aiomatic_Main_Settings['cloud_public'])) {
1787
+
$cloud_public = $aiomatic_Main_Settings['cloud_public'];
1788
+
} else {
1789
+
$cloud_public = '';
1790
+
}
1791
+
if (isset($aiomatic_Main_Settings['cloud_pass'])) {
1792
+
$cloud_pass = $aiomatic_Main_Settings['cloud_pass'];
1793
+
} else {
1794
+
$cloud_pass = '';
1795
+
}
1796
+
if (isset($aiomatic_Main_Settings['digital_directory'])) {
1797
+
$digital_directory = $aiomatic_Main_Settings['digital_directory'];
1798
+
} else {
1799
+
$digital_directory = '';
1800
+
}
1801
+
if (isset($aiomatic_Main_Settings['digital_endpoint'])) {
1802
+
$digital_endpoint = $aiomatic_Main_Settings['digital_endpoint'];
1803
+
} else {
1804
+
$digital_endpoint = '';
1805
+
}
1806
+
if (isset($aiomatic_Main_Settings['digital_user'])) {
1807
+
$digital_user = $aiomatic_Main_Settings['digital_user'];
1808
+
} else {
1809
+
$digital_user = '';
1810
+
}
1811
+
if (isset($aiomatic_Main_Settings['digital_pass'])) {
1812
+
$digital_pass = $aiomatic_Main_Settings['digital_pass'];
1813
+
} else {
1814
+
$digital_pass = '';
1815
+
}
1816
+
if (isset($aiomatic_Main_Settings['generic_url'])) {
1817
+
$generic_url = $aiomatic_Main_Settings['generic_url'];
1818
+
} else {
1819
+
$generic_url = '';
1820
+
}
1821
+
if (isset($aiomatic_Main_Settings['generic_directory'])) {
1822
+
$generic_directory = $aiomatic_Main_Settings['generic_directory'];
1823
+
} else {
1824
+
$generic_directory = '';
1825
+
}
1826
+
if (isset($aiomatic_Main_Settings['generic_bucket'])) {
1827
+
$generic_bucket = $aiomatic_Main_Settings['generic_bucket'];
1828
+
} else {
1829
+
$generic_bucket = '';
1830
+
}
1831
+
if (isset($aiomatic_Main_Settings['generic_region'])) {
1832
+
$generic_region = $aiomatic_Main_Settings['generic_region'];
1833
+
} else {
1834
+
$generic_region = '';
1835
+
}
1836
+
if (isset($aiomatic_Main_Settings['generic_user'])) {
1837
+
$generic_user = $aiomatic_Main_Settings['generic_user'];
1838
+
} else {
1839
+
$generic_user = '';
1840
+
}
1841
+
if (isset($aiomatic_Main_Settings['generic_pass'])) {
1842
+
$generic_pass = $aiomatic_Main_Settings['generic_pass'];
1843
+
} else {
1844
+
$generic_pass = '';
1845
+
}
1846
+
if (isset($aiomatic_Main_Settings['no_img_translate'])) {
1847
+
$no_img_translate = $aiomatic_Main_Settings['no_img_translate'];
1848
+
} else {
1849
+
$no_img_translate = '';
1850
+
}
1851
+
if (isset($aiomatic_Main_Settings['omni_webhook'])) {
1852
+
$omni_webhook = $aiomatic_Main_Settings['omni_webhook'];
1853
+
} else {
1854
+
$omni_webhook = '';
1855
+
}
1856
+
if (isset($aiomatic_Main_Settings['omni_caching'])) {
1857
+
$omni_caching = $aiomatic_Main_Settings['omni_caching'];
1858
+
} else {
1859
+
$omni_caching = '';
1860
+
}
1861
+
if (isset($aiomatic_Main_Settings['omni_temperature'])) {
1862
+
$omni_temperature = $aiomatic_Main_Settings['omni_temperature'];
1863
+
} else {
1864
+
$omni_temperature = '';
1865
+
}
1866
+
if (isset($aiomatic_Main_Settings['omni_top_p'])) {
1867
+
$omni_top_p = $aiomatic_Main_Settings['omni_top_p'];
1868
+
} else {
1869
+
$omni_top_p = '';
1870
+
}
1871
+
if (isset($aiomatic_Main_Settings['omni_ppenalty'])) {
1872
+
$omni_ppenalty = $aiomatic_Main_Settings['omni_ppenalty'];
1873
+
} else {
1874
+
$omni_ppenalty = '';
1875
+
}
1876
+
if (isset($aiomatic_Main_Settings['omni_fpenalty'])) {
1877
+
$omni_fpenalty = $aiomatic_Main_Settings['omni_fpenalty'];
1878
+
} else {
1879
+
$omni_fpenalty = '';
1880
+
}
1881
+
if (isset($aiomatic_Main_Settings['dalle_style'])) {
1882
+
$dalle_style = $aiomatic_Main_Settings['dalle_style'];
1883
+
} else {
1884
+
$dalle_style = '';
1885
+
}
1886
+
if (isset($aiomatic_Main_Settings['midjourney_image_model'])) {
1887
+
$midjourney_image_model = $aiomatic_Main_Settings['midjourney_image_model'];
1888
+
} else {
1889
+
$midjourney_image_model = '';
1890
+
}
1891
+
if (isset($aiomatic_Main_Settings['ideogram_image_model'])) {
1892
+
$ideogram_image_model = $aiomatic_Main_Settings['ideogram_image_model'];
1893
+
} else {
1894
+
$ideogram_image_model = '';
1895
+
}
1896
+
if (isset($aiomatic_Main_Settings['ideogram_magic_prompt'])) {
1897
+
$ideogram_magic_prompt = $aiomatic_Main_Settings['ideogram_magic_prompt'];
1898
+
} else {
1899
+
$ideogram_magic_prompt = 'AUTO';
1900
+
}
1901
+
if (isset($aiomatic_Main_Settings['midjourney_image_engine'])) {
1902
+
$midjourney_image_engine = $aiomatic_Main_Settings['midjourney_image_engine'];
1903
+
} else {
1904
+
$midjourney_image_engine = 'midjourney';
1905
+
}
1906
+
if (isset($aiomatic_Main_Settings['google_ai_image_model'])) {
1907
+
$google_ai_image_model = $aiomatic_Main_Settings['google_ai_image_model'];
1908
+
} else {
1909
+
$google_ai_image_model = 'midjourney';
1910
+
}
1911
+
if (isset($aiomatic_Main_Settings['replicate_image_model'])) {
1912
+
$replicate_image_model = $aiomatic_Main_Settings['replicate_image_model'];
1913
+
} else {
1914
+
$replicate_image_model = '';
1915
+
}
1916
+
if (isset($aiomatic_Main_Settings['ai_resize_height'])) {
1917
+
$ai_resize_height = $aiomatic_Main_Settings['ai_resize_height'];
1918
+
} else {
1919
+
$ai_resize_height = '';
1920
+
}
1921
+
if (isset($aiomatic_Main_Settings['ai_resize_quality'])) {
1922
+
$ai_resize_quality = $aiomatic_Main_Settings['ai_resize_quality'];
1923
+
} else {
1924
+
$ai_resize_quality = '';
1925
+
}
1926
+
if (isset($aiomatic_Main_Settings['textrazor_key'])) {
1927
+
$textrazor_key = $aiomatic_Main_Settings['textrazor_key'];
1928
+
} else {
1929
+
$textrazor_key = '';
1930
+
}
1931
+
if (isset($aiomatic_Main_Settings['neuron_project'])) {
1932
+
$neuron_project = $aiomatic_Main_Settings['neuron_project'];
1933
+
} else {
1934
+
$neuron_project = '';
1935
+
}
1936
+
if (isset($aiomatic_Main_Settings['neuron_key'])) {
1937
+
$neuron_key = $aiomatic_Main_Settings['neuron_key'];
1938
+
} else {
1939
+
$neuron_key = '';
1940
+
}
1941
+
if (isset($aiomatic_Main_Settings['amazon_app_secret'])) {
1942
+
$amazon_app_secret = $aiomatic_Main_Settings['amazon_app_secret'];
1943
+
} else {
1944
+
$amazon_app_secret = '';
1945
+
}
1946
+
if (isset($aiomatic_Main_Settings['amazon_app_id'])) {
1947
+
$amazon_app_id = $aiomatic_Main_Settings['amazon_app_id'];
1948
+
} else {
1949
+
$amazon_app_id = '';
1950
+
}
1951
+
if (isset($aiomatic_Main_Settings['plagiarism_api'])) {
1952
+
$plagiarism_api = $aiomatic_Main_Settings['plagiarism_api'];
1953
+
} else {
1954
+
$plagiarism_api = '';
1955
+
}
1956
+
if (isset($aiomatic_Main_Settings['keyword_prompts'])) {
1957
+
$keyword_prompts = $aiomatic_Main_Settings['keyword_prompts'];
1958
+
} else {
1959
+
$keyword_prompts = '';
1960
+
}
1961
+
if (isset($aiomatic_Main_Settings['keyword_model'])) {
1962
+
$keyword_model = $aiomatic_Main_Settings['keyword_model'];
1963
+
} else {
1964
+
$keyword_model = '';
1965
+
}
1966
+
if (isset($aiomatic_Main_Settings['keyword_assistant_id'])) {
1967
+
$keyword_assistant_id = $aiomatic_Main_Settings['keyword_assistant_id'];
1968
+
} else {
1969
+
$keyword_assistant_id = '';
1970
+
}
1971
+
if (isset($aiomatic_Main_Settings['improve_keywords'])) {
1972
+
$improve_keywords = $aiomatic_Main_Settings['improve_keywords'];
1973
+
} else {
1974
+
$improve_keywords = '';
1975
+
}
1976
+
if (isset($aiomatic_Main_Settings['image_pool'])) {
1977
+
$image_pool = $aiomatic_Main_Settings['image_pool'];
1978
+
} else {
1979
+
$image_pool = '';
1980
+
}
1981
+
if (isset($aiomatic_Main_Settings['random_image_sources'])) {
1982
+
$random_image_sources = $aiomatic_Main_Settings['random_image_sources'];
1983
+
} else {
1984
+
$random_image_sources = '';
1985
+
}
1986
+
if (isset($aiomatic_Main_Settings['random_results_order'])) {
1987
+
$random_results_order = $aiomatic_Main_Settings['random_results_order'];
1988
+
} else {
1989
+
$random_results_order = '';
1990
+
}
1991
+
if (isset($aiomatic_Main_Settings['image_query_translate_en'])) {
1992
+
$image_query_translate_en = $aiomatic_Main_Settings['image_query_translate_en'];
1993
+
} else {
1994
+
$image_query_translate_en = '';
1995
+
}
1996
+
if (isset($aiomatic_Main_Settings['best_user'])) {
1997
+
$best_user = $aiomatic_Main_Settings['best_user'];
1998
+
} else {
1999
+
$best_user = '';
2000
+
}
2001
+
if (isset($aiomatic_Main_Settings['exclude_words'])) {
2002
+
$exclude_words = $aiomatic_Main_Settings['exclude_words'];
2003
+
} else {
2004
+
$exclude_words = '';
2005
+
}
2006
+
if (isset($aiomatic_Main_Settings['best_password'])) {
2007
+
$best_password = $aiomatic_Main_Settings['best_password'];
2008
+
} else {
2009
+
$best_password = '';
2010
+
}
2011
+
if (isset($aiomatic_Main_Settings['morguefile_api'])) {
2012
+
$morguefile_api = $aiomatic_Main_Settings['morguefile_api'];
2013
+
} else {
2014
+
$morguefile_api = '';
2015
+
}
2016
+
if (isset($aiomatic_Main_Settings['morguefile_secret'])) {
2017
+
$morguefile_secret = $aiomatic_Main_Settings['morguefile_secret'];
2018
+
} else {
2019
+
$morguefile_secret = '';
2020
+
}
2021
+
if (isset($aiomatic_Main_Settings['pexels_api'])) {
2022
+
$pexels_api = $aiomatic_Main_Settings['pexels_api'];
2023
+
} else {
2024
+
$pexels_api = '';
2025
+
}
2026
+
if (isset($aiomatic_Main_Settings['flickr_api'])) {
2027
+
$flickr_api = $aiomatic_Main_Settings['flickr_api'];
2028
+
} else {
2029
+
$flickr_api = '';
2030
+
}
2031
+
if (isset($aiomatic_Main_Settings['flickr_license'])) {
2032
+
$flickr_license = $aiomatic_Main_Settings['flickr_license'];
2033
+
} else {
2034
+
$flickr_license = '';
2035
+
}
2036
+
if (isset($aiomatic_Main_Settings['flickr_order'])) {
2037
+
$flickr_order = $aiomatic_Main_Settings['flickr_order'];
2038
+
} else {
2039
+
$flickr_order = '';
2040
+
}
2041
+
if (isset($aiomatic_Main_Settings['pixabay_api'])) {
2042
+
$pixabay_api = $aiomatic_Main_Settings['pixabay_api'];
2043
+
} else {
2044
+
$pixabay_api = '';
2045
+
}
2046
+
if (isset($aiomatic_Main_Settings['imgtype'])) {
2047
+
$imgtype = $aiomatic_Main_Settings['imgtype'];
2048
+
} else {
2049
+
$imgtype = '';
2050
+
}
2051
+
if (isset($aiomatic_Main_Settings['img_order'])) {
2052
+
$img_order = $aiomatic_Main_Settings['img_order'];
2053
+
} else {
2054
+
$img_order = '';
2055
+
}
2056
+
if (isset($aiomatic_Main_Settings['request_delay'])) {
2057
+
$request_delay = $aiomatic_Main_Settings['request_delay'];
2058
+
} else {
2059
+
$request_delay = '';
2060
+
}
2061
+
if (isset($aiomatic_Main_Settings['request_delay_dalle'])) {
2062
+
$request_delay_dalle = $aiomatic_Main_Settings['request_delay_dalle'];
2063
+
} else {
2064
+
$request_delay_dalle = '';
2065
+
}
2066
+
if (isset($aiomatic_Main_Settings['img_cat'])) {
2067
+
$img_cat = $aiomatic_Main_Settings['img_cat'];
2068
+
} else {
2069
+
$img_cat = '';
2070
+
}
2071
+
if (isset($aiomatic_Main_Settings['img_width'])) {
2072
+
$img_width = $aiomatic_Main_Settings['img_width'];
2073
+
} else {
2074
+
$img_width = '';
2075
+
}
2076
+
if (isset($aiomatic_Main_Settings['img_mwidth'])) {
2077
+
$img_mwidth = $aiomatic_Main_Settings['img_mwidth'];
2078
+
} else {
2079
+
$img_mwidth = '';
2080
+
}
2081
+
if (isset($aiomatic_Main_Settings['img_ss'])) {
2082
+
$img_ss = $aiomatic_Main_Settings['img_ss'];
2083
+
} else {
2084
+
$img_ss = '';
2085
+
}
2086
+
if (isset($aiomatic_Main_Settings['img_editor'])) {
2087
+
$img_editor = $aiomatic_Main_Settings['img_editor'];
2088
+
} else {
2089
+
$img_editor = '';
2090
+
}
2091
+
if (isset($aiomatic_Main_Settings['img_language'])) {
2092
+
$img_language = $aiomatic_Main_Settings['img_language'];
2093
+
} else {
2094
+
$img_language = '';
2095
+
}
2096
+
if (isset($aiomatic_Main_Settings['unsplash_key'])) {
2097
+
$unsplash_key = $aiomatic_Main_Settings['unsplash_key'];
2098
+
} else {
2099
+
$unsplash_key = '';
2100
+
}
2101
+
if (isset($aiomatic_Main_Settings['google_images'])) {
2102
+
$google_images = $aiomatic_Main_Settings['google_images'];
2103
+
} else {
2104
+
$google_images = '';
2105
+
}
2106
+
if (isset($aiomatic_Main_Settings['google_images_api'])) {
2107
+
$google_images_api = $aiomatic_Main_Settings['google_images_api'];
2108
+
} else {
2109
+
$google_images_api = '';
2110
+
}
2111
+
if (isset($aiomatic_Main_Settings['pixabay_scrape'])) {
2112
+
$pixabay_scrape = $aiomatic_Main_Settings['pixabay_scrape'];
2113
+
} else {
2114
+
$pixabay_scrape = '';
2115
+
}
2116
+
if (isset($aiomatic_Main_Settings['scrapeimgtype'])) {
2117
+
$scrapeimgtype = $aiomatic_Main_Settings['scrapeimgtype'];
2118
+
} else {
2119
+
$scrapeimgtype = '';
2120
+
}
2121
+
if (isset($aiomatic_Main_Settings['scrapeimg_orientation'])) {
2122
+
$scrapeimg_orientation = $aiomatic_Main_Settings['scrapeimg_orientation'];
2123
+
} else {
2124
+
$scrapeimg_orientation = '';
2125
+
}
2126
+
if (isset($aiomatic_Main_Settings['scrapeimg_order'])) {
2127
+
$scrapeimg_order = $aiomatic_Main_Settings['scrapeimg_order'];
2128
+
} else {
2129
+
$scrapeimg_order = '';
2130
+
}
2131
+
if (isset($aiomatic_Main_Settings['scrapeimg_cat'])) {
2132
+
$scrapeimg_cat = $aiomatic_Main_Settings['scrapeimg_cat'];
2133
+
} else {
2134
+
$scrapeimg_cat = '';
2135
+
}
2136
+
if (isset($aiomatic_Main_Settings['scrapeimg_width'])) {
2137
+
$scrapeimg_width = $aiomatic_Main_Settings['scrapeimg_width'];
2138
+
} else {
2139
+
$scrapeimg_width = '';
2140
+
}
2141
+
if (isset($aiomatic_Main_Settings['scrapeimg_height'])) {
2142
+
$scrapeimg_height = $aiomatic_Main_Settings['scrapeimg_height'];
2143
+
} else {
2144
+
$scrapeimg_height = '';
2145
+
}
2146
+
if (isset($aiomatic_Main_Settings['attr_text'])) {
2147
+
$attr_text = $aiomatic_Main_Settings['attr_text'];
2148
+
} else {
2149
+
$attr_text = '';
2150
+
}
2151
+
if (isset($aiomatic_Main_Settings['bimage'])) {
2152
+
$bimage = $aiomatic_Main_Settings['bimage'];
2153
+
} else {
2154
+
$bimage = '';
2155
+
}
2156
+
if (isset($aiomatic_Main_Settings['no_royalty_skip'])) {
2157
+
$no_royalty_skip = $aiomatic_Main_Settings['no_royalty_skip'];
2158
+
} else {
2159
+
$no_royalty_skip = '';
2160
+
}
2161
+
if (isset($aiomatic_Main_Settings['custom_html2'])) {
2162
+
$custom_html2 = $aiomatic_Main_Settings['custom_html2'];
2163
+
} else {
2164
+
$custom_html2 = '';
2165
+
}
2166
+
if (isset($aiomatic_Main_Settings['partial_kws'])) {
2167
+
$partial_kws = $aiomatic_Main_Settings['partial_kws'];
2168
+
} else {
2169
+
$partial_kws = '';
2170
+
}
2171
+
if (isset($aiomatic_Main_Settings['kws_case'])) {
2172
+
$kws_case = $aiomatic_Main_Settings['kws_case'];
2173
+
} else {
2174
+
$kws_case = '';
2175
+
}
2176
+
if (isset($aiomatic_Main_Settings['no_new_tab_kw'])) {
2177
+
$no_new_tab_kw = $aiomatic_Main_Settings['no_new_tab_kw'];
2178
+
} else {
2179
+
$no_new_tab_kw = '';
2180
+
}
2181
+
if (isset($aiomatic_Main_Settings['kw_skip_ids'])) {
2182
+
$kw_skip_ids = $aiomatic_Main_Settings['kw_skip_ids'];
2183
+
} else {
2184
+
$kw_skip_ids = '';
2185
+
}
2186
+
if (isset($aiomatic_Main_Settings['custom_html'])) {
2187
+
$custom_html = $aiomatic_Main_Settings['custom_html'];
2188
+
} else {
2189
+
$custom_html = '';
2190
+
}
2191
+
if (isset($aiomatic_Main_Settings['resize_width'])) {
2192
+
$resize_width = $aiomatic_Main_Settings['resize_width'];
2193
+
} else {
2194
+
$resize_width = '';
2195
+
}
2196
+
if (isset($aiomatic_Main_Settings['resize_quality'])) {
2197
+
$resize_quality = $aiomatic_Main_Settings['resize_quality'];
2198
+
} else {
2199
+
$resize_quality = '';
2200
+
}
2201
+
if (isset($aiomatic_Main_Settings['resize_height'])) {
2202
+
$resize_height = $aiomatic_Main_Settings['resize_height'];
2203
+
} else {
2204
+
$resize_height = '';
2205
+
}
2206
+
if (isset($_GET['settings-updated'])) {
2207
+
?>
2208
+
<div id="message" class="updated">
2209
+
<p class="cr_saved_notif"><strong> <?php echo esc_html__('Settings saved.', 'aiomatic-automatic-ai-content-writer');?></strong></p>
2210
+
</div>
2211
+
<?php
2212
+
}
2213
+
?>
2214
+
<div id="tab-15" class="tab-content">
2215
+
<br/><table class="widefat">
2216
+
<tr>
2217
+
<td>
2218
+
<h3><?php echo esc_html__('Welcome to Aimogen Pro!', 'aiomatic-automatic-ai-content-writer');?></h3>
2219
+
<p><?php echo esc_html__('Hello, my name is', 'aiomatic-automatic-ai-content-writer');?> <a href="https://coderevolution.ro/our-story/" target="_blank">Szabi</a>, <?php echo esc_html__('I am the developer of the', 'aiomatic-automatic-ai-content-writer');?> <a href="https://wpbay.com/product/aimogen-pro/" target="_blank">Aimogen <?php echo esc_html__('plugin', 'aiomatic-automatic-ai-content-writer');?></a>. <?php echo esc_html__('I am really excited to have you on board as a user!', 'aiomatic-automatic-ai-content-writer');?></p>
2220
+
2221
+
<p><?php echo esc_html__('Aimogen is a powerful tool that can help you generate high-quality, AI-created content for your WordPress site. If you are looking to automate your content creation process, Aimogen has everything you need to get started!', 'aiomatic-automatic-ai-content-writer');?></p>
2222
+
2223
+
<p><?php echo esc_html__('Also, if you\'re looking to edit existing or newly published posts, Aimogen also offers AI content editors and AI-generated featured images to help streamline the process. And with advanced features like AI model fine-tuning, AI embeddings, and usage statistics, you can take your content creation to the next level and produce high-quality, engaging posts in no time.', 'aiomatic-automatic-ai-content-writer');?></p>
2224
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Getting started?', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2225
+
<p><?php echo esc_html__('To set up the plugin in a fast and efficient way, click the "Start Plugin Quick Setup Now" button from below, which will guide you trough the essential steps to set up the plugin and will also teach you about its functionality.', 'aiomatic-automatic-ai-content-writer');?></p>
2226
+
<hr/>
2227
+
<div class="cr_center cr_width_full">
2228
+
<?php echo '<a href="' . esc_url_raw( admin_url('admin.php?page=aiomatic_admin_settings&aiomatic_go_config=1&nonce=' . wp_create_nonce('aiomatic-quick-config')) ) . '" class="button button-primary">' . esc_html__("Start Plugin Quick Setup Now", 'aiomatic-automatic-ai-content-writer') . '</a>';?>
2229
+
</div>
2230
+
<hr/>
2231
+
<p><?php echo esc_html__('If you don\'t want to use the above Quick Setup, to begin using the plugin, click on the \'Plugin Activation\' tab from above and register your purchase code. This will allow you to benefit of the full feature set of this plugin. To learn how to find your purchase code for the plugin, check', 'aiomatic-automatic-ai-content-writer');?> <a href="https://www.youtube.com/watch?v=NElJ5t_Wd48" target="_blank"><?php echo esc_html__('this video', 'aiomatic-automatic-ai-content-writer');?></a>.</p>
2232
+
2233
+
<p><?php echo esc_html__('Afterwards, you need to add your', 'aiomatic-automatic-ai-content-writer');?> <a href="https://platform.openai.com/account/api-keys" target="_blank">OpenAI</a> <?php echo esc_html__('API key or', 'aiomatic-automatic-ai-content-writer');?> <a href="https://aiomaticapi.com/" target="_blank">AiomaticAPI</a> <?php echo esc_html__('API key into the plugin\'s settings (depending which service you choose). You can do this by going to the \'API keys\' tab from above. In this tab you will find also some additional API keys to add, like', 'aiomatic-automatic-ai-content-writer');?> <a href="https://beta.dreamstudio.ai/membership?tab=apiKeys" target="_blank">Stability.AI</a> (<?php echo esc_html__('to create images using Stable Difussion', 'aiomatic-automatic-ai-content-writer');?>) or <a href="https://www.pinecone.io/" target="_blank">Pinecone.io</a> (<?php echo esc_html__('used for the plugin\'s Embeddings functionality', 'aiomatic-automatic-ai-content-writer');?>).</p>
2234
+
2235
+
<p><?php echo esc_html__('Now you are ready to get started seeing the plugin in action! You can hover your mouse over the Aimogen menu in your WordPress dashboard. From there, you can choose to generate a single AI post or to create bulk automatic AI-created posts, complete with rich HTML content and royalty-free or AI-generated images. You can also edit existing or newly published posts, using an AI content editor. If you are an advanced user or you want to learn how to squize more out of the plugin and AI in general, check the Embeddings and Model Training features of the plugin. Finally, stop over to see the usage charts of the plugin and set limits for its API usage (if you feel that this is needed).', 'aiomatic-automatic-ai-content-writer');?></p>
2236
+
2237
+
<p><?php echo esc_html__('You can also add a fully customizable chatbot to your site to engage with visitors and provide them with the information they need in real-time.', 'aiomatic-automatic-ai-content-writer');?></p>
2238
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Understanding How It Functions', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2239
+
<p><?php echo esc_html__("The Aimogen plugin operates in conjunction with the OpenAI API or with AiomaticAPI (whichever you choose to use). To utilize it, you must first create an account on OpenAI and paste your API key in the plugin's settings ('API Keys' tab from the top). OpenAI offers a $5 credit for new users. If you see a message stating, \"You exceeded your current quota, please check your plan and billing details\" it means you've depleted your OpenAI quota and need to buy more credit from OpenAI.", 'aiomatic-automatic-ai-content-writer');?></p>
2240
+
2241
+
<p><?php echo esc_html__("Acquiring the Aimogen plugin does not include any OpenAI credit. Purchasing Aimogen grants you access to the plugin's advanced features, but it doesn't cover any API credit. You'll need to buy credit from OpenAI or a subscription from AiomaticAPI separately.", 'aiomatic-automatic-ai-content-writer');?></p>
2242
+
2243
+
<p><?php echo esc_html__("If you notice any slowdown or failure in content generation, it could be due to issues with the OpenAI API services. Please wait until their services are back to normal before attempting again.", 'aiomatic-automatic-ai-content-writer');?></p>
2244
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Setting Up Your API Key', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2245
+
<p><ul><li><?php echo esc_html__("Visit", 'aiomatic-automatic-ai-content-writer');?> <a href="https://platform.openai.com/account/api-keys" target="_blank">OpenAI</a> <?php echo esc_html__("or", 'aiomatic-automatic-ai-content-writer');?> <a href="https://aiomaticapi.com/" target="_blank">AiomaticAPI</a> <?php echo esc_html__("and create your API key.", 'aiomatic-automatic-ai-content-writer');?>
2246
+
</li><li>
2247
+
<?php echo esc_html__("Navigate to the 'API Keys' tab on the top of this admin page.", 'aiomatic-automatic-ai-content-writer');?>
2248
+
</li><li>
2249
+
<?php echo esc_html__("Input your API key in the 'OpenAI / AiomaticAPI API Keys (One Per Line)' settings field and hit the Save button.", 'aiomatic-automatic-ai-content-writer');?>
2250
+
</li><li>
2251
+
<?php echo esc_html__("You're all set!", 'aiomatic-automatic-ai-content-writer');?>
2252
+
</li></ul>
2253
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('How to use different features of the plugin? Like AI chatbot, AI content creator, AI Content Editor, AI Model Training, Embeddings, AI Forms and many more?', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2254
+
<p><?php echo esc_html__("Depending for which feature are you looking for, be sure to navigate to the respective menu of the Aimogen plugin, wehre you will find a 'Tutorial' tab for each of the features available in the plugin. There you will find also a tutorial video, with detailed description of the feature you are setting up.", 'aiomatic-automatic-ai-content-writer');?></p>
2255
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Using the Content Wizard', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2256
+
2257
+
<p><?php echo esc_html__("The Content Wizard is a feature that allows you to add a button to the WordPress editor to assist in content creation. You can add your own menus with your own prompts. The Content Wizard is compatible with both Gutenberg and Classic Editor. Navigate to your Gutenberg or Classic Editor and look for the Aimogen plugin's logo in the toolbar. Click on the logo and select the menu you want to use. Click the prompt you want to use. Please note that you need to use the \"Convert to Block\" feature in the Gutenberg Editor to use the Content Wizard.", 'aiomatic-automatic-ai-content-writer');?></p>
2258
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Some Important Notes:', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2259
+
2260
+
<ul><li>
2261
+
<?php echo esc_html__("Note 1: Don't forget to secure your API key from OpenAI (don't share it with anyone).", 'aiomatic-automatic-ai-content-writer');?>
2262
+
</li><li>
2263
+
<?php echo esc_html__("Note 2: If you're using Cloudflare, please read below.", 'aiomatic-automatic-ai-content-writer');?>
2264
+
</li><li>
2265
+
<?php echo esc_html__("Note 3: If you're using the WP Rocket caching plugin, please deactivate and reactivate your caching plugin.", 'aiomatic-automatic-ai-content-writer');?>
2266
+
</li><li>
2267
+
<?php echo esc_html__("Note 4: If your server has a timeout limit (max_execution_time server settings limited), you may not be able to generate longer content. Please request your hosting provider to extend the server timeout limit to at least 10-15 minutes to generate longer content.", 'aiomatic-automatic-ai-content-writer');?>
2268
+
</li><li>
2269
+
<?php echo esc_html__("Note 5: If you're using iThemes security, please ensure to allow PHP calls from the plugin folder, otherwise, some features of the plugin might not work.", 'aiomatic-automatic-ai-content-writer');?>
2270
+
</li></ul>
2271
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Using CloudFlare for this website?', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2272
+
<p><?php echo esc_html__("If you encounter slowdowns or a even a full halt in your content creation workflow, the problem could potentially come from Cloudflare.", 'aiomatic-automatic-ai-content-writer');?></p>
2273
+
<p><?php echo esc_html__("To better understand how this might be happening, it is helpful to first understand how the content generation part of the plugin functions. In most cases, when you request the plugin to create a post with a AI generated title, 5 headings, intro + outro and a Q&A section, the plugin sends 1 API request to generate the title, 5 different API requests for the headings, 3 API requests for the intro, outro and Q&A sections. So, for a single post, there might be 9 or more API calls to OpenAI/AiomaticAPI. If each request takes 20 seconds to receive a response, this means that generating this post could take up to 180 seconds in total.", 'aiomatic-automatic-ai-content-writer');?></p>
2274
+
<p><?php echo esc_html__("Unfortunately, the default connection timeout for Cloudflare is set at 100 seconds. This implies that if you're utilizing Cloudflare's default plan and fail to receive all responses from OpenAI within the 100-second window, Cloudflare will reach its timeout limit, resulting in it fully stopping content creation. However, CloudFlare Enterprise users have the option to extend this timeout limit to 6000 seconds either through the Cloudflare API or by reaching out to customer service. Note that only CloudFlare's Enterprise plan will allow this settings change.", 'aiomatic-automatic-ai-content-writer');?></p>
2275
+
2276
+
<p><?php echo esc_html__("If you're a Cloudflare user and you are facing slowdowns in your content creation workflow, one potential remedy could be to extend the connection timeout on Cloudflare (if this is possible in your case). Another approach could be to deactivate CloudFlare while you are using the Aimogen plugin on your site for long content creation (which uses multiple API requests).", 'aiomatic-automatic-ai-content-writer');?></p>
2277
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Using a LiteSpeed Web Server for this website?', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2278
+
<p><?php echo esc_html__("If you are using a LiteSpeed web server, you might need to configure it to allow longer execution times of Aimogen.", 'aiomatic-automatic-ai-content-writer');?></p>
2279
+
<p><a href="https://docs.litespeedtech.com/lsws/cp/cpanel/long-run-script/" target="_blank"><?php echo esc_html__('Check this link for details', 'aiomatic-automatic-ai-content-writer');?></a>.</p>
2280
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Need help?', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2281
+
<p><?php echo esc_html__('If you need help getting started with Aimogen, be sure to check out', 'aiomatic-automatic-ai-content-writer');?> <a href="https://www.youtube.com/channel/UCVLIksvzyk-D_oEdHab2Lgg" target="_blank">CodeRevolutionTV's YouTube channel</a> <?php echo esc_html__('for tutorial videos and other helpful resources. Here you can always find what was the newest update for it and how it got improved. I am constantly adding new updates to the plugin to help you get the most out of it, so be sure to subscribe and stay up to date with the latest version of the plugin.', 'aiomatic-automatic-ai-content-writer');?></p>
2282
+
2283
+
<p><?php echo esc_html__('If your issue is more technical, create a ticket and ask for support on', 'aiomatic-automatic-ai-content-writer');?> <a href="https://coderevolution.ro/support/tickets/aiomatic-support/" target="_blank"><?php echo esc_html__('Aimogen\'s Support Page', 'aiomatic-automatic-ai-content-writer');?></a>.</p>
2284
+
<p><?php echo esc_html__("For more information about the plugin, please visit", 'aiomatic-automatic-ai-content-writer');?> <a href="https://www.youtube.com/playlist?list=PLEiGTaa0iBIhsRSgl5czLEDAhawr_SHx2" target="_blank">"Aimogen Updates"</a> or <a href="https://www.youtube.com/playlist?list=PLEiGTaa0iBIhRvgICiyvwBXH-dMBM4VAt" target="_blank">"Aimogen Tutorials"</a> <?php echo esc_html__("playlists on YouTube.", 'aiomatic-automatic-ai-content-writer');?></p>
2285
+
2286
+
<p><?php echo esc_html__("Feel free to join our Discord community", 'aiomatic-automatic-ai-content-writer');?> <a href="https://discord.gg/Fjggup9wcM" target="_blank">here</a>.</p>
2287
+
2288
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Now go have some fun using the plugin!', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2289
+
2290
+
<p><?php echo esc_html__('Thank you for choosing Aimogen, and I look forward to the plugin helping you create amazing content and features for your WordPress site!', 'aiomatic-automatic-ai-content-writer');?></p>
2291
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
2292
+
?>
2293
+
<br/><table class="widefat"><tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Tutorial Video:', 'aiomatic-automatic-ai-content-writer');?></h2></td></tr></table>
2294
+
<div class="cr_center embedtool"><iframe src="https://www.youtube.com/embed/_Ft1czw-VPU" allowfullscreen></iframe></div>
2295
+
<?php
2296
+
}
2297
+
?>
2298
+
</td>
2299
+
</tr>
2300
+
</table>
2301
+
</div>
2302
+
<div id="tab-1" class="tab-content">
2303
+
<div class="aiomatic_class">
2304
+
<h3>
2305
+
<span class="gs-sub-heading"><b><?php echo esc_html__('Plugin\'s Main Switch:', 'aiomatic-automatic-ai-content-writer');?></b> </span>
2306
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2307
+
<div class="bws_hidden_help_text cr_min_260px">
2308
+
<?php
2309
+
echo esc_html__("Fully enabled or disables the plugins functionality. If you want to use the plugin, be sure to keep this set to 'ON'.", 'aiomatic-automatic-ai-content-writer');
2310
+
?>
2311
+
</div>
2312
+
</div>
2313
+
2314
+
<label class="aiomatic-switch"><input type="checkbox" id="aiomatic_enabled" name="aiomatic_Main_Settings[aiomatic_enabled]"<?php
2315
+
if ($aiomatic_enabled == 'on')
2316
+
echo ' checked ';
2317
+
?>><span class="aiomatic-slider round"></span></label>
2318
+
2319
+
</h3>
2320
+
<p class="aiomatic-settings-desc"><?php
2321
+
echo esc_html__("Plugin activation enables the full functionality of the plugin, enable automatic updates for it to never miss the latest features available.", 'aiomatic-automatic-ai-content-writer');
2322
+
?></p>
2323
+
</div>
2324
+
<?php if($aiomatic_enabled != 'on'){echo '<div class="crf_bord cr_color_red cr_auto_update">' . esc_html__('The entire plugin\'s functionality is disabled! Please enable it from the above switch.', 'aiomatic-automatic-ai-content-writer') . '</div>';}?>
2325
+
<table class="widefat">
2326
+
<?php
2327
+
if($is_activated === true)
2328
+
{
2329
+
?>
2330
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__('Plugin Registration Info - Automatic Updates Enabled:', 'aiomatic-automatic-ai-content-writer');?></h2>
2331
+
</td></tr>
2332
+
<tr>
2333
+
<td colspan="2">
2334
+
<ul>
2335
+
<li><b><?php echo esc_html__("Item Name:", 'aiomatic-automatic-ai-content-writer');?></b> <?php echo esc_html($uoptions['item_name']);?></li>
2336
+
<li>
2337
+
<b><?php echo esc_html__("Item ID:", 'aiomatic-automatic-ai-content-writer');?></b> <?php echo esc_html($uoptions['item_id']);?>
2338
+
</li>
2339
+
<li>
2340
+
<b><?php echo esc_html__("Created At:", 'aiomatic-automatic-ai-content-writer');?></b> <?php echo esc_html($uoptions['created_at']);?>
2341
+
</li>
2342
+
<li>
2343
+
<b><?php echo esc_html__("Buyer Name:", 'aiomatic-automatic-ai-content-writer');?></b> <?php echo esc_html($uoptions['buyer']);?>
2344
+
</li>
2345
+
<li>
2346
+
<input type="button" onclick="unsaved = false;" class="button button-primary" id="<?php echo esc_html($plugin_slug);?>_revoke_license" value="<?php echo esc_html__("Revoke License", 'aiomatic-automatic-ai-content-writer');?>">
2347
+
<input type="hidden" id="<?php echo esc_html($plugin_slug);?>_activation_nonce" value="<?php echo esc_html(wp_create_nonce('activation-secret-nonce'));?>">
2348
+
</li>
2349
+
</ul>
2350
+
<?php
2351
+
}
2352
+
elseif($is_activated === -1)
2353
+
{
2354
+
?>
2355
+
<tr>
2356
+
<td colspan="2">
2357
+
<div><p class="cr_red"><?php echo esc_html__("You are using a PIRATED version of the plugin! Because of this, the main functionality of the plugin is not available. Please revoke your license and activate a genuine license for the Aimogen plugin. Note that the only place where you can get a valid license for the plugin is found here (if you find the plugin for sale also on other websites, do not buy, they are selling pirated copies): ", 'aiomatic-automatic-ai-content-writer');?><a href="https://wpbay.com/product/aimogen-pro/" target="_blank"><?php echo esc_html__("Aimogen on WPBay", 'aiomatic-automatic-ai-content-writer');?></a></p></div>
2358
+
</td>
2359
+
</tr>
2360
+
<tr>
2361
+
<td colspan="2">
2362
+
<input type="button" onclick="unsaved = false;" class="button button-primary" id="<?php echo esc_html($plugin_slug);?>_revoke_license" value="<?php echo esc_html__("Revoke License", 'aiomatic-automatic-ai-content-writer');?>">
2363
+
<input type="hidden" id="<?php echo esc_html($plugin_slug);?>_activation_nonce" value="<?php echo esc_html(wp_create_nonce('activation-secret-nonce'));?>">
2364
+
</td>
2365
+
</tr>
2366
+
<?php
2367
+
}
2368
+
elseif($is_activated === -2)
2369
+
{
2370
+
?>
2371
+
<tr>
2372
+
<td colspan="2">
2373
+
<div>
2374
+
<p class="cr_red">
2375
+
<?php
2376
+
printf(
2377
+
esc_html__(
2378
+
"Your Aiomatic license was created on Envato before the WPBay migration. Starting %s, Envato-based licenses purchased before this date will no longer be supported directly in the plugin.",
2379
+
'aiomatic-automatic-ai-content-writer'
2380
+
),
2381
+
esc_html( AIMOGEN_MIGRATION_CUTOFF_DATE )
2382
+
);
2383
+
?>
2384
+
<br/><br/>
2385
+
<?php
2386
+
echo esc_html__(
2387
+
"To continue receiving updates and functionality, please migrate your license to WPBay before the cutoff date. During this grace period, your plugin will keep working normally.",
2388
+
'aiomatic-automatic-ai-content-writer'
2389
+
);
2390
+
?>
2391
+
<br/><br/>
2392
+
2393
+
<!-- VIDEO LINK -->
2394
+
<strong><?php echo esc_html__("Watch the announcement video:", 'aiomatic-automatic-ai-content-writer');?></strong>
2395
+
<a href="https://www.youtube.com/watch?v=EAiBAczyuoA" target="_blank">
2396
+
<?php echo esc_html__("Rename + migration explained", 'aiomatic-automatic-ai-content-writer');?>
2397
+
</a>
2398
+
2399
+
<br/><br/>
2400
+
<strong><?php echo esc_html__("Migrate now:", 'aiomatic-automatic-ai-content-writer');?></strong>
2401
+
<a href="https://wpbay.com/product/aimogen-pro/#pills-migration" target="_blank">
2402
+
<?php echo esc_html__("Go to WPBay migration page", 'aiomatic-automatic-ai-content-writer');?>
2403
+
</a>
2404
+
</p>
2405
+
</div>
2406
+
</td>
2407
+
</tr>
2408
+
<tr>
2409
+
<td colspan="2">
2410
+
<input type="button" onclick="unsaved = false;" class="button button-primary"
2411
+
id="<?php echo esc_html($plugin_slug);?>_revoke_license"
2412
+
value="<?php echo esc_html__("Revoke License", 'aiomatic-automatic-ai-content-writer');?>">
2413
+
<input type="hidden" id="<?php echo esc_html($plugin_slug);?>_activation_nonce"
2414
+
value="<?php echo esc_html(wp_create_nonce('activation-secret-nonce'));?>">
2415
+
</td>
2416
+
</tr>
2417
+
<?php
2418
+
}
2419
+
elseif($is_activated === -3)
2420
+
{
2421
+
?>
2422
+
<tr>
2423
+
<td colspan="2">
2424
+
<div>
2425
+
<p class="cr_red">
2426
+
<?php
2427
+
printf(
2428
+
esc_html__(
2429
+
"Your Aiomatic license was created on Envato before the WPBay migration. As of %s, Envato-based licenses purchased before this date are no longer supported in the plugin.",
2430
+
'aiomatic-automatic-ai-content-writer'
2431
+
),
2432
+
esc_html( AIMOGEN_MIGRATION_CUTOFF_DATE )
2433
+
);
2434
+
?>
2435
+
<br/><br/>
2436
+
<?php
2437
+
echo esc_html__(
2438
+
"Your current license is no longer valid for activation or updates. To continue using the plugin and receive new features, please migrate your license to WPBay.",
2439
+
'aiomatic-automatic-ai-content-writer'
2440
+
);
2441
+
?>
2442
+
<br/><br/>
2443
+
2444
+
<!-- VIDEO LINK -->
2445
+
<strong><?php echo esc_html__("Watch the announcement video:", 'aiomatic-automatic-ai-content-writer');?></strong>
2446
+
<a href="https://www.youtube.com/watch?v=EAiBAczyuoA" target="_blank">
2447
+
<?php echo esc_html__("Rename + migration explained", 'aiomatic-automatic-ai-content-writer');?>
2448
+
</a>
2449
+
2450
+
<br/><br/>
2451
+
<strong><?php echo esc_html__("Migrate now:", 'aiomatic-automatic-ai-content-writer');?></strong>
2452
+
<a href="https://wpbay.com/product/aimogen-pro/#pills-migration" target="_blank">
2453
+
<?php echo esc_html__("Go to WPBay migration page", 'aiomatic-automatic-ai-content-writer');?>
2454
+
</a>
2455
+
</p>
2456
+
</div>
2457
+
</td>
2458
+
</tr>
2459
+
<tr>
2460
+
<td colspan="2">
2461
+
<input type="button" onclick="unsaved = false;" class="button button-primary"
2462
+
id="<?php echo esc_html($plugin_slug);?>_revoke_license"
2463
+
value="<?php echo esc_html__("Revoke License", 'aiomatic-automatic-ai-content-writer');?>">
2464
+
<input type="hidden" id="<?php echo esc_html($plugin_slug);?>_activation_nonce"
2465
+
value="<?php echo esc_html(wp_create_nonce('activation-secret-nonce'));?>">
2466
+
</td>
2467
+
</tr>
2468
+
<?php
2469
+
}
2470
+
elseif($is_activated === 2)
2471
+
{
2472
+
?>
2473
+
<tr>
2474
+
<td colspan="2">
2475
+
<p class="cr_red"><?php echo esc_html__("This is a demo version of the Aimogen plugin, it has limited functionality in some cases. In the demo mode, the plugin does not need purchase code activation. To use it also on your site, you can purchase a license for it from here: ", 'aiomatic-automatic-ai-content-writer');?><a href="https://wpbay.com/product/aimogen-pro/" target="_blank"><?php echo esc_html__("Aimogen on WPBay", 'aiomatic-automatic-ai-content-writer');?></a></p>
2476
+
</td>
2477
+
</tr>
2478
+
<?php
2479
+
}
2480
+
else
2481
+
{
2482
+
?>
2483
+
<tr>
2484
+
<td colspan="2">
2485
+
<div class="notice notice-error is-dismissible"><p><?php echo esc_html__("The Aimogen plugin is not activated, its functionality is disabled. Please activate the plugin from below!", 'aiomatic-automatic-ai-content-writer');?></p></div>
2486
+
</td>
2487
+
</tr>
2488
+
<tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Plugin Activation:', 'aiomatic-automatic-ai-content-writer');?></h2>
2489
+
</td></tr>
2490
+
<tr>
2491
+
<th>
2492
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2493
+
<div class="bws_hidden_help_text cr_min_260px">
2494
+
<?php
2495
+
echo sprintf( wp_kses( __( 'Please input your purchase code, to enable automatic updates in the plugin. To get your purchase code, please follow <a href="%s" target="_blank">this tutorial</a>. Info submitted to the registration server consists of: purchase code, site URL, site name, admin email. All these data will be used strictly for registration purposes.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), '//coderevolution.ro/knowledge-base/faq/how-do-i-find-my-items-purchase-code-for-plugin-license-activation/' );
2496
+
?>
2497
+
</div>
2498
+
</div>
2499
+
<b><?php echo esc_html__("Aimogen Purchase Code:", 'aiomatic-automatic-ai-content-writer');?></b>
2500
+
</th>
2501
+
<td><input type="text" id="<?php echo esc_html($plugin_slug);?>_register_code" value="" placeholder="<?php echo esc_html__("Purchase Code", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full"></td>
2502
+
</tr>
2503
+
<tr>
2504
+
<td></td>
2505
+
<td><input type="button" id="<?php echo esc_html($plugin_slug);?>_register" class="button button-primary" onclick="unsaved = false;" value="<?php echo esc_html__("Activate License", 'aiomatic-automatic-ai-content-writer');?>"/>
2506
+
<input type="hidden" id="<?php echo esc_html($plugin_slug);?>_activation_nonce" value="<?php echo esc_html(wp_create_nonce('activation-secret-nonce'));?>">
2507
+
<?php
2508
+
}
2509
+
?>
2510
+
</td>
2511
+
</tr>
2512
+
<tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__('Tips and tricks:', 'aiomatic-automatic-ai-content-writer');?></h2>
2513
+
</td></tr>
2514
+
<tr><td>
2515
+
<ul>
2516
+
<li><?php echo sprintf( wp_kses( __( 'Need help configuring this plugin? Please check out it\'s <a href="%s" target="_blank">video tutorial</a>.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://www.youtube.com/watch?v=ou3ATnTANJA' );?>
2517
+
</li>
2518
+
<li><?php echo sprintf( wp_kses( __( 'Having issues with the plugin? Please be sure to check out our <a href="%s" target="_blank">knowledge-base</a> before you contact <a href="%s" target="_blank">our support</a>!', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), '//coderevolution.ro/knowledge-base', '//coderevolution.ro/support' );?></li>
2519
+
<li><?php echo sprintf( wp_kses( __( 'Do you enjoy our plugin? Please give it a <a href="%s" target="_blank">rating</a> on WPBay, or check <a href="%s" target="_blank">our website</a> for other cool plugins.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://wpbay.com/my-account/downloads/', 'https://coderevolution.ro' );?></li>
2520
+
</ul>
2521
+
<hr/>
2522
+
</td>
2523
+
</tr>
2524
+
</table>
2525
+
</div>
2526
+
<div id="tab-2<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
2527
+
<h3><?php echo esc_html__('API Key Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
2528
+
<p class="aiomatic-settings-desc"><?php
2529
+
echo esc_html__("The 'API Keys' menu allows you to manage and configure unique keys essential for integrating and authenticating external AI services with the Aimogen plugin.", 'aiomatic-automatic-ai-content-writer');
2530
+
?></p>
2531
+
<table class="widefat">
2532
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2><?php echo esc_html__("Main AI API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
2533
+
<tr>
2534
+
<th>
2535
+
<div>
2536
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2537
+
<div class="bws_hidden_help_text cr_min_260px">
2538
+
<?php
2539
+
echo esc_html__("Select the AI API service to use to generate content in the plugin using the gpt-3.5/gpt-4 models.", 'aiomatic-automatic-ai-content-writer');
2540
+
?>
2541
+
</div>
2542
+
</div>
2543
+
<b><?php echo esc_html__("Main API Service Provider Selector:", 'aiomatic-automatic-ai-content-writer');?></b>
2544
+
</div>
2545
+
</th>
2546
+
<td>
2547
+
<div>
2548
+
<select id="api_selector" name="aiomatic_Main_Settings[api_selector]" class="cr_width_full">
2549
+
<option value="openai"<?php
2550
+
if ($api_selector == "openai") {
2551
+
echo " selected";
2552
+
}
2553
+
?>><?php echo esc_html__("OpenAI / AiomaticAPI", 'aiomatic-automatic-ai-content-writer');?></option>
2554
+
<option value="azure"<?php
2555
+
if ($api_selector == "azure") {
2556
+
echo " selected";
2557
+
}
2558
+
?>><?php echo esc_html__("Microsoft Azure", 'aiomatic-automatic-ai-content-writer');?></option>
2559
+
<option value="custom"<?php
2560
+
if ($api_selector == "custom") {
2561
+
echo " selected";
2562
+
}
2563
+
?>><?php echo esc_html__("Custom OpenAI Compatible API", 'aiomatic-automatic-ai-content-writer');?></option>
2564
+
</select>
2565
+
</div>
2566
+
</td>
2567
+
</tr>
2568
+
<tr class="customhide aiomatic-title-holder"><td colspan="2"><h2><?php echo esc_html__("Custom OpenAI Compatible API Settings", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
2569
+
<tr class="customhide">
2570
+
<th>
2571
+
<div>
2572
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2573
+
<div class="bws_hidden_help_text cr_min_260px">
2574
+
<?php
2575
+
echo esc_html__("Insert a custom OpnAI Compatible API Base URL which will be used for API calls.", 'aiomatic-automatic-ai-content-writer');
2576
+
?>
2577
+
</div>
2578
+
</div>
2579
+
<b><?php echo esc_html__("OpenAI Compabible API Base URL:", 'aiomatic-automatic-ai-content-writer');?></b>
2580
+
</div>
2581
+
</th>
2582
+
<td>
2583
+
<div>
2584
+
<input type="url" class="cr_width_full" autocomplete="off" id="custom_endpoint" name="aiomatic_Main_Settings[custom_endpoint]" placeholder="https://api.openai.com" value="<?php echo esc_attr($custom_endpoint);?>">
2585
+
</div>
2586
+
</td>
2587
+
</tr>
2588
+
<tr class="azurehide">
2589
+
<td colspan="2">
2590
+
<span class="cr_red">‼
2591
+
<?php echo sprintf( wp_kses( __( "Check <a href='%s' target='_blank'>this detailed step-by-step tutorial</a> and also <a href='%s' target='_blank'>this tutorial video</a> for info on setup and usage of Microsoft Azure OpenAI API in Aimogen.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-setup-microsoft-azure-api-in-aiomatic/', 'https://www.youtube.com/watch?v=56ZHp2B4qgY' );?>
2592
+
‼</span></td>
2593
+
</tr>
2594
+
<tr class="azurehide aiomatic-title-holder"><td colspan="2"><h2><?php echo esc_html__("Azure API Key Settings", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
2595
+
<tr>
2596
+
<th>
2597
+
<div>
2598
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2599
+
<div class="bws_hidden_help_text cr_min_260px">
2600
+
<?php
2601
+
echo sprintf( wp_kses( __( "Insert your API Keys (one per line). For OpenAI API, get your API key <a href='%s' target='_blank'>here</a>. For AiomaticAPI, get your API key <a href='%s' target='_blank'>here</a>. For Azure, get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://platform.openai.com/api-keys', 'https://aiomaticapi.com/pricing/', 'https://portal.azure.com/?microsoft_azure_marketplace_ItemHideKey=microsoft_openai_tip#home' );
2602
+
?>
2603
+
</div>
2604
+
</div>
2605
+
<b class="cr_red"><span id="apilinks"><a href='https://platform.openai.com/api-keys' target='_blank'>OpenAI</a> / <a href='https://aiomaticapi.com/api-keys/' target='_blank'>AiomaticAPI</a></span> <?php echo esc_html__("API Keys (One Per Line) - *Required:", 'aiomatic-automatic-ai-content-writer');?></b>
2606
+
<?php
2607
+
$token = '';
2608
+
$appids = preg_split('/\r\n|\r|\n/', trim($aiomatic_Main_Settings['app_id']));
2609
+
$appids = array_filter($appids);
2610
+
if(count($appids) == 1)
2611
+
{
2612
+
$token = $appids[array_rand($appids)];
2613
+
$token = apply_filters('aimogen_openai_api_key', $token);$token = apply_filters('aiomatic_openai_api_key', $token);
2614
+
if(aiomatic_is_aiomaticapi_key($token))
2615
+
{
2616
+
$call_count = get_transient('aiomaticapi_tokens');
2617
+
if($token != '' && $call_count !== false)
2618
+
{
2619
+
echo esc_html__("Remaining API Tokens: ", 'aiomatic-automatic-ai-content-writer') . '<b>' . esc_html($call_count) . '</b>';
2620
+
}
2621
+
}
2622
+
}
2623
+
2624
+
?>
2625
+
</div>
2626
+
</th>
2627
+
<td>
2628
+
<textarea rows="2" id="app_id" onkeyup="keyUpdated();" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id]" placeholder="<?php echo esc_html__("Please insert your OpenAI/AiomaticAPI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
2629
+
echo esc_textarea($app_id);
2630
+
?></textarea>
2631
+
</td>
2632
+
</tr>
2633
+
<tr class="customhide">
2634
+
<th>
2635
+
<div>
2636
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2637
+
<div class="bws_hidden_help_text cr_min_260px">
2638
+
<?php
2639
+
echo esc_html__("Insert a list of AI models which will be available for use in this custom AI service provider. Add each model on a new line.", 'aiomatic-automatic-ai-content-writer');
2640
+
?>
2641
+
</div>
2642
+
</div>
2643
+
<b><?php echo esc_html__("Additional AI Model List (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></b>
2644
+
</div>
2645
+
</th>
2646
+
<td>
2647
+
<div>
2648
+
<textarea rows="2" id="custom_models" class="cr_width_full" name="aiomatic_Main_Settings[custom_models]" placeholder="<?php echo esc_html__("Additional Custom AI Models List", 'aiomatic-automatic-ai-content-writer');?>"><?php
2649
+
echo esc_textarea($custom_models);
2650
+
?></textarea>
2651
+
</div>
2652
+
</td>
2653
+
</tr>
2654
+
<tr class="azurehide">
2655
+
<th>
2656
+
<div>
2657
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2658
+
<div class="bws_hidden_help_text cr_min_260px">
2659
+
<?php
2660
+
echo sprintf( wp_kses( __( "Insert your Azure OpenAI API endpoint. Get one in the <a href='%s' target='_blank'>Microsoft Azure Services panel</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://portal.azure.com/?microsoft_azure_marketplace_ItemHideKey=microsoft_openai_tip#home' );
2661
+
?>
2662
+
</div>
2663
+
</div>
2664
+
<b><?php echo esc_html__("Azure OpenAI Endpoint:", 'aiomatic-automatic-ai-content-writer');?></b>
2665
+
</div>
2666
+
</th>
2667
+
<td>
2668
+
<div>
2669
+
<input type="url" class="cr_width_full" autocomplete="off" id="azure_endpoint" name="aiomatic_Main_Settings[azure_endpoint]" placeholder="<?php echo esc_html__("Azure Endpoint", 'aiomatic-automatic-ai-content-writer');?>" value="<?php echo esc_attr($azure_endpoint);?>">
2670
+
</div>
2671
+
</td>
2672
+
</tr>
2673
+
<?php
2674
+
function aiomatic_azure_api_options($azure_api_selector_var)
2675
+
{
2676
+
?>
2677
+
<option value="default"<?php
2678
+
if ($azure_api_selector_var == "default") {
2679
+
echo " selected";
2680
+
}
2681
+
?>><?php echo esc_html__("Default", 'aiomatic-automatic-ai-content-writer');?></option>
2682
+
<option value="2022-12-01"<?php
2683
+
if ($azure_api_selector_var == "2022-12-01") {
2684
+
echo " selected";
2685
+
}
2686
+
?>><?php echo esc_html__("2022-12-01", 'aiomatic-automatic-ai-content-writer');?></option>
2687
+
<option value="2023-05-15"<?php
2688
+
if ($azure_api_selector_var == "2023-05-15") {
2689
+
echo " selected";
2690
+
}
2691
+
?>><?php echo esc_html__("2023-05-15", 'aiomatic-automatic-ai-content-writer');?></option>
2692
+
<option value="2024-02-01"<?php
2693
+
if ($azure_api_selector_var == "2024-02-01") {
2694
+
echo " selected";
2695
+
}
2696
+
?>><?php echo esc_html__("2024-02-01", 'aiomatic-automatic-ai-content-writer');?></option>
2697
+
<option value="2024-06-01"<?php
2698
+
if ($azure_api_selector_var == "2024-06-01") {
2699
+
echo " selected";
2700
+
}
2701
+
?>><?php echo esc_html__("2024-06-01", 'aiomatic-automatic-ai-content-writer');?></option>
2702
+
<option value="2024-10-21"<?php
2703
+
if ($azure_api_selector_var == "2024-10-21") {
2704
+
echo " selected";
2705
+
}
2706
+
?>><?php echo esc_html__("2024-10-21", 'aiomatic-automatic-ai-content-writer');?></option>
2707
+
<option value="2024-12-01"<?php
2708
+
if ($azure_api_selector_var == "2024-12-01") {
2709
+
echo " selected";
2710
+
}
2711
+
?>><?php echo esc_html__("2024-12-01", 'aiomatic-automatic-ai-content-writer');?></option>
2712
+
<option value="2022-03-01-preview"<?php
2713
+
if ($azure_api_selector_var == "2022-03-01-preview") {
2714
+
echo " selected";
2715
+
}
2716
+
?>><?php echo esc_html__("2022-03-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2717
+
<option value="2022-06-01-preview"<?php
2718
+
if ($azure_api_selector_var == "2022-06-01-preview") {
2719
+
echo " selected";
2720
+
}
2721
+
?>><?php echo esc_html__("2022-06-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2722
+
<option value="2023-03-15-preview"<?php
2723
+
if ($azure_api_selector_var == "2023-03-15-preview") {
2724
+
echo " selected";
2725
+
}
2726
+
?>><?php echo esc_html__("2023-03-15-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2727
+
<option value="2023-06-01-preview"<?php
2728
+
if ($azure_api_selector_var == "2023-06-01-preview") {
2729
+
echo " selected";
2730
+
}
2731
+
?>><?php echo esc_html__("2023-06-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2732
+
<option value="2023-07-01-preview"<?php
2733
+
if ($azure_api_selector_var == "2023-07-01-preview") {
2734
+
echo " selected";
2735
+
}
2736
+
?>><?php echo esc_html__("2023-07-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2737
+
<option value="2023-08-01-preview"<?php
2738
+
if ($azure_api_selector_var == "2023-08-01-preview") {
2739
+
echo " selected";
2740
+
}
2741
+
?>><?php echo esc_html__("2023-08-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2742
+
<option value="2023-09-01-preview"<?php
2743
+
if ($azure_api_selector_var == "2023-09-01-preview") {
2744
+
echo " selected";
2745
+
}
2746
+
?>><?php echo esc_html__("2023-09-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2747
+
<option value="2023-10-01-preview"<?php
2748
+
if ($azure_api_selector_var == "2023-10-01-preview") {
2749
+
echo " selected";
2750
+
}
2751
+
?>><?php echo esc_html__("2023-10-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2752
+
<option value="2023-12-01-preview"<?php
2753
+
if ($azure_api_selector_var == "2023-12-01-preview") {
2754
+
echo " selected";
2755
+
}
2756
+
?>><?php echo esc_html__("2023-12-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2757
+
<option value="2024-02-15-preview"<?php
2758
+
if ($azure_api_selector_var == "2024-02-15-preview") {
2759
+
echo " selected";
2760
+
}
2761
+
?>><?php echo esc_html__("2024-02-15-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2762
+
<option value="2024-03-01-preview"<?php
2763
+
if ($azure_api_selector_var == "2024-03-01-preview") {
2764
+
echo " selected";
2765
+
}
2766
+
?>><?php echo esc_html__("2024-03-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2767
+
<option value="2024-04-01-preview"<?php
2768
+
if ($azure_api_selector_var == "2024-04-01-preview") {
2769
+
echo " selected";
2770
+
}
2771
+
?>><?php echo esc_html__("2024-04-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2772
+
<option value="2024-05-01-preview"<?php
2773
+
if ($azure_api_selector_var == "2024-05-01-preview") {
2774
+
echo " selected";
2775
+
}
2776
+
?>><?php echo esc_html__("2024-05-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2777
+
<option value="2024-07-01-preview"<?php
2778
+
if ($azure_api_selector_var == "2024-07-01-preview") {
2779
+
echo " selected";
2780
+
}
2781
+
?>><?php echo esc_html__("2024-07-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2782
+
<option value="2024-08-01-preview"<?php
2783
+
if ($azure_api_selector_var == "2024-08-01-preview") {
2784
+
echo " selected";
2785
+
}
2786
+
?>><?php echo esc_html__("2024-08-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2787
+
<option value="2024-09-01-preview"<?php
2788
+
if ($azure_api_selector_var == "2024-09-01-preview") {
2789
+
echo " selected";
2790
+
}
2791
+
?>><?php echo esc_html__("2024-09-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2792
+
<option value="2024-10-01-preview"<?php
2793
+
if ($azure_api_selector_var == "2024-10-01-preview") {
2794
+
echo " selected";
2795
+
}
2796
+
?>><?php echo esc_html__("2024-10-01-preview", 'aiomatic-automatic-ai-content-writer');?></option>
2797
+
<?php
2798
+
}
2799
+
?>
2800
+
<tr class="azurehide">
2801
+
<th>
2802
+
<div>
2803
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2804
+
<div class="bws_hidden_help_text cr_min_260px">
2805
+
<?php
2806
+
echo sprintf( wp_kses( __( "Select the API version you want to use for Azure OpenAI API. Check details <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation' );
2807
+
?>
2808
+
</div>
2809
+
</div>
2810
+
<b><?php echo esc_html__("Azure OpenAI API Version (Textual AI Models):", 'aiomatic-automatic-ai-content-writer');?></b>
2811
+
</div>
2812
+
</th>
2813
+
<td>
2814
+
<div>
2815
+
<select id="azure_api_selector" name="aiomatic_Main_Settings[azure_api_selector]" class="cr_width_full">
2816
+
<?php aiomatic_azure_api_options($azure_api_selector);?>
2817
+
</select>
2818
+
</div>
2819
+
</td>
2820
+
</tr>
2821
+
<tr class="azurehide">
2822
+
<th>
2823
+
<div>
2824
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2825
+
<div class="bws_hidden_help_text cr_min_260px">
2826
+
<?php
2827
+
echo sprintf( wp_kses( __( "Select the API version you want to use for Azure OpenAI API. Check details <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation' );
2828
+
?>
2829
+
</div>
2830
+
</div>
2831
+
<b><?php echo esc_html__("Azure OpenAI API Version (Embeddings):", 'aiomatic-automatic-ai-content-writer');?></b>
2832
+
</div>
2833
+
</th>
2834
+
<td>
2835
+
<div>
2836
+
<select id="azure_api_selector_embeddings" name="aiomatic_Main_Settings[azure_api_selector_embeddings]" class="cr_width_full">
2837
+
<?php aiomatic_azure_api_options($azure_api_selector_embeddings);?>
2838
+
</select>
2839
+
</div>
2840
+
</td>
2841
+
</tr>
2842
+
<tr class="azurehide">
2843
+
<th>
2844
+
<div>
2845
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2846
+
<div class="bws_hidden_help_text cr_min_260px">
2847
+
<?php
2848
+
echo sprintf( wp_kses( __( "Select the API version you want to use for Azure OpenAI API. Check details <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation' );
2849
+
?>
2850
+
</div>
2851
+
</div>
2852
+
<b><?php echo esc_html__("Azure OpenAI API Version (DallE2):", 'aiomatic-automatic-ai-content-writer');?></b>
2853
+
</div>
2854
+
</th>
2855
+
<td>
2856
+
<div>
2857
+
<select id="azure_api_selector_dalle2" name="aiomatic_Main_Settings[azure_api_selector_dalle2]" class="cr_width_full">
2858
+
<?php aiomatic_azure_api_options($azure_api_selector_dalle2);?>
2859
+
</select>
2860
+
</div>
2861
+
</td>
2862
+
</tr>
2863
+
<tr class="azurehide">
2864
+
<th>
2865
+
<div>
2866
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2867
+
<div class="bws_hidden_help_text cr_min_260px">
2868
+
<?php
2869
+
echo sprintf( wp_kses( __( "Select the API version you want to use for Azure OpenAI API. Check details <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation' );
2870
+
?>
2871
+
</div>
2872
+
</div>
2873
+
<b><?php echo esc_html__("Azure OpenAI API Version (DallE3):", 'aiomatic-automatic-ai-content-writer');?></b>
2874
+
</div>
2875
+
</th>
2876
+
<td>
2877
+
<div>
2878
+
<select id="azure_api_selector_dalle3" name="aiomatic_Main_Settings[azure_api_selector_dalle3]" class="cr_width_full">
2879
+
<?php aiomatic_azure_api_options($azure_api_selector_dalle3);?>
2880
+
</select>
2881
+
</div>
2882
+
</td>
2883
+
</tr>
2884
+
<tr class="azurehide">
2885
+
<th>
2886
+
<div>
2887
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2888
+
<div class="bws_hidden_help_text cr_min_260px">
2889
+
<?php
2890
+
echo sprintf( wp_kses( __( "Select the API version you want to use for Azure OpenAI API. Check details <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation' );
2891
+
?>
2892
+
</div>
2893
+
</div>
2894
+
<b><?php echo esc_html__("Azure OpenAI API Version (Assistants):", 'aiomatic-automatic-ai-content-writer');?></b>
2895
+
</div>
2896
+
</th>
2897
+
<td>
2898
+
<div>
2899
+
<select id="azure_api_selector_assistants" name="aiomatic_Main_Settings[azure_api_selector_assistants]" class="cr_width_full">
2900
+
<?php aiomatic_azure_api_options($azure_api_selector_assistants);?>
2901
+
</select>
2902
+
</div>
2903
+
</td>
2904
+
</tr>
2905
+
<tr class="azurehide">
2906
+
<th>
2907
+
<div>
2908
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2909
+
<div class="bws_hidden_help_text cr_min_260px">
2910
+
<?php
2911
+
echo sprintf( wp_kses( __( "Select the API version you want to use for Azure OpenAI API. Check details <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation' );
2912
+
?>
2913
+
</div>
2914
+
</div>
2915
+
<b><?php echo esc_html__("Azure OpenAI API Version (Batch API):", 'aiomatic-automatic-ai-content-writer');?></b>
2916
+
</div>
2917
+
</th>
2918
+
<td>
2919
+
<div>
2920
+
<select id="azure_api_selector_batch" name="aiomatic_Main_Settings[azure_api_selector_batch]" class="cr_width_full">
2921
+
<?php aiomatic_azure_api_options($azure_api_selector_batch);?>
2922
+
</select>
2923
+
</div>
2924
+
</td>
2925
+
</tr>
2926
+
<tr class="azurehide aiomatic-title-holder"><td colspan="2"><h2><?php echo esc_html__("Azure AI Model Deployments List", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
2927
+
<?php
2928
+
foreach (AIMOGEN_AZURE_MODELS as $model) {
2929
+
?>
2930
+
<tr class="azurehide">
2931
+
<th>
2932
+
<div>
2933
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2934
+
<div class="bws_hidden_help_text cr_min_260px">
2935
+
<?php
2936
+
echo sprintf( wp_kses( __( "Insert your Azure OpenAI API deployment name for %s model. Create one in the <a href='%s' target='_blank'>Microsoft Azure Services panel</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_html($model), 'https://portal.azure.com/?microsoft_azure_marketplace_ItemHideKey=microsoft_openai_tip#home' );
2937
+
?>
2938
+
</div>
2939
+
</div>
2940
+
<b><?php echo esc_html__("Azure OpenAI Deployment Name For '", 'aiomatic-automatic-ai-content-writer') . esc_html($model) . "':";?></b>
2941
+
</div>
2942
+
</th>
2943
+
<td>
2944
+
<div>
2945
+
<input type="text" class="cr_width_full" autocomplete="off" id="azure_model_deployments_<?php echo esc_attr($model); ?>" name="aiomatic_Main_Settings[azure_model_deployments][<?php echo esc_attr($model); ?>]" placeholder="<?php echo esc_html__("Azure deployment name for ", 'aiomatic-automatic-ai-content-writer') . esc_html($model);?>" value="<?php echo esc_attr( isset($azure_model_deployments[$model]) ? $azure_model_deployments[$model] : '' );?>">
2946
+
</div>
2947
+
</td>
2948
+
</tr>
2949
+
<?php
2950
+
}
2951
+
?>
2952
+
<tr class="azurehide">
2953
+
<th>
2954
+
<div>
2955
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2956
+
<div class="bws_hidden_help_text cr_min_260px">
2957
+
<?php
2958
+
echo sprintf( wp_kses( __( "Insert your Azure OpenAI API deployment name for %s model. Create one in the <a href='%s' target='_blank'>Microsoft Azure Services panel</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_html('dall-e-3'), 'https://portal.azure.com/?microsoft_azure_marketplace_ItemHideKey=microsoft_openai_tip#home' );
2959
+
?>
2960
+
</div>
2961
+
</div>
2962
+
<b><?php echo esc_html__("Azure OpenAI Deployment Name For '", 'aiomatic-automatic-ai-content-writer') . 'Dall-E 3' . "':";?></b>
2963
+
</div>
2964
+
</th>
2965
+
<td>
2966
+
<div>
2967
+
<input type="text" class="cr_width_full" autocomplete="off" id="azure_model_deployments_dall-e-3" name="aiomatic_Main_Settings[azure_model_deployments][dall-e-3]" placeholder="<?php echo esc_html__("Azure deployment name for ", 'aiomatic-automatic-ai-content-writer') . 'dall-e-3';?>" value="<?php echo esc_attr( isset($azure_model_deployments['dall-e-3']) ? $azure_model_deployments['dall-e-3'] : '' );?>">
2968
+
</div>
2969
+
</td>
2970
+
</tr>
2971
+
<tr class="azurehide">
2972
+
<th>
2973
+
<div>
2974
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2975
+
<div class="bws_hidden_help_text cr_min_260px">
2976
+
<?php
2977
+
echo sprintf( wp_kses( __( "Insert your Azure OpenAI API deployment name for %s model. Create one in the <a href='%s' target='_blank'>Microsoft Azure Services panel</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_html('gpt-image-1'), 'https://portal.azure.com/?microsoft_azure_marketplace_ItemHideKey=microsoft_openai_tip#home' );
2978
+
?>
2979
+
</div>
2980
+
</div>
2981
+
<b><?php echo esc_html__("Azure OpenAI Deployment Name For '", 'aiomatic-automatic-ai-content-writer') . 'gpt-image-1' . "':";?></b>
2982
+
</div>
2983
+
</th>
2984
+
<td>
2985
+
<div>
2986
+
<input type="text" class="cr_width_full" autocomplete="off" id="azure_model_deployments_gpt-image-1" name="aiomatic_Main_Settings[azure_model_deployments][gpt-image-1]" placeholder="<?php echo esc_html__("Azure deployment name for ", 'aiomatic-automatic-ai-content-writer') . 'gpt-image-1';?>" value="<?php echo esc_attr( isset($azure_model_deployments['gpt-image-1']) ? $azure_model_deployments['gpt-image-1'] : '' );?>">
2987
+
</div>
2988
+
</td>
2989
+
</tr>
2990
+
<tr class="azurehide">
2991
+
<th>
2992
+
<div>
2993
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2994
+
<div class="bws_hidden_help_text cr_min_260px">
2995
+
<?php
2996
+
echo sprintf( wp_kses( __( "Insert your Azure OpenAI API deployment name for %s model. Create one in the <a href='%s' target='_blank'>Microsoft Azure Services panel</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_html('gpt-image-1-mini'), 'https://portal.azure.com/?microsoft_azure_marketplace_ItemHideKey=microsoft_openai_tip#home' );
2997
+
?>
2998
+
</div>
2999
+
</div>
3000
+
<b><?php echo esc_html__("Azure OpenAI Deployment Name For '", 'aiomatic-automatic-ai-content-writer') . 'gpt-image-1-mini' . "':";?></b>
3001
+
</div>
3002
+
</th>
3003
+
<td>
3004
+
<div>
3005
+
<input type="text" class="cr_width_full" autocomplete="off" id="azure_model_deployments_gpt-image-1-mini" name="aiomatic_Main_Settings[azure_model_deployments][gpt-image-1-mini]" placeholder="<?php echo esc_html__("Azure deployment name for ", 'aiomatic-automatic-ai-content-writer') . 'gpt-image-1-mini';?>" value="<?php echo esc_attr( isset($azure_model_deployments['gpt-image-1-mini']) ? $azure_model_deployments['gpt-image-1-mini'] : '' );?>">
3006
+
</div>
3007
+
</td>
3008
+
</tr>
3009
+
<tr class="azurehide">
3010
+
<th>
3011
+
<div>
3012
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3013
+
<div class="bws_hidden_help_text cr_min_260px">
3014
+
<?php
3015
+
echo sprintf( wp_kses( __( "Insert your Azure OpenAI API deployment name for %s model. Create one in the <a href='%s' target='_blank'>Microsoft Azure Services panel</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_html('gpt-image-15'), 'https://portal.azure.com/?microsoft_azure_marketplace_ItemHideKey=microsoft_openai_tip#home' );
3016
+
?>
3017
+
</div>
3018
+
</div>
3019
+
<b><?php echo esc_html__("Azure OpenAI Deployment Name For '", 'aiomatic-automatic-ai-content-writer') . 'gpt-image-15' . "':";?></b>
3020
+
</div>
3021
+
</th>
3022
+
<td>
3023
+
<div>
3024
+
<input type="text" class="cr_width_full" autocomplete="off" id="azure_model_deployments_gpt-image-15" name="aiomatic_Main_Settings[azure_model_deployments][gpt-image-15]" placeholder="<?php echo esc_html__("Azure deployment name for ", 'aiomatic-automatic-ai-content-writer') . 'gpt-image-15';?>" value="<?php echo esc_attr( isset($azure_model_deployments['gpt-image-15']) ? $azure_model_deployments['gpt-image-15'] : '' );?>">
3025
+
</div>
3026
+
</td>
3027
+
</tr>
3028
+
<tr class="openhide">
3029
+
<th>
3030
+
<div>
3031
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3032
+
<div class="bws_hidden_help_text cr_min_260px">
3033
+
<?php
3034
+
echo esc_html__("For users who belong to multiple organizations, you can pass a header to specify which organization is used for an API request. Usage from these API requests will count as usage for the specified organization. This field is optional.", 'aiomatic-automatic-ai-content-writer');
3035
+
?>
3036
+
</div>
3037
+
</div>
3038
+
<b><?php echo esc_html__("OpenAI Organization ID (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</b>
3039
+
</div>
3040
+
</th>
3041
+
<td>
3042
+
<div>
3043
+
<input type="text" autocomplete="off" id="openai_organization" placeholder="<?php echo esc_html__("OpenAI Organization ID (optional)", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full" name="aiomatic_Main_Settings[openai_organization]" value="<?php
3044
+
echo esc_html($openai_organization);
3045
+
?>"/>
3046
+
</div>
3047
+
</td>
3048
+
</tr>
3049
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Additional AI API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3050
+
<tr>
3051
+
<th>
3052
+
<div>
3053
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3054
+
<div class="bws_hidden_help_text cr_min_260px">
3055
+
<?php
3056
+
echo sprintf( wp_kses( __( "Adding your xAI (Grok) AI API key in this settings field, will make the xAI models to appear in all model selector boxes from the plugin. To make it work, insert your xAI API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://accounts.x.ai/sign-in?redirect=cloud-console' );
3057
+
?>
3058
+
</div>
3059
+
</div>
3060
+
<b class="cr_red"><span id="apilinksxai"><a href='https://accounts.x.ai/sign-in?redirect=cloud-console' target='_blank'>xAI</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3061
+
</div>
3062
+
</th>
3063
+
<td>
3064
+
<div>
3065
+
<textarea rows="2" id="app_id_xai" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_xai]" placeholder="<?php echo esc_html__("Please insert your xAI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3066
+
echo esc_textarea($app_id_xai);
3067
+
?></textarea>
3068
+
</div>
3069
+
</td>
3070
+
</tr>
3071
+
<tr>
3072
+
<th>
3073
+
<div>
3074
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3075
+
<div class="bws_hidden_help_text cr_min_260px">
3076
+
<?php
3077
+
echo sprintf( wp_kses( __( "Adding your Anthropic Claude API key in this settings field, will make the Anthropic Claude models to appear in all model selector boxes from the plugin. To make it work, insert your Anthropic Claude API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://console.anthropic.com/account/keys' );
3078
+
?>
3079
+
</div>
3080
+
</div>
3081
+
<b class="cr_red"><span id="apilinksClaude"><a href='https://console.anthropic.com/account/keys' target='_blank'>Anthropic Claude</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3082
+
</div>
3083
+
</th>
3084
+
<td>
3085
+
<div>
3086
+
<textarea rows="2" id="app_id_claude" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_claude]" placeholder="<?php echo esc_html__("Please insert your Anthropic Claude API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3087
+
echo esc_textarea($app_id_claude);
3088
+
?></textarea>
3089
+
</div>
3090
+
</td>
3091
+
</tr>
3092
+
<tr>
3093
+
<th>
3094
+
<div>
3095
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3096
+
<div class="bws_hidden_help_text cr_min_260px">
3097
+
<?php
3098
+
echo sprintf( wp_kses( __( "Adding your Google AI Studio API key in this settings field, will make the Google AI Studio AI models to appear in all model selector boxes from the plugin. To make it work, insert your Google AI Studio AI API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://aistudio.google.com/app/apikey' );
3099
+
?>
3100
+
</div>
3101
+
</div>
3102
+
<b class="cr_red"><span id="apilinksGoogle"><a href='https://aistudio.google.com/app/apikey' target='_blank'>Google AI Studio AI</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3103
+
</div>
3104
+
</th>
3105
+
<td>
3106
+
<div>
3107
+
<textarea rows="2" id="app_id_google" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_google]" placeholder="<?php echo esc_html__("Please insert your Google AI Studio AI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3108
+
echo esc_textarea($app_id_google);
3109
+
?></textarea>
3110
+
</div>
3111
+
</td>
3112
+
</tr>
3113
+
<tr>
3114
+
<th>
3115
+
<div>
3116
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3117
+
<div class="bws_hidden_help_text cr_min_260px">
3118
+
<?php
3119
+
echo sprintf( wp_kses( __( "Adding your Perplexity key in this settings field, will make the Perplexity AI models to appear in all model selector boxes from the plugin. To make it work, insert your Perplexity AI API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://www.perplexity.ai/settings/api' );
3120
+
?>
3121
+
</div>
3122
+
</div>
3123
+
<b class="cr_red"><span id="apilinksPerplexity"><a href='https://www.perplexity.ai/settings/api' target='_blank'>Perplexity AI</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3124
+
</div>
3125
+
</th>
3126
+
<td>
3127
+
<div>
3128
+
<textarea rows="2" id="app_id_perplexity" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_perplexity]" placeholder="<?php echo esc_html__("Please insert your Perplexity AI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3129
+
echo esc_textarea($app_id_perplexity);
3130
+
?></textarea>
3131
+
</div>
3132
+
</td>
3133
+
</tr>
3134
+
<tr>
3135
+
<th>
3136
+
<div>
3137
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3138
+
<div class="bws_hidden_help_text cr_min_260px">
3139
+
<?php
3140
+
echo sprintf( wp_kses( __( "Adding your Groq AI API key in this settings field, will make the Groq AI models to appear in all model selector boxes from the plugin. To make it work, insert your Groq AI API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://console.groq.com/keys' );
3141
+
?>
3142
+
</div>
3143
+
</div>
3144
+
<b class="cr_red"><span id="apilinksGroq"><a href='https://console.groq.com/keys' target='_blank'>Groq AI</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3145
+
</div>
3146
+
</th>
3147
+
<td>
3148
+
<div>
3149
+
<textarea rows="2" id="app_id_groq" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_groq]" placeholder="<?php echo esc_html__("Please insert your Groq AI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3150
+
echo esc_textarea($app_id_groq);
3151
+
?></textarea>
3152
+
</div>
3153
+
</td>
3154
+
</tr>
3155
+
<tr>
3156
+
<th>
3157
+
<div>
3158
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3159
+
<div class="bws_hidden_help_text cr_min_260px">
3160
+
<?php
3161
+
echo sprintf( wp_kses( __( "Adding your Nvidia AI API key in this settings field, will make the Nvidia AI models to appear in all model selector boxes from the plugin. To make it work, insert your Nvidia AI API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://build.nvidia.com/nvidia' );
3162
+
?>
3163
+
</div>
3164
+
</div>
3165
+
<b class="cr_red"><span id="apilinksNvidia"><a href='https://build.nvidia.com/nvidia' target='_blank'>Nvidia AI</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3166
+
</div>
3167
+
</th>
3168
+
<td>
3169
+
<div>
3170
+
<textarea rows="2" id="app_id_nvidia" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_nvidia]" placeholder="<?php echo esc_html__("Please insert your Nvidia AI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3171
+
echo esc_textarea($app_id_nvidia);
3172
+
?></textarea>
3173
+
</div>
3174
+
</td>
3175
+
</tr>
3176
+
<tr>
3177
+
<th>
3178
+
<div>
3179
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3180
+
<div class="bws_hidden_help_text cr_min_260px">
3181
+
<?php
3182
+
echo sprintf( wp_kses( __( "Adding your OpenRouter key in this settings field, will make the OpenRouter AI models to appear in all model selector boxes from the plugin. To make it work, insert your OpenRouter AI API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://openrouter.ai/keys' );
3183
+
?>
3184
+
</div>
3185
+
</div>
3186
+
<b class="cr_red"><span id="apilinksOpenrouter"><a href='https://openrouter.ai/keys' target='_blank'>OpenRouter AI</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3187
+
<?php
3188
+
if(!empty($app_id_openrouter))
3189
+
{
3190
+
?>
3191
+
<br/><a id="routerButton" href="#" onclick="aiomaticRefreshOpenRouter();" class="button"><?php echo esc_html__('Refresh Open Router Model List', 'aiomatic-automatic-ai-content-writer');?></a>
3192
+
<?php
3193
+
}
3194
+
?>
3195
+
</div>
3196
+
</th>
3197
+
<td>
3198
+
<div>
3199
+
<textarea rows="2" id="app_id_openrouter" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_openrouter]" placeholder="<?php echo esc_html__("Please insert your OpenRouter AI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3200
+
echo esc_textarea($app_id_openrouter);
3201
+
?></textarea>
3202
+
</div>
3203
+
</td>
3204
+
</tr>
3205
+
<tr>
3206
+
<th>
3207
+
<div>
3208
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3209
+
<div class="bws_hidden_help_text cr_min_260px">
3210
+
<?php
3211
+
echo sprintf( wp_kses( __( "Adding your HuggingFace key in this settings field, will make the HuggingFace AI models to appear in all model selector boxes from the plugin. To make it work, insert your HuggingFace AI API Keys (one per line). Get your API key <a href='%s' target='_blank'>here</a>. After you added your API key, go to the 'Advanced AI Settings' tab and add the list of the HuggingFace models you want to use.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://huggingface.co/settings/tokens' );
3212
+
?>
3213
+
</div>
3214
+
</div>
3215
+
<b class="cr_red"><span id="apilinksHuggingFace"><a href='https://huggingface.co/settings/tokens' target='_blank'>HuggingFace AI</a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3216
+
</div>
3217
+
</th>
3218
+
<td>
3219
+
<div>
3220
+
<textarea rows="2" id="app_id_huggingface" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[app_id_huggingface]" placeholder="<?php echo esc_html__("Please insert your HuggingFace AI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3221
+
echo esc_textarea($app_id_huggingface);
3222
+
?></textarea>
3223
+
</div>
3224
+
</td>
3225
+
</tr>
3226
+
<tr>
3227
+
<th>
3228
+
<div>
3229
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3230
+
<div class="bws_hidden_help_text cr_min_260px">
3231
+
<?php
3232
+
echo sprintf( wp_kses( __( "Add your Ollama Server URL. This can be the local installation of Ollama, from your server. If you are running Ollama locally, the default IP address + port will be %s - You can download the installation files of Ollama, <a href='%s' target='_blank'>here</a>. Check <a href='%s' target='_blank'>this tutorial video</a> for details on installing Ollama locally. Check <a href='%s' target='_blank'>this other tutorial video</a> for details on installing Ollama remotely on Digital Ocean droplets.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'http://localhost:11434', 'https://ollama.com/download', 'https://youtu.be/cRn4feaz0po', 'https://youtu.be/SOOx6TSEh3k' );
3233
+
?>
3234
+
</div>
3235
+
</div>
3236
+
<b class="cr_red"><span id="apilinksOllama"><a href='https://ollama.com/download' target='_blank'>Ollama</a> <?php echo esc_html__("Server URL (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></span></b>
3237
+
<?php
3238
+
if($ollama_url != '')
3239
+
{
3240
+
$phchecked = get_transient('aiomatic_ollama_check');
3241
+
if($phchecked === false)
3242
+
{
3243
+
$ollama = aiomatic_testOllama();
3244
+
if($ollama === 0)
3245
+
{
3246
+
echo '<br/><span class="cr_red12"><b>' . esc_html__('INFO: Ollama not found - please install it and set it up correctly!', 'aiomatic-automatic-ai-content-writer') . '</b> <a href=\'https://ollama.com/\' target=\'_blank\'>' . esc_html__('Download and install Ollama', 'aiomatic-automatic-ai-content-writer') . '</a></span>';
3247
+
}
3248
+
elseif($ollama === 1)
3249
+
{
3250
+
echo '<br/><span class="cr_green12"><b>' . esc_html__('INFO: Ollama Test Successful', 'aiomatic-automatic-ai-content-writer') . '</b></span>';
3251
+
set_transient('aiomatic_ollama_check', '1', 2592000);
3252
+
}
3253
+
}
3254
+
else
3255
+
{
3256
+
echo '<br/><span class="cr_green12"><b>' . esc_html__('INFO: Ollama OK', 'aiomatic-automatic-ai-content-writer') . '</b></span><br/><a id="ollamaButton" href="#" onclick="aiomaticRefreshOllama();" class="button">' . esc_html__('Refresh Ollama Model List', 'aiomatic-automatic-ai-content-writer') . '</a>';
3257
+
}
3258
+
}
3259
+
else
3260
+
{
3261
+
delete_option('aiomatic_ollama_models');
3262
+
}
3263
+
?>
3264
+
</div>
3265
+
</th>
3266
+
<td>
3267
+
<div>
3268
+
<textarea rows="2" id="ollama_url" class="cr_textarea_pass cr_width_full" name="aiomatic_Main_Settings[ollama_url]" placeholder="<?php echo esc_html__("Please insert your Ollama Server URL", 'aiomatic-automatic-ai-content-writer');?>"><?php
3269
+
echo esc_textarea($ollama_url);
3270
+
?></textarea>
3271
+
</div>
3272
+
</td>
3273
+
</tr>
3274
+
<tr>
3275
+
<td colspan="2">
3276
+
<hr/>
3277
+
</td>
3278
+
</tr>
3279
+
<tr class="multiplehide">
3280
+
<th>
3281
+
<div>
3282
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3283
+
<div class="bws_hidden_help_text cr_min_260px">
3284
+
<?php
3285
+
echo esc_html__("Select if you want to use the same API key when creating posts, or do you want to select a new API key for each API request.", 'aiomatic-automatic-ai-content-writer');
3286
+
?>
3287
+
</div>
3288
+
</div>
3289
+
<b><?php echo esc_html__("Use Multiple API Keys When Creating The Same Post:", 'aiomatic-automatic-ai-content-writer');?></b>
3290
+
</div>
3291
+
</th>
3292
+
<td>
3293
+
<div>
3294
+
<label class="aiomatic-switch"><input type="checkbox" id="multiple_key" name="aiomatic_Main_Settings[multiple_key]"<?php
3295
+
if ($multiple_key == 'on')
3296
+
echo ' checked ';
3297
+
?>><span class="aiomatic-slider round"></span></label>
3298
+
</div>
3299
+
</td>
3300
+
</tr>
3301
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Alternative AI Image Generator API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3302
+
<tr>
3303
+
<th>
3304
+
<div>
3305
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3306
+
<div class="bws_hidden_help_text cr_min_260px">
3307
+
<?php
3308
+
echo sprintf( wp_kses( __( "Insert your Stability.AI API Keys (one per line). For Stability.AI API, get your Stability.AI key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://beta.dreamstudio.ai/membership?tab=apiKeys' );
3309
+
?>
3310
+
</div>
3311
+
</div>
3312
+
<b><a href='https://beta.dreamstudio.ai/membership?tab=apiKeys' target='_blank'><?php echo esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></b>
3313
+
</div>
3314
+
</th>
3315
+
<td>
3316
+
<div>
3317
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="stability_app_id" name="aiomatic_Main_Settings[stability_app_id]" placeholder="<?php echo esc_html__("Please insert your Stability.AI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3318
+
echo esc_textarea($stability_app_id);
3319
+
?></textarea>
3320
+
</div>
3321
+
</td>
3322
+
</tr><tr>
3323
+
<th>
3324
+
<div>
3325
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3326
+
<div class="bws_hidden_help_text cr_min_260px">
3327
+
<?php
3328
+
echo sprintf( wp_kses( __( "Insert your GoAPI API Keys (one per line). This is used to generate Midjourney images. Get your GoAPI key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://dashboard.goapi.ai/key' );
3329
+
?>
3330
+
</div>
3331
+
</div>
3332
+
<b><a href='https://dashboard.goapi.ai/key' target='_blank'><?php echo esc_html__("GoAPI.AI (Midjourney)", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></b>
3333
+
</div>
3334
+
</th>
3335
+
<td>
3336
+
<div>
3337
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="midjourney_app_id" name="aiomatic_Main_Settings[midjourney_app_id]" placeholder="<?php echo esc_html__("Please insert your GoAPI API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3338
+
echo esc_textarea($midjourney_app_id);
3339
+
?></textarea>
3340
+
</div>
3341
+
</td>
3342
+
</tr><tr>
3343
+
<th>
3344
+
<div>
3345
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3346
+
<div class="bws_hidden_help_text cr_min_260px">
3347
+
<?php
3348
+
echo sprintf( wp_kses( __( "Insert your Replicate API Keys (one per line). This is used to generate images. Get your GoAPI key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://replicate.com/account/api-tokens' );
3349
+
?>
3350
+
</div>
3351
+
</div>
3352
+
<b><a href='https://replicate.com/account/api-tokens' target='_blank'><?php echo esc_html__("Replicate", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></b>
3353
+
</div>
3354
+
</th>
3355
+
<td>
3356
+
<div>
3357
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="replicate_app_id" name="aiomatic_Main_Settings[replicate_app_id]" placeholder="<?php echo esc_html__("Please insert your Replicate API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3358
+
echo esc_textarea($replicate_app_id);
3359
+
?></textarea>
3360
+
</div>
3361
+
</td>
3362
+
</tr><tr>
3363
+
<th>
3364
+
<div>
3365
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3366
+
<div class="bws_hidden_help_text cr_min_260px">
3367
+
<?php
3368
+
echo sprintf( wp_kses( __( "Insert your Ideogram API Keys (one per line). This is used to generate images. Get your GoAPI key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://ideogram.ai/manage-api' );
3369
+
?>
3370
+
</div>
3371
+
</div>
3372
+
<b><a href='https://ideogram.ai/manage-api' target='_blank'><?php echo esc_html__("Ideogram", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Keys (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></b>
3373
+
</div>
3374
+
</th>
3375
+
<td>
3376
+
<div>
3377
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="ideogram_app_id" name="aiomatic_Main_Settings[ideogram_app_id]" placeholder="<?php echo esc_html__("Please insert your Ideogram API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3378
+
echo esc_textarea($ideogram_app_id);
3379
+
?></textarea>
3380
+
</div>
3381
+
</td>
3382
+
</tr>
3383
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Rate Limit Prevention Settings", 'aiomatic-automatic-ai-content-writer');?>:</h2></td></tr>
3384
+
<tr>
3385
+
<th>
3386
+
<div>
3387
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3388
+
<div class="bws_hidden_help_text cr_min_260px">
3389
+
<?php
3390
+
echo esc_html__("Rate Limit Prevention Delay Between API & Scraping Requests. Set the timeout (in milliseconds) between each subsequent API & scraping call. This will allow API call throttling, so the API call quota limit is not reached for your account.", 'aiomatic-automatic-ai-content-writer');
3391
+
?>
3392
+
</div>
3393
+
</div>
3394
+
<b><?php echo esc_html__("Delay Between API & Scraping Requests (ms):", 'aiomatic-automatic-ai-content-writer');?></b>
3395
+
</div>
3396
+
</th>
3397
+
<td>
3398
+
<div>
3399
+
<input type="text" id="request_delay" placeholder="<?php echo esc_html__("Input request delay", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[request_delay]" value="<?php echo esc_html($request_delay);?>" class="cr_width_full"/>
3400
+
</div>
3401
+
</td>
3402
+
</tr>
3403
+
<tr>
3404
+
<th>
3405
+
<div>
3406
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3407
+
<div class="bws_hidden_help_text cr_min_260px">
3408
+
<?php
3409
+
echo esc_html__("Rate Limit Prevention Delay Between API Requests to AI image generator APIs. Set the timeout (in milliseconds) between each subsequent API & scraping call. This will allow API call throttling, so the API call quota limit is not reached for your account.", 'aiomatic-automatic-ai-content-writer');
3410
+
?>
3411
+
</div>
3412
+
</div>
3413
+
<b><?php echo esc_html__("Delay Between API Requests For AI Image Generator APIs (ms):", 'aiomatic-automatic-ai-content-writer');?></b>
3414
+
</div>
3415
+
</th>
3416
+
<td>
3417
+
<div>
3418
+
<input type="text" id="request_delay_dalle" placeholder="<?php echo esc_html__("Input request delay", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[request_delay_dalle]" value="<?php echo esc_html($request_delay_dalle);?>" class="cr_width_full"/>
3419
+
</div>
3420
+
</td>
3421
+
</tr>
3422
+
<tr class="aiomatic-title-holder">
3423
+
<td colspan="2">
3424
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Scraping Enhancements Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
3425
+
</td></tr>
3426
+
<tr>
3427
+
<th>
3428
+
<div>
3429
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3430
+
<div class="bws_hidden_help_text cr_min_260px">
3431
+
<?php
3432
+
echo sprintf( wp_kses( __( "If you wish to use the HeadlessBrowserAPI to render JavaScript generated content for your scraped pages, enter your API key here. Get one <a href='%s' target='_blank'>here</a>. If you enter a value here, new options will become available in the 'Use PhantomJs/Puppeteer/Tor To Parse JavaScript On Pages' in importing rule settings.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://headlessbrowserapi.com/pricing/' );
3433
+
?>
3434
+
</div>
3435
+
</div>
3436
+
<b><a href="https://headlessbrowserapi.com/" target="_blank"><?php echo esc_html__("HeadlessBrowserAPI Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3437
+
<?php
3438
+
$call_count = get_option('headless_calls', false);
3439
+
if($headlessbrowserapi_key != '' && $call_count !== false)
3440
+
{
3441
+
echo esc_html__("Remaining API Calls For Today: ", 'aiomatic-automatic-ai-content-writer') . '<b>' . esc_html($call_count) . '</b>';
3442
+
}
3443
+
?>
3444
+
<div class="cr_float_right bws_help_box bws_help_box_right dashicons cr_align_middle"><img class="cr_align_middle" src="<?php echo esc_url(plugins_url('../images/new.png', __FILE__));?>" alt="new feature"/>
3445
+
3446
+
<div class="bws_hidden_help_text cr_min_260px"><?php echo esc_html__("New feature added to this plugin: it is able to use HeadlessBrowserAPI to scrape with JavaScript rendered content any website from the internet. Also, the Tor node of the API will be able to scrape .onion sites from the Dark Net!", 'aiomatic-automatic-ai-content-writer');?>
3447
+
</div>
3448
+
</div>
3449
+
</div>
3450
+
</th>
3451
+
<td>
3452
+
<div>
3453
+
<input type="password" autocomplete="off" id="headlessbrowserapi_key" class="cr_width_full" placeholder="<?php echo esc_html__("API key", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[headlessbrowserapi_key]" value="<?php
3454
+
echo esc_html($headlessbrowserapi_key);
3455
+
?>"/>
3456
+
</div>
3457
+
</td>
3458
+
</tr><tr class="aiomatic-title-holder">
3459
+
<td colspan="2">
3460
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Embeddings API Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
3461
+
</td></tr>
3462
+
<tr>
3463
+
<th>
3464
+
<div>
3465
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3466
+
<div class="bws_hidden_help_text cr_min_260px">
3467
+
<?php
3468
+
echo sprintf( wp_kses( __( "Insert your Pinecone API Key. For Pinecone API, get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://www.pinecone.io/' );
3469
+
?>
3470
+
</div>
3471
+
</div>
3472
+
<b><a href='https://www.pinecone.io/' target='_blank'><?php echo esc_html__("Pinecone.io", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
3473
+
</div>
3474
+
</th>
3475
+
<td>
3476
+
<div>
3477
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="pinecone_app_id" name="aiomatic_Main_Settings[pinecone_app_id]" placeholder="<?php echo esc_html__("Please insert your Pinecone.io API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3478
+
echo esc_textarea($pinecone_app_id);
3479
+
?></textarea>
3480
+
</div>
3481
+
</td>
3482
+
</tr>
3483
+
<tr>
3484
+
<th>
3485
+
<div>
3486
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3487
+
<div class="bws_hidden_help_text cr_min_260px">
3488
+
<?php
3489
+
echo sprintf( wp_kses( __( "Insert your Qdrant API Key. For Qdrant API, sign up for a Qdrant account <a href='%s' target='_blank'>here</a> and afterwards, get your API key from the 'Data Access Control' Tab from your Qdrant dashboard.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://qdrant.to/cloud' );
3490
+
?>
3491
+
</div>
3492
+
</div>
3493
+
<b><a href='https://qdrant.to/cloud' target='_blank'><?php echo esc_html__("Qdrant", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
3494
+
</div>
3495
+
</th>
3496
+
<td>
3497
+
<div>
3498
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="qdrant_app_id" name="aiomatic_Main_Settings[qdrant_app_id]" placeholder="<?php echo esc_html__("Please insert your Qdrant API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3499
+
echo esc_textarea($qdrant_app_id);
3500
+
?></textarea>
3501
+
</div>
3502
+
</td>
3503
+
</tr>
3504
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Text-to-Speech API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3505
+
<tr>
3506
+
<th>
3507
+
<div>
3508
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3509
+
<div class="bws_hidden_help_text cr_min_260px">
3510
+
<?php
3511
+
echo sprintf( wp_kses( __( "Insert your ElevenLabs API Key. For ElevenLabs API, get your API key <a href='%s' target='_blank'>here</a>. This is used for the Chatbot text to speech feature.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://beta.elevenlabs.io/speech-synthesis' );
3512
+
?>
3513
+
</div>
3514
+
</div>
3515
+
<b><a href='https://beta.elevenlabs.io/speech-synthesis' target='_blank'><?php echo esc_html__("ElevenLabs.io", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
3516
+
</div>
3517
+
</th>
3518
+
<td>
3519
+
<div>
3520
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="elevenlabs_app_id" name="aiomatic_Main_Settings[elevenlabs_app_id]" placeholder="<?php echo esc_html__("Please insert your ElevenLabs.io API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3521
+
echo esc_textarea($elevenlabs_app_id);
3522
+
?></textarea>
3523
+
</div>
3524
+
</td>
3525
+
</tr>
3526
+
<tr>
3527
+
<th>
3528
+
<div>
3529
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3530
+
<div class="bws_hidden_help_text cr_min_260px">
3531
+
<?php
3532
+
echo sprintf( wp_kses( __( "Insert your Google Text-to-Speech API Key. For Google API, get your API key <a href='%s' target='_blank'>here</a>. This is used for the Chatbot text to speech feature.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://cloud.google.com/text-to-speech' );
3533
+
?>
3534
+
</div>
3535
+
</div>
3536
+
<b><a href='https://cloud.google.com/text-to-speech' target='_blank'><?php echo esc_html__("Google Text-to-Speech", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
3537
+
</div>
3538
+
</th>
3539
+
<td>
3540
+
<div>
3541
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="google_app_id" name="aiomatic_Main_Settings[google_app_id]" placeholder="<?php echo esc_html__("Please insert your Google Text-to-Speech API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3542
+
echo esc_textarea($google_app_id);
3543
+
?></textarea>
3544
+
</div>
3545
+
</td>
3546
+
</tr>
3547
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Text-to-Video API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3548
+
<tr>
3549
+
<th>
3550
+
<div>
3551
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3552
+
<div class="bws_hidden_help_text cr_min_260px">
3553
+
<?php
3554
+
echo sprintf( wp_kses( __( "Insert your D-ID API Key. For D-ID API, get your API key <a href='%s' target='_blank'>here</a>. This is used for the Chatbot text to video feature.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://studio.d-id.com/account-settings' );
3555
+
?>
3556
+
</div>
3557
+
</div>
3558
+
<b><a href='https://studio.d-id.com/account-settings' target='_blank'><?php echo esc_html__("D-ID", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
3559
+
</div>
3560
+
</th>
3561
+
<td>
3562
+
<div>
3563
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="did_app_id" name="aiomatic_Main_Settings[did_app_id]" placeholder="<?php echo esc_html__("Please insert your D-ID API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3564
+
echo esc_textarea($did_app_id);
3565
+
?></textarea>
3566
+
</div>
3567
+
</td>
3568
+
</tr>
3569
+
<tr>
3570
+
<th>
3571
+
<div>
3572
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3573
+
<div class="bws_hidden_help_text cr_min_260px">
3574
+
<?php
3575
+
echo sprintf( wp_kses( __( "Insert your Azure Speech Services API Key. For Azure API, get your API key <a href='%s' target='_blank'>here</a>. This is used for the Chatbot text to video feature. Important note: be sure to subscribe to S0 Standard Pricing Tier on Azure for this service, as this feature will not work on the Free Tier. Also, be sure to disable adblock in your browser while testing this feature, as some adblocks might block the talking avatar from appearing.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices' );
3576
+
?>
3577
+
</div>
3578
+
</div>
3579
+
<b><a href='https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices' target='_blank'><?php echo esc_html__("Azure Speech Services", 'aiomatic-automatic-ai-content-writer');?></a> <?php echo esc_html__("API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
3580
+
</div>
3581
+
</th>
3582
+
<td>
3583
+
<div>
3584
+
<textarea rows="2" class="cr_textarea_pass cr_width_full" autocomplete="off" id="azure_speech_id" name="aiomatic_Main_Settings[azure_speech_id]" placeholder="<?php echo esc_html__("Please insert your Azure Speech Services API Key", 'aiomatic-automatic-ai-content-writer');?>"><?php
3585
+
echo esc_textarea($azure_speech_id);
3586
+
?></textarea>
3587
+
</div>
3588
+
</td>
3589
+
</tr>
3590
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Internet Access / Related Headings API Keys:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3591
+
<tr>
3592
+
<th>
3593
+
<div>
3594
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3595
+
<div class="bws_hidden_help_text cr_min_260px">
3596
+
<?php
3597
+
echo sprintf( wp_kses( __( "Only For Internet Access, Not Related Headings. If you wish to use the Google Search feature of the plugin when scraping keywords, enter a Google Search API key here. Get one <a href='%s' target='_blank'>here</a>. Please enable the 'Custom Search API' in <a href='%s' target='_blank'>Google Cloud Console</a>. Also, to search the entire web for results, please follow <a href='%s' target='_blank'>this tutorial</a>. The search engine feature will work even without entering an API key here, but in this case, the Bing API will be used.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://console.cloud.google.com/apis/credentials', 'https://console.cloud.google.com/marketplace/browse?q=custom%20search%20api', 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-google-custom-search-engine-that-searches-the-entire-web/' );
3598
+
?>
3599
+
</div>
3600
+
</div>
3601
+
<b><a href="https://console.cloud.google.com/apis/credentials" target="_blank"><?php echo esc_html__("Google SERP API Key", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3602
+
</div>
3603
+
</th>
3604
+
<td>
3605
+
<div>
3606
+
<input type="password" autocomplete="off" id="google_search_api" placeholder="<?php echo esc_html__("API Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[google_search_api]" class="cr_width_full" value="<?php
3607
+
echo esc_html($google_search_api);
3608
+
?>"/>
3609
+
</div>
3610
+
</td>
3611
+
</tr>
3612
+
<tr>
3613
+
<th>
3614
+
<div>
3615
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3616
+
<div class="bws_hidden_help_text cr_min_260px">
3617
+
<?php
3618
+
echo sprintf( wp_kses( __( "Only For Internet Access, Not Related Headings. To get the Google API Search Engine ID (CX value), go to <a href='%s' target='_blank'>%s</a> 2. Select your search engine or Create one and go click on it. 3. You can find the CX id titled as \"Search engine ID\" 4. Public URL also has the cx id in the Query param as ?cx=**** here. Also, to search the entire web for results, please follow <a href='%s' target='_blank'>this tutorial</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://cse.google.com/all', 'https://cse.google.com/all', 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-google-custom-search-engine-that-searches-the-entire-web/');
3619
+
?>
3620
+
</div>
3621
+
</div>
3622
+
<b><a href="https://cse.google.com/all" target="_blank"><?php echo esc_html__("Google SERP API Search Engine ID (CX Value)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3623
+
</div>
3624
+
</th>
3625
+
<td>
3626
+
<div>
3627
+
<input type="text" autocomplete="off" id="google_search_cx" placeholder="<?php echo esc_html__("API CX Value (optional)", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full" name="aiomatic_Main_Settings[google_search_cx]" value="<?php
3628
+
echo esc_html($google_search_cx);
3629
+
?>"/>
3630
+
</div>
3631
+
</td>
3632
+
</tr>
3633
+
<tr><td colspan="2"><hr/></td></tr>
3634
+
<tr>
3635
+
<th>
3636
+
<div>
3637
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3638
+
<div class="bws_hidden_help_text cr_min_260px">
3639
+
<?php
3640
+
echo sprintf( wp_kses( __( "Used for Related Headings & AI Internet Access. By default, the plugin scrapes Bing Search for related queries. Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://aka.ms/bingapisignup');
3641
+
?>
3642
+
</div>
3643
+
</div>
3644
+
<b><a href="https://aka.ms/bingapisignup" target="_blank"><?php echo esc_html__("Bing SERP API Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3645
+
</div>
3646
+
</th>
3647
+
<td>
3648
+
<div>
3649
+
<input type="password" autocomplete="off" id="bing_auth_internet" placeholder="<?php echo esc_html__("Bing SERP API Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[bing_auth_internet]" value="<?php
3650
+
echo esc_html($bing_auth_internet);
3651
+
?>" class="cr_width_full"/>
3652
+
</div>
3653
+
</td>
3654
+
</tr>
3655
+
<tr><td colspan="2"><hr/></td></tr>
3656
+
<tr>
3657
+
<th>
3658
+
<div>
3659
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3660
+
<div class="bws_hidden_help_text cr_min_260px">
3661
+
<?php
3662
+
echo sprintf( wp_kses( __( "Used for Related Headings & AI Internet Access. If you want to use SerpAPI to get the related headings for the created posts, you must add your API key here. By default, the plugin scrapes Bing Search for related queries. Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://serpapi.com/manage-api-key');
3663
+
?>
3664
+
</div>
3665
+
</div>
3666
+
<b><a href="https://serpapi.com/manage-api-key" target="_blank"><?php echo esc_html__("SerpAPI API Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3667
+
</div>
3668
+
</th>
3669
+
<td>
3670
+
<div>
3671
+
<input type="password" autocomplete="off" id="serpapi_auth" placeholder="<?php echo esc_html__("SerpAPI Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[serpapi_auth]" value="<?php
3672
+
echo esc_html($serpapi_auth);
3673
+
?>" class="cr_width_full"/>
3674
+
</div>
3675
+
</td>
3676
+
</tr>
3677
+
<tr><td colspan="2"><hr/></td></tr>
3678
+
<tr>
3679
+
<th>
3680
+
<div>
3681
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3682
+
<div class="bws_hidden_help_text cr_min_260px">
3683
+
<?php
3684
+
echo sprintf( wp_kses( __( "Used for Related Headings & AI Internet Access. If you want to use ValueSERP to get the related headings for the created posts, you must add your API key here. By default, the plugin scrapes Bing Search for related queries. Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://app.valueserp.com/playground');
3685
+
?>
3686
+
</div>
3687
+
</div>
3688
+
<b><a href="https://app.valueserp.com/playground" target="_blank"><?php echo esc_html__("ValueSERP API Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3689
+
</div>
3690
+
</th>
3691
+
<td>
3692
+
<div>
3693
+
<input type="password" autocomplete="off" id="valueserp_auth" placeholder="<?php echo esc_html__("ValueSERP Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[valueserp_auth]" value="<?php
3694
+
echo esc_html($valueserp_auth);
3695
+
?>" class="cr_width_full"/>
3696
+
</div>
3697
+
</td>
3698
+
</tr>
3699
+
<tr><td colspan="2"><hr/></td></tr>
3700
+
<tr>
3701
+
<th>
3702
+
<div>
3703
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3704
+
<div class="bws_hidden_help_text cr_min_260px">
3705
+
<?php
3706
+
echo sprintf( wp_kses( __( "Used for AI Internet Access only. By default, the plugin scrapes Bing Search for related queries. Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://app.spaceserp.com/playground');
3707
+
?>
3708
+
</div>
3709
+
</div>
3710
+
<b><a href="https://app.spaceserp.com/playground" target="_blank"><?php echo esc_html__("SpaceSERP API Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3711
+
</div>
3712
+
</th>
3713
+
<td>
3714
+
<div>
3715
+
<input type="password" autocomplete="off" id="spaceserp_auth" placeholder="<?php echo esc_html__("SpaceSERP Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[spaceserp_auth]" value="<?php
3716
+
echo esc_html($spaceserp_auth);
3717
+
?>" class="cr_width_full"/>
3718
+
</div>
3719
+
</td>
3720
+
</tr>
3721
+
<tr><td colspan="2"><hr/></td></tr>
3722
+
<tr>
3723
+
<th>
3724
+
<div>
3725
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3726
+
<div class="bws_hidden_help_text cr_min_260px">
3727
+
<?php
3728
+
echo sprintf( wp_kses( __( "Used for Related Headings & AI Internet Access. By default, the plugin scrapes Bing Search for related queries. Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://serper.dev/api-key');
3729
+
?>
3730
+
</div>
3731
+
</div>
3732
+
<b><a href="https://serper.dev/api-key" target="_blank"><?php echo esc_html__("Serper.dev API Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3733
+
</div>
3734
+
</th>
3735
+
<td>
3736
+
<div>
3737
+
<input type="password" autocomplete="off" id="serper_auth" placeholder="<?php echo esc_html__("Serper.dev Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[serper_auth]" value="<?php
3738
+
echo esc_html($serper_auth);
3739
+
?>" class="cr_width_full"/>
3740
+
</div>
3741
+
</td>
3742
+
</tr>
3743
+
<tr><td colspan="2"><hr/></td></tr>
3744
+
<tr>
3745
+
<th>
3746
+
<div>
3747
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3748
+
<div class="bws_hidden_help_text cr_min_260px">
3749
+
<?php
3750
+
echo sprintf( wp_kses( __( "Used for AI Internet Access. By default, the plugin scrapes Bing Search for related queries. Get your API key <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://app.tavily.com/home');
3751
+
?>
3752
+
</div>
3753
+
</div>
3754
+
<b><a href="https://app.tavily.com/home" target="_blank"><?php echo esc_html__("Tavily API Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3755
+
</div>
3756
+
</th>
3757
+
<td>
3758
+
<div>
3759
+
<input type="password" autocomplete="off" id="tavily_auth" placeholder="<?php echo esc_html__("Tavily Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[tavily_auth]" value="<?php
3760
+
echo esc_html($tavily_auth);
3761
+
?>" class="cr_width_full"/>
3762
+
</div>
3763
+
</td>
3764
+
</tr>
3765
+
<tr><td colspan="2"><hr/></td></tr>
3766
+
<tr>
3767
+
<th>
3768
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3769
+
<div class="bws_hidden_help_text cr_min_260px">
3770
+
<?php
3771
+
echo esc_html__("Select if you want to enable DuckDuckGo search results scraping.", 'aiomatic-automatic-ai-content-writer');
3772
+
?>
3773
+
</div>
3774
+
</div>
3775
+
<b><?php echo esc_html__("Use DuckDuckGo Search Results Scraping:", 'aiomatic-automatic-ai-content-writer');?></b>
3776
+
</th>
3777
+
<td>
3778
+
<label class="aiomatic-switch"><input type="checkbox" id="duck_enable" name="aiomatic_Main_Settings[duck_enable]"<?php
3779
+
if ($duck_enable == 'on')
3780
+
echo ' checked ';
3781
+
?>><span class="aiomatic-slider round"></span></label>
3782
+
</td>
3783
+
</tr>
3784
+
<tr><td colspan="2"><hr/></td></tr>
3785
+
<tr>
3786
+
<th>
3787
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3788
+
<div class="bws_hidden_help_text cr_min_260px">
3789
+
<?php
3790
+
echo esc_html__("Select if you want to enable Bing search results scraping.", 'aiomatic-automatic-ai-content-writer');
3791
+
?>
3792
+
</div>
3793
+
</div>
3794
+
<b><?php echo esc_html__("Use Bing Search Results Scraping:", 'aiomatic-automatic-ai-content-writer');?></b>
3795
+
</th>
3796
+
<td>
3797
+
<label class="aiomatic-switch"><input type="checkbox" id="bing_scrape" name="aiomatic_Main_Settings[bing_scrape]"<?php
3798
+
if ($bing_scrape == 'on')
3799
+
echo ' checked ';
3800
+
?>><span class="aiomatic-slider round"></span></label>
3801
+
</td>
3802
+
</tr>
3803
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("NLP API Key:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3804
+
<tr>
3805
+
<th>
3806
+
<div>
3807
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3808
+
<div class="bws_hidden_help_text cr_min_260px">
3809
+
<?php
3810
+
echo sprintf( wp_kses( __( "Used for Relevant Keyword Extraction From Text. Insert your TextRazor API Key. Learn how to get one <a href='%s' target='_blank'>here</a>. This is used when extracting relevant keywords from longer texts. Adding an API key here can greatly improve royalty free image accuracy.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://www.textrazor.com/console' );
3811
+
?>
3812
+
</div>
3813
+
</div>
3814
+
<b><a href="https://www.textrazor.com/console" target="_blank"><?php echo esc_html__("TextRazor API Key List (Optional):", 'aiomatic-automatic-ai-content-writer');?></a></b>
3815
+
</div>
3816
+
</th>
3817
+
<td>
3818
+
<div>
3819
+
<input type="password" autocomplete="off" id="textrazor_key" name="aiomatic_Main_Settings[textrazor_key]" value="<?php
3820
+
echo esc_html($textrazor_key);
3821
+
?>" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert your TextRazor API Key", 'aiomatic-automatic-ai-content-writer');?>">
3822
+
</div>
3823
+
</td>
3824
+
</tr>
3825
+
<tr><td colspan="2"><hr/></td></tr>
3826
+
<tr>
3827
+
<th>
3828
+
<div>
3829
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3830
+
<div class="bws_hidden_help_text cr_min_260px">
3831
+
<?php
3832
+
echo sprintf( wp_kses( __( "Used for Relevant Keyword Extraction From Text. Insert your NeuronWriter API Key. Learn how to get one <a href='%s' target='_blank'>here</a>. This is used when extracting relevant keywords from longer texts.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://contadu.crisp.help/en/article/neuronwriter-api-how-to-use-2ds6hx/' );
3833
+
?>
3834
+
</div>
3835
+
</div>
3836
+
<b><a href="https://contadu.crisp.help/en/article/neuronwriter-api-how-to-use-2ds6hx/" target="_blank"><?php echo esc_html__("NeuronWriter API Key (Optional):", 'aiomatic-automatic-ai-content-writer');?></a></b>
3837
+
</div>
3838
+
</th>
3839
+
<td>
3840
+
<div>
3841
+
<input type="password" autocomplete="off" id="neuron_key" name="aiomatic_Main_Settings[neuron_key]" value="<?php
3842
+
echo esc_html($neuron_key);
3843
+
?>" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert your NeuronWriter API Key", 'aiomatic-automatic-ai-content-writer');?>">
3844
+
</div>
3845
+
</td>
3846
+
</tr>
3847
+
<tr>
3848
+
<th>
3849
+
<div>
3850
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3851
+
<div class="bws_hidden_help_text cr_min_260px">
3852
+
<?php
3853
+
echo wp_kses(
3854
+
sprintf(
3855
+
__(
3856
+
"Insert your NeuronWriter Project ID. The ID of your project is taken from the project's URL, for example: %s -> e95fdd229fd98c10",
3857
+
'aiomatic-automatic-ai-content-writer'
3858
+
),
3859
+
'<a href="https://app.neuronwriter.com/project/view/75a454f6ae5976e8" target="_blank">https://app.neuronwriter.com/project/view/75a454f6ae5976e8</a>'
3860
+
),
3861
+
array(
3862
+
'a' => array(
3863
+
'href' => array(),
3864
+
'target' => array(),
3865
+
),
3866
+
)
3867
+
);
3868
+
?>
3869
+
</div>
3870
+
</div>
3871
+
<b><?php echo esc_html__("NeuronWriter Project ID:", 'aiomatic-automatic-ai-content-writer');?></b>
3872
+
</div>
3873
+
</th>
3874
+
<td>
3875
+
<div>
3876
+
<input type="text" autocomplete="off" id="neuron_project" name="aiomatic_Main_Settings[neuron_project]" value="<?php
3877
+
echo esc_html($neuron_project);
3878
+
?>" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert your NeuronWriter Project ID", 'aiomatic-automatic-ai-content-writer');?>">
3879
+
</div>
3880
+
</td>
3881
+
</tr>
3882
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Plagiarism Checker/AI Detector API Key:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3883
+
<tr>
3884
+
<th>
3885
+
<div>
3886
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3887
+
<div class="bws_hidden_help_text cr_min_260px">
3888
+
<?php
3889
+
echo sprintf( wp_kses( __( "Insert your PlagiarismCheck API Key. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://plagiarismcheck.org/' );
3890
+
?>
3891
+
</div>
3892
+
</div>
3893
+
<b><a href="https://plagiarismcheck.org/" target="_blank"><?php echo esc_html__("PlagiarismCheck API Key List (Optional):", 'aiomatic-automatic-ai-content-writer');?></a></b>
3894
+
</div>
3895
+
</th>
3896
+
<td>
3897
+
<div>
3898
+
<input type="password" autocomplete="off" id="plagiarism_api" name="aiomatic_Main_Settings[plagiarism_api]" value="<?php
3899
+
echo esc_html($plagiarism_api);
3900
+
?>" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert your PlagiarismCheck API Key", 'aiomatic-automatic-ai-content-writer');?>">
3901
+
</div>
3902
+
</td>
3903
+
</tr>
3904
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Amazon API Settings (Optional):", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3905
+
<?php
3906
+
if (!is_plugin_active('aiomatic-extension-amazon-api/aiomatic-extension-amazon-api.php'))
3907
+
{
3908
+
echo ('<tr><td colspan="2"><b>You need to install and enable the \'<a href="https://wpbay.com/product/aiomatic-extension-amazon-api/" target="_blank">Aimogen Extension: Amazon API</a>\' plugin for this feature to work!</b></td></tr>');
3909
+
}
3910
+
else
3911
+
{
3912
+
?>
3913
+
<tr>
3914
+
<th>
3915
+
<div>
3916
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3917
+
<div class="bws_hidden_help_text cr_min_260px">
3918
+
<?php
3919
+
echo sprintf( wp_kses( __( 'Insert your Amazon Access Key ID. Learn how to get one <a href=\'%s\' target=\'_blank\'>here</a>. Also, you need to sign up for Amazon Affiliate program <a href=\'%s\' target=\'_blank\'>here</a>. If you do not enter a value here, the plugin will use direct scraping method to get products.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://console.aws.amazon.com/iam/home?#/security_credential' ), esc_url_raw( 'https://affiliate-program.amazon.com/assoc_credentials/home' ) );
3920
+
?>
3921
+
</div>
3922
+
</div>
3923
+
<b><a href="https://console.aws.amazon.com/iam/home?#/security_credential" target="_blank"><?php echo esc_html__("Amazon Access Key ID (Optional):", 'aiomatic-automatic-ai-content-writer');?></a></b>
3924
+
</div>
3925
+
</th>
3926
+
<td>
3927
+
<div>
3928
+
<input type="text" id="amazon_app_id" name="aiomatic_Main_Settings[amazon_app_id]" value="<?php
3929
+
echo esc_html($amazon_app_id);
3930
+
?>" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert your Amazon App ID", 'aiomatic-automatic-ai-content-writer');?>">
3931
+
</div>
3932
+
</td>
3933
+
</tr>
3934
+
<tr>
3935
+
<th>
3936
+
<div>
3937
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3938
+
<div class="bws_hidden_help_text cr_min_260px">
3939
+
<?php
3940
+
echo sprintf( wp_kses( __( 'Insert your Amazon Secret Access Key. Learn how to get one <a href=\'%s\' target=\'_blank\'>here</a>. Also, you need to sign up for Amazon Affiliate program <a href=\'%s\' target=\'_blank\'>here</a>. If you do not enter a value here, the plugin will use direct scraping method to get products.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://console.aws.amazon.com/iam/home?#/security_credential' ), esc_url_raw( 'https://affiliate-program.amazon.com/assoc_credentials/home' ) );
3941
+
?>
3942
+
</div>
3943
+
</div>
3944
+
<b><a href="https://console.aws.amazon.com/iam/home?#/security_credential" target="_blank"><?php echo esc_html__("Amazon Secret Access Key (Optional):", 'aiomatic-automatic-ai-content-writer');?></a></b>
3945
+
</div>
3946
+
</th>
3947
+
<td>
3948
+
<div>
3949
+
<input type="password" autocomplete="off" id="amazon_app_secret" name="aiomatic_Main_Settings[amazon_app_secret]" value="<?php
3950
+
echo esc_html($amazon_app_secret);
3951
+
?>" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert your Amazon App Secret", 'aiomatic-automatic-ai-content-writer');?>">
3952
+
</div>
3953
+
</td>
3954
+
</tr>
3955
+
<?php
3956
+
}
3957
+
?>
3958
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Related Video Search API Key:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3959
+
<tr>
3960
+
<th>
3961
+
<div>
3962
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3963
+
<div class="bws_hidden_help_text cr_min_260px">
3964
+
<?php
3965
+
echo sprintf( wp_kses( __( "Used for Related Videos. Insert your YouTube API Key. Learn how to get one <a href='%s' target='_blank'>here</a>. This is used when adding YouTube videos to your post content. You can also enter a comma separated list of multiple API keys. This is optional, the Related Videos feature will work also without an API key entered.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://console.cloud.google.com/apis/credentials' );
3966
+
?>
3967
+
</div>
3968
+
</div>
3969
+
<b><a href="https://console.cloud.google.com/apis/credentials" target="_blank"><?php echo esc_html__("YouTube API Key List (Optional):", 'aiomatic-automatic-ai-content-writer');?></a></b>
3970
+
</div>
3971
+
</th>
3972
+
<td>
3973
+
<div>
3974
+
<input type="password" autocomplete="off" id="yt_app_id" name="aiomatic_Main_Settings[yt_app_id]" value="<?php
3975
+
echo esc_html($yt_app_id);
3976
+
?>" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert your YouTube API Key. You can also insert a list of comma separated API keys. The plugin will select one to user, each time when it runs, at random.", 'aiomatic-automatic-ai-content-writer');?>">
3977
+
</div>
3978
+
</td>
3979
+
</tr>
3980
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Translation Services API Keys:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
3981
+
<tr>
3982
+
<th>
3983
+
<div>
3984
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3985
+
<div class="bws_hidden_help_text cr_min_260px">
3986
+
<?php
3987
+
echo sprintf( wp_kses( __( "If you wish to use the official version of the Google Translator API for translation, you must enter first a Google API Key. Get one <a href='%s' target='_blank'>here</a>. Please enable the 'Cloud Translation API' in <a href='%s' target='_blank'>Google Cloud Console</a>. Translation will work even without even without entering an API key here, but in this case, an unofficial Google Translate API will be used.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://console.cloud.google.com/apis/credentials', 'https://console.cloud.google.com/marketplace/browse?q=translate' );
3988
+
?>
3989
+
</div>
3990
+
</div>
3991
+
<b><a href="https://console.cloud.google.com/apis/credentials" target="_blank"><?php echo esc_html__("Google Translator API Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
3992
+
</div>
3993
+
</th>
3994
+
<td>
3995
+
<div>
3996
+
<input type="password" autocomplete="off" id="google_trans_auth" placeholder="<?php echo esc_html__("API Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[google_trans_auth]" value="<?php
3997
+
echo esc_html($google_trans_auth);
3998
+
?>" class="cr_width_full"/>
3999
+
</div>
4000
+
</td>
4001
+
</tr>
4002
+
<tr><td colspan="2"><hr/></td></tr>
4003
+
<tr>
4004
+
<th>
4005
+
<div>
4006
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4007
+
<div class="bws_hidden_help_text cr_min_260px">
4008
+
<?php
4009
+
echo sprintf( wp_kses( __( "If you wish to use DeepL for translation, you must enter first a DeepL 'Authentication Key'. Get one <a href='%s' target='_blank'>here</a>. If you enter a value here, new options will become available in the 'Automatically Translate Content To' and 'Source Language' fields.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://www.deepl.com/subscription.html' );
4010
+
?>
4011
+
</div>
4012
+
</div>
4013
+
<b><a href="https://www.deepl.com/subscription.html" target="_blank"><?php echo esc_html__("DeepL Translator Authentication Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
4014
+
</div>
4015
+
</th>
4016
+
<td>
4017
+
<div>
4018
+
<input type="password" autocomplete="off" id="deepl_auth" placeholder="<?php echo esc_html__("Auth key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[deepl_auth]" value="<?php
4019
+
echo esc_html($deepl_auth);
4020
+
?>" class="cr_width_full"/>
4021
+
</div>
4022
+
</td>
4023
+
</tr>
4024
+
<tr>
4025
+
<th>
4026
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4027
+
<div class="bws_hidden_help_text cr_min_260px">
4028
+
<?php
4029
+
echo esc_html__("Check this checkbox if the above API key is a DeepL free plan key. If it is a PRO key, please uncheck this checkbox.", 'aiomatic-automatic-ai-content-writer');
4030
+
?>
4031
+
</div>
4032
+
</div>
4033
+
<b><?php echo esc_html__("The Above Is A DeepL Free API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
4034
+
</th>
4035
+
<td>
4036
+
<label class="aiomatic-switch"><input type="checkbox" id="deppl_free" name="aiomatic_Main_Settings[deppl_free]"<?php
4037
+
if ($deppl_free == 'on')
4038
+
echo ' checked ';
4039
+
?>><span class="aiomatic-slider round"></span></label>
4040
+
</td>
4041
+
</tr>
4042
+
<tr><td colspan="2"><hr/></td></tr>
4043
+
<tr>
4044
+
<th>
4045
+
<div>
4046
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4047
+
<div class="bws_hidden_help_text cr_min_260px">
4048
+
<?php
4049
+
echo sprintf( wp_kses( __( "If you wish to use Microsoft for translation, you must enter first a Microsoft 'Access Key'. Learn how to get one <a href='%s' target='_blank'>here</a>. If you enter a value here, new options will become available in the 'Automatically Translate Content To' and 'Source Language' fields.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-microsoft-translator-api-key-from-using-azure-control-panel/' );
4050
+
?>
4051
+
</div>
4052
+
</div>
4053
+
<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-microsoft-translator-api-key-from-using-azure-control-panel/" target="_blank"><?php echo esc_html__("Microsoft Translator Access Key (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
4054
+
</div>
4055
+
</th>
4056
+
<td>
4057
+
<div>
4058
+
<input type="password" autocomplete="off" id="bing_auth" placeholder="<?php echo esc_html__("Access key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[bing_auth]" value="<?php
4059
+
echo esc_html($bing_auth);
4060
+
?>" class="cr_width_full"/>
4061
+
</div>
4062
+
</td>
4063
+
</tr>
4064
+
<tr>
4065
+
<th>
4066
+
<div>
4067
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4068
+
<div class="bws_hidden_help_text cr_min_260px">
4069
+
<?php
4070
+
echo sprintf( wp_kses( __( "If you selected a specific region in your Azure Microsoft account, you must enter it here. Learn more <a href='%s' target='_blank'>here</a>. The default is global.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-microsoft-translator-api-key-from-using-azure-control-panel/' );
4071
+
?>
4072
+
</div>
4073
+
</div>
4074
+
<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-microsoft-translator-api-key-from-using-azure-control-panel/" target="_blank"><?php echo esc_html__("Microsoft Translator Region Code (Optional)", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
4075
+
</div>
4076
+
</th>
4077
+
<td>
4078
+
<div>
4079
+
<input type="text" id="bing_region" placeholder="<?php echo esc_html__("global", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[bing_region]" value="<?php
4080
+
echo esc_html($bing_region);
4081
+
?>" class="cr_width_full"/>
4082
+
</div>
4083
+
</td>
4084
+
</tr>
4085
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Miscellaneous API Keys:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4086
+
<tr>
4087
+
<th>
4088
+
<div>
4089
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4090
+
<div class="bws_hidden_help_text cr_min_260px">
4091
+
<?php
4092
+
echo sprintf( wp_kses( __( "This is used for integrating the chatbot with the Toubiz API. Get an API key <a href='%s' target='_blank'>here</a>. You will need the Toubiz API Extension for this feature to work: <a href='%s' target='_blank'>get it here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://mein.toubiz.de/login', 'https://wpbay.com/product/aiomatic-extension-toubiz-api/' );
4093
+
?>
4094
+
</div>
4095
+
</div>
4096
+
<b><a href="https://mein.toubiz.de/login" target="_blank"><?php echo esc_html__("Toubiz API Key", 'aiomatic-automatic-ai-content-writer');?>:</a></b>
4097
+
</div>
4098
+
</th>
4099
+
<td>
4100
+
<?php
4101
+
if (!is_plugin_active('aiomatic-extension-toubiz-api/aiomatic-extension-toubiz-api.php'))
4102
+
{
4103
+
echo ('<b>You need to install and enable the \'<a href="https://wpbay.com/product/aiomatic-extension-toubiz-api/" target="_blank">Aimogen Extension: Toubiz API</a>\' plugin for this feature to work!</b>');
4104
+
}
4105
+
else
4106
+
{
4107
+
?>
4108
+
<div>
4109
+
<input type="password" autocomplete="off" id="toubiz_api" placeholder="<?php echo esc_html__("API Key (optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[toubiz_api]" class="cr_width_full" value="<?php
4110
+
echo esc_html($toubiz_api);
4111
+
?>"/>
4112
+
</div>
4113
+
<?php
4114
+
}
4115
+
?>
4116
+
</td>
4117
+
</tr>
4118
+
</table>
4119
+
</div>
4120
+
<div id="tab-32<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
4121
+
<h3><?php echo esc_html__('OmniBlocks Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
4122
+
<p class="aiomatic-settings-desc"><?php
4123
+
echo esc_html__("Allows you to fine-tune some of the settings offered by the most advanced part of the plugin, the 'OmniBlocks' functionality.", 'aiomatic-automatic-ai-content-writer');
4124
+
?></p>
4125
+
<table class="widefat">
4126
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Advanced OmniBlocks Options:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4127
+
<tr>
4128
+
<th>
4129
+
<div>
4130
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4131
+
<div class="bws_hidden_help_text cr_min_260px">
4132
+
<?php
4133
+
echo esc_html__("Do you want to enable OmniBlocks webhook functionality? This will enable the Webhook OmniBlock type to automatically recieve requests from external sources, using a speicific webhook URL.", 'aiomatic-automatic-ai-content-writer');
4134
+
?>
4135
+
</div>
4136
+
</div>
4137
+
<b><?php echo esc_html__("Enable OmniBlocks Webhook Functionality:", 'aiomatic-automatic-ai-content-writer');?></b>
4138
+
</div>
4139
+
</th>
4140
+
<td>
4141
+
<div>
4142
+
<label class="aiomatic-switch"><input type="checkbox" id="omni_webhook" name="aiomatic_Main_Settings[omni_webhook]"<?php
4143
+
if ($omni_webhook == 'on')
4144
+
echo ' checked ';
4145
+
?>><span class="aiomatic-slider round"></span></label>
4146
+
</div>
4147
+
</td>
4148
+
</tr>
4149
+
<tr>
4150
+
<th>
4151
+
<div>
4152
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4153
+
<div class="bws_hidden_help_text cr_min_260px">
4154
+
<?php
4155
+
echo esc_html__("Do you want to enable OmniBlocks result caching for some OmniBlock types, like the Website Scraper OmniBlock or the RSS Scraper OmniBlock. If this is checked, multiple OmniBlocks in the same queue will use the same data (from caching) and will not download the same website multiple times.", 'aiomatic-automatic-ai-content-writer');
4156
+
?>
4157
+
</div>
4158
+
</div>
4159
+
<b><?php echo esc_html__("Enable OmniBlocks Result Caching:", 'aiomatic-automatic-ai-content-writer');?></b>
4160
+
</div>
4161
+
</th>
4162
+
<td>
4163
+
<div>
4164
+
<label class="aiomatic-switch"><input type="checkbox" id="omni_caching" name="aiomatic_Main_Settings[omni_caching]"<?php
4165
+
if ($omni_caching == 'on')
4166
+
echo ' checked ';
4167
+
?>><span class="aiomatic-slider round"></span></label>
4168
+
</div>
4169
+
</td>
4170
+
</tr>
4171
+
<tr>
4172
+
<th class="cr_min_width_200">
4173
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4174
+
<div class="bws_hidden_help_text cr_min_260px">
4175
+
<?php
4176
+
echo esc_html__("What sampling temperature to use. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 (argmax sampling) for ones with a well-defined answer. We generally recommend altering this or top_p but not both.", 'aiomatic-automatic-ai-content-writer');
4177
+
?>
4178
+
</div>
4179
+
</div>
4180
+
<b><?php echo esc_html__("AI Text OmniBlock Temperature:", 'aiomatic-automatic-ai-content-writer');?></b>
4181
+
</th>
4182
+
<td>
4183
+
<input type="number" min="0" step="0.01" max="2" name="aiomatic_Main_Settings[omni_temperature]" value="<?php echo esc_html($omni_temperature);?>" placeholder="1" class="cr_width_full">
4184
+
</td>
4185
+
</tr><tr>
4186
+
<th class="cr_min_width_200">
4187
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4188
+
<div class="bws_hidden_help_text cr_min_260px">
4189
+
<?php
4190
+
echo esc_html__("An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.", 'aiomatic-automatic-ai-content-writer');
4191
+
?>
4192
+
</div>
4193
+
</div>
4194
+
<b><?php echo esc_html__("AI Text OmniBlock Top_p:", 'aiomatic-automatic-ai-content-writer');?></b>
4195
+
</th>
4196
+
<td>
4197
+
<input type="number" min="0" max="1" step="0.01" name="aiomatic_Main_Settings[omni_top_p]" value="<?php echo esc_html($omni_top_p);?>" placeholder="1" class="cr_width_full">
4198
+
</td>
4199
+
</tr><tr>
4200
+
<th class="cr_min_width_200">
4201
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4202
+
<div class="bws_hidden_help_text cr_min_260px">
4203
+
<?php
4204
+
echo esc_html__("Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.", 'aiomatic-automatic-ai-content-writer');
4205
+
?>
4206
+
</div>
4207
+
</div>
4208
+
<b><?php echo esc_html__("AI Text OmniBlock Presence Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
4209
+
</th>
4210
+
<td>
4211
+
<input type="number" min="-2" step="0.01" max="2" name="aiomatic_Main_Settings[omni_ppenalty]" value="<?php echo esc_html($omni_ppenalty);?>" placeholder="0" class="cr_width_full">
4212
+
</td>
4213
+
</tr><tr>
4214
+
<th class="cr_min_width_200">
4215
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4216
+
<div class="bws_hidden_help_text cr_min_260px">
4217
+
<?php
4218
+
echo esc_html__("Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.", 'aiomatic-automatic-ai-content-writer');
4219
+
?>
4220
+
</div>
4221
+
</div>
4222
+
<b><?php echo esc_html__("AI Text OmniBlock Frequency Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
4223
+
</th>
4224
+
<td>
4225
+
<input type="number" min="0" max="2" step="0.01" name="aiomatic_Main_Settings[omni_fpenalty]" value="<?php echo esc_html($omni_fpenalty);?>" placeholder="0" class="cr_width_full">
4226
+
</td>
4227
+
</tr>
4228
+
</table>
4229
+
</div>
4230
+
<div id="tab-31<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
4231
+
<h3><?php echo esc_html__('AI Video Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
4232
+
<p class="aiomatic-settings-desc"><?php
4233
+
echo esc_html__("The 'AI Videos' tab provides settings for the tools which are used to generate and manage AI-created video content.", 'aiomatic-automatic-ai-content-writer');
4234
+
?></p>
4235
+
<table class="widefat">
4236
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Stability.AI Video API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4237
+
<tr>
4238
+
<th>
4239
+
<div>
4240
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4241
+
<div class="bws_hidden_help_text cr_min_260px">
4242
+
<?php
4243
+
echo esc_html__("How strongly the video sticks to the original image. Use lower values to allow the model more freedom to make changes and higher values to correct motion distortions.", 'aiomatic-automatic-ai-content-writer');
4244
+
?>
4245
+
</div>
4246
+
</div>
4247
+
<b><?php echo esc_html__("Video CFG Scale:", 'aiomatic-automatic-ai-content-writer');?></b>
4248
+
</div>
4249
+
</th>
4250
+
<td>
4251
+
<div>
4252
+
<input type="number" min="0" max="10" step="0.1" id="video_cfg_scale" placeholder="<?php echo esc_html__("2.5", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[video_cfg_scale]" value="<?php
4253
+
echo esc_html($video_cfg_scale);
4254
+
?>" class="cr_width_full"/>
4255
+
</div>
4256
+
</td>
4257
+
</tr>
4258
+
<tr>
4259
+
<th>
4260
+
<div>
4261
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4262
+
<div class="bws_hidden_help_text cr_min_260px">
4263
+
<?php
4264
+
echo esc_html__("Lower values generally result in less motion in the output video, while higher values generally result in more motion. This parameter corresponds to the motion_bucket_id parameter from the paper.", 'aiomatic-automatic-ai-content-writer');
4265
+
?>
4266
+
</div>
4267
+
</div>
4268
+
<b><?php echo esc_html__("Video Motion Bucket ID:", 'aiomatic-automatic-ai-content-writer');?></b>
4269
+
</div>
4270
+
</th>
4271
+
<td>
4272
+
<div>
4273
+
<input type="number" min="1" step="1" max="255" name="aiomatic_Main_Settings[motion_bucket_id]" value="<?php echo esc_html($motion_bucket_id);?>" placeholder="<?php echo esc_html__("1-255", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4274
+
</div>
4275
+
</td>
4276
+
</tr>
4277
+
</table>
4278
+
</div>
4279
+
<div id="tab-4<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
4280
+
<h3><?php echo esc_html__('AI Image Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
4281
+
<p class="aiomatic-settings-desc"><?php
4282
+
echo esc_html__("The 'AI Images' tab provides settings for the tools which are used to generate and manage AI-created visual content, enhancing your WordPress site with automated and customizable image solutions.", 'aiomatic-automatic-ai-content-writer');
4283
+
?></p>
4284
+
<table class="widefat">
4285
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Dall-E AI Image Generator Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4286
+
<tr>
4287
+
<th>
4288
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4289
+
<div class="bws_hidden_help_text cr_min_260px">
4290
+
<?php
4291
+
echo esc_html__("The style of the generated images. Must be one of vivid or natural. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This param is only supported for dall-e-3.", 'aiomatic-automatic-ai-content-writer');
4292
+
?>
4293
+
</div>
4294
+
</div>
4295
+
<b><?php echo esc_html__("Dall-E 3 Image Style:", 'aiomatic-automatic-ai-content-writer');?></b>
4296
+
</th>
4297
+
<td>
4298
+
<select id="dalle_style" name="aiomatic_Main_Settings[dalle_style]" class="cr_width_full">
4299
+
<option value="vivid"<?php
4300
+
if ($dalle_style == "vivid") {
4301
+
echo " selected";
4302
+
}
4303
+
?>><?php echo esc_html__("Vivid", 'aiomatic-automatic-ai-content-writer');?></option>
4304
+
<option value="natural"<?php
4305
+
if ($dalle_style == "natural") {
4306
+
echo " selected";
4307
+
}
4308
+
?>><?php echo esc_html__("Natural", 'aiomatic-automatic-ai-content-writer');?></option>
4309
+
</select>
4310
+
</td>
4311
+
</tr><tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Google AI Image Generator Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4312
+
<tr>
4313
+
<th>
4314
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4315
+
<div class="bws_hidden_help_text cr_min_260px">
4316
+
<?php
4317
+
echo esc_html__("The style of the generated images. Must be one of vivid or natural. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This param is only supported for dall-e-3.", 'aiomatic-automatic-ai-content-writer');
4318
+
?>
4319
+
</div>
4320
+
</div>
4321
+
<b><?php echo esc_html__("Google AI Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
4322
+
</th>
4323
+
<td>
4324
+
<select id="google_ai_image_model" name="aiomatic_Main_Settings[google_ai_image_model]" class="cr_width_full">
4325
+
<?php
4326
+
foreach(AIMOGEN_GOOGLE_IMAGE_MODELS as $current_google_model)
4327
+
{
4328
+
?>
4329
+
<option value="<?php echo esc_attr($current_google_model);?>" <?php if($google_ai_image_model == $current_google_model) {echo ' selected';}?>><?php echo esc_html($current_google_model);?></option>
4330
+
<?php
4331
+
}
4332
+
?>
4333
+
</select>
4334
+
</td>
4335
+
</tr>
4336
+
<tr class="aiomatic-title-holder <?php if(!empty($midjourney_app_id)){echo ' cr_none';}?>"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("GoAPI Settings (Midjourney):", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4337
+
<tr <?php if(!empty($midjourney_app_id)){echo ' class="cr_none"';}?>>
4338
+
<th>
4339
+
<div>
4340
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4341
+
<div class="bws_hidden_help_text cr_min_260px">
4342
+
<?php
4343
+
echo esc_html__("Set what image engine should be used in GoAPI. Default is midjourney.", 'aiomatic-automatic-ai-content-writer');
4344
+
?>
4345
+
</div>
4346
+
</div>
4347
+
<b><?php echo esc_html__("GoAPI Image Engine:", 'aiomatic-automatic-ai-content-writer');?></b>
4348
+
</div>
4349
+
</th>
4350
+
<td>
4351
+
<div>
4352
+
<select id="midjourney_image_engine" name="aiomatic_Main_Settings[midjourney_image_engine]" class="cr_width_full">
4353
+
<option value="midjourney"<?php
4354
+
if (empty($midjourney_image_engine) || $midjourney_image_engine == "midjourney") {
4355
+
echo " selected";
4356
+
}
4357
+
?>><?php echo esc_html__("Midjourney", 'aiomatic-automatic-ai-content-writer');?></option>
4358
+
<option value="Qubico/flux1-dev"<?php
4359
+
if ($midjourney_image_engine == "Qubico/flux1-dev") {
4360
+
echo " selected";
4361
+
}
4362
+
?>><?php echo esc_html__("Qubico/flux1-dev", 'aiomatic-automatic-ai-content-writer');?></option>
4363
+
<option value="Qubico/flux1-schnell"<?php
4364
+
if ($midjourney_image_engine == "Qubico/flux1-schnell") {
4365
+
echo " selected";
4366
+
}
4367
+
?>><?php echo esc_html__("Qubico/flux1-schnell", 'aiomatic-automatic-ai-content-writer');?></option>
4368
+
<option value="Qubico/flux1-dev-advanced"<?php
4369
+
if ($midjourney_image_engine == "Qubico/flux1-dev-advanced") {
4370
+
echo " selected";
4371
+
}
4372
+
?>><?php echo esc_html__("Qubico/flux1-dev-advanced", 'aiomatic-automatic-ai-content-writer');?></option>
4373
+
</select>
4374
+
</div>
4375
+
</td>
4376
+
</tr>
4377
+
<tr <?php if(!empty($midjourney_app_id)){echo ' class="cr_none"';}?>>
4378
+
<th>
4379
+
<div>
4380
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4381
+
<div class="bws_hidden_help_text cr_min_260px">
4382
+
<?php
4383
+
echo esc_html__("Set what model to use when generating images. Default is fast.", 'aiomatic-automatic-ai-content-writer');
4384
+
?>
4385
+
</div>
4386
+
</div>
4387
+
<b><?php echo esc_html__("Midjourney Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
4388
+
</div>
4389
+
</th>
4390
+
<td>
4391
+
<div>
4392
+
<select id="midjourney_image_model" name="aiomatic_Main_Settings[midjourney_image_model]" class="cr_width_full">
4393
+
<?php
4394
+
$midjourney_image_models = ['relax', 'fast', 'turbo'];
4395
+
foreach($midjourney_image_models as $sm)
4396
+
{
4397
+
echo '<option value="' . esc_attr($sm) . '"';
4398
+
if ($midjourney_image_model == $sm)
4399
+
{
4400
+
echo " selected";
4401
+
}
4402
+
echo '>' . esc_html($sm) . '</option>';
4403
+
}
4404
+
?>
4405
+
</select>
4406
+
</div>
4407
+
</td>
4408
+
</tr>
4409
+
<tr class="aiomatic-title-holder <?php if(empty($ideogram_app_id)){echo ' cr_none';}?>"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Ideogram API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4410
+
<tr <?php if(empty($ideogram_app_id)){echo ' class="cr_none"';}?>>
4411
+
<th>
4412
+
<div>
4413
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4414
+
<div class="bws_hidden_help_text cr_min_260px">
4415
+
<?php
4416
+
echo esc_html__("Set what model to use when generating images. Default is fast.", 'aiomatic-automatic-ai-content-writer');
4417
+
?>
4418
+
</div>
4419
+
</div>
4420
+
<b><?php echo esc_html__("Ideogram Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
4421
+
</div>
4422
+
</th>
4423
+
<td>
4424
+
<div>
4425
+
<select id="ideogram_image_model" name="aiomatic_Main_Settings[ideogram_image_model]" class="cr_width_full">
4426
+
<option value="" disabled><?php echo esc_html__("Select a model", 'aiomatic-automatic-ai-content-writer');?></option>
4427
+
<?php
4428
+
$ideogram_image_models = AIMOGEN_IDEOGRAM_MODELS;
4429
+
foreach($ideogram_image_models as $datam)
4430
+
{
4431
+
echo '<option value="' . esc_attr($datam) . '"';
4432
+
if ($ideogram_image_model == $datam)
4433
+
{
4434
+
echo " selected";
4435
+
}
4436
+
echo '>' . esc_html($datam) . '</option>';
4437
+
}
4438
+
?>
4439
+
</select>
4440
+
</div>
4441
+
</td>
4442
+
</tr>
4443
+
<tr <?php if(empty($ideogram_app_id)){echo ' class="cr_none"';}?>>
4444
+
<th>
4445
+
<div>
4446
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4447
+
<div class="bws_hidden_help_text cr_min_260px">
4448
+
<?php
4449
+
echo esc_html__("Select if you want to enable Ideogram's MagicPrompt feature. Magic Prompt uses a locally hosted LLM (Large Language Model) to act as your personal assistant. It interprets your original prompt according to your instructions and optimizes it to maximize the variety and beauty of the images generated.", 'aiomatic-automatic-ai-content-writer');
4450
+
?>
4451
+
</div>
4452
+
</div>
4453
+
<b><?php echo esc_html__("Ideogram Magic Prompt Option:", 'aiomatic-automatic-ai-content-writer');?></b>
4454
+
</div>
4455
+
</th>
4456
+
<td>
4457
+
<div>
4458
+
<select id="ideogram_magic_prompt" name="aiomatic_Main_Settings[ideogram_magic_prompt]" class="cr_width_full">
4459
+
<option value="AUTO"<?php
4460
+
if (empty($ideogram_magic_prompt) || $ideogram_magic_prompt == "AUTO") {
4461
+
echo " selected";
4462
+
}
4463
+
?>><?php echo esc_html__("AUTO", 'aiomatic-automatic-ai-content-writer');?></option>
4464
+
<option value="ON"<?php
4465
+
if ($ideogram_magic_prompt == "ON") {
4466
+
echo " selected";
4467
+
}
4468
+
?>><?php echo esc_html__("ON", 'aiomatic-automatic-ai-content-writer');?></option>
4469
+
<option value="OFF"<?php
4470
+
if ($ideogram_magic_prompt == "OFF") {
4471
+
echo " selected";
4472
+
}
4473
+
?>><?php echo esc_html__("OFF", 'aiomatic-automatic-ai-content-writer');?></option>
4474
+
</select>
4475
+
</div>
4476
+
</td>
4477
+
</tr>
4478
+
<tr <?php if(empty($ideogram_app_id)){echo ' class="cr_none"';}?>>
4479
+
<th>
4480
+
<div>
4481
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4482
+
<div class="bws_hidden_help_text cr_min_260px">
4483
+
<?php
4484
+
echo esc_html__("Set the image aspect ratio.", 'aiomatic-automatic-ai-content-writer');
4485
+
?>
4486
+
</div>
4487
+
</div>
4488
+
<b><?php echo esc_html__("Ideogram Image Aspect Ratio:", 'aiomatic-automatic-ai-content-writer');?></b>
4489
+
</div>
4490
+
</th>
4491
+
<td>
4492
+
<div>
4493
+
<select id="ideogram_ratio" name="aiomatic_Main_Settings[ideogram_ratio]" class="cr_width_full">
4494
+
<option value="default"<?php
4495
+
if (empty($ideogram_ratio) || $ideogram_ratio == "default") {
4496
+
echo " selected";
4497
+
}
4498
+
?>><?php echo esc_html__("default", 'aiomatic-automatic-ai-content-writer');?></option>
4499
+
<option value="ASPECT_1_1"<?php
4500
+
if ($ideogram_ratio == "ASPECT_1_1") {
4501
+
echo " selected";
4502
+
}
4503
+
?>><?php echo esc_html__("ASPECT_1_1", 'aiomatic-automatic-ai-content-writer');?></option>
4504
+
<option value="ASPECT_1_3"<?php
4505
+
if ($ideogram_ratio == "ASPECT_1_3") {
4506
+
echo " selected";
4507
+
}
4508
+
?>><?php echo esc_html__("ASPECT_1_3", 'aiomatic-automatic-ai-content-writer');?></option>
4509
+
<option value="ASPECT_3_1"<?php
4510
+
if ($ideogram_ratio == "ASPECT_3_1") {
4511
+
echo " selected";
4512
+
}
4513
+
?>><?php echo esc_html__("ASPECT_3_1", 'aiomatic-automatic-ai-content-writer');?></option>
4514
+
<option value="ASPECT_3_4"<?php
4515
+
if ($ideogram_ratio == "ASPECT_3_4") {
4516
+
echo " selected";
4517
+
}
4518
+
?>><?php echo esc_html__("ASPECT_3_4", 'aiomatic-automatic-ai-content-writer');?></option>
4519
+
<option value="ASPECT_4_3"<?php
4520
+
if ($ideogram_ratio == "ASPECT_4_3") {
4521
+
echo " selected";
4522
+
}
4523
+
?>><?php echo esc_html__("ASPECT_4_3", 'aiomatic-automatic-ai-content-writer');?></option>
4524
+
<option value="ASPECT_2_3"<?php
4525
+
if ($ideogram_ratio == "ASPECT_2_3") {
4526
+
echo " selected";
4527
+
}
4528
+
?>><?php echo esc_html__("ASPECT_2_3", 'aiomatic-automatic-ai-content-writer');?></option>
4529
+
<option value="ASPECT_3_2"<?php
4530
+
if ($ideogram_ratio == "ASPECT_3_2") {
4531
+
echo " selected";
4532
+
}
4533
+
?>><?php echo esc_html__("ASPECT_3_2", 'aiomatic-automatic-ai-content-writer');?></option>
4534
+
<option value="ASPECT_16_9"<?php
4535
+
if ($ideogram_ratio == "ASPECT_16_9") {
4536
+
echo " selected";
4537
+
}
4538
+
?>><?php echo esc_html__("ASPECT_16_9", 'aiomatic-automatic-ai-content-writer');?></option>
4539
+
<option value="ASPECT_9_16"<?php
4540
+
if ($ideogram_ratio == "ASPECT_9_16") {
4541
+
echo " selected";
4542
+
}
4543
+
?>><?php echo esc_html__("ASPECT_9_16", 'aiomatic-automatic-ai-content-writer');?></option>
4544
+
<option value="ASPECT_16_10"<?php
4545
+
if ($ideogram_ratio == "ASPECT_16_10") {
4546
+
echo " selected";
4547
+
}
4548
+
?>><?php echo esc_html__("ASPECT_16_10", 'aiomatic-automatic-ai-content-writer');?></option>
4549
+
<option value="ASPECT_10_16"<?php
4550
+
if ($ideogram_ratio == "ASPECT_10_16") {
4551
+
echo " selected";
4552
+
}
4553
+
?>><?php echo esc_html__("ASPECT_10_16", 'aiomatic-automatic-ai-content-writer');?></option>
4554
+
</select>
4555
+
</div>
4556
+
</td>
4557
+
</tr>
4558
+
<tr <?php if(empty($ideogram_app_id)){echo ' class="cr_none"';}?>>
4559
+
<th>
4560
+
<div>
4561
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4562
+
<div class="bws_hidden_help_text cr_min_260px">
4563
+
<?php
4564
+
echo esc_html__("Select the style of the created images", 'aiomatic-automatic-ai-content-writer');
4565
+
?>
4566
+
</div>
4567
+
</div>
4568
+
<b><?php echo esc_html__("Ideogram Style Type:", 'aiomatic-automatic-ai-content-writer');?></b>
4569
+
</div>
4570
+
</th>
4571
+
<td>
4572
+
<div>
4573
+
<select id="ideogram_style" name="aiomatic_Main_Settings[ideogram_style]" class="cr_width_full">
4574
+
<option value="default"<?php
4575
+
if (empty($ideogram_style) || $ideogram_style == "default") {
4576
+
echo " selected";
4577
+
}
4578
+
?>><?php echo esc_html__("default", 'aiomatic-automatic-ai-content-writer');?></option>
4579
+
<option value="AUTO"<?php
4580
+
if ($ideogram_style == "AUTO") {
4581
+
echo " selected";
4582
+
}
4583
+
?>><?php echo esc_html__("AUTO", 'aiomatic-automatic-ai-content-writer');?></option>
4584
+
<option value="GENERAL"<?php
4585
+
if ($ideogram_style == "GENERAL") {
4586
+
echo " selected";
4587
+
}
4588
+
?>><?php echo esc_html__("GENERAL", 'aiomatic-automatic-ai-content-writer');?></option>
4589
+
<option value="REALISTIC"<?php
4590
+
if ($ideogram_style == "REALISTIC") {
4591
+
echo " selected";
4592
+
}
4593
+
?>><?php echo esc_html__("REALISTIC", 'aiomatic-automatic-ai-content-writer');?></option>
4594
+
<option value="DESIGN"<?php
4595
+
if ($ideogram_style == "DESIGN") {
4596
+
echo " selected";
4597
+
}
4598
+
?>><?php echo esc_html__("DESIGN", 'aiomatic-automatic-ai-content-writer');?></option>
4599
+
<option value="RENDER_3D"<?php
4600
+
if ($ideogram_style == "RENDER_3D") {
4601
+
echo " selected";
4602
+
}
4603
+
?>><?php echo esc_html__("RENDER_3D", 'aiomatic-automatic-ai-content-writer');?></option>
4604
+
<option value="ANIME"<?php
4605
+
if ($ideogram_style == "ANIME") {
4606
+
echo " selected";
4607
+
}
4608
+
?>><?php echo esc_html__("ANIME", 'aiomatic-automatic-ai-content-writer');?></option>
4609
+
</select>
4610
+
</div>
4611
+
</td>
4612
+
</tr>
4613
+
<tr <?php if(empty($ideogram_app_id)){echo ' class="cr_none"';}?>>
4614
+
<th>
4615
+
<div>
4616
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4617
+
<div class="bws_hidden_help_text cr_min_260px">
4618
+
<?php
4619
+
echo esc_html__("Select the color palette of the created images", 'aiomatic-automatic-ai-content-writer');
4620
+
?>
4621
+
</div>
4622
+
</div>
4623
+
<b><?php echo esc_html__("Ideogram Color Palette:", 'aiomatic-automatic-ai-content-writer');?></b>
4624
+
</div>
4625
+
</th>
4626
+
<td>
4627
+
<div>
4628
+
<select id="ideogram_palette" name="aiomatic_Main_Settings[ideogram_palette]" class="cr_width_full">
4629
+
<option value="default"<?php
4630
+
if (empty($ideogram_palette) || $ideogram_palette == "default") {
4631
+
echo " selected";
4632
+
}
4633
+
?>><?php echo esc_html__("default", 'aiomatic-automatic-ai-content-writer');?></option>
4634
+
<option value="EMBER"<?php
4635
+
if ($ideogram_palette == "EMBER") {
4636
+
echo " selected";
4637
+
}
4638
+
?>><?php echo esc_html__("EMBER", 'aiomatic-automatic-ai-content-writer');?></option>
4639
+
<option value="FRESH"<?php
4640
+
if ($ideogram_palette == "FRESH") {
4641
+
echo " selected";
4642
+
}
4643
+
?>><?php echo esc_html__("FRESH", 'aiomatic-automatic-ai-content-writer');?></option>
4644
+
<option value="JUNGLE"<?php
4645
+
if ($ideogram_palette == "JUNGLE") {
4646
+
echo " selected";
4647
+
}
4648
+
?>><?php echo esc_html__("JUNGLE", 'aiomatic-automatic-ai-content-writer');?></option>
4649
+
<option value="MAGIC"<?php
4650
+
if ($ideogram_palette == "MAGIC") {
4651
+
echo " selected";
4652
+
}
4653
+
?>><?php echo esc_html__("MAGIC", 'aiomatic-automatic-ai-content-writer');?></option>
4654
+
<option value="MELON"<?php
4655
+
if ($ideogram_palette == "MELON") {
4656
+
echo " selected";
4657
+
}
4658
+
?>><?php echo esc_html__("MELON", 'aiomatic-automatic-ai-content-writer');?></option>
4659
+
<option value="MOSAIC"<?php
4660
+
if ($ideogram_palette == "MOSAIC") {
4661
+
echo " selected";
4662
+
}
4663
+
?>><?php echo esc_html__("MOSAIC", 'aiomatic-automatic-ai-content-writer');?></option>
4664
+
<option value="PASTEL"<?php
4665
+
if ($ideogram_palette == "PASTEL") {
4666
+
echo " selected";
4667
+
}
4668
+
?>><?php echo esc_html__("PASTEL", 'aiomatic-automatic-ai-content-writer');?></option>
4669
+
<option value="ULTRAMARINE"<?php
4670
+
if ($ideogram_palette == "ULTRAMARINE") {
4671
+
echo " selected";
4672
+
}
4673
+
?>><?php echo esc_html__("ULTRAMARINE", 'aiomatic-automatic-ai-content-writer');?></option>
4674
+
</select>
4675
+
</div>
4676
+
</td>
4677
+
</tr>
4678
+
<tr class="aiomatic-title-holder <?php if(empty($replicate_app_id)){echo ' cr_none';}?>"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Replicate API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4679
+
<tr <?php if(empty($replicate_app_id)){echo ' class="cr_none"';}?>>
4680
+
<th>
4681
+
<div>
4682
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4683
+
<div class="bws_hidden_help_text cr_min_260px">
4684
+
<?php
4685
+
echo esc_html__("Set what model to use when generating images. Default is fast.", 'aiomatic-automatic-ai-content-writer');
4686
+
?>
4687
+
</div>
4688
+
</div>
4689
+
<b><?php echo esc_html__("Replicate Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
4690
+
<?php
4691
+
if(!empty($replicate_app_id))
4692
+
{
4693
+
?>
4694
+
<br/><a id="replicateButton" href="#" onclick="aiomaticRefreshReplicate();" class="button"><?php echo esc_html__('Refresh Replicate Model List', 'aiomatic-automatic-ai-content-writer');?></a>
4695
+
<?php
4696
+
}
4697
+
?>
4698
+
</div>
4699
+
</th>
4700
+
<td>
4701
+
<div>
4702
+
<select id="replicate_image_model" name="aiomatic_Main_Settings[replicate_image_model]" class="cr_width_full">
4703
+
<option value="" disabled><?php echo esc_html__("Select a model", 'aiomatic-automatic-ai-content-writer');?></option>
4704
+
<?php
4705
+
$replicate_image_models = get_option('aiomatic_replicate_model_list', array());
4706
+
foreach($replicate_image_models as $datam => $sm)
4707
+
{
4708
+
echo '<option value="' . esc_attr($datam) . '"';
4709
+
if ($replicate_image_model == $datam)
4710
+
{
4711
+
echo " selected";
4712
+
}
4713
+
echo '>' . esc_html($sm) . '</option>';
4714
+
}
4715
+
?>
4716
+
</select>
4717
+
</div>
4718
+
</td>
4719
+
</tr>
4720
+
<tr <?php if(empty($replicate_app_id)){echo ' class="cr_none"';}?>>
4721
+
<th>
4722
+
<div>
4723
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4724
+
<div class="bws_hidden_help_text cr_min_260px">
4725
+
<?php
4726
+
echo esc_html__("Prompt strength when using img2img / inpaint. 1.0 corresponds to full destruction of information in image, default is 0.8", 'aiomatic-automatic-ai-content-writer');
4727
+
?>
4728
+
</div>
4729
+
</div>
4730
+
<b><?php echo esc_html__("Replicate Prompt Strength:", 'aiomatic-automatic-ai-content-writer');?></b>
4731
+
</div>
4732
+
</th>
4733
+
<td>
4734
+
<div>
4735
+
<input type="number" min="0" step="0.01" max="1" name="aiomatic_Main_Settings[prompt_strength]" value="<?php echo esc_html($prompt_strength);?>" placeholder="<?php echo esc_html__("0.8", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4736
+
</div>
4737
+
</td>
4738
+
</tr>
4739
+
<tr <?php if(empty($replicate_app_id)){echo ' class="cr_none"';}?>>
4740
+
<th>
4741
+
<div>
4742
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4743
+
<div class="bws_hidden_help_text cr_min_260px">
4744
+
<?php
4745
+
echo esc_html__("Set the image aspect ratio.", 'aiomatic-automatic-ai-content-writer');
4746
+
?>
4747
+
</div>
4748
+
</div>
4749
+
<b><?php echo esc_html__("Replicate Image Aspect Ratio:", 'aiomatic-automatic-ai-content-writer');?></b>
4750
+
</div>
4751
+
</th>
4752
+
<td>
4753
+
<div>
4754
+
<select id="replicate_ratio" name="aiomatic_Main_Settings[replicate_ratio]" class="cr_width_full">
4755
+
<option value="default"<?php
4756
+
if (empty($replicate_ratio) || $replicate_ratio == "default") {
4757
+
echo " selected";
4758
+
}
4759
+
?>><?php echo esc_html__("default", 'aiomatic-automatic-ai-content-writer');?></option>
4760
+
<option value="1:1"<?php
4761
+
if ($replicate_ratio == "1:1") {
4762
+
echo " selected";
4763
+
}
4764
+
?>><?php echo esc_html__("1:1", 'aiomatic-automatic-ai-content-writer');?></option>
4765
+
<option value="16:9"<?php
4766
+
if ($replicate_ratio == "16:9") {
4767
+
echo " selected";
4768
+
}
4769
+
?>><?php echo esc_html__("16:9", 'aiomatic-automatic-ai-content-writer');?></option>
4770
+
<option value="21:9"<?php
4771
+
if ($replicate_ratio == "21:9") {
4772
+
echo " selected";
4773
+
}
4774
+
?>><?php echo esc_html__("21:9", 'aiomatic-automatic-ai-content-writer');?></option>
4775
+
<option value="3:2"<?php
4776
+
if ($replicate_ratio == "3:2") {
4777
+
echo " selected";
4778
+
}
4779
+
?>><?php echo esc_html__("3:2", 'aiomatic-automatic-ai-content-writer');?></option>
4780
+
<option value="2:3"<?php
4781
+
if ($replicate_ratio == "2:3") {
4782
+
echo " selected";
4783
+
}
4784
+
?>><?php echo esc_html__("2:3", 'aiomatic-automatic-ai-content-writer');?></option>
4785
+
<option value="4:5"<?php
4786
+
if ($replicate_ratio == "4:5") {
4787
+
echo " selected";
4788
+
}
4789
+
?>><?php echo esc_html__("4:5", 'aiomatic-automatic-ai-content-writer');?></option>
4790
+
<option value="5:4"<?php
4791
+
if ($replicate_ratio == "5:4") {
4792
+
echo " selected";
4793
+
}
4794
+
?>><?php echo esc_html__("5:4", 'aiomatic-automatic-ai-content-writer');?></option>
4795
+
<option value="3:4"<?php
4796
+
if ($replicate_ratio == "3:4") {
4797
+
echo " selected";
4798
+
}
4799
+
?>><?php echo esc_html__("3:4", 'aiomatic-automatic-ai-content-writer');?></option>
4800
+
<option value="4:3"<?php
4801
+
if ($replicate_ratio == "4:3") {
4802
+
echo " selected";
4803
+
}
4804
+
?>><?php echo esc_html__("4:3", 'aiomatic-automatic-ai-content-writer');?></option>
4805
+
<option value="9:16"<?php
4806
+
if ($replicate_ratio == "9:16") {
4807
+
echo " selected";
4808
+
}
4809
+
?>><?php echo esc_html__("9:16", 'aiomatic-automatic-ai-content-writer');?></option>
4810
+
<option value="9:21"<?php
4811
+
if ($replicate_ratio == "9:21") {
4812
+
echo " selected";
4813
+
}
4814
+
?>><?php echo esc_html__("9:21", 'aiomatic-automatic-ai-content-writer');?></option>
4815
+
<option value="custom"<?php
4816
+
if ($replicate_ratio == "custom") {
4817
+
echo " selected";
4818
+
}
4819
+
?>><?php echo esc_html__("custom", 'aiomatic-automatic-ai-content-writer');?></option>
4820
+
</select>
4821
+
</div>
4822
+
</td>
4823
+
</tr>
4824
+
<tr <?php if(empty($replicate_app_id)){echo ' class="cr_none"';}?>>
4825
+
<th>
4826
+
<div>
4827
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4828
+
<div class="bws_hidden_help_text cr_min_260px">
4829
+
<?php
4830
+
echo esc_html__("Number of denoising steps, default is 50", 'aiomatic-automatic-ai-content-writer');
4831
+
?>
4832
+
</div>
4833
+
</div>
4834
+
<b><?php echo esc_html__("Number Of Inference Steps:", 'aiomatic-automatic-ai-content-writer');?></b>
4835
+
</div>
4836
+
</th>
4837
+
<td>
4838
+
<div>
4839
+
<input type="number" min="1" step="1" max="500" name="aiomatic_Main_Settings[num_inference_steps]" value="<?php echo esc_html($num_inference_steps);?>" placeholder="<?php echo esc_html__("4", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4840
+
</div>
4841
+
</td>
4842
+
</tr>
4843
+
<tr <?php if(empty($replicate_app_id)){echo ' class="cr_none"';}?>>
4844
+
<th>
4845
+
<div>
4846
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4847
+
<div class="bws_hidden_help_text cr_min_260px">
4848
+
<?php
4849
+
echo esc_html__("Set the AI scheduler to be used. Default is: DPMSolverMultistep", 'aiomatic-automatic-ai-content-writer');
4850
+
?>
4851
+
</div>
4852
+
</div>
4853
+
<b><?php echo esc_html__("AI Scheduler:", 'aiomatic-automatic-ai-content-writer');?></b>
4854
+
</div>
4855
+
</th>
4856
+
<td>
4857
+
<div>
4858
+
<input type="text" name="aiomatic_Main_Settings[ai_scheduler]" value="<?php echo esc_html($ai_scheduler);?>" placeholder="<?php echo esc_html__("DPMSolverMultistep", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4859
+
</div>
4860
+
</td>
4861
+
</tr>
4862
+
<tr <?php if(empty($replicate_app_id)){echo ' class="cr_none"';}?>>
4863
+
<th>
4864
+
<div>
4865
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4866
+
<div class="bws_hidden_help_text cr_min_260px">
4867
+
<?php
4868
+
echo esc_html__("Set any custom parameter that you want to send to the Replicate API. The format is: parameter1=value1¶meter2=value2", 'aiomatic-automatic-ai-content-writer');
4869
+
?>
4870
+
</div>
4871
+
</div>
4872
+
<b><?php echo esc_html__("Replicate API Custom Parameters:", 'aiomatic-automatic-ai-content-writer');?></b>
4873
+
</div>
4874
+
</th>
4875
+
<td>
4876
+
<div>
4877
+
<input type="text" name="aiomatic_Main_Settings[custom_params_replicate]" value="<?php echo esc_html($custom_params_replicate);?>" placeholder="<?php echo esc_html__("parameter1=value1¶meter2=value2", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4878
+
</div>
4879
+
</td>
4880
+
</tr>
4881
+
<tr class="aiomatic-title-holder <?php if(empty($stability_app_id)){echo ' cr_none';}?>"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Stability.AI API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
4882
+
<tr <?php if(empty($stability_app_id)){echo ' class="cr_none"';}?>>
4883
+
<th>
4884
+
<div>
4885
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4886
+
<div class="bws_hidden_help_text cr_min_260px">
4887
+
<?php
4888
+
echo esc_html__("Set what model to use when generating images. Default is ", 'aiomatic-automatic-ai-content-writer') . esc_html(AIMOGEN_STABLE_DEFAULT_MODE);
4889
+
?>
4890
+
</div>
4891
+
</div>
4892
+
<b><?php echo esc_html__("Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
4893
+
</div>
4894
+
</th>
4895
+
<td>
4896
+
<div>
4897
+
<select id="stable_model" name="aiomatic_Main_Settings[stable_model]" class="cr_width_full">
4898
+
<?php
4899
+
$stable_models = aiomatic_get_stable_image_models();
4900
+
foreach($stable_models as $sm)
4901
+
{
4902
+
echo '<option value="' . esc_attr($sm) . '"';
4903
+
if ($stable_model == $sm)
4904
+
{
4905
+
echo " selected";
4906
+
}
4907
+
echo '>' . esc_html($sm) . '</option>';
4908
+
}
4909
+
?>
4910
+
</select>
4911
+
</div>
4912
+
</td>
4913
+
</tr>
4914
+
<tr <?php if(empty($stability_app_id)){echo ' class="cr_none"';}?>>
4915
+
<th>
4916
+
<div>
4917
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4918
+
<div class="bws_hidden_help_text cr_min_260px">
4919
+
<?php
4920
+
echo esc_html__("Number of diffusion steps to run. Default is 50.", 'aiomatic-automatic-ai-content-writer');
4921
+
?>
4922
+
</div>
4923
+
</div>
4924
+
<b><?php echo esc_html__("Sampling Steps:", 'aiomatic-automatic-ai-content-writer');?></b>
4925
+
</div>
4926
+
</th>
4927
+
<td>
4928
+
<div>
4929
+
<input type="number" min="10" step="1" max="250" name="aiomatic_Main_Settings[steps]" value="<?php echo esc_html($steps);?>" placeholder="<?php echo esc_html__("10-250", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4930
+
</div>
4931
+
</td>
4932
+
</tr>
4933
+
<tr <?php if(empty($stability_app_id)){echo ' class="cr_none"';}?>>
4934
+
<th>
4935
+
<div>
4936
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4937
+
<div class="bws_hidden_help_text cr_min_260px">
4938
+
<?php
4939
+
echo esc_html__("How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). Default value is 7.", 'aiomatic-automatic-ai-content-writer');
4940
+
?>
4941
+
</div>
4942
+
</div>
4943
+
<b><?php echo esc_html__("CFG Scale:", 'aiomatic-automatic-ai-content-writer');?></b>
4944
+
</div>
4945
+
</th>
4946
+
<td>
4947
+
<div>
4948
+
<input type="number" min="0" step="1" max="35" name="aiomatic_Main_Settings[cfg_scale]" value="<?php echo esc_html($cfg_scale);?>" placeholder="<?php echo esc_html__("0-35", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4949
+
</div>
4950
+
</td>
4951
+
</tr>
4952
+
<tr <?php if(empty($stability_app_id)){echo ' class="cr_none"';}?>>
4953
+
<th>
4954
+
<div>
4955
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4956
+
<div class="bws_hidden_help_text cr_min_260px">
4957
+
<?php
4958
+
echo esc_html__("Random noise seed (omit this option or use 0 for a random seed)", 'aiomatic-automatic-ai-content-writer');
4959
+
?>
4960
+
</div>
4961
+
</div>
4962
+
<b><?php echo esc_html__("Seed:", 'aiomatic-automatic-ai-content-writer');?></b>
4963
+
</div>
4964
+
</th>
4965
+
<td>
4966
+
<div>
4967
+
<input type="number" min="0" step="1" max="4294967295" name="aiomatic_Main_Settings[cfg_seed]" value="<?php echo esc_html($cfg_seed);?>" placeholder="<?php echo esc_html__("0", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
4968
+
</div>
4969
+
</td>
4970
+
</tr>
4971
+
<tr <?php if(empty($stability_app_id)){echo ' class="cr_none"';}?>>
4972
+
<th>
4973
+
<div>
4974
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4975
+
<div class="bws_hidden_help_text cr_min_260px">
4976
+
<?php
4977
+
echo esc_html__("Set what preset to use when generating images. Default is NONE.", 'aiomatic-automatic-ai-content-writer');
4978
+
?>
4979
+
</div>
4980
+
</div>
4981
+
<b><?php echo esc_html__("Clip Guidance Preset:", 'aiomatic-automatic-ai-content-writer');?></b>
4982
+
</div>
4983
+
</th>
4984
+
<td>
4985
+
<div>
4986
+
<select id="clip_guidance_preset" name="aiomatic_Main_Settings[clip_guidance_preset]" class="cr_width_full">
4987
+
<option value="NONE"<?php
4988
+
if ($clip_guidance_preset == "NONE") {
4989
+
echo " selected";
4990
+
}
4991
+
?>><?php echo esc_html__("NONE", 'aiomatic-automatic-ai-content-writer');?></option>
4992
+
<option value="FAST_BLUE"<?php
4993
+
if ($clip_guidance_preset == "FAST_BLUE") {
4994
+
echo " selected";
4995
+
}
4996
+
?>><?php echo esc_html__("FAST_BLUE", 'aiomatic-automatic-ai-content-writer');?></option>
4997
+
<option value="FAST_GREEN"<?php
4998
+
if ($clip_guidance_preset == "FAST_GREEN") {
4999
+
echo " selected";
5000
+
}
5001
+
?>><?php echo esc_html__("FAST_GREEN", 'aiomatic-automatic-ai-content-writer');?></option>
5002
+
<option value="SIMPLE"<?php
5003
+
if ($clip_guidance_preset == "SIMPLE") {
5004
+
echo " selected";
5005
+
}
5006
+
?>><?php echo esc_html__("SIMPLE", 'aiomatic-automatic-ai-content-writer');?></option>
5007
+
<option value="SLOW"<?php
5008
+
if ($clip_guidance_preset == "SLOW") {
5009
+
echo " selected";
5010
+
}
5011
+
?>><?php echo esc_html__("SLOW", 'aiomatic-automatic-ai-content-writer');?></option>
5012
+
<option value="SLOWER"<?php
5013
+
if ($clip_guidance_preset == "SLOWER") {
5014
+
echo " selected";
5015
+
}
5016
+
?>><?php echo esc_html__("SLOWER", 'aiomatic-automatic-ai-content-writer');?></option>
5017
+
<option value="SLOWEST"<?php
5018
+
if ($clip_guidance_preset == "SLOWEST") {
5019
+
echo " selected";
5020
+
}
5021
+
?>><?php echo esc_html__("SLOWEST", 'aiomatic-automatic-ai-content-writer');?></option>
5022
+
</select>
5023
+
</div>
5024
+
</td>
5025
+
</tr>
5026
+
<tr <?php if(empty($stability_app_id)){echo ' class="cr_none"';}?>>
5027
+
<th>
5028
+
<div>
5029
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5030
+
<div class="bws_hidden_help_text cr_min_260px">
5031
+
<?php
5032
+
echo esc_html__("Pass in a style preset to guide the image model towards a particular style. Default is NONE.", 'aiomatic-automatic-ai-content-writer');
5033
+
?>
5034
+
</div>
5035
+
</div>
5036
+
<b><?php echo esc_html__("Style Preset:", 'aiomatic-automatic-ai-content-writer');?></b>
5037
+
</div>
5038
+
</th>
5039
+
<td>
5040
+
<div>
5041
+
<select id="clip_style_preset" name="aiomatic_Main_Settings[clip_style_preset]" class="cr_width_full">
5042
+
<option value="NONE"<?php
5043
+
if ($clip_style_preset == "NONE") {
5044
+
echo " selected";
5045
+
}
5046
+
?>><?php echo esc_html__("NONE", 'aiomatic-automatic-ai-content-writer');?></option>
5047
+
<option value="3d-model"<?php
5048
+
if ($clip_style_preset == "3d-model") {
5049
+
echo " selected";
5050
+
}
5051
+
?>><?php echo esc_html__("3d-model", 'aiomatic-automatic-ai-content-writer');?></option>
5052
+
<option value="analog-film"<?php
5053
+
if ($clip_style_preset == "analog-film") {
5054
+
echo " selected";
5055
+
}
5056
+
?>><?php echo esc_html__("analog-film", 'aiomatic-automatic-ai-content-writer');?></option>
5057
+
<option value="anime"<?php
5058
+
if ($clip_style_preset == "anime") {
5059
+
echo " selected";
5060
+
}
5061
+
?>><?php echo esc_html__("anime", 'aiomatic-automatic-ai-content-writer');?></option>
5062
+
<option value="cinematic"<?php
5063
+
if ($clip_style_preset == "cinematic") {
5064
+
echo " selected";
5065
+
}
5066
+
?>><?php echo esc_html__("cinematic", 'aiomatic-automatic-ai-content-writer');?></option>
5067
+
<option value="comic-book"<?php
5068
+
if ($clip_style_preset == "comic-book") {
5069
+
echo " selected";
5070
+
}
5071
+
?>><?php echo esc_html__("comic-book", 'aiomatic-automatic-ai-content-writer');?></option>
5072
+
<option value="digital-art"<?php
5073
+
if ($clip_style_preset == "digital-art") {
5074
+
echo " selected";
5075
+
}
5076
+
?>><?php echo esc_html__("digital-art", 'aiomatic-automatic-ai-content-writer');?></option>
5077
+
<option value="enhance"<?php
5078
+
if ($clip_style_preset == "enhance") {
5079
+
echo " selected";
5080
+
}
5081
+
?>><?php echo esc_html__("enhance", 'aiomatic-automatic-ai-content-writer');?></option>
5082
+
<option value="fantasy-art"<?php
5083
+
if ($clip_style_preset == "fantasy-art") {
5084
+
echo " selected";
5085
+
}
5086
+
?>><?php echo esc_html__("fantasy-art", 'aiomatic-automatic-ai-content-writer');?></option>
5087
+
<option value="isometric"<?php
5088
+
if ($clip_style_preset == "isometric") {
5089
+
echo " selected";
5090
+
}
5091
+
?>><?php echo esc_html__("isometric", 'aiomatic-automatic-ai-content-writer');?></option>
5092
+
<option value="line-art"<?php
5093
+
if ($clip_style_preset == "line-art") {
5094
+
echo " selected";
5095
+
}
5096
+
?>><?php echo esc_html__("line-art", 'aiomatic-automatic-ai-content-writer');?></option>
5097
+
<option value="low-poly"<?php
5098
+
if ($clip_style_preset == "low-poly") {
5099
+
echo " selected";
5100
+
}
5101
+
?>><?php echo esc_html__("low-poly", 'aiomatic-automatic-ai-content-writer');?></option>
5102
+
<option value="modeling-compound"<?php
5103
+
if ($clip_style_preset == "modeling-compound") {
5104
+
echo " selected";
5105
+
}
5106
+
?>><?php echo esc_html__("modeling-compound", 'aiomatic-automatic-ai-content-writer');?></option>
5107
+
<option value="neon-punk"<?php
5108
+
if ($clip_style_preset == "neon-punk") {
5109
+
echo " selected";
5110
+
}
5111
+
?>><?php echo esc_html__("neon-punk", 'aiomatic-automatic-ai-content-writer');?></option>
5112
+
<option value="origami"<?php
5113
+
if ($clip_style_preset == "origami") {
5114
+
echo " selected";
5115
+
}
5116
+
?>><?php echo esc_html__("origami", 'aiomatic-automatic-ai-content-writer');?></option>
5117
+
<option value="photographic"<?php
5118
+
if ($clip_style_preset == "photographic") {
5119
+
echo " selected";
5120
+
}
5121
+
?>><?php echo esc_html__("photographic", 'aiomatic-automatic-ai-content-writer');?></option>
5122
+
<option value="pixel-art"<?php
5123
+
if ($clip_style_preset == "pixel-art") {
5124
+
echo " selected";
5125
+
}
5126
+
?>><?php echo esc_html__("pixel-art", 'aiomatic-automatic-ai-content-writer');?></option>
5127
+
<option value="tile-texture"<?php
5128
+
if ($clip_style_preset == "tile-texture") {
5129
+
echo " selected";
5130
+
}
5131
+
?>><?php echo esc_html__("tile-texture", 'aiomatic-automatic-ai-content-writer');?></option>
5132
+
</select>
5133
+
</div>
5134
+
</td>
5135
+
</tr>
5136
+
<tr <?php if(empty($stability_app_id)){echo ' class="cr_none"';}?>>
5137
+
<th>
5138
+
<div>
5139
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5140
+
<div class="bws_hidden_help_text cr_min_260px">
5141
+
<?php
5142
+
echo esc_html__("Which sampler to use for the diffusion process. If this value is omitted we'll automatically select an appropriate sampler for you.", 'aiomatic-automatic-ai-content-writer');
5143
+
?>
5144
+
</div>
5145
+
</div>
5146
+
<b><?php echo esc_html__("Sampler:", 'aiomatic-automatic-ai-content-writer');?></b>
5147
+
</div>
5148
+
</th>
5149
+
<td>
5150
+
<div>
5151
+
<select id="sampler" name="aiomatic_Main_Settings[sampler]" class="cr_width_full">
5152
+
<option value="auto"<?php
5153
+
if ($sampler == "auto") {
5154
+
echo " selected";
5155
+
}
5156
+
?>><?php echo esc_html__("Auto", 'aiomatic-automatic-ai-content-writer');?></option>
5157
+
<option value="DDIM"<?php
5158
+
if ($sampler == "DDIM") {
5159
+
echo " selected";
5160
+
}
5161
+
?>><?php echo esc_html__("DDIM", 'aiomatic-automatic-ai-content-writer');?></option>
5162
+
<option value="DDPM"<?php
5163
+
if ($sampler == "DDPM") {
5164
+
echo " selected";
5165
+
}
5166
+
?>><?php echo esc_html__("DDPM", 'aiomatic-automatic-ai-content-writer');?></option>
5167
+
<option value="K_DPMPP_2M"<?php
5168
+
if ($sampler == "K_DPMPP_2M") {
5169
+
echo " selected";
5170
+
}
5171
+
?>><?php echo esc_html__("K_DPMPP_2M", 'aiomatic-automatic-ai-content-writer');?></option>
5172
+
<option value="K_DPMPP_2S_ANCESTRAL"<?php
5173
+
if ($sampler == "K_DPMPP_2S_ANCESTRAL") {
5174
+
echo " selected";
5175
+
}
5176
+
?>><?php echo esc_html__("K_DPMPP_2S_ANCESTRAL", 'aiomatic-automatic-ai-content-writer');?></option>
5177
+
<option value="K_DPM_2"<?php
5178
+
if ($sampler == "K_DPM_2") {
5179
+
echo " selected";
5180
+
}
5181
+
?>><?php echo esc_html__("K_DPM_2", 'aiomatic-automatic-ai-content-writer');?></option>
5182
+
<option value="K_DPM_2_ANCESTRAL"<?php
5183
+
if ($sampler == "K_DPM_2_ANCESTRAL") {
5184
+
echo " selected";
5185
+
}
5186
+
?>><?php echo esc_html__("K_DPM_2_ANCESTRAL", 'aiomatic-automatic-ai-content-writer');?></option>
5187
+
<option value="K_EULER"<?php
5188
+
if ($sampler == "K_EULER") {
5189
+
echo " selected";
5190
+
}
5191
+
?>><?php echo esc_html__("K_EULER", 'aiomatic-automatic-ai-content-writer');?></option>
5192
+
<option value="K_EULER_ANCESTRAL"<?php
5193
+
if ($sampler == "K_EULER_ANCESTRAL") {
5194
+
echo " selected";
5195
+
}
5196
+
?>><?php echo esc_html__("K_EULER_ANCESTRAL", 'aiomatic-automatic-ai-content-writer');?></option>
5197
+
<option value="K_HEUN"<?php
5198
+
if ($sampler == "K_HEUN") {
5199
+
echo " selected";
5200
+
}
5201
+
?>><?php echo esc_html__("K_HEUN", 'aiomatic-automatic-ai-content-writer');?></option>
5202
+
<option value="K_LMS"<?php
5203
+
if ($sampler == "K_LMS") {
5204
+
echo " selected";
5205
+
}
5206
+
?>><?php echo esc_html__("K_LMS", 'aiomatic-automatic-ai-content-writer');?></option>
5207
+
</select>
5208
+
</div>
5209
+
</td>
5210
+
</tr>
5211
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("General AI Image Generator Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5212
+
<tr>
5213
+
<th>
5214
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5215
+
<div class="bws_hidden_help_text cr_min_260px">
5216
+
<?php
5217
+
echo esc_html__("By default, the plugin will attempt to translate AI image prompts to English. If you are publishing only English content on your site, you can disable this feature to speed up image processing.", 'aiomatic-automatic-ai-content-writer');
5218
+
?>
5219
+
</div>
5220
+
</div>
5221
+
<b><?php echo esc_html__("Don't Attempt To Translate AI Image Prompts To English:", 'aiomatic-automatic-ai-content-writer');?></b>
5222
+
</th>
5223
+
<td>
5224
+
<label class="aiomatic-switch"><input type="checkbox" id="no_img_translate" name="aiomatic_Main_Settings[no_img_translate]"<?php
5225
+
if ($no_img_translate == 'on')
5226
+
echo ' checked ';
5227
+
?>><span class="aiomatic-slider round"></span></label>
5228
+
</td>
5229
+
</tr>
5230
+
<?php if ($copy_locally == "disabled"){ echo '<tr><td colspan="2">' . esc_html__("To use the Image Resizing feature, you need to enable the 'Copy Royalty Free / AI Images From Post Content' feature from the 'Cloud Storage' tab!", 'aiomatic-automatic-ai-content-writer') . '</td></tr>';
5231
+
}
5232
+
if (!function_exists('finfo_open')){ echo '<tr><td colspan="2"><b>finfo_open</b> - ' . esc_html__("This function is not enabled on your server. Please enable it to use the image resizing feature of the plugin!", 'aiomatic-automatic-ai-content-writer') . '</td></tr>';
5233
+
}?>
5234
+
<tr>
5235
+
<th>
5236
+
<div>
5237
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5238
+
<div class="bws_hidden_help_text cr_min_260px">
5239
+
<?php
5240
+
echo esc_html__("Resize the AI generated image to the width specified in this text field (in pixels). If you want to disable this feature, leave this field blank. This feature will work only if you copy AI generated images from their original sources, locally to your own server.", 'aiomatic-automatic-ai-content-writer');
5241
+
?>
5242
+
</div>
5243
+
</div>
5244
+
<b><?php echo esc_html__("AI Generated Image Resize Width:", 'aiomatic-automatic-ai-content-writer');?></b>
5245
+
</div>
5246
+
</th>
5247
+
<td>
5248
+
<div>
5249
+
<input type="number" min="1" step="1"<?php if (!function_exists('finfo_open') || $copy_locally == "disabled"){ echo ' disabled title="To use this feature, you need to enable the \'Copy Royalty Free / AI Images From Post Content\' feature from the \'Cloud Storage\' tab!"';}?> name="aiomatic_Main_Settings[ai_resize_width]" value="<?php echo esc_html($ai_resize_width);?>" placeholder="<?php echo esc_html__("Please insert the desired width for AI generated images", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
5250
+
</div>
5251
+
</td>
5252
+
</tr>
5253
+
<tr>
5254
+
<th>
5255
+
<div>
5256
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5257
+
<div class="bws_hidden_help_text cr_min_260px">
5258
+
<?php
5259
+
echo esc_html__("Resize the AI generated image to the height specified in this text field (in pixels). If you want to disable this feature, leave this field blank. This feature will work only if you copy AI generated images from their original sources.", 'aiomatic-automatic-ai-content-writer');
5260
+
?>
5261
+
</div>
5262
+
</div>
5263
+
<b><?php echo esc_html__("AI Generated Image Resize Height:", 'aiomatic-automatic-ai-content-writer');?></b>
5264
+
</div>
5265
+
</th>
5266
+
<td>
5267
+
<div>
5268
+
<input type="number" min="1" step="1"<?php if (!function_exists('finfo_open') || $copy_locally == "disabled"){ echo ' disabled title="To use this feature, you need to enable the \'Copy Royalty Free / AI Images From Post Content\' feature from the \'Cloud Storage\' tab!"';}?> name="aiomatic_Main_Settings[ai_resize_height]" value="<?php echo esc_html($ai_resize_height);?>" placeholder="<?php echo esc_html__("Please insert the desired height for AI generated images", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
5269
+
</div>
5270
+
</td>
5271
+
</tr>
5272
+
<tr>
5273
+
<th>
5274
+
<div>
5275
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5276
+
<div class="bws_hidden_help_text cr_min_260px">
5277
+
<?php
5278
+
echo esc_html__("Select the quality of the resized images. Accepted values: 1-100. 1 is lowest quality, 100 is highest quality. If you want to disable this feature, leave this field blank. This feature will work only if you copy AI generated images from their original sources.", 'aiomatic-automatic-ai-content-writer');
5279
+
?>
5280
+
</div>
5281
+
</div>
5282
+
<b><?php echo esc_html__("AI Generated Image Resize Quality:", 'aiomatic-automatic-ai-content-writer');?></b>
5283
+
</div>
5284
+
</th>
5285
+
<td>
5286
+
<div>
5287
+
<input type="number" min="1" step="1"<?php if (!function_exists('finfo_open') || $copy_locally == "disabled"){ echo ' disabled title="To use this feature, you need to enable the \'Copy Royalty Free / AI Images From Post Content\' feature from the \'Cloud Storage\' tab!"';}?> max="100" name="aiomatic_Main_Settings[ai_resize_quality]" value="<?php echo esc_html($ai_resize_quality);?>" placeholder="<?php echo esc_html__("Resize quality", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
5288
+
</div>
5289
+
</td>
5290
+
</tr>
5291
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
5292
+
?>
5293
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Stable Diffusion Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5294
+
<tr>
5295
+
<td class="coderevolution_block_input" colspan="2">
5296
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/SX2vGtKNAz4" allowfullscreen></iframe>
5297
+
</td></tr>
5298
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Midjourney Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5299
+
<tr>
5300
+
<td class="coderevolution_block_input" colspan="2">
5301
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/8H45UHQ62mk" allowfullscreen></iframe>
5302
+
</td></tr>
5303
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Replicate Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5304
+
<tr>
5305
+
<td class="coderevolution_block_input" colspan="2">
5306
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/6mPa0aob4YI" allowfullscreen></iframe>
5307
+
</td></tr>
5308
+
<?php
5309
+
}
5310
+
?>
5311
+
</table>
5312
+
</div>
5313
+
<div id="tab-5<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
5314
+
<h3><?php echo esc_html__('Statistics Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
5315
+
<p class="aiomatic-settings-desc"><?php
5316
+
echo esc_html__("The 'Statistics' tab provides settings for the 'Limits & Statistics' module of the plugin.", 'aiomatic-automatic-ai-content-writer');
5317
+
?></p>
5318
+
<h2><?php echo esc_html__("Check the Statistics page ", 'aiomatic-automatic-ai-content-writer');?><a href="<?php echo esc_url(admin_url('admin.php?page=aiomatic_openai_status'));?>"><?php echo esc_html__("here", 'aiomatic-automatic-ai-content-writer');?>.</a></h2>
5319
+
<table class="widefat">
5320
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Limits & Statistics Options:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5321
+
<tr>
5322
+
<th>
5323
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5324
+
<div class="bws_hidden_help_text cr_min_260px">
5325
+
<?php
5326
+
echo esc_html__("Do you want to enable usage tracking for statistics and usage limits?", 'aiomatic-automatic-ai-content-writer');
5327
+
?>
5328
+
</div>
5329
+
</div>
5330
+
<b><?php echo esc_html__("Enable Usage Tracking For Statistics And Usage Limits:", 'aiomatic-automatic-ai-content-writer');?></b>
5331
+
</th>
5332
+
<td>
5333
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_tracking" name="aiomatic_Main_Settings[enable_tracking]"<?php
5334
+
if ($enable_tracking == 'on')
5335
+
echo ' checked ';
5336
+
?>><span class="aiomatic-slider round"></span></label>
5337
+
</td>
5338
+
</tr></table>
5339
+
</div>
5340
+
<div id="tab-16<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
5341
+
<h3><?php echo esc_html__('Content Wizard', 'aiomatic-automatic-ai-content-writer');?></h3>
5342
+
<p class="aiomatic-settings-desc"><?php
5343
+
echo esc_html__("The 'Content Wizard' tab provides guided options for tools and templates to easily create, format, and optimize engaging content for your WordPress site.", 'aiomatic-automatic-ai-content-writer');
5344
+
?></p>
5345
+
<table class="widefat">
5346
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Content Wizard General Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5347
+
<tr>
5348
+
<th>
5349
+
<div>
5350
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5351
+
<div class="bws_hidden_help_text cr_min_260px">
5352
+
<?php
5353
+
echo esc_html__("Do you want to enable or disable the AI assistant feature of the plugin?", 'aiomatic-automatic-ai-content-writer');
5354
+
?>
5355
+
</div>
5356
+
</div>
5357
+
<b><?php echo esc_html__("Enable Content Wizard On:", 'aiomatic-automatic-ai-content-writer');?></b>
5358
+
</div>
5359
+
</th>
5360
+
<td>
5361
+
<div>
5362
+
<select id="assistant_disable" name="aiomatic_Main_Settings[assistant_disable]" class="cr_width_full">
5363
+
<option value="back"<?php
5364
+
if ($assistant_disable == "back") {
5365
+
echo " selected";
5366
+
}
5367
+
?>>Backend</option>
5368
+
<option value="front"<?php
5369
+
if ($assistant_disable == "front") {
5370
+
echo " selected";
5371
+
}
5372
+
?>>Frontend</option>
5373
+
<option value="both"<?php
5374
+
if ($assistant_disable == "both") {
5375
+
echo " selected";
5376
+
}
5377
+
?>>Backend & Frontend</option>
5378
+
<option value="on"<?php
5379
+
if ($assistant_disable == "on") {
5380
+
echo " selected";
5381
+
}
5382
+
?>>Disabled</option>
5383
+
</select>
5384
+
</div>
5385
+
</td>
5386
+
</tr>
5387
+
<tr>
5388
+
<th>
5389
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5390
+
<div class="bws_hidden_help_text cr_min_260px">
5391
+
<?php
5392
+
echo esc_html__("Set if you want to enable Content Wizard also for not logged in users.", 'aiomatic-automatic-ai-content-writer');
5393
+
?>
5394
+
</div>
5395
+
</div>
5396
+
<b><?php echo esc_html__("Enable Content Wizard Also For Not Logged In Users:", 'aiomatic-automatic-ai-content-writer');?></b>
5397
+
</th>
5398
+
<td>
5399
+
<select id="assistant_not_logged" name="aiomatic_Main_Settings[assistant_not_logged]" class="cr_width_full">
5400
+
<option value="disable"<?php
5401
+
if ($assistant_not_logged == "disable") {
5402
+
echo " selected";
5403
+
}
5404
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
5405
+
<option value="enable"<?php
5406
+
if ($assistant_not_logged == "enable") {
5407
+
echo " selected";
5408
+
}
5409
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
5410
+
</select>
5411
+
</td>
5412
+
</tr>
5413
+
<tr>
5414
+
<th>
5415
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5416
+
<div class="bws_hidden_help_text cr_min_260px">
5417
+
<?php
5418
+
echo esc_html__("Set where you would like to add the AI assistant result - above or below the selected text.", 'aiomatic-automatic-ai-content-writer');
5419
+
?>
5420
+
</div>
5421
+
</div>
5422
+
<b><?php echo esc_html__("Content Wizard Result Placement:", 'aiomatic-automatic-ai-content-writer');?></b>
5423
+
</th>
5424
+
<td>
5425
+
<select id="assistant_placement" name="aiomatic_Main_Settings[assistant_placement]" class="cr_width_full">
5426
+
<option value="below"<?php
5427
+
if ($assistant_placement == "below") {
5428
+
echo " selected";
5429
+
}
5430
+
?>>Below selected text</option>
5431
+
<option value="above"<?php
5432
+
if ($assistant_placement == "above") {
5433
+
echo " selected";
5434
+
}
5435
+
?>>Above selected text</option>
5436
+
</select>
5437
+
</td>
5438
+
</tr>
5439
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Content Wizard Image Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5440
+
<tr>
5441
+
<th>
5442
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5443
+
<div class="bws_hidden_help_text cr_min_260px">
5444
+
<?php
5445
+
echo esc_html__("Set the image size of the AI assistant generated images.", 'aiomatic-automatic-ai-content-writer');
5446
+
?>
5447
+
</div>
5448
+
</div>
5449
+
<b><?php echo esc_html__("Content Wizard Image Size:", 'aiomatic-automatic-ai-content-writer');?></b>
5450
+
</th>
5451
+
<td>
5452
+
<select id="assistant_image_size" name="aiomatic_Main_Settings[assistant_image_size]" class="cr_width_full">
5453
+
<option value="256x256"<?php
5454
+
if ($assistant_image_size == "256x256") {
5455
+
echo " selected";
5456
+
}
5457
+
?>>256x256 (only for Dall-E 2)</option>
5458
+
<option value="512x512"<?php
5459
+
if ($assistant_image_size == "512x512") {
5460
+
echo " selected";
5461
+
}
5462
+
?>>512x512 (only for Dall-E 2 & Stable Diffusion)</option>
5463
+
<option value="1024x1024"<?php
5464
+
if ($assistant_image_size == "1024x1024") {
5465
+
echo " selected";
5466
+
}
5467
+
?>>1024x1024</option>
5468
+
<option value="1792x1024"<?php
5469
+
if ($assistant_image_size == "1792x1024") {
5470
+
echo " selected";
5471
+
}
5472
+
?>>1792x1024 (only for Dall-E 3)</option>
5473
+
<option value="1024x1792"<?php
5474
+
if ($assistant_image_size == "1024x1792") {
5475
+
echo " selected";
5476
+
}
5477
+
?>>1024x1792 (only for Dall-E 3)</option>
5478
+
<option value="1536x1024"<?php
5479
+
if ($assistant_image_size == "1536x1024") {
5480
+
echo " selected";
5481
+
}
5482
+
?>>1536x1024 (only for gpt-image-1, gpt-image-1-mini, gpt-image-1.5, chatgpt-image-latest)</option>
5483
+
<option value="1024x1536"<?php
5484
+
if ($assistant_image_size == "1024x1536") {
5485
+
echo " selected";
5486
+
}
5487
+
?>>1024x1536 (only for gpt-image-1, gpt-image-1-mini, gpt-image-1.5, chatgpt-image-latest)</option>
5488
+
</select>
5489
+
</td>
5490
+
</tr><tr>
5491
+
<th>
5492
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5493
+
<div class="bws_hidden_help_text cr_min_260px">
5494
+
<?php
5495
+
echo esc_html__("Set the image model of the AI assistant generated images.", 'aiomatic-automatic-ai-content-writer');
5496
+
?>
5497
+
</div>
5498
+
</div>
5499
+
<b><?php echo esc_html__("Content Wizard Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
5500
+
</th>
5501
+
<td>
5502
+
<select id="assistant_image_model" name="aiomatic_Main_Settings[assistant_image_model]" class="cr_width_full">
5503
+
<?php
5504
+
foreach(AIMOGEN_DALLE_IMAGE_MODELS as $modelx)
5505
+
{
5506
+
echo '<option value="' . esc_html($modelx) .'"';
5507
+
if ($modelx == $assistant_image_model) { echo ' selected'; }
5508
+
echo '>' . esc_html($modelx) . '</option>';
5509
+
}
5510
+
?>
5511
+
5512
+
<?php
5513
+
if (isset($aiomatic_Main_Settings['stability_app_id']) && trim($aiomatic_Main_Settings['stability_app_id']) != '')
5514
+
{
5515
+
?>
5516
+
<option value="stability"<?php if ($assistant_image_model == "stability") {
5517
+
echo " selected";
5518
+
}?> ><?php echo esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer');?></option>
5519
+
<?php
5520
+
}
5521
+
if (isset($aiomatic_Main_Settings['midjourney_app_id']) && trim($aiomatic_Main_Settings['midjourney_app_id']) != '')
5522
+
{
5523
+
?>
5524
+
<option value="midjourney"<?php if ($assistant_image_model == "midjourney") {
5525
+
echo " selected";
5526
+
}?> ><?php echo esc_html__("Midjourney", 'aiomatic-automatic-ai-content-writer');?></option>
5527
+
<?php
5528
+
}
5529
+
if (isset($aiomatic_Main_Settings['replicate_app_id']) && trim($aiomatic_Main_Settings['replicate_app_id']) != '')
5530
+
{
5531
+
?>
5532
+
<option value="replicate"<?php if ($assistant_image_model == "replicate") {
5533
+
echo " selected";
5534
+
}?> ><?php echo esc_html__("Replicate", 'aiomatic-automatic-ai-content-writer');?></option>
5535
+
<?php
5536
+
}
5537
+
if (isset($aiomatic_Main_Settings['ideogram_app_id']) && trim($aiomatic_Main_Settings['ideogram_app_id']) != '')
5538
+
{
5539
+
?>
5540
+
<option value="ideogram"<?php if ($assistant_image_model == "ideogram") {
5541
+
echo " selected";
5542
+
}?> ><?php echo esc_html__("Ideogram", 'aiomatic-automatic-ai-content-writer');?></option>
5543
+
<?php
5544
+
}
5545
+
?>
5546
+
</select>
5547
+
</td>
5548
+
</tr>
5549
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Content Wizard Text Completion Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5550
+
<tr>
5551
+
<th class="cr_min_width_200">
5552
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5553
+
<div class="bws_hidden_help_text cr_min_260px">
5554
+
<?php
5555
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
5556
+
?>
5557
+
</div>
5558
+
</div>
5559
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
5560
+
</th>
5561
+
<td><select id="wizard_assistant_id" name="aiomatic_Main_Settings[wizard_assistant_id]" class="cr_width_full" onchange="assistantSelected('wizard_assistant_id', 'disableWizard');">
5562
+
<?php
5563
+
if($all_assistants === false)
5564
+
{
5565
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
5566
+
}
5567
+
else
5568
+
{
5569
+
if(count($all_assistants) == 0)
5570
+
{
5571
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
5572
+
}
5573
+
else
5574
+
{
5575
+
echo '<option value=""';
5576
+
if($wizard_assistant_id == '')
5577
+
{
5578
+
echo ' selected';
5579
+
}
5580
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
5581
+
foreach($all_assistants as $myassistant)
5582
+
{
5583
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
5584
+
if($wizard_assistant_id == $myassistant->ID)
5585
+
{
5586
+
echo ' selected';
5587
+
}
5588
+
echo '>' . esc_html($myassistant->post_title);
5589
+
echo '</option>';
5590
+
}
5591
+
}
5592
+
}
5593
+
?>
5594
+
</select>
5595
+
</td>
5596
+
</tr>
5597
+
<tr>
5598
+
<th>
5599
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5600
+
<div class="bws_hidden_help_text cr_min_260px">
5601
+
<?php
5602
+
echo esc_html__("Set the model to use for the Content Wizard feature.", 'aiomatic-automatic-ai-content-writer');
5603
+
?>
5604
+
</div>
5605
+
</div>
5606
+
<b><?php echo esc_html__("Content Wizard Model:", 'aiomatic-automatic-ai-content-writer');?></b>
5607
+
</th>
5608
+
<td>
5609
+
<select id="assistant_model" name="aiomatic_Main_Settings[assistant_model]" <?php if($wizard_assistant_id != ''){echo ' disabled';}?> class="disableWizard cr_width_full">
5610
+
<?php
5611
+
foreach($all_models as $modelx)
5612
+
{
5613
+
echo '<option value="' . esc_html($modelx) .'"';
5614
+
if ($assistant_model == $modelx)
5615
+
{
5616
+
echo " selected";
5617
+
}
5618
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
5619
+
}
5620
+
?>
5621
+
</select>
5622
+
</td>
5623
+
</tr>
5624
+
<tr>
5625
+
<th class="cr_min_width_200">
5626
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5627
+
<div class="bws_hidden_help_text cr_min_260px">
5628
+
<?php
5629
+
echo esc_html__("What sampling temperature to use. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 (argmax sampling) for ones with a well-defined answer. We generally recommend altering this or top_p but not both.", 'aiomatic-automatic-ai-content-writer');
5630
+
?>
5631
+
</div>
5632
+
</div>
5633
+
<b><?php echo esc_html__("Content Wizard Temperature:", 'aiomatic-automatic-ai-content-writer');?></b>
5634
+
</th>
5635
+
<td>
5636
+
<input type="number" min="0" step="0.01" max="2" name="aiomatic_Main_Settings[assistant_temperature]" value="<?php echo esc_html($assistant_temperature);?>" placeholder="1" class="cr_width_full">
5637
+
</td>
5638
+
</tr><tr>
5639
+
<th class="cr_min_width_200">
5640
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5641
+
<div class="bws_hidden_help_text cr_min_260px">
5642
+
<?php
5643
+
echo esc_html__("An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.", 'aiomatic-automatic-ai-content-writer');
5644
+
?>
5645
+
</div>
5646
+
</div>
5647
+
<b><?php echo esc_html__("Content Wizard Top_p:", 'aiomatic-automatic-ai-content-writer');?></b>
5648
+
</th>
5649
+
<td>
5650
+
<input type="number" min="0" max="1" step="0.01" name="aiomatic_Main_Settings[assistant_top_p]" value="<?php echo esc_html($assistant_top_p);?>" placeholder="1" class="cr_width_full">
5651
+
</td>
5652
+
</tr><tr>
5653
+
<th class="cr_min_width_200">
5654
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5655
+
<div class="bws_hidden_help_text cr_min_260px">
5656
+
<?php
5657
+
echo esc_html__("Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.", 'aiomatic-automatic-ai-content-writer');
5658
+
?>
5659
+
</div>
5660
+
</div>
5661
+
<b><?php echo esc_html__("Content Wizard Presence Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
5662
+
</th>
5663
+
<td>
5664
+
<input type="number" min="-2" step="0.01" max="2" name="aiomatic_Main_Settings[assistant_ppenalty]" value="<?php echo esc_html($assistant_ppenalty);?>" placeholder="0" class="cr_width_full">
5665
+
</td>
5666
+
</tr><tr>
5667
+
<th class="cr_min_width_200">
5668
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5669
+
<div class="bws_hidden_help_text cr_min_260px">
5670
+
<?php
5671
+
echo esc_html__("Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.", 'aiomatic-automatic-ai-content-writer');
5672
+
?>
5673
+
</div>
5674
+
</div>
5675
+
<b><?php echo esc_html__("Content Wizard Frequency Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
5676
+
</th>
5677
+
<td>
5678
+
<input type="number" min="0" max="2" step="0.01" name="aiomatic_Main_Settings[assistant_fpenalty]" value="<?php echo esc_html($assistant_fpenalty);?>" placeholder="0" class="cr_width_full">
5679
+
</td>
5680
+
</tr></table>
5681
+
<br/>
5682
+
<table class="widefat">
5683
+
<tr class="aiomatic-title-holder">
5684
+
<td>
5685
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Content Wizard Prompts:", 'aiomatic-automatic-ai-content-writer');?></h2>
5686
+
<hr/>
5687
+
<div class="table-responsive">
5688
+
<div id="grid-wizard-aiomatic">
5689
+
<div class="grid-wizard-heading-aiomatic aiomatic-middle">
5690
+
<?php echo esc_html__("Menu name", 'aiomatic-automatic-ai-content-writer');?>
5691
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5692
+
<div class="bws_hidden_help_text cr_min_260px">
5693
+
<?php
5694
+
echo esc_html__("Set the name of the command, which will appear in the post editor.", 'aiomatic-automatic-ai-content-writer');
5695
+
?>
5696
+
</div>
5697
+
</div>
5698
+
</div>
5699
+
<div class="grid-wizard-heading-aiomatic aiomatic-middle">
5700
+
<?php echo esc_html__("Prompt", 'aiomatic-automatic-ai-content-writer');?>
5701
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5702
+
<div class="bws_hidden_help_text cr_min_260px">
5703
+
<?php
5704
+
echo esc_html__("Set the prompt to be sent to the AI when clicking on this command in post editor. You can use the %%selected_text%% shortcode and also the following shortcodes, which will use the data from the current post which is edited: %%post_title%%, %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%post_tags%%, %%featured_image%%, %%blog_title%%, %%author_name%%, %%current_date_time%%, %%post_link%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
5705
+
?>
5706
+
</div>
5707
+
</div>
5708
+
</div>
5709
+
<div class="grid-wizard-heading-aiomatic aiomatic-middle">
5710
+
<?php echo esc_html__("Type", 'aiomatic-automatic-ai-content-writer');?>
5711
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5712
+
<div class="bws_hidden_help_text cr_min_260px">
5713
+
<?php
5714
+
echo esc_html__("Set the type of the prompt you are creating.", 'aiomatic-automatic-ai-content-writer');
5715
+
?>
5716
+
</div>
5717
+
</div>
5718
+
</div>
5719
+
<div class="grid-wizard-heading-aiomatic aiomatic-middle">
5720
+
<?php echo esc_html__("Del", 'aiomatic-automatic-ai-content-writer');?>
5721
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5722
+
<div class="bws_hidden_help_text cr_min_260px">
5723
+
<?php
5724
+
echo esc_html__("Do you want to delete this rule?", 'aiomatic-automatic-ai-content-writer');
5725
+
?>
5726
+
</div>
5727
+
</div>
5728
+
</div>
5729
+
<?php
5730
+
echo aiomatic_expand_assistant_rules();
5731
+
?>
5732
+
<div>
5733
+
<hr/>
5734
+
</div>
5735
+
<div>
5736
+
<hr/>
5737
+
</div>
5738
+
<div>
5739
+
<hr/>
5740
+
</div>
5741
+
<div>
5742
+
<hr/>
5743
+
</div>
5744
+
<div class="cr_center"><input type="text" name="aiomatic_assistant_list[menu_name][]" placeholder="<?php echo esc_html__("Add a menu name", 'aiomatic-automatic-ai-content-writer');?>" value=""/></div>
5745
+
<div class="cr_center"><textarea rows="1" name="aiomatic_assistant_list[prompt][]" placeholder="<?php echo esc_html__("Add a prompt", 'aiomatic-automatic-ai-content-writer');?>"></textarea></div>
5746
+
<div class="cr_center"><select id="aiomatic_assistant_type" name="aiomatic_assistant_list[type][]">
5747
+
<option value="text" selected><?php echo esc_html__("Text", 'aiomatic-automatic-ai-content-writer');?></option>
5748
+
<option value="image"><?php echo esc_html__("Image", 'aiomatic-automatic-ai-content-writer');?></option></select></div>
5749
+
<div class="cr_center"><span class="cr_gray20">X</span></div>
5750
+
</div>
5751
+
</div>
5752
+
<hr/>
5753
+
<p class="crsubmit"><input type="submit" name="btnSubmitwiz" id="btnSubmitwiz" class="button button-primary" onclick="unsaved = false;" value="<?php echo esc_html__("Save Content Wizard Prompts", 'aiomatic-automatic-ai-content-writer');?>"/></p>
5754
+
</td></tr>
5755
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
5756
+
?>
5757
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5758
+
<tr><td class="coderevolution_block_input" colspan="2">
5759
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/e5tPgqOB8ss" allowfullscreen></iframe>
5760
+
</td></tr>
5761
+
<?php
5762
+
}
5763
+
?>
5764
+
</table>
5765
+
</div>
5766
+
<div id="tab-18<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
5767
+
<h3><?php echo esc_html__('AI Forms', 'aiomatic-automatic-ai-content-writer');?></h3>
5768
+
<p class="aiomatic-settings-desc"><?php
5769
+
echo esc_html__("The 'AI Forms' tab enables you to create and manage smart forms powered by AI, designed to improve user interaction and data collection on your WordPress site.", 'aiomatic-automatic-ai-content-writer');
5770
+
?></p>
5771
+
<table class="widefat">
5772
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Forms Restrictions:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5773
+
<tr>
5774
+
<th class="cr_min_width_200">
5775
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5776
+
<div class="bws_hidden_help_text cr_min_260px">
5777
+
<?php
5778
+
echo esc_html__("Select the min length for form input fields.", 'aiomatic-automatic-ai-content-writer');
5779
+
?>
5780
+
</div>
5781
+
</div>
5782
+
<b><?php echo esc_html__("Form Input Fields Min Length:", 'aiomatic-automatic-ai-content-writer');?></b>
5783
+
</th>
5784
+
<td>
5785
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[min_len]" value="<?php echo esc_html($min_len);?>" placeholder="3" class="cr_width_full">
5786
+
</td>
5787
+
</tr>
5788
+
<tr>
5789
+
<th class="cr_min_width_200">
5790
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5791
+
<div class="bws_hidden_help_text cr_min_260px">
5792
+
<?php
5793
+
echo esc_html__("Select the max length for form input fields.", 'aiomatic-automatic-ai-content-writer');
5794
+
?>
5795
+
</div>
5796
+
</div>
5797
+
<b><?php echo esc_html__("Form Input Fields Max Length:", 'aiomatic-automatic-ai-content-writer');?></b>
5798
+
</th>
5799
+
<td>
5800
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[max_len]" value="<?php echo esc_html($max_len);?>" placeholder="10" class="cr_width_full">
5801
+
</td>
5802
+
</tr>
5803
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Forms Image Options:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5804
+
<tr>
5805
+
<th class="cr_min_width_200">
5806
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5807
+
<div class="bws_hidden_help_text cr_min_260px">
5808
+
<?php
5809
+
echo esc_html__("Select the image size for AI generated images.", 'aiomatic-automatic-ai-content-writer');
5810
+
?>
5811
+
</div>
5812
+
</div>
5813
+
<b><?php echo esc_html__("AI Generated Image Size:", 'aiomatic-automatic-ai-content-writer');?></b>
5814
+
</th>
5815
+
<td>
5816
+
<select autocomplete="off" id="ai_image_size" name="aiomatic_Main_Settings[ai_image_size]" class="cr_width_full">
5817
+
<option value="256x256" <?php if($ai_image_size == '256x256'){echo ' selected';}?> ><?php echo esc_html__("256x256", 'aiomatic-automatic-ai-content-writer');?></option>
5818
+
<option value="512x512" <?php if($ai_image_size == '512x512'){echo ' selected';}?> ><?php echo esc_html__("512x512", 'aiomatic-automatic-ai-content-writer');?></option>
5819
+
<option value="1024x1024" <?php if($ai_image_size == '1024x1024'){echo ' selected';}?> ><?php echo esc_html__("1024x1024", 'aiomatic-automatic-ai-content-writer');?></option>
5820
+
<option value="1024x1792" <?php if($ai_image_size == '1024x1792'){echo ' selected';}?> ><?php echo esc_html__("1024x1792 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer');?></option>
5821
+
<option value="1792x1024" <?php if($ai_image_size == '1792x1024'){echo ' selected';}?> ><?php echo esc_html__("1792x1024 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer');?></option>
5822
+
<option value="1024x1536" <?php if($ai_image_size == '1024x1536'){echo ' selected';}?> ><?php echo esc_html__("1024x1536 (only for gpt-image-1, gpt-image-1-mini, gpt-image-1.5, chatgpt-image-latest)", 'aiomatic-automatic-ai-content-writer');?></option>
5823
+
<option value="1536x1024" <?php if($ai_image_size == '1536x1024'){echo ' selected';}?> ><?php echo esc_html__("1536x1024 (only for gpt-image-1, gpt-image-1-mini, gpt-image-1.5, chatgpt-image-latest)", 'aiomatic-automatic-ai-content-writer');?></option>
5824
+
</select>
5825
+
</td>
5826
+
</tr>
5827
+
<tr>
5828
+
<th class="cr_min_width_200">
5829
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5830
+
<div class="bws_hidden_help_text cr_min_260px">
5831
+
<?php
5832
+
echo esc_html__("Select the image model for OpenAI generated images.", 'aiomatic-automatic-ai-content-writer');
5833
+
?>
5834
+
</div>
5835
+
</div>
5836
+
<b><?php echo esc_html__("OpenAI Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
5837
+
</th>
5838
+
<td>
5839
+
<select autocomplete="off" id="ai_image_model" name="aiomatic_Main_Settings[ai_image_model]" class="cr_width_full">
5840
+
<?php
5841
+
foreach(AIMOGEN_DALLE_IMAGE_MODELS as $modelx)
5842
+
{
5843
+
echo '<option value="' . esc_html($modelx) .'"';
5844
+
if ($modelx == $ai_image_model) { echo ' selected'; }
5845
+
echo '>' . esc_html($modelx) . '</option>';
5846
+
}
5847
+
?>
5848
+
</select>
5849
+
</td>
5850
+
</tr>
5851
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Forms Options:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
5852
+
<tr>
5853
+
<th>
5854
+
<div>
5855
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5856
+
<div class="bws_hidden_help_text cr_min_260px">
5857
+
<?php
5858
+
echo esc_html__("Select if you want to convert markdown to HTML in AI generated content.", 'aiomatic-automatic-ai-content-writer');
5859
+
?>
5860
+
</div>
5861
+
</div>
5862
+
<b><?php echo esc_html__("Convert Markdown To HTML In AI Generated Content:", 'aiomatic-automatic-ai-content-writer');?></b>
5863
+
</div>
5864
+
</th>
5865
+
<td>
5866
+
<div>
5867
+
<label class="aiomatic-switch"><input type="checkbox" id="markdown_forms" name="aiomatic_Main_Settings[markdown_forms]"<?php
5868
+
if ($markdown_forms == 'on')
5869
+
echo ' checked ';
5870
+
?>><span class="aiomatic-slider round"></span></label>
5871
+
</div>
5872
+
</td>
5873
+
</tr><tr>
5874
+
<th>
5875
+
<div>
5876
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5877
+
<div class="bws_hidden_help_text cr_min_260px">
5878
+
<?php
5879
+
echo esc_html__("Enable Katex integration to render mathematical expressions. This works only if the AI Forms have HTML output enabled.", 'aiomatic-automatic-ai-content-writer');
5880
+
?>
5881
+
</div>
5882
+
</div>
5883
+
<b><?php echo esc_html__("Enable Katex (Mathematical Expressions Rendering):", 'aiomatic-automatic-ai-content-writer');?></b>
5884
+
</div>
5885
+
</th>
5886
+
<td>
5887
+
<div>
5888
+
<label class="aiomatic-switch"><input type="checkbox" id="katex_forms" name="aiomatic_Main_Settings[katex_forms]"<?php
5889
+
if ($katex_forms == 'on')
5890
+
echo ' checked ';
5891
+
?>><span class="aiomatic-slider round"></span></label>
5892
+
</div>
5893
+
</td>
5894
+
</tr><tr>
5895
+
<th>
5896
+
<div>
5897
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5898
+
<div class="bws_hidden_help_text cr_min_260px">
5899
+
<?php
5900
+
echo esc_html__("If you check this checkbox, the plugin will store all prompts used in the plugin, to allow model dillution and other features on OpenAI API's part. This works only if you are using an AI model provided by OpenAI.", 'aiomatic-automatic-ai-content-writer');
5901
+
?>
5902
+
</div>
5903
+
</div>
5904
+
<b><?php echo esc_html__("Store AI Prompts On OpenAI's Part (AI Forms):", 'aiomatic-automatic-ai-content-writer');?></b>
5905
+
</div>
5906
+
</th>
5907
+
<td>
5908
+
<div>
5909
+
<label class="aiomatic-switch"><input type="checkbox" id="store_data_forms" name="aiomatic_Main_Settings[store_data_forms]"<?php
5910
+
if ($store_data_forms == 'on')
5911
+
echo ' checked ';
5912
+
?>><span class="aiomatic-slider round"></span></label>
5913
+
</div>
5914
+
</td>
5915
+
</tr>
5916
+
<tr>
5917
+
<th class="cr_min_width_200">
5918
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5919
+
<div class="bws_hidden_help_text cr_min_260px">
5920
+
<?php
5921
+
echo esc_html__("Select if you want to show advanced form options for users.", 'aiomatic-automatic-ai-content-writer');
5922
+
?>
5923
+
</div>
5924
+
</div>
5925
+
<b><?php echo esc_html__("Show Advanced Form Options For All Textual AI Forms (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
5926
+
</th>
5927
+
<td>
5928
+
<label class="aiomatic-switch"><input type="checkbox" id="show_advanced" name="aiomatic_Main_Settings[show_advanced]"<?php
5929
+
if ($show_advanced == 'on')
5930
+
echo ' checked ';
5931
+
?>><span class="aiomatic-slider round"></span></label>
5932
+
</td>
5933
+
</tr>
5934
+
<tr>
5935
+
<th class="cr_min_width_200">
5936
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5937
+
<div class="bws_hidden_help_text cr_min_260px">
5938
+
<?php
5939
+
echo esc_html__("Select if you want to show a WP Rich Text editor instead of a plain textarea for the AI results output, for all created textual AI Forms.", 'aiomatic-automatic-ai-content-writer');
5940
+
?>
5941
+
</div>
5942
+
</div>
5943
+
<b><?php echo esc_html__("Show WP Editor Input For All Textual AI Forms (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
5944
+
</th>
5945
+
<td>
5946
+
<label class="aiomatic-switch"><input type="checkbox" id="show_rich_editor" name="aiomatic_Main_Settings[show_rich_editor]"<?php
5947
+
if ($show_rich_editor == 'on')
5948
+
echo ' checked ';
5949
+
?>><span class="aiomatic-slider round"></span></label>
5950
+
</td>
5951
+
</tr>
5952
+
<tr>
5953
+
<th class="cr_min_width_200">
5954
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5955
+
<div class="bws_hidden_help_text cr_min_260px">
5956
+
<?php
5957
+
echo esc_html__("Select if you want to show a 'Character Counter' text under to the results of textual AI Forms.", 'aiomatic-automatic-ai-content-writer');
5958
+
?>
5959
+
</div>
5960
+
</div>
5961
+
<b><?php echo esc_html__("Enable the 'Character Counter' Text For All Textual Forms Results (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
5962
+
</th>
5963
+
<td>
5964
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_char_count" name="aiomatic_Main_Settings[enable_char_count]"<?php
5965
+
if ($enable_char_count == 'on')
5966
+
echo ' checked ';
5967
+
?>><span class="aiomatic-slider round"></span></label>
5968
+
</td>
5969
+
</tr>
5970
+
<tr>
5971
+
<th class="cr_min_width_200">
5972
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5973
+
<div class="bws_hidden_help_text cr_min_260px">
5974
+
<?php
5975
+
echo esc_html__("Select if you want to show a 'Copy' button next to the results of textual AI Forms.", 'aiomatic-automatic-ai-content-writer');
5976
+
?>
5977
+
</div>
5978
+
</div>
5979
+
<b><?php echo esc_html__("Enable the 'Copy' Button For All Textual Forms Results (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
5980
+
</th>
5981
+
<td>
5982
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_copy" name="aiomatic_Main_Settings[enable_copy]"<?php
5983
+
if ($enable_copy == 'on')
5984
+
echo ' checked ';
5985
+
?>><span class="aiomatic-slider round"></span></label>
5986
+
</td>
5987
+
</tr>
5988
+
<tr>
5989
+
<th class="cr_min_width_200">
5990
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5991
+
<div class="bws_hidden_help_text cr_min_260px">
5992
+
<?php
5993
+
echo esc_html__("Select if you want to show a 'Download as PDF' button next to the results of textual AI Forms.", 'aiomatic-automatic-ai-content-writer');
5994
+
?>
5995
+
</div>
5996
+
</div>
5997
+
<b><?php echo esc_html__("Enable the 'Download as PDF' Button For All Textual Forms Results (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
5998
+
</th>
5999
+
<td>
6000
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_pdf" name="aiomatic_Main_Settings[enable_pdf]"<?php
6001
+
if ($enable_pdf == 'on')
6002
+
echo ' checked ';
6003
+
?>><span class="aiomatic-slider round"></span></label>
6004
+
</td>
6005
+
</tr>
6006
+
<tr>
6007
+
<th class="cr_min_width_200">
6008
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6009
+
<div class="bws_hidden_help_text cr_min_260px">
6010
+
<?php
6011
+
echo esc_html__("Select if you want to show a 'Download' button next to the results of image AI Forms.", 'aiomatic-automatic-ai-content-writer');
6012
+
?>
6013
+
</div>
6014
+
</div>
6015
+
<b><?php echo esc_html__("Enable the 'Download' Button For All Image Forms Results (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
6016
+
</th>
6017
+
<td>
6018
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_download" name="aiomatic_Main_Settings[enable_download]"<?php
6019
+
if ($enable_download == 'on')
6020
+
echo ' checked ';
6021
+
?>><span class="aiomatic-slider round"></span></label>
6022
+
</td>
6023
+
</tr>
6024
+
<tr>
6025
+
<th class="cr_min_width_200">
6026
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6027
+
<div class="bws_hidden_help_text cr_min_260px">
6028
+
<?php
6029
+
echo esc_html__("Select if you want to disable automatic saving of data generated by AI forms, to the [aimogen-form-history] shortcode (data available separately for each user).", 'aiomatic-automatic-ai-content-writer');
6030
+
?>
6031
+
</div>
6032
+
</div>
6033
+
<b><?php echo esc_html__("Disable AI Forms History Saving To The [aimogen-form-history] Shortcode (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
6034
+
</th>
6035
+
<td>
6036
+
<label class="aiomatic-switch"><input type="checkbox" id="disable_ai_form_saving" name="aiomatic_Main_Settings[disable_ai_form_saving]"<?php
6037
+
if ($disable_ai_form_saving == 'on')
6038
+
echo ' checked ';
6039
+
?>><span class="aiomatic-slider round"></span></label>
6040
+
</td>
6041
+
</tr>
6042
+
<tr>
6043
+
<th class="cr_min_width_200">
6044
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6045
+
<div class="bws_hidden_help_text cr_min_260px">
6046
+
<?php
6047
+
echo esc_html__("Select the placeholder text of the form output.", 'aiomatic-automatic-ai-content-writer');
6048
+
?>
6049
+
</div>
6050
+
</div>
6051
+
<b><?php echo esc_html__("AI Forms History Max Entry Count Per User:", 'aiomatic-automatic-ai-content-writer');?></b>
6052
+
</th>
6053
+
<td>
6054
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[form_max_user]" value="<?php echo esc_html($form_max_user);?>" placeholder="Max entries per user" class="cr_width_full">
6055
+
</td>
6056
+
</tr>
6057
+
<tr>
6058
+
<th class="cr_min_width_200">
6059
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6060
+
<div class="bws_hidden_help_text cr_min_260px">
6061
+
<?php
6062
+
echo esc_html__("Select the location of the submit button.", 'aiomatic-automatic-ai-content-writer');
6063
+
?>
6064
+
</div>
6065
+
</div>
6066
+
<b><?php echo esc_html__("Submit Button Location:", 'aiomatic-automatic-ai-content-writer');?></b>
6067
+
</th>
6068
+
<td>
6069
+
<select id="submit_location" name="aiomatic_Main_Settings[submit_location]" class="cr_width_full">
6070
+
<option value="1"<?php
6071
+
if ($submit_location == "1") {
6072
+
echo " selected";
6073
+
}
6074
+
?>><?php echo esc_html__("Under Input Fields", 'aiomatic-automatic-ai-content-writer');?></option>
6075
+
<option value="2"<?php
6076
+
if ($submit_location == "2") {
6077
+
echo " selected";
6078
+
}
6079
+
?>><?php echo esc_html__("Above Input Fields", 'aiomatic-automatic-ai-content-writer');?></option>
6080
+
<option value="3"<?php
6081
+
if ($submit_location == "3") {
6082
+
echo " selected";
6083
+
}
6084
+
?>><?php echo esc_html__("Under Result Field", 'aiomatic-automatic-ai-content-writer');?></option>
6085
+
<option value="4"<?php
6086
+
if ($submit_location == "4") {
6087
+
echo " selected";
6088
+
}
6089
+
?>><?php echo esc_html__("Under Advanced Settings", 'aiomatic-automatic-ai-content-writer');?></option>
6090
+
</select>
6091
+
</td>
6092
+
</tr>
6093
+
<tr>
6094
+
<th class="cr_min_width_200">
6095
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6096
+
<div class="bws_hidden_help_text cr_min_260px">
6097
+
<?php
6098
+
echo esc_html__("Select the alignment of the submit button.", 'aiomatic-automatic-ai-content-writer');
6099
+
?>
6100
+
</div>
6101
+
</div>
6102
+
<b><?php echo esc_html__("Submit Button Alignment:", 'aiomatic-automatic-ai-content-writer');?></b>
6103
+
</th>
6104
+
<td>
6105
+
<select id="submit_align" name="aiomatic_Main_Settings[submit_align]" class="cr_width_full">
6106
+
<option value="1"<?php
6107
+
if ($submit_align == "1") {
6108
+
echo " selected";
6109
+
}
6110
+
?>><?php echo esc_html__("Left", 'aiomatic-automatic-ai-content-writer');?></option>
6111
+
<option value="2"<?php
6112
+
if ($submit_align == "2") {
6113
+
echo " selected";
6114
+
}
6115
+
?>><?php echo esc_html__("Center", 'aiomatic-automatic-ai-content-writer');?></option>
6116
+
<option value="3"<?php
6117
+
if ($submit_align == "3") {
6118
+
echo " selected";
6119
+
}
6120
+
?>><?php echo esc_html__("Right", 'aiomatic-automatic-ai-content-writer');?></option>
6121
+
</select>
6122
+
</td>
6123
+
</tr>
6124
+
<tr>
6125
+
<th class="cr_min_width_200">
6126
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6127
+
<div class="bws_hidden_help_text cr_min_260px">
6128
+
<?php
6129
+
echo esc_html__("Select the placeholder text of the form output.", 'aiomatic-automatic-ai-content-writer');
6130
+
?>
6131
+
</div>
6132
+
</div>
6133
+
<b><?php echo esc_html__("Form Output Placeholder Text:", 'aiomatic-automatic-ai-content-writer');?></b>
6134
+
</th>
6135
+
<td>
6136
+
<input type="text" name="aiomatic_Main_Settings[form_placeholder]" value="<?php echo esc_html($form_placeholder);?>" placeholder="AI Result" class="cr_width_full">
6137
+
</td>
6138
+
</tr>
6139
+
<tr>
6140
+
<th class="cr_min_width_200">
6141
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6142
+
<div class="bws_hidden_help_text cr_min_260px">
6143
+
<?php
6144
+
echo esc_html__("This will be appended to each prompt sent by the plugin to the AI Forms.", 'aiomatic-automatic-ai-content-writer');
6145
+
?>
6146
+
</div>
6147
+
</div>
6148
+
<b><?php echo esc_html__("Append Text To All Textual AI Prompts From AI Forms:", 'aiomatic-automatic-ai-content-writer');?></b>
6149
+
</th>
6150
+
<td>
6151
+
<textarea rows="2" cols="70" name="aiomatic_Main_Settings[form_append]" placeholder="Global AI Form prompt append text" class="cr_width_full"><?php echo esc_textarea($form_append);?></textarea>
6152
+
</td>
6153
+
</tr>
6154
+
<tr>
6155
+
<th class="cr_min_width_200">
6156
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6157
+
<div class="bws_hidden_help_text cr_min_260px">
6158
+
<?php
6159
+
echo esc_html__("This will be prepended to each prompt sent by the plugin to the AI Forms.", 'aiomatic-automatic-ai-content-writer');
6160
+
?>
6161
+
</div>
6162
+
</div>
6163
+
<b><?php echo esc_html__("Prepend Text To All Textual AI Prompts From AI Forms:", 'aiomatic-automatic-ai-content-writer');?></b>
6164
+
</th>
6165
+
<td>
6166
+
<textarea rows="2" cols="70" name="aiomatic_Main_Settings[form_prepend]" placeholder="Global AI Form prompt prepend text" class="cr_width_full"><?php echo esc_textarea($form_prepend);?></textarea>
6167
+
</td>
6168
+
</tr>
6169
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Forms Styling:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
6170
+
<tr>
6171
+
<th class="cr_min_width_200">
6172
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6173
+
<div class="bws_hidden_help_text cr_min_260px">
6174
+
<?php
6175
+
echo esc_html__("Select the Background color of the form.", 'aiomatic-automatic-ai-content-writer');
6176
+
?>
6177
+
</div>
6178
+
</div>
6179
+
<b><?php echo esc_html__("Form Background Color:", 'aiomatic-automatic-ai-content-writer');?></b>
6180
+
</th>
6181
+
<td>
6182
+
<input id="form_background" type="color" name="aiomatic_Main_Settings[back_color]" value="<?php echo esc_html($back_color);?>">
6183
+
</td>
6184
+
</tr>
6185
+
<tr>
6186
+
<th class="cr_min_width_200">
6187
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6188
+
<div class="bws_hidden_help_text cr_min_260px">
6189
+
<?php
6190
+
echo esc_html__("Select the text color of the form.", 'aiomatic-automatic-ai-content-writer');
6191
+
?>
6192
+
</div>
6193
+
</div>
6194
+
<b><?php echo esc_html__("Form Text Color:", 'aiomatic-automatic-ai-content-writer');?></b>
6195
+
</th>
6196
+
<td>
6197
+
<input id="form_color" type="color" name="aiomatic_Main_Settings[text_color]" value="<?php echo esc_html($text_color);?>">
6198
+
</td>
6199
+
</tr>
6200
+
<tr>
6201
+
<th class="cr_min_width_200">
6202
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6203
+
<div class="bws_hidden_help_text cr_min_260px">
6204
+
<?php
6205
+
echo esc_html__("Select the button color of the form.", 'aiomatic-automatic-ai-content-writer');
6206
+
?>
6207
+
</div>
6208
+
</div>
6209
+
<b><?php echo esc_html__("Form Button Color:", 'aiomatic-automatic-ai-content-writer');?></b>
6210
+
</th>
6211
+
<td>
6212
+
<input id="button_color" type="color" name="aiomatic_Main_Settings[but_color]" value="<?php echo esc_html($but_color);?>">
6213
+
</td>
6214
+
</tr>
6215
+
<tr>
6216
+
<th class="cr_min_width_200">
6217
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6218
+
<div class="bws_hidden_help_text cr_min_260px">
6219
+
<?php
6220
+
echo esc_html__("Select the button text color of the form.", 'aiomatic-automatic-ai-content-writer');
6221
+
?>
6222
+
</div>
6223
+
</div>
6224
+
<b><?php echo esc_html__("Form Button Text Color:", 'aiomatic-automatic-ai-content-writer');?></b>
6225
+
</th>
6226
+
<td>
6227
+
<input id="button_text_color" type="color" name="aiomatic_Main_Settings[btext_color]" value="<?php echo esc_html($btext_color);?>">
6228
+
</td>
6229
+
</tr>
6230
+
<tr><td>
6231
+
<div>
6232
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6233
+
<div class="bws_hidden_help_text cr_min_260px">
6234
+
<?php
6235
+
echo esc_html__("Select the looks of the AI Forms.", 'aiomatic-automatic-ai-content-writer');
6236
+
?>
6237
+
</div>
6238
+
</div>
6239
+
<b><?php echo esc_html__("AI Forms Theme:", 'aiomatic-automatic-ai-content-writer');?></b><br/>
6240
+
</div>
6241
+
</td><td>
6242
+
<div>
6243
+
<select id="forms_theme" onchange="formThemeChanged();" class="cr_width_full">
6244
+
<?php
6245
+
echo '<option value="">No Change</option>';
6246
+
echo '<option value="light">Light</option>';
6247
+
echo '<option value="dark">Dark</option>';
6248
+
echo '<option value="midnight">Midnight</option>';
6249
+
echo '<option value="sunrise">Sunrise</option>';
6250
+
echo '<option value="ocean">Ocean</option>';
6251
+
echo '<option value="forest">Forest</option>';
6252
+
echo '<option value="winter">Winter</option>';
6253
+
echo '<option value="twilight">Twilight</option>';
6254
+
echo '<option value="desert">Desert</option>';
6255
+
echo '<option value="cosmic">Cosmic</option>';
6256
+
echo '<option value="rose">Rose</option>';
6257
+
echo '<option value="tropical">Tropical</option>';
6258
+
echo '<option value="facebook">Facebook</option>';
6259
+
echo '<option value="twitter">Twitter</option>';
6260
+
echo '<option value="instagram">Instagram</option>';
6261
+
echo '<option value="whatsapp">WhatsApp</option>';
6262
+
echo '<option value="linkedin">LinkedIn</option>';
6263
+
?>
6264
+
</select>
6265
+
</div>
6266
+
</td></tr>
6267
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
6268
+
?>
6269
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
6270
+
<tr><td class="coderevolution_block_input" colspan="2">
6271
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/NhbEeIXxu-0" allowfullscreen></iframe>
6272
+
</td></tr>
6273
+
<?php
6274
+
}
6275
+
?>
6276
+
</table>
6277
+
</div>
6278
+
<div id="tab-23<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
6279
+
<h3><?php echo esc_html__('Link Keyword Extractor', 'aiomatic-automatic-ai-content-writer');?></h3>
6280
+
<p class="aiomatic-settings-desc"><?php
6281
+
echo esc_html__("The 'Link Keyword Extractor' tab provides settings for tools that analyze and extract relevant keywords from hyperlinks, enhancing your WordPress site's SEO and content relevance strategies.", 'aiomatic-automatic-ai-content-writer');
6282
+
?></p>
6283
+
<table class="widefat">
6284
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Automatic Links Keyword Extractor Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
6285
+
<tr>
6286
+
<th>
6287
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6288
+
<div class="bws_hidden_help_text cr_min_260px">
6289
+
<?php
6290
+
echo esc_html__("Select the method you want to use for automatic article keyword extraction.", 'aiomatic-automatic-ai-content-writer');
6291
+
?>
6292
+
</div>
6293
+
</div>
6294
+
<b><?php echo esc_html__("Automatic Linking Keyword Extraction Method:", 'aiomatic-automatic-ai-content-writer');?></b>
6295
+
</th>
6296
+
<td>
6297
+
<select id="kw_method" name="aiomatic_Main_Settings[kw_method]" onchange="kwChanged();" class="cr_width_full">
6298
+
<option value="builtin"<?php
6299
+
if ($kw_method == "builtin") {
6300
+
echo " selected";
6301
+
}
6302
+
?>>Built-In</option>
6303
+
<option value="ai"<?php
6304
+
if ($kw_method == "ai") {
6305
+
echo " selected";
6306
+
}
6307
+
?>>AI</option>
6308
+
</select>
6309
+
</td>
6310
+
</tr>
6311
+
<tr>
6312
+
<th>
6313
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6314
+
<div class="bws_hidden_help_text cr_min_260px">
6315
+
<?php
6316
+
echo esc_html__("Select the method you want to use for automatic article keyword extraction.", 'aiomatic-automatic-ai-content-writer');
6317
+
?>
6318
+
</div>
6319
+
</div>
6320
+
<b><?php echo esc_html__("Open Links In A New Tab:", 'aiomatic-automatic-ai-content-writer');?></b>
6321
+
</th>
6322
+
<td>
6323
+
<select id="new_tab" name="aiomatic_Main_Settings[new_tab]" class="cr_width_full">
6324
+
<option value="no"<?php
6325
+
if ($new_tab == "no") {
6326
+
echo " selected";
6327
+
}
6328
+
?>>No</option>
6329
+
<option value="yes"<?php
6330
+
if ($new_tab == "yes") {
6331
+
echo " selected";
6332
+
}
6333
+
?>>Yes</option>
6334
+
</select>
6335
+
</td>
6336
+
</tr>
6337
+
<tr class="kwai">
6338
+
<th class="cr_min_width_200">
6339
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6340
+
<div class="bws_hidden_help_text cr_min_260px">
6341
+
<?php
6342
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
6343
+
?>
6344
+
</div>
6345
+
</div>
6346
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
6347
+
</th>
6348
+
<td><select id="kw_assistant_id" name="aiomatic_Main_Settings[kw_assistant_id]" class="cr_width_full" onchange="assistantSelected('kw_assistant_id', 'disableKw');">
6349
+
<?php
6350
+
if($all_assistants === false)
6351
+
{
6352
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
6353
+
}
6354
+
else
6355
+
{
6356
+
if(count($all_assistants) == 0)
6357
+
{
6358
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
6359
+
}
6360
+
else
6361
+
{
6362
+
echo '<option value=""';
6363
+
if($kw_assistant_id == '')
6364
+
{
6365
+
echo ' selected';
6366
+
}
6367
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
6368
+
foreach($all_assistants as $myassistant)
6369
+
{
6370
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
6371
+
if($kw_assistant_id == $myassistant->ID)
6372
+
{
6373
+
echo ' selected';
6374
+
}
6375
+
echo '>' . esc_html($myassistant->post_title);
6376
+
echo '</option>';
6377
+
}
6378
+
}
6379
+
}
6380
+
?>
6381
+
</select>
6382
+
</td>
6383
+
</tr>
6384
+
<tr class="kwai">
6385
+
<th>
6386
+
<div>
6387
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6388
+
<div class="bws_hidden_help_text cr_min_260px">
6389
+
<?php
6390
+
echo esc_html__("Select the default model you want to use for the AI Linking Keyword Extraction.", 'aiomatic-automatic-ai-content-writer');
6391
+
?>
6392
+
</div>
6393
+
</div>
6394
+
<b><?php echo esc_html__("AI Linking Keyword Extraction Model:", 'aiomatic-automatic-ai-content-writer');?></b>
6395
+
</div>
6396
+
</th>
6397
+
<td>
6398
+
<div>
6399
+
<select id="kw_model" name="aiomatic_Main_Settings[kw_model]" <?php if($kw_assistant_id != ''){echo ' disabled';}?> class="disableKw cr_width_full">
6400
+
<?php
6401
+
foreach($all_models as $modelx)
6402
+
{
6403
+
echo '<option value="' . esc_html($modelx) .'"';
6404
+
if ($kw_model == $modelx)
6405
+
{
6406
+
echo " selected";
6407
+
}
6408
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
6409
+
}
6410
+
?>
6411
+
</select>
6412
+
</div>
6413
+
</td>
6414
+
</tr>
6415
+
<tr class="kwai">
6416
+
<th class="cr_min_width_200">
6417
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6418
+
<div class="bws_hidden_help_text cr_min_260px">
6419
+
<?php
6420
+
echo esc_html__("Set the prompt to be used for the AI Linking Keyword Extraction feature. You can use the following shortcodes here: %%content%% - the default value for this field is: Extract a comma-separated list of the most relevant single word keywords from the text, prioritizing specific references over general keywords. Add the highest priority to the most specific keyword that is still related to the main topic. The text is: %%content%%.", 'aiomatic-automatic-ai-content-writer');
6421
+
?>
6422
+
</div>
6423
+
</div>
6424
+
<b><?php echo esc_html__("AI Linking Keyword Extraction Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
6425
+
</th>
6426
+
<td>
6427
+
<textarea name="aiomatic_Main_Settings[kw_prompt]" placeholder="AI Linking Keyword Extraction Prompt" class="cr_width_full"><?php echo esc_textarea($kw_prompt);?></textarea>
6428
+
</td>
6429
+
</tr>
6430
+
<tr class="kwbuiltin">
6431
+
<th>
6432
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6433
+
<div class="bws_hidden_help_text cr_min_260px">
6434
+
<?php
6435
+
echo esc_html__("Select the language of the automatic keyword extractor, which is used for the internal/external linking feature of the plugin.", 'aiomatic-automatic-ai-content-writer');
6436
+
?>
6437
+
</div>
6438
+
</div>
6439
+
<b><?php echo esc_html__("Built-in Keyword Extractor Language:", 'aiomatic-automatic-ai-content-writer');?></b>
6440
+
</th>
6441
+
<td>
6442
+
<select id="kw_lang" name="aiomatic_Main_Settings[kw_lang]" class="cr_width_full">
6443
+
<option value="en_US"<?php
6444
+
if ($kw_lang == "en_US") {
6445
+
echo " selected";
6446
+
}
6447
+
?>>en_US</option>
6448
+
<option value="af_ZA"<?php
6449
+
if ($kw_lang == "af_ZA") {
6450
+
echo " selected";
6451
+
}
6452
+
?>>af_ZA</option>
6453
+
<option value="ar_AE"<?php
6454
+
if ($kw_lang == "ar_AE") {
6455
+
echo " selected";
6456
+
}
6457
+
?>>ar_AE</option>
6458
+
<option value="pt_BR"<?php
6459
+
if ($kw_lang == "pt_BR") {
6460
+
echo " selected";
6461
+
}
6462
+
?>>pt_BR</option>
6463
+
<option value="pt_PT"<?php
6464
+
if ($kw_lang == "pt_PT") {
6465
+
echo " selected";
6466
+
}
6467
+
?>>pt_PT</option>
6468
+
<option value="fr_FR"<?php
6469
+
if ($kw_lang == "fr_FR") {
6470
+
echo " selected";
6471
+
}
6472
+
?>>fr_FR</option>
6473
+
<option value="de_DE"<?php
6474
+
if ($kw_lang == "de_DE") {
6475
+
echo " selected";
6476
+
}
6477
+
?>>de_DE</option>
6478
+
<option value="it_IT"<?php
6479
+
if ($kw_lang == "it_IT") {
6480
+
echo " selected";
6481
+
}
6482
+
?>>it_IT</option>
6483
+
<option value="pl_PL"<?php
6484
+
if ($kw_lang == "pl_PL") {
6485
+
echo " selected";
6486
+
}
6487
+
?>>pl_PL</option>
6488
+
<option value="ru_RU"<?php
6489
+
if ($kw_lang == "ru_RU") {
6490
+
echo " selected";
6491
+
}
6492
+
?>>ru_RU</option>
6493
+
<option value="sv_SE"<?php
6494
+
if ($kw_lang == "sv_SE") {
6495
+
echo " selected";
6496
+
}
6497
+
?>>sv_SE</option>
6498
+
<option value="ckb_IQ"<?php
6499
+
if ($kw_lang == "ckb_IQ") {
6500
+
echo " selected";
6501
+
}
6502
+
?>>ckb_IQ</option>
6503
+
<option value="es_AR"<?php
6504
+
if ($kw_lang == "es_AR") {
6505
+
echo " selected";
6506
+
}
6507
+
?>>es_AR</option>
6508
+
<option value="ta_TA"<?php
6509
+
if ($kw_lang == "ta_TA") {
6510
+
echo " selected";
6511
+
}
6512
+
?>>ta_TA</option>
6513
+
<option value="tr_TR"<?php
6514
+
if ($kw_lang == "tr_TR") {
6515
+
echo " selected";
6516
+
}
6517
+
?>>tr_TR</option>
6518
+
<option value="fa_IR"<?php
6519
+
if ($kw_lang == "fa_IR") {
6520
+
echo " selected";
6521
+
}
6522
+
?>>fa_IR</option>
6523
+
<option value="nl_NL"<?php
6524
+
if ($kw_lang == "nl_NL") {
6525
+
echo " selected";
6526
+
}
6527
+
?>>nl_NL</option>
6528
+
<option value="zh_TW"<?php
6529
+
if ($kw_lang == "zh_TW") {
6530
+
echo " selected";
6531
+
}
6532
+
?>>zh_TW</option>
6533
+
</select>
6534
+
</td>
6535
+
</tr>
6536
+
<tr>
6537
+
<th>
6538
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6539
+
<div class="bws_hidden_help_text cr_min_260px">
6540
+
<?php
6541
+
echo esc_html__("Select in which parts of the posts published on your site do you want to search for related keywords. If you leave this field blank, the default values will be post title and content.", 'aiomatic-automatic-ai-content-writer');
6542
+
?>
6543
+
</div>
6544
+
</div>
6545
+
<b><?php echo esc_html__("Search Keywords For Related Posts, In:", 'aiomatic-automatic-ai-content-writer');?></b>
6546
+
</th>
6547
+
<td>
6548
+
<select multiple id="rel_search" name="aiomatic_Main_Settings[rel_search][]" class="cr_width_full">
6549
+
<option value="post_title"<?php
6550
+
if (in_array("post_title", $rel_search)) {
6551
+
echo " selected";
6552
+
}
6553
+
?>>Post Title</option>
6554
+
<option value="post_content"<?php
6555
+
if (in_array("post_content", $rel_search)) {
6556
+
echo " selected";
6557
+
}
6558
+
?>>Post Content</option>
6559
+
<option value="post_excerpt"<?php
6560
+
if (in_array("post_excerpt", $rel_search)) {
6561
+
echo " selected";
6562
+
}
6563
+
?>>Post Excerpt</option>
6564
+
</select>
6565
+
</td>
6566
+
</tr>
6567
+
</table>
6568
+
</div>
6569
+
<div id="tab-24<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
6570
+
<h3><?php echo esc_html__('YouTube Embeds', 'aiomatic-automatic-ai-content-writer');?></h3>
6571
+
<p class="aiomatic-settings-desc"><?php
6572
+
echo esc_html__("The 'YouTube Embeds Settings' tab allows you to customize and manage the integration of YouTube videos on your WordPress site, providing options for embedding styles and playback controls.", 'aiomatic-automatic-ai-content-writer');
6573
+
?></p>
6574
+
<table class="widefat">
6575
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Embedded YouTube Player Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
6576
+
<tr>
6577
+
<th>
6578
+
<div>
6579
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6580
+
<div class="bws_hidden_help_text cr_min_260px">
6581
+
<?php
6582
+
echo esc_html__("Set the maximum width of the player in pixels. Default value is 580.", 'aiomatic-automatic-ai-content-writer');
6583
+
?>
6584
+
</div>
6585
+
</div>
6586
+
<b><?php echo esc_html__("Player Max Width (Pixels):", 'aiomatic-automatic-ai-content-writer');?></b>
6587
+
</div>
6588
+
</th>
6589
+
<td>
6590
+
<div>
6591
+
<input type="number" id="player_width" step="1" min="0" placeholder="<?php echo esc_html__("580", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[player_width]" value="<?php
6592
+
echo esc_html($player_width);
6593
+
?>" class="cr_width_full"/>
6594
+
</div>
6595
+
</td>
6596
+
</tr>
6597
+
<tr>
6598
+
<th>
6599
+
<div>
6600
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6601
+
<div class="bws_hidden_help_text cr_min_260px">
6602
+
<?php
6603
+
echo esc_html__("Set the maximum height of the player in pixels. Default value is 380.", 'aiomatic-automatic-ai-content-writer');
6604
+
?>
6605
+
</div>
6606
+
</div>
6607
+
<b><?php echo esc_html__("Player Max Height (Pixels):", 'aiomatic-automatic-ai-content-writer');?></b>
6608
+
</div>
6609
+
</th>
6610
+
<td>
6611
+
<div>
6612
+
<input type="number" id="player_height" step="1" min="0" placeholder="<?php echo esc_html__("380", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[player_height]" value="<?php
6613
+
echo esc_html($player_height);
6614
+
?>" class="cr_width_full"/>
6615
+
</div>
6616
+
</td>
6617
+
</tr>
6618
+
<tr>
6619
+
<th>
6620
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6621
+
<div class="bws_hidden_help_text cr_min_260px">
6622
+
<?php
6623
+
echo esc_html__("Check this to enable the AI writer to improve the YouTube video keywords.", 'aiomatic-automatic-ai-content-writer');
6624
+
?>
6625
+
</div>
6626
+
</div>
6627
+
<b><?php echo esc_html__("Improve YouTube Video Search Keywords Using AI:", 'aiomatic-automatic-ai-content-writer');?></b>
6628
+
</th>
6629
+
<td>
6630
+
<label class="aiomatic-switch"><input type="checkbox" id="improve_yt_kw" onchange="ytKwChanged();" name="aiomatic_Main_Settings[improve_yt_kw]"<?php
6631
+
if ($improve_yt_kw == 'on')
6632
+
echo ' checked ';
6633
+
?>><span class="aiomatic-slider round"></span></label>
6634
+
</td>
6635
+
</tr>
6636
+
<tr class="hideytkw">
6637
+
<th class="cr_min_width_200">
6638
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6639
+
<div class="bws_hidden_help_text cr_min_260px">
6640
+
<?php
6641
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
6642
+
?>
6643
+
</div>
6644
+
</div>
6645
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
6646
+
</th>
6647
+
<td><select id="yt_assistant_id" name="aiomatic_Main_Settings[yt_assistant_id]" class="cr_width_full" onchange="assistantSelected('yt_assistant_id', 'disableYt');">
6648
+
<?php
6649
+
if($all_assistants === false)
6650
+
{
6651
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
6652
+
}
6653
+
else
6654
+
{
6655
+
if(count($all_assistants) == 0)
6656
+
{
6657
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
6658
+
}
6659
+
else
6660
+
{
6661
+
echo '<option value=""';
6662
+
if($yt_assistant_id == '')
6663
+
{
6664
+
echo ' selected';
6665
+
}
6666
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
6667
+
foreach($all_assistants as $myassistant)
6668
+
{
6669
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
6670
+
if($yt_assistant_id == $myassistant->ID)
6671
+
{
6672
+
echo ' selected';
6673
+
}
6674
+
echo '>' . esc_html($myassistant->post_title);
6675
+
echo '</option>';
6676
+
}
6677
+
}
6678
+
}
6679
+
?>
6680
+
</select>
6681
+
</td>
6682
+
</tr>
6683
+
<tr class="hideytkw">
6684
+
<th>
6685
+
<div>
6686
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6687
+
<div class="bws_hidden_help_text cr_min_260px">
6688
+
<?php
6689
+
echo esc_html__("Select the default model you want to use for the YouTube Video search keyword extractor prompt.", 'aiomatic-automatic-ai-content-writer');
6690
+
?>
6691
+
</div>
6692
+
</div>
6693
+
<b><?php echo esc_html__("YouTube Video Search Keyword Extractor Model:", 'aiomatic-automatic-ai-content-writer');?></b>
6694
+
</div>
6695
+
</th>
6696
+
<td>
6697
+
<div>
6698
+
<select id="yt_kw_model" name="aiomatic_Main_Settings[yt_kw_model]" <?php if($yt_assistant_id != ''){echo ' disabled';}?> class="disableYt cr_width_full">
6699
+
<?php
6700
+
foreach($all_models as $modelx)
6701
+
{
6702
+
echo '<option value="' . esc_html($modelx) .'"';
6703
+
if ($yt_kw_model == $modelx)
6704
+
{
6705
+
echo " selected";
6706
+
}
6707
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
6708
+
}
6709
+
?>
6710
+
</select>
6711
+
</div>
6712
+
</td>
6713
+
</tr>
6714
+
<tr class="hideytkw">
6715
+
<th class="cr_min_width_200">
6716
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6717
+
<div class="bws_hidden_help_text cr_min_260px">
6718
+
<?php
6719
+
echo esc_html__("Set the prompt to be used for the YouTube Video search keyword extractor. You can use the following shortcode: %%aiomatic_query%% - The default value for this settings field is: Using which keyword or search phrase should I search YouTube, to get the most relevant videos for this text? Provide a single variant, write only a single keyword or phrase, nothing else. The text is: \"%%aiomatic_query%%\"", 'aiomatic-automatic-ai-content-writer');
6720
+
?>
6721
+
</div>
6722
+
</div>
6723
+
<b><?php echo esc_html__("YouTube Video Search Keyword Extractor Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
6724
+
</th>
6725
+
<td>
6726
+
<textarea name="aiomatic_Main_Settings[yt_kw_prompt]" placeholder="YouTube Video Search Keyword Extractor Prompt" class="cr_width_full"><?php echo esc_textarea($yt_kw_prompt);?></textarea>
6727
+
</td>
6728
+
</tr>
6729
+
<tr class="hideytkw">
6730
+
<th class="cr_min_width_200">
6731
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6732
+
<div class="bws_hidden_help_text cr_min_260px">
6733
+
<?php
6734
+
echo esc_html__("Set the prompt to be used for the Instagram hashtag extractor. You can use the following shortcode: %%aiomatic_query%% - The default value for this settings field is: Using which keyword or search phrase should I search YouTube, to get the most relevant videos for this text? Provide a single variant, write only a single keyword or phrase, nothing else. The text is: \"%%aiomatic_query%%\"", 'aiomatic-automatic-ai-content-writer');
6735
+
?>
6736
+
</div>
6737
+
</div>
6738
+
<b><?php echo esc_html__("Instagram Search Hashtag Extractor Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
6739
+
</th>
6740
+
<td>
6741
+
<textarea name="aiomatic_Main_Settings[insta_kw_prompt]" placeholder="Instagram Hashtag Keyword Extractor Prompt" class="cr_width_full"><?php echo esc_textarea($insta_kw_prompt);?></textarea>
6742
+
</td>
6743
+
</tr>
6744
+
</table>
6745
+
</div>
6746
+
<div id="tab-25<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
6747
+
<h3><?php echo esc_html__('WP-CLI', 'aiomatic-automatic-ai-content-writer');?></h3>
6748
+
<p class="aiomatic-settings-desc"><?php
6749
+
echo esc_html__("The 'WP-CLI Settings' tab offers configuration options for the WP-CLI, allowing you to customize command-line interactions and automate AI generated content tasks within your WordPress site.", 'aiomatic-automatic-ai-content-writer');
6750
+
?></p>
6751
+
<table class="widefat">
6752
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("WP-CLI Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
6753
+
<tr>
6754
+
<th>
6755
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6756
+
<div class="bws_hidden_help_text cr_min_260px">
6757
+
<?php
6758
+
echo esc_html__("Do you want to enable Aimogen's WP-CLI Integration?", 'aiomatic-automatic-ai-content-writer');
6759
+
?>
6760
+
</div>
6761
+
</div>
6762
+
<b><?php echo esc_html__("Enable Aimogen WP-CLI Integration:", 'aiomatic-automatic-ai-content-writer');?></b>
6763
+
</th>
6764
+
<td>
6765
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_wpcli" name="aiomatic_Main_Settings[enable_wpcli]"<?php
6766
+
if ($enable_wpcli == 'on')
6767
+
echo ' checked ';
6768
+
?>><span class="aiomatic-slider round"></span></label>
6769
+
</td>
6770
+
</tr>
6771
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Available WP-CLI Commands:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
6772
+
<tr><td class="coderevolution_block_input" colspan="2">
6773
+
<ul>
6774
+
<li><strong>wp aicontent <aimodel> <aiprompt></strong> - generates AI content using the <aimodel> model and the <aiprompt> prompt
6775
+
</li><li><strong>wp aiomatic-edit <post_id_list> <editing_template_ID></strong> - runs the AI Content Editor for the comma separated list of post IDs defined in the <post_id_list> parameter and using the post editing template ID defined in the <editing_template_ID> parameter (optional)
6776
+
</li><li><strong>wp aiomatic-run <rule_type> <rule_id></strong> - runs a Bulk AI Post Creator rule or an OmniBlock rule, using its ID. Rule type can be: 0 - Keywords/Titles To Blog Posts, 1 - YouTube Videos To Posts, 2 - Amazon Product Roundup, 3 - Amazon Product Reviews, 4 - CSV AI Post Creator, 5 - OmniBlocks. Separate multiple rule IDs in rule_id using commas. Usage: <rule_type> <rule_id></li>
6777
+
</ul>
6778
+
</td></tr>
6779
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
6780
+
?>
6781
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Aimogen WP-CLI Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
6782
+
<tr><td class="coderevolution_block_input" colspan="2">
6783
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/V3AZxQM9irg" allowfullscreen></iframe><br/>
6784
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/Biysignqrkk" allowfullscreen></iframe>
6785
+
</td></tr>
6786
+
<?php
6787
+
}
6788
+
?>
6789
+
</table>
6790
+
</div>
6791
+
<div id="tab-34<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
6792
+
<h3><?php echo esc_html__('AI Content Undetectability Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
6793
+
<p class="aiomatic-settings-desc"><?php
6794
+
echo esc_html__("Select which methods you want to enable to trick AI detectors.", 'aiomatic-automatic-ai-content-writer');
6795
+
?></p>
6796
+
<table class="widefat">
6797
+
<tr>
6798
+
<th>
6799
+
<div>
6800
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6801
+
<div class="bws_hidden_help_text cr_min_260px">
6802
+
<?php
6803
+
echo esc_html__("Do you want to disable the AI content detector fooling method of the plugin? This will leave the AI content as it is, in an unchanged form.", 'aiomatic-automatic-ai-content-writer');
6804
+
?>
6805
+
</div>
6806
+
</div>
6807
+
<b><?php echo esc_html__("Don't Try To Fool AI Detectors (Disable Content Tricks):", 'aiomatic-automatic-ai-content-writer');?></b>
6808
+
</div>
6809
+
</th>
6810
+
<td>
6811
+
<div>
6812
+
<label class="aiomatic-switch"><input type="checkbox" onchange="detectabilityChanged();" id="no_undetectibility" name="aiomatic_Main_Settings[no_undetectibility]"<?php
6813
+
if ($no_undetectibility == 'on')
6814
+
echo ' checked ';
6815
+
?>><span class="aiomatic-slider round"></span></label>
6816
+
</div>
6817
+
</td>
6818
+
</tr>
6819
+
<tr><td colspan="2"><hr/></td></tr>
6820
+
<tr class="hideDetectability">
6821
+
<th>
6822
+
<div>
6823
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6824
+
<div class="bws_hidden_help_text cr_min_260px">
6825
+
<?php
6826
+
echo esc_html__("Do you want to disable the AI content detector fooling method for Single AI Post Creator?", 'aiomatic-automatic-ai-content-writer');
6827
+
?>
6828
+
</div>
6829
+
</div>
6830
+
<b><?php echo esc_html__("Disable For Single Post Creator:", 'aiomatic-automatic-ai-content-writer');?></b>
6831
+
</div>
6832
+
</th>
6833
+
<td>
6834
+
<div>
6835
+
<label class="aiomatic-switch"><input type="checkbox" id="no_undetectibility_single" name="aiomatic_Main_Settings[no_undetectibility_single]"<?php
6836
+
if ($no_undetectibility_single == 'on')
6837
+
echo ' checked ';
6838
+
?>><span class="aiomatic-slider round"></span></label>
6839
+
</div>
6840
+
</td>
6841
+
</tr>
6842
+
<tr class="hideDetectability">
6843
+
<th>
6844
+
<div>
6845
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6846
+
<div class="bws_hidden_help_text cr_min_260px">
6847
+
<?php
6848
+
echo esc_html__("Do you want to disable the AI content detector fooling method for the Bulk AI Post Creators?", 'aiomatic-automatic-ai-content-writer');
6849
+
?>
6850
+
</div>
6851
+
</div>
6852
+
<b><?php echo esc_html__("Disable For Bulk AI Post Creators:", 'aiomatic-automatic-ai-content-writer');?></b>
6853
+
</div>
6854
+
</th>
6855
+
<td>
6856
+
<div>
6857
+
<label class="aiomatic-switch"><input type="checkbox" id="no_undetectibility_bulk" name="aiomatic_Main_Settings[no_undetectibility_bulk]"<?php
6858
+
if ($no_undetectibility_bulk == 'on')
6859
+
echo ' checked ';
6860
+
?>><span class="aiomatic-slider round"></span></label>
6861
+
</div>
6862
+
</td>
6863
+
</tr>
6864
+
<tr class="hideDetectability">
6865
+
<th>
6866
+
<div>
6867
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6868
+
<div class="bws_hidden_help_text cr_min_260px">
6869
+
<?php
6870
+
echo esc_html__("Do you want to disable the AI content detector fooling method for OmniBlocks Post Creator block?", 'aiomatic-automatic-ai-content-writer');
6871
+
?>
6872
+
</div>
6873
+
</div>
6874
+
<b><?php echo esc_html__("Disable For OmniBlocks:", 'aiomatic-automatic-ai-content-writer');?></b>
6875
+
</div>
6876
+
</th>
6877
+
<td>
6878
+
<div>
6879
+
<label class="aiomatic-switch"><input type="checkbox" id="no_undetectibility_omni" name="aiomatic_Main_Settings[no_undetectibility_omni]"<?php
6880
+
if ($no_undetectibility_omni == 'on')
6881
+
echo ' checked ';
6882
+
?>><span class="aiomatic-slider round"></span></label>
6883
+
</div>
6884
+
</td>
6885
+
</tr>
6886
+
<tr class="hideDetectability">
6887
+
<th>
6888
+
<div>
6889
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6890
+
<div class="bws_hidden_help_text cr_min_260px">
6891
+
<?php
6892
+
echo esc_html__("Do you want to disable the AI content detector fooling method for the AI Content Editor?", 'aiomatic-automatic-ai-content-writer');
6893
+
?>
6894
+
</div>
6895
+
</div>
6896
+
<b><?php echo esc_html__("Disable For AI Content Editor:", 'aiomatic-automatic-ai-content-writer');?></b>
6897
+
</div>
6898
+
</th>
6899
+
<td>
6900
+
<div>
6901
+
<label class="aiomatic-switch"><input type="checkbox" id="no_undetectibility_editor" name="aiomatic_Main_Settings[no_undetectibility_editor]"<?php
6902
+
if ($no_undetectibility_editor == 'on')
6903
+
echo ' checked ';
6904
+
?>><span class="aiomatic-slider round"></span></label>
6905
+
</div>
6906
+
</td>
6907
+
</tr>
6908
+
<tr class="hideDetectability"><td colspan="2"><hr/></td></tr>
6909
+
<tr class="hideDetectability">
6910
+
<th>
6911
+
<div>
6912
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6913
+
<div class="bws_hidden_help_text cr_min_260px">
6914
+
<?php
6915
+
echo esc_html__("Do you want to disable the addition of random typing errors from the AI generated texts?", 'aiomatic-automatic-ai-content-writer');
6916
+
?>
6917
+
</div>
6918
+
</div>
6919
+
<b><?php echo esc_html__("Disable Random Typing Errors In Text:", 'aiomatic-automatic-ai-content-writer');?></b>
6920
+
</div>
6921
+
</th>
6922
+
<td>
6923
+
<div>
6924
+
<label class="aiomatic-switch"><input type="checkbox" id="no_typing_error" name="aiomatic_Main_Settings[no_typing_error]"<?php
6925
+
if ($no_typing_error == 'on')
6926
+
echo ' checked ';
6927
+
?>><span class="aiomatic-slider round"></span></label>
6928
+
</div>
6929
+
</td>
6930
+
</tr>
6931
+
<tr class="hideDetectability">
6932
+
<th>
6933
+
<div>
6934
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6935
+
<div class="bws_hidden_help_text cr_min_260px">
6936
+
<?php
6937
+
echo esc_html__("Do you want to disable the replacing of common words with synonyms and phrases from the AI generated texts?", 'aiomatic-automatic-ai-content-writer');
6938
+
?>
6939
+
</div>
6940
+
</div>
6941
+
<b><?php echo esc_html__("Disable Common Synonym And Phrase Replacements:", 'aiomatic-automatic-ai-content-writer');?></b>
6942
+
</div>
6943
+
</th>
6944
+
<td>
6945
+
<div>
6946
+
<label class="aiomatic-switch"><input type="checkbox" id="no_synonym" name="aiomatic_Main_Settings[no_synonym]"<?php
6947
+
if ($no_synonym == 'on')
6948
+
echo ' checked ';
6949
+
?>><span class="aiomatic-slider round"></span></label>
6950
+
</div>
6951
+
</td>
6952
+
</tr>
6953
+
<tr class="hideDetectability">
6954
+
<th>
6955
+
<div>
6956
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6957
+
<div class="bws_hidden_help_text cr_min_260px">
6958
+
<?php
6959
+
echo esc_html__("Do you want to disable the removal of common parasite phrases from the AI generated texts?", 'aiomatic-automatic-ai-content-writer');
6960
+
?>
6961
+
</div>
6962
+
</div>
6963
+
<b><?php echo esc_html__("Disable Parasite Phrases Removal:", 'aiomatic-automatic-ai-content-writer');?></b>
6964
+
</div>
6965
+
</th>
6966
+
<td>
6967
+
<div>
6968
+
<label class="aiomatic-switch"><input type="checkbox" id="no_parasite" name="aiomatic_Main_Settings[no_parasite]"<?php
6969
+
if ($no_parasite == 'on')
6970
+
echo ' checked ';
6971
+
?>><span class="aiomatic-slider round"></span></label>
6972
+
</div>
6973
+
</td>
6974
+
</tr>
6975
+
<tr class="hideDetectability">
6976
+
<th>
6977
+
<div>
6978
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6979
+
<div class="bws_hidden_help_text cr_min_260px">
6980
+
<?php
6981
+
echo esc_html__("Do you want to disable the exchange of words with their regional variants from the AI generated texts?", 'aiomatic-automatic-ai-content-writer');
6982
+
?>
6983
+
</div>
6984
+
</div>
6985
+
<b><?php echo esc_html__("Disable Word Regional Variant Replacement:", 'aiomatic-automatic-ai-content-writer');?></b>
6986
+
</div>
6987
+
</th>
6988
+
<td>
6989
+
<div>
6990
+
<label class="aiomatic-switch"><input type="checkbox" id="no_regional" name="aiomatic_Main_Settings[no_regional]"<?php
6991
+
if ($no_regional == 'on')
6992
+
echo ' checked ';
6993
+
?>><span class="aiomatic-slider round"></span></label>
6994
+
</div>
6995
+
</td>
6996
+
</tr>
6997
+
<tr class="hideDetectability">
6998
+
<th>
6999
+
<div>
7000
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7001
+
<div class="bws_hidden_help_text cr_min_260px">
7002
+
<?php
7003
+
echo esc_html__("Do you want to disable the addition of some additional characters to the AI generated texts?", 'aiomatic-automatic-ai-content-writer');
7004
+
?>
7005
+
</div>
7006
+
</div>
7007
+
<b><?php echo esc_html__("Disable Additional Characters:", 'aiomatic-automatic-ai-content-writer');?></b>
7008
+
</div>
7009
+
</th>
7010
+
<td>
7011
+
<div>
7012
+
<label class="aiomatic-switch"><input type="checkbox" id="no_add_chars" name="aiomatic_Main_Settings[no_add_chars]"<?php
7013
+
if ($no_add_chars == 'on')
7014
+
echo ' checked ';
7015
+
?>><span class="aiomatic-slider round"></span></label>
7016
+
</div>
7017
+
</td>
7018
+
</tr>
7019
+
</table>
7020
+
</div>
7021
+
<div id="tab-33<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
7022
+
<h3><?php echo esc_html__('REST API', 'aiomatic-automatic-ai-content-writer');?></h3>
7023
+
<p class="aiomatic-settings-desc"><?php
7024
+
echo esc_html__("The 'REST API Settings' tab offers configuration options for the REST API which can be provided by Aimogen.", 'aiomatic-automatic-ai-content-writer');
7025
+
?></p>
7026
+
<table class="widefat">
7027
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("REST API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7028
+
<tr>
7029
+
<th>
7030
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7031
+
<div class="bws_hidden_help_text cr_min_260px">
7032
+
<?php
7033
+
echo esc_html__("Do you want to enable Aimogen's REST API Feature?", 'aiomatic-automatic-ai-content-writer');
7034
+
?>
7035
+
</div>
7036
+
</div>
7037
+
<b><?php echo esc_html__("Enable Aimogen REST API Feature:", 'aiomatic-automatic-ai-content-writer');?></b>
7038
+
</th>
7039
+
<td>
7040
+
<label class="aiomatic-switch"><input type="checkbox" id="rest_api_init" name="aiomatic_Main_Settings[rest_api_init]"<?php
7041
+
if ($rest_api_init == 'on')
7042
+
echo ' checked ';
7043
+
?>><span class="aiomatic-slider round"></span></label>
7044
+
</td>
7045
+
</tr>
7046
+
<tr>
7047
+
<th class="cr_min_width_200">
7048
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7049
+
<div class="bws_hidden_help_text cr_min_260px">
7050
+
<?php
7051
+
echo esc_html__("Set a list of private API keys (one per line), which will be used to allow access to the API provided by the plugin. If you leave this field blank, the API will be able to be called without an API key. If you set API keys here, they need to be added in the API request in this format: ?apikey=YOURKEY", 'aiomatic-automatic-ai-content-writer');
7052
+
?>
7053
+
</div>
7054
+
</div>
7055
+
<b><?php echo esc_html__("API Key List:", 'aiomatic-automatic-ai-content-writer');?></b>
7056
+
</th>
7057
+
<td>
7058
+
<textarea name="aiomatic_Main_Settings[rest_api_keys]" placeholder="API Key List" class="cr_width_full"><?php echo esc_textarea($rest_api_keys);?></textarea>
7059
+
</td>
7060
+
</tr>
7061
+
<tr>
7062
+
<th class="cr_min_width_200">
7063
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7064
+
<div class="bws_hidden_help_text cr_min_260px">
7065
+
<?php
7066
+
echo esc_html__("Set a list of bearer tokens (one per line), which will be used to allow access to the API provided by the plugin. If you leave this field blank, the API will be able to be called without a bearer token.", 'aiomatic-automatic-ai-content-writer');
7067
+
?>
7068
+
</div>
7069
+
</div>
7070
+
<b><?php echo esc_html__("Bearer Token List:", 'aiomatic-automatic-ai-content-writer');?></b>
7071
+
</th>
7072
+
<td>
7073
+
<textarea name="aiomatic_Main_Settings[rest_api_bearer]" placeholder="Bearer Token List" class="cr_width_full"><?php echo esc_textarea($rest_api_bearer);?></textarea>
7074
+
</td>
7075
+
</tr>
7076
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
7077
+
?>
7078
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Aimogen REST API Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7079
+
<tr><td class="coderevolution_block_input" colspan="2">
7080
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/XobHHz5bLos" allowfullscreen></iframe>
7081
+
</td></tr>
7082
+
<?php
7083
+
}
7084
+
?>
7085
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Aimogen REST API Documentation:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7086
+
<tr><td colspan="2">
7087
+
<p><?php echo esc_html__("The REST API enables integration with automation platforms and external applications. Use it with Make.com, n8n, Zapier, or any platform that supports REST APIs to automate AI workflows and connect your WordPress site with other services. This documentation provides details about the Aimogen REST API endpoints and how to use them.", 'aiomatic-automatic-ai-content-writer');?></p>
7088
+
7089
+
<div class="endpoint">
7090
+
<h2><?php echo esc_html__("Generate Image Endpoint", 'aiomatic-automatic-ai-content-writer');?></h2>
7091
+
<p><code><?php echo esc_url(get_rest_url());?>aiomatic/v1/image</code></p>
7092
+
7093
+
<h4><?php echo esc_html__("Methods", 'aiomatic-automatic-ai-content-writer');?></h4>
7094
+
<p><?php echo esc_html__("Supported methods:", 'aiomatic-automatic-ai-content-writer');?> <code>GET</code>, <code>POST</code></p>
7095
+
7096
+
<h4><?php echo esc_html__("Parameters", 'aiomatic-automatic-ai-content-writer');?></h4>
7097
+
<ul>
7098
+
<li><strong><?php echo esc_html__("apikey", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required if set in plugin settings): The API key for authentication.", 'aiomatic-automatic-ai-content-writer');?></li>
7099
+
<li><strong><?php echo esc_html__("prompt", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required): The prompt text for image generation.", 'aiomatic-automatic-ai-content-writer');?></li>
7100
+
<li><strong><?php echo esc_html__("model", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(optional): The model to be used for image generation. Supported models are: dalle2, dalle3, dalle3hd, gpt-image-1, gpt-image-1-mini, gpt-image-1.5, chatgpt-image-latest", 'aiomatic-automatic-ai-content-writer');?></li>
7101
+
<li><strong><?php echo esc_html__("assistant", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(optional): An alternative to the model parameter. Enter the assistant ID returned by the Assistants Listing endpoint.", 'aiomatic-automatic-ai-content-writer');?></li>
7102
+
</ul>
7103
+
7104
+
<h4><?php echo esc_html__("Example Request", 'aiomatic-automatic-ai-content-writer');?></h4>
7105
+
<pre><code>GET <?php echo esc_url(get_rest_url());?>aiomatic/v1/image?apikey=YOUR_API_KEY&prompt=Generate+an+image+of+a+sunset</code></pre>
7106
+
<pre><code>POST <?php echo esc_url(get_rest_url());?>aiomatic/v1/image
7107
+
Content-Type: application/json
7108
+
7109
+
{
7110
+
"apikey": "YOUR_API_KEY",
7111
+
"prompt": "Generate an image of a sunset",
7112
+
"model": "dalle3"
7113
+
}</code></pre>
7114
+
7115
+
<h4><?php echo esc_html__("Example Response", 'aiomatic-automatic-ai-content-writer');?></h4>
7116
+
<pre><code>{
7117
+
"success": true,
7118
+
"image_url": "http://example.com/generated_image.jpg"
7119
+
}</code></pre>
7120
+
7121
+
<h4><?php echo esc_html__("Error Responses", 'aiomatic-automatic-ai-content-writer');?></h4>
7122
+
<pre><code>{
7123
+
"success": false,
7124
+
"error": "You need to specify an API key for this request"
7125
+
}</code></pre>
7126
+
</div>
7127
+
<div class="endpoint">
7128
+
<h2><?php echo esc_html__("Generate Embedding Endpoint", 'aiomatic-automatic-ai-content-writer');?></h2>
7129
+
<h4><?php echo esc_html__("Endpoint", 'aiomatic-automatic-ai-content-writer');?></h4>
7130
+
<p><code><?php echo esc_url(get_rest_url());?>aiomatic/v1/embeddings</code></p>
7131
+
7132
+
<h4><?php echo esc_html__("Methods", 'aiomatic-automatic-ai-content-writer');?></h4>
7133
+
<p><?php echo esc_html__("Supported methods:", 'aiomatic-automatic-ai-content-writer');?> <code>GET</code>, <code>POST</code></p>
7134
+
7135
+
<h4><?php echo esc_html__("Parameters", 'aiomatic-automatic-ai-content-writer');?></h4>
7136
+
<ul>
7137
+
<li><strong><?php echo esc_html__("apikey", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required if set in plugin settings): The API key for authentication.", 'aiomatic-automatic-ai-content-writer');?></li>
7138
+
<li><strong><?php echo esc_html__("prompt", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required): The prompt text for generating embeddings.", 'aiomatic-automatic-ai-content-writer');?></li>
7139
+
<li><strong><?php echo esc_html__("model", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(optional): The model to be used for generating embeddings.", 'aiomatic-automatic-ai-content-writer');?></li>
7140
+
</ul>
7141
+
7142
+
<h4><?php echo esc_html__("Example Request", 'aiomatic-automatic-ai-content-writer');?></h4>
7143
+
<pre><code>GET <?php echo esc_url(get_rest_url());?>aiomatic/v1/embeddings?apikey=YOUR_API_KEY&prompt=Generate+an+embedding+for+this+text&model=text-embedding-3-small</code></pre>
7144
+
<pre><code>POST <?php echo esc_url(get_rest_url());?>aiomatic/v1/embeddings
7145
+
Content-Type: application/json
7146
+
7147
+
{
7148
+
"apikey": "YOUR_API_KEY",
7149
+
"prompt": "Generate an embedding for this text",
7150
+
"model": "text-embedding-3-small"
7151
+
}</code></pre>
7152
+
7153
+
<h4><?php echo esc_html__("Example Response", 'aiomatic-automatic-ai-content-writer');?></h4>
7154
+
<pre><code>{
7155
+
"success": true,
7156
+
"embedding": [...]
7157
+
}</code></pre>
7158
+
7159
+
<h4><?php echo esc_html__("Error Responses", 'aiomatic-automatic-ai-content-writer');?></h4>
7160
+
<pre><code>{
7161
+
"success": false,
7162
+
"error": "You need to specify an API key for this request"
7163
+
}</code></pre>
7164
+
</div>
7165
+
<div class="endpoint">
7166
+
<h2><?php echo esc_html__("Generate Text Endpoint", 'aiomatic-automatic-ai-content-writer');?></h2>
7167
+
<h4><?php echo esc_html__("Endpoint", 'aiomatic-automatic-ai-content-writer');?></h4>
7168
+
<p><code><?php echo esc_url(get_rest_url());?>aiomatic/v1/text</code></p>
7169
+
7170
+
<h4><?php echo esc_html__("Methods", 'aiomatic-automatic-ai-content-writer');?></h4>
7171
+
<p><?php echo esc_html__("Supported methods:", 'aiomatic-automatic-ai-content-writer');?> <code>GET</code>, <code>POST</code></p>
7172
+
7173
+
<h4><?php echo esc_html__("Parameters", 'aiomatic-automatic-ai-content-writer');?></h4>
7174
+
<ul>
7175
+
<li><strong><?php echo esc_html__("apikey", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required if set in plugin settings): The API key for authentication.", 'aiomatic-automatic-ai-content-writer');?></li>
7176
+
<li><strong><?php echo esc_html__("prompt", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required): The prompt text for generating AI content.", 'aiomatic-automatic-ai-content-writer');?></li>
7177
+
<li><strong><?php echo esc_html__("model", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(optional): The model to be used for generating text.", 'aiomatic-automatic-ai-content-writer');?></li>
7178
+
<li><strong><?php echo esc_html__("assistant", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(optional): An alternative to the model parameter.", 'aiomatic-automatic-ai-content-writer');?></li>
7179
+
</ul>
7180
+
7181
+
<h4><?php echo esc_html__("Example Request", 'aiomatic-automatic-ai-content-writer');?></h4>
7182
+
<pre><code>GET <?php echo esc_url(get_rest_url());?>aiomatic/v1/text?apikey=YOUR_API_KEY&prompt=Generate+text+based+on+this+prompt&model=gpt-4.1-mini</code></pre>
7183
+
<pre><code>POST <?php echo esc_url(get_rest_url());?>aiomatic/v1/text
7184
+
Content-Type: application/json
7185
+
7186
+
{
7187
+
"apikey": "YOUR_API_KEY",
7188
+
"prompt": "Generate text based on this prompt",
7189
+
"model": "gpt-4.1-mini"
7190
+
}</code></pre>
7191
+
7192
+
<h4><?php echo esc_html__("Example Response", 'aiomatic-automatic-ai-content-writer');?></h4>
7193
+
<pre><code>{
7194
+
"success": true,
7195
+
"data": "Generated text based on the provided prompt...",
7196
+
"input_tokens": "Input token count (numeric)",
7197
+
"output_tokens": "Output token count (numeric)"
7198
+
}</code></pre>
7199
+
7200
+
<h4><?php echo esc_html__("Error Responses", 'aiomatic-automatic-ai-content-writer');?></h4>
7201
+
<pre><code>{
7202
+
"success": false,
7203
+
"error": "You need to specify an API key for this request"
7204
+
}</code></pre>
7205
+
</div>
7206
+
<div class="endpoint">
7207
+
<h2><?php echo esc_html__("List AI Assistants Endpoint", 'aiomatic-automatic-ai-content-writer');?></h2>
7208
+
<h4><?php echo esc_html__("Endpoint", 'aiomatic-automatic-ai-content-writer');?></h4>
7209
+
<p><code><?php echo esc_url(get_rest_url());?>aiomatic/v1/assistants</code></p>
7210
+
7211
+
<h4><?php echo esc_html__("Methods", 'aiomatic-automatic-ai-content-writer');?></h4>
7212
+
<p><?php echo esc_html__("Supported methods:", 'aiomatic-automatic-ai-content-writer');?> <code>GET</code>, <code>POST</code></p>
7213
+
7214
+
<h4><?php echo esc_html__("Parameters", 'aiomatic-automatic-ai-content-writer');?></h4>
7215
+
<ul>
7216
+
<li><strong><?php echo esc_html__("apikey", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required if set in plugin settings): The API key for authentication.", 'aiomatic-automatic-ai-content-writer');?></li>
7217
+
</ul>
7218
+
7219
+
<h4><?php echo esc_html__("Example Request", 'aiomatic-automatic-ai-content-writer');?></h4>
7220
+
<pre><code>GET <?php echo esc_url(get_rest_url());?>aiomatic/v1/assistants?apikey=YOUR_API_KEY</code></pre>
7221
+
<pre><code>POST <?php echo esc_url(get_rest_url());?>aiomatic/v1/assistants
7222
+
Content-Type: application/json
7223
+
7224
+
{
7225
+
"apikey": "YOUR_API_KEY"
7226
+
}</code></pre>
7227
+
7228
+
<h4><?php echo esc_html__("Example Response", 'aiomatic-automatic-ai-content-writer');?></h4>
7229
+
<pre><code>{
7230
+
"success": true,
7231
+
"assistants": {
7232
+
"Assistant ID 1": "Assistant Name 1",
7233
+
"Assistant ID 2": "Assistant Name 2"
7234
+
}
7235
+
}</code></pre>
7236
+
7237
+
<h4><?php echo esc_html__("Error Responses", 'aiomatic-automatic-ai-content-writer');?></h4>
7238
+
<pre><code>{
7239
+
"success": false,
7240
+
"error": "You need to specify an API key for this request"
7241
+
}</code></pre>
7242
+
</div>
7243
+
<div class="endpoint">
7244
+
<h2><?php echo esc_html__("List AI Models Endpoint", 'aiomatic-automatic-ai-content-writer');?></h2>
7245
+
<h4><?php echo esc_html__("Endpoint", 'aiomatic-automatic-ai-content-writer');?></h4>
7246
+
<p><code><?php echo esc_url(get_rest_url());?>aiomatic/v1/models</code></p>
7247
+
7248
+
<h4><?php echo esc_html__("Methods", 'aiomatic-automatic-ai-content-writer');?></h4>
7249
+
<p><?php echo esc_html__("Supported methods:", 'aiomatic-automatic-ai-content-writer');?> <code>GET</code>, <code>POST</code></p>
7250
+
7251
+
<h4><?php echo esc_html__("Parameters", 'aiomatic-automatic-ai-content-writer');?></h4>
7252
+
<ul>
7253
+
<li><strong><?php echo esc_html__("apikey", 'aiomatic-automatic-ai-content-writer');?></strong> <?php echo esc_html__("(required if set in plugin settings): The API key for authentication.", 'aiomatic-automatic-ai-content-writer');?></li>
7254
+
</ul>
7255
+
7256
+
<h4><?php echo esc_html__("Example Request", 'aiomatic-automatic-ai-content-writer');?></h4>
7257
+
<pre><code>GET <?php echo esc_url(get_rest_url());?>aiomatic/v1/models?apikey=YOUR_API_KEY</code></pre>
7258
+
<pre><code>POST <?php echo esc_url(get_rest_url());?>aiomatic/v1/models
7259
+
Content-Type: application/json
7260
+
7261
+
{
7262
+
"apikey": "YOUR_API_KEY"
7263
+
}</code></pre>
7264
+
7265
+
<h4><?php echo esc_html__("Example Response", 'aiomatic-automatic-ai-content-writer');?></h4>
7266
+
<pre><code>{
7267
+
"success": true,
7268
+
"models": [
7269
+
"gpt-4.1-mini",
7270
+
"gpt-4-turbo"
7271
+
]
7272
+
}</code></pre>
7273
+
7274
+
<h4><?php echo esc_html__("Error Responses", 'aiomatic-automatic-ai-content-writer');?></h4>
7275
+
<pre><code>{
7276
+
"success": false,
7277
+
"error": "You need to specify an API key for this request"
7278
+
}</code></pre>
7279
+
</div>
7280
+
</td></tr>
7281
+
</table>
7282
+
</div>
7283
+
<div id="tab-27<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
7284
+
<h3><?php echo esc_html__('AI Writer', 'aiomatic-automatic-ai-content-writer');?></h3>
7285
+
<p class="aiomatic-settings-desc"><?php
7286
+
echo esc_html__("The 'AI Writer Default Settings' tab allows you to set and adjust the default parameters for the AI content generation tools, ensuring consistency and alignment with your WordPress site's style and tone.", 'aiomatic-automatic-ai-content-writer');
7287
+
?></p>
7288
+
<table class="widefat">
7289
+
<tr class="aiomatic-title-holder"><td><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Post Writer Default Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7290
+
<tr>
7291
+
<th class="cr_min_width_200">
7292
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7293
+
<div class="bws_hidden_help_text cr_min_260px">
7294
+
<?php
7295
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
7296
+
?>
7297
+
</div>
7298
+
</div>
7299
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
7300
+
</th>
7301
+
<td><select id="writer_assistant_id" name="aiomatic_Main_Settings[writer_assistant_id]" class="cr_width_full" onchange="assistantSelected('writer_assistant_id', 'disableWriter');">
7302
+
<?php
7303
+
if($all_assistants === false)
7304
+
{
7305
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
7306
+
}
7307
+
else
7308
+
{
7309
+
if(count($all_assistants) == 0)
7310
+
{
7311
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
7312
+
}
7313
+
else
7314
+
{
7315
+
echo '<option value=""';
7316
+
if($writer_assistant_id == '')
7317
+
{
7318
+
echo ' selected';
7319
+
}
7320
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
7321
+
foreach($all_assistants as $myassistant)
7322
+
{
7323
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
7324
+
if($writer_assistant_id == $myassistant->ID)
7325
+
{
7326
+
echo ' selected';
7327
+
}
7328
+
echo '>' . esc_html($myassistant->post_title);
7329
+
echo '</option>';
7330
+
}
7331
+
}
7332
+
}
7333
+
?>
7334
+
</select>
7335
+
</td>
7336
+
</tr>
7337
+
<tr>
7338
+
<th>
7339
+
<div>
7340
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7341
+
<div class="bws_hidden_help_text cr_min_260px">
7342
+
<?php
7343
+
echo esc_html__("Select the default model you want to use for the AI writer functionality of the plugin.", 'aiomatic-automatic-ai-content-writer');
7344
+
?>
7345
+
</div>
7346
+
</div>
7347
+
<b><?php echo esc_html__("AI Post Writer Default Model:", 'aiomatic-automatic-ai-content-writer');?></b>
7348
+
</div>
7349
+
</th>
7350
+
<td>
7351
+
<div>
7352
+
<select id="ai_writer_model" name="aiomatic_Main_Settings[ai_writer_model]" <?php if($writer_assistant_id != ''){echo ' disabled';}?> class="disableWriter cr_width_full">
7353
+
<?php
7354
+
foreach($all_models as $modelx)
7355
+
{
7356
+
echo '<option value="' . esc_html($modelx) .'"';
7357
+
if ($ai_writer_model == $modelx)
7358
+
{
7359
+
echo " selected";
7360
+
}
7361
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
7362
+
}
7363
+
?>
7364
+
</select>
7365
+
</div>
7366
+
</td>
7367
+
</tr>
7368
+
<tr>
7369
+
<th class="cr_min_width_200">
7370
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7371
+
<div class="bws_hidden_help_text cr_min_260px">
7372
+
<?php
7373
+
echo esc_html__("Set the prompt to be used for the AI writer to create titles. You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%% - default value is: Create a captivating and concise SEO title in English for your WordPress %%post_type%%: \"%%post_title_idea%%\". Boost its search engine visibility with relevant keywords for maximum impact.", 'aiomatic-automatic-ai-content-writer');
7374
+
?>
7375
+
</div>
7376
+
</div>
7377
+
<b><?php echo esc_html__("AI Post Writer Default Title Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7378
+
</th>
7379
+
<td>
7380
+
<textarea name="aiomatic_Main_Settings[ai_writer_title_prompt]" placeholder="AI Post Writer Title Prompt" class="cr_width_full"><?php echo esc_textarea($ai_writer_title_prompt);?></textarea>
7381
+
</td>
7382
+
</tr><tr>
7383
+
<th class="cr_min_width_200">
7384
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7385
+
<div class="bws_hidden_help_text cr_min_260px">
7386
+
<?php
7387
+
echo esc_html__("Set the prompt to be used for the AI writer to create SEO Meta Descriptions. You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%% - default value is: Craft an enticing and succinct meta description in English for your WordPress %%post_type%%: \"%%post_title_idea%%\". Emphasize the notable features and advantages in just 155 characters, incorporating relevant keywords to optimize its SEO performance.", 'aiomatic-automatic-ai-content-writer');
7388
+
?>
7389
+
</div>
7390
+
</div>
7391
+
<b><?php echo esc_html__("AI Post Writer Default SEO Meta Description Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7392
+
</th>
7393
+
<td>
7394
+
<textarea name="aiomatic_Main_Settings[ai_writer_seo_prompt]" placeholder="AI Post Writer SEO Meta Description Prompt" class="cr_width_full"><?php echo esc_textarea($ai_writer_seo_prompt);?></textarea>
7395
+
</td>
7396
+
</tr><tr>
7397
+
<th class="cr_min_width_200">
7398
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7399
+
<div class="bws_hidden_help_text cr_min_260px">
7400
+
<?php
7401
+
echo esc_html__("Set the prompt to be used for the AI writer to create SEO Meta Title. You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%% - default value is: Craft an enticing and succinct SEO meta title in English for your WordPress %%post_type%%: \"%%post_title_idea%%\".", 'aiomatic-automatic-ai-content-writer');
7402
+
?>
7403
+
</div>
7404
+
</div>
7405
+
<b><?php echo esc_html__("AI Post Writer Default SEO Meta Title Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7406
+
</th>
7407
+
<td>
7408
+
<textarea name="aiomatic_Main_Settings[ai_writer_seo_title_prompt]" placeholder="AI Post Writer SEO Meta Title Prompt" class="cr_width_full"><?php echo esc_textarea($ai_writer_seo_title_prompt);?></textarea>
7409
+
</td>
7410
+
</tr><tr>
7411
+
<th class="cr_min_width_200">
7412
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7413
+
<div class="bws_hidden_help_text cr_min_260px">
7414
+
<?php
7415
+
echo esc_html__("Set the prompt to be used for the AI writer to create Content. You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%% - default value is: Create a captivating and comprehensive English description for your WordPress %%post_type%%: \"%%post_title_idea%%\". Dive into specific details, highlighting its unique features of this subject, if possible, benefits, and the value it brings. Craft a compelling narrative around the %%post_type%% that captivates the audience. Use HTML for formatting, include unnumbered lists and bold. Writing Style: Creative. Tone: Neutral.", 'aiomatic-automatic-ai-content-writer');
7416
+
?>
7417
+
</div>
7418
+
</div>
7419
+
<b><?php echo esc_html__("AI Post Writer Default Content Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7420
+
</th>
7421
+
<td>
7422
+
<textarea name="aiomatic_Main_Settings[ai_writer_content_prompt]" placeholder="AI Post Writer Content Prompt" class="cr_width_full"><?php echo esc_textarea($ai_writer_content_prompt);?></textarea>
7423
+
</td>
7424
+
</tr><tr>
7425
+
<th class="cr_min_width_200">
7426
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7427
+
<div class="bws_hidden_help_text cr_min_260px">
7428
+
<?php
7429
+
echo esc_html__("Set the prompt to be used for the AI writer to create Excerpt. You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%% - default value is: Write a captivating and succinct English summary for the WordPress %%post_type%%: \"%%post_title_idea%%\", accentuating its pivotal features, advantages, and distinctive qualities.", 'aiomatic-automatic-ai-content-writer');
7430
+
?>
7431
+
</div>
7432
+
</div>
7433
+
<b><?php echo esc_html__("AI Post Writer Default Excerpt Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7434
+
</th>
7435
+
<td>
7436
+
<textarea name="aiomatic_Main_Settings[ai_writer_excerpt_prompt]" placeholder="AI Post Writer Content Excerpt" class="cr_width_full"><?php echo esc_textarea($ai_writer_excerpt_prompt);?></textarea>
7437
+
</td>
7438
+
</tr><tr>
7439
+
<th class="cr_min_width_200">
7440
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7441
+
<div class="bws_hidden_help_text cr_min_260px">
7442
+
<?php
7443
+
echo esc_html__("Set the prompt to be used for the AI writer to create Tags. You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%% - default value is: Suggest a series of pertinent keywords in English for your WordPress %%post_type%%: \"%%post_title_idea%%\". These keywords should be closely connected to the %%post_type%%, optimizing its visibility. Please present the keywords in a comma-separated format without using symbols like -, #, etc.", 'aiomatic-automatic-ai-content-writer');
7444
+
?>
7445
+
</div>
7446
+
</div>
7447
+
<b><?php echo esc_html__("AI Post Writer Default Tags Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7448
+
</th>
7449
+
<td>
7450
+
<textarea name="aiomatic_Main_Settings[ai_writer_tags_prompt]" placeholder="AI Post Writer Content Tags" class="cr_width_full"><?php echo esc_textarea($ai_writer_tags_prompt);?></textarea>
7451
+
</td>
7452
+
</tr><tr>
7453
+
<th class="cr_min_width_200">
7454
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7455
+
<div class="bws_hidden_help_text cr_min_260px">
7456
+
<?php
7457
+
echo esc_html__("Set the prompt to be used for the AI writer to create focus keywords. You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%% - default value is: Don\'t act as a virtual assistant, return only the content you are asked. Craft a single focus keyword in English for your WordPress post: \"%%post_title_idea%%\".", 'aiomatic-automatic-ai-content-writer');
7458
+
?>
7459
+
</div>
7460
+
</div>
7461
+
<b><?php echo esc_html__("AI Post Writer Default Focus Keyword Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7462
+
</th>
7463
+
<td>
7464
+
<textarea name="aiomatic_Main_Settings[aiomatic_focus_prompt]" placeholder="AI Post Writer Focus Keyword" class="cr_width_full"><?php echo esc_textarea($aiomatic_focus_prompt);?></textarea>
7465
+
</td>
7466
+
</tr>
7467
+
</table>
7468
+
</div>
7469
+
<div id="tab-30<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
7470
+
<h3><?php echo esc_html__('Web Scraping', 'aiomatic-automatic-ai-content-writer');?></h3>
7471
+
<p class="aiomatic-settings-desc"><?php
7472
+
echo esc_html__("The 'Web Scraping Settings' tab provides tools and options to configure and manage web scraping activities, enabling efficient data extraction and content sourcing for your WordPress site.", 'aiomatic-automatic-ai-content-writer');
7473
+
?></p>
7474
+
<table class="widefat">
7475
+
<tr class="aiomatic-title-holder">
7476
+
<td colspan="2">
7477
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Scraping Enhancements Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
7478
+
</td></tr>
7479
+
<tr>
7480
+
<th>
7481
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7482
+
<div class="bws_hidden_help_text cr_min_260px">
7483
+
<?php
7484
+
echo sprintf( wp_kses( __( "Set the path on your local server of the phantomjs executable. If you leave this field blank, the default 'phantomjs' call will be used. <a href='%s' target='_blank'>How to install PhantomJs?</a>", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), "//coderevolution.ro/knowledge-base/faq/how-to-install-phantomjs/" );
7485
+
?>
7486
+
</div>
7487
+
</div>
7488
+
<b><?php echo esc_html__("PhantomJS Path On Server:", 'aiomatic-automatic-ai-content-writer');?></b>
7489
+
<?php
7490
+
if($phantom_path != '')
7491
+
{
7492
+
$phchecked = get_transient('aiomatic_phantom_check');
7493
+
if($phchecked === false)
7494
+
{
7495
+
$phantom = aiomatic_testPhantom();
7496
+
if($phantom === 0)
7497
+
{
7498
+
echo '<br/><span class="cr_red12"><b>' . esc_html__('INFO: PhantomJS not found - please install it on your server or configure the path to it in plugin\'s \'Settings\'!', 'aiomatic-automatic-ai-content-writer') . '</b> <a href=\'//coderevolution.ro/knowledge-base/faq/how-to-install-phantomjs/\' target=\'_blank\'>' . esc_html__('How to install PhantomJs?', 'aiomatic-automatic-ai-content-writer') . '</a></span>';
7499
+
}
7500
+
elseif($phantom === -1)
7501
+
{
7502
+
echo '<br/><span class="cr_red12"><b>' . esc_html__('INFO: PhantomJS cannot run - shell exec is not enabled on your server. Please enable it and retry using this feature of the plugin.', 'aiomatic-automatic-ai-content-writer') . '</b></span>';
7503
+
}
7504
+
elseif($phantom === -2)
7505
+
{
7506
+
echo '<br/><span class="cr_red12"><b>' . esc_html__('INFO: PhantomJS cannot run - shell exec is not allowed to run on your server (in disable_functions list in php.ini). Please enable it and retry using this feature of the plugin.', 'aiomatic-automatic-ai-content-writer') . '</b></span>';
7507
+
}
7508
+
elseif($phantom === 1)
7509
+
{
7510
+
echo '<br/><span class="cr_green12"><b>' . esc_html__('INFO: PhantomJS Test Successful', 'aiomatic-automatic-ai-content-writer') . '</b></span>';
7511
+
set_transient('aiomatic_phantom_check', '1', 2592000);
7512
+
}
7513
+
}
7514
+
else
7515
+
{
7516
+
echo '<br/><span class="cr_green12"><b>' . esc_html__('INFO: PhantomJS OK', 'aiomatic-automatic-ai-content-writer') . '</b></span>';
7517
+
}
7518
+
}
7519
+
?>
7520
+
</th>
7521
+
<td>
7522
+
<div>
7523
+
<input type="text" id="phantom_path" class="cr_width_full" placeholder="<?php echo esc_html__("Path to phantomjs", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[phantom_path]" value="<?php echo esc_html($phantom_path);?>"/>
7524
+
</div>
7525
+
</td>
7526
+
</tr>
7527
+
<tr>
7528
+
<th>
7529
+
<div>
7530
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7531
+
<div class="bws_hidden_help_text cr_min_260px">
7532
+
<?php
7533
+
echo esc_html__("Set the timeout (in milliseconds) for every headless browser running. I recommend that you leave this field at it's default value (30000). If you leave this field blank, the default value will be used.", 'aiomatic-automatic-ai-content-writer');
7534
+
?>
7535
+
</div>
7536
+
</div>
7537
+
<b><?php echo esc_html__("Timeout for Headless Browser Execution:", 'aiomatic-automatic-ai-content-writer');?></b>
7538
+
</div>
7539
+
</th>
7540
+
<td>
7541
+
<div>
7542
+
<input type="number" id="phantom_timeout" class="cr_width_full" step="1" min="1" placeholder="<?php echo esc_html__("Input headless browser timeout in milliseconds", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[phantom_timeout]" value="<?php echo esc_html($phantom_timeout);?>"/>
7543
+
</div>
7544
+
</td>
7545
+
</tr>
7546
+
<tr>
7547
+
<th>
7548
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7549
+
<div class="bws_hidden_help_text cr_min_260px">
7550
+
<?php
7551
+
echo esc_html__("Input a separator for multiple content extracted from multiple HTML entities that match the same class defined for crawling. Default is a new line.", 'aiomatic-automatic-ai-content-writer');
7552
+
?>
7553
+
</div>
7554
+
</div>
7555
+
<b><?php echo esc_html__("Multiple Crawled Content Separator:", 'aiomatic-automatic-ai-content-writer');?></b>
7556
+
</th>
7557
+
<td>
7558
+
<input type="text" id="multi_separator" class="cr_width_full" name="aiomatic_Main_Settings[multi_separator]" value="<?php echo esc_attr($multi_separator);?>" placeholder="<?php echo esc_html__("Content separator", 'aiomatic-automatic-ai-content-writer');?>">
7559
+
</td>
7560
+
</tr>
7561
+
</table>
7562
+
</div>
7563
+
<div id="tab-28<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
7564
+
<h3><?php echo esc_html__('Cloud Storage Options', 'aiomatic-automatic-ai-content-writer');?></h3>
7565
+
<p class="aiomatic-settings-desc"><?php
7566
+
echo sprintf(
7567
+
esc_html__("The 'Cloud Storage' tab allows you to manage and configure cloud storage options for securely saving and accessing AI generated images and videos. To enable the Cloud Storage part of the plugin, you need the Aimogen Amazon S3 Storage extension: %s", 'aiomatic-automatic-ai-content-writer'),
7568
+
'<a href="https://wpbay.com/product/aiomatic-extension-amazon-s3-storage/" target="_blank">Aimogen Extension: Amazon S3 Storage</a>'
7569
+
);
7570
+
?></p>
7571
+
<table class="widefat"><tr class="aiomatic-title-holder">
7572
+
<td colspan="2">
7573
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Image Storage Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
7574
+
</td></tr>
7575
+
<tr>
7576
+
<th>
7577
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7578
+
<div class="bws_hidden_help_text cr_min_260px">
7579
+
<?php
7580
+
echo wp_kses(
7581
+
sprintf(
7582
+
__(
7583
+
"Click this option to enable integration with the 'Featured Image from URL' plugin (%s). You need to install and activate this plugin. This will not copy featured images of created posts locally, but will link them directly from their source.",
7584
+
'aiomatic-automatic-ai-content-writer'
7585
+
),
7586
+
'<a href="https://wordpress.org/plugins/featured-image-from-url/" target="_blank">WordPress.org</a>'
7587
+
),
7588
+
array(
7589
+
'a' => array(
7590
+
'href' => array(),
7591
+
'target' => array(),
7592
+
),
7593
+
)
7594
+
);
7595
+
?>
7596
+
</div>
7597
+
</div>
7598
+
<b><?php echo esc_html__("Enable 'Featured Image from URL' Integration:", 'aiomatic-automatic-ai-content-writer');?></b>
7599
+
<?php
7600
+
if ($url_image == 'on' && !is_plugin_active('featured-image-from-url/featured-image-from-url.php') && !is_plugin_active('fifu-premium/fifu-premium.php')) {
7601
+
?>
7602
+
<br/>
7603
+
<b class="cr_red12"><?php echo esc_html__("The 'Featured Image from URL' plugin is not active. Please install it and activate it: ", 'aiomatic-automatic-ai-content-writer');?> <a href="https://wordpress.org/plugins/featured-image-from-url/" target="_blank">https://wordpress.org/plugins/featured-image-from-url/</a></b>
7604
+
<?php
7605
+
}
7606
+
?>
7607
+
</th>
7608
+
<td>
7609
+
<label class="aiomatic-switch"><input type="checkbox" id="url_image" name="aiomatic_Main_Settings[url_image]"<?php
7610
+
if ($url_image == 'on')
7611
+
echo ' checked ';
7612
+
?>><span class="aiomatic-slider round"></span></label>
7613
+
</td>
7614
+
</tr>
7615
+
<tr>
7616
+
<th>
7617
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7618
+
<div class="bws_hidden_help_text cr_min_260px">
7619
+
<?php
7620
+
echo esc_html__("Do you want to copy royalty free or AI generated images from posts content, from their original location to a local/remote server?", 'aiomatic-automatic-ai-content-writer');
7621
+
?>
7622
+
</div>
7623
+
</div>
7624
+
<b><?php echo esc_html__("Copy Royalty Free / AI Images From Post Content:", 'aiomatic-automatic-ai-content-writer');?></b>
7625
+
</th>
7626
+
<td>
7627
+
<?php
7628
+
if (is_plugin_active('aiomatic-extension-amazon-s3-images/aiomatic-extension-amazon-s3-images.php')) {
7629
+
$amazon_s3_active = true;
7630
+
}
7631
+
else
7632
+
{
7633
+
$amazon_s3_active = false;
7634
+
}
7635
+
?>
7636
+
<select id="copy_locally" name="aiomatic_Main_Settings[copy_locally]" onchange="mainChanged();" class="cr_width_full">
7637
+
<option value="disabled"<?php
7638
+
if ($copy_locally == "disabled") {
7639
+
echo " selected";
7640
+
}
7641
+
?>>Disabled</option>
7642
+
<option value="on"<?php
7643
+
if ($copy_locally == "on") {
7644
+
echo " selected";
7645
+
}
7646
+
?>>Local Server</option>
7647
+
<option value="amazon"<?php
7648
+
if ($copy_locally == "amazon") {
7649
+
echo " selected";
7650
+
}
7651
+
if($amazon_s3_active == false)
7652
+
{
7653
+
echo ' disabled';
7654
+
}
7655
+
?> >Amazon S3</option>
7656
+
<option value="cloudflare"<?php
7657
+
if ($copy_locally == "cloudflare") {
7658
+
echo " selected";
7659
+
}
7660
+
if($amazon_s3_active == false)
7661
+
{
7662
+
echo ' disabled';
7663
+
}
7664
+
?> >CloudFlare R2</option>
7665
+
<option value="digital"<?php
7666
+
if ($copy_locally == "digital") {
7667
+
echo " selected";
7668
+
}
7669
+
if($amazon_s3_active == false)
7670
+
{
7671
+
echo ' disabled';
7672
+
}
7673
+
?> >Digital Ocean Spaces</option>
7674
+
<option value="wasabi"<?php
7675
+
if ($copy_locally == "wasabi") {
7676
+
echo " selected";
7677
+
}
7678
+
if($amazon_s3_active == false)
7679
+
{
7680
+
echo ' disabled';
7681
+
}
7682
+
?> >Wasabi</option>
7683
+
<option value="generics3"<?php
7684
+
if ($copy_locally == "generics3") {
7685
+
echo " selected";
7686
+
}
7687
+
if($amazon_s3_active == false)
7688
+
{
7689
+
echo ' disabled';
7690
+
}
7691
+
?> >Generic S3 Compatible Storage</option>
7692
+
</select>
7693
+
</td>
7694
+
</tr>
7695
+
<tr class="hideCompress">
7696
+
<th>
7697
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7698
+
<div class="bws_hidden_help_text cr_min_260px">
7699
+
<?php
7700
+
echo esc_html__("Do you want to disable automatic compression of copied images?", 'aiomatic-automatic-ai-content-writer');
7701
+
?>
7702
+
</div>
7703
+
</div>
7704
+
<b><?php echo esc_html__("Disable Automatic Image Compression For Copied Images:", 'aiomatic-automatic-ai-content-writer');?></b>
7705
+
</th>
7706
+
<td>
7707
+
<label class="aiomatic-switch"><input type="checkbox" id="disable_compress" name="aiomatic_Main_Settings[disable_compress]"<?php
7708
+
if ($disable_compress == 'on')
7709
+
echo ' checked ';
7710
+
?>><span class="aiomatic-slider round"></span></label>
7711
+
</td>
7712
+
</tr>
7713
+
<tr class="hideCompress">
7714
+
<th>
7715
+
<div>
7716
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7717
+
<div class="bws_hidden_help_text cr_min_260px">
7718
+
<?php
7719
+
echo esc_html__("Select the quality of the compressed images. Accepted values: 1-100. 1 is lowest quality, 100 is highest quality. If you want to disable this feature, leave this field blank. This feature will work only if you copy AI generated images from their original sources. Default is 75.", 'aiomatic-automatic-ai-content-writer');
7720
+
?>
7721
+
</div>
7722
+
</div>
7723
+
<b><?php echo esc_html__("Image Compression Quality:", 'aiomatic-automatic-ai-content-writer');?></b>
7724
+
</div>
7725
+
</th>
7726
+
<td>
7727
+
<div>
7728
+
<input type="number" min="1" step="1" max="100" name="aiomatic_Main_Settings[compress_quality]" value="<?php echo esc_html($compress_quality);?>" placeholder="75" class="cr_width_full">
7729
+
</div>
7730
+
</td>
7731
+
</tr>
7732
+
<?php
7733
+
if($amazon_s3_active == false)
7734
+
{
7735
+
?>
7736
+
<tr>
7737
+
<td colspan="2">
7738
+
<b><?php echo esc_html__("Exciting news for Aimogen plugin users: You can now store royalty-free or AI-generated images in Amazon S3 with Aimogen's new extension! Get it here: ", 'aiomatic-automatic-ai-content-writer') . '<a href="https://wpbay.com/product/aiomatic-extension-amazon-s3-storage/" target="_blank">' . esc_html__("Aimogen Extension: Amazon S3 Storage", 'aiomatic-automatic-ai-content-writer') . '</a>';?></b>
7739
+
</td>
7740
+
</tr>
7741
+
<?php
7742
+
}
7743
+
?>
7744
+
<tr class="aiomatic-title-holder">
7745
+
<td colspan="2">
7746
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Amazon S3 Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
7747
+
</td>
7748
+
</tr>
7749
+
<tr>
7750
+
<th>
7751
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7752
+
<div class="bws_hidden_help_text cr_min_260px">
7753
+
<?php
7754
+
echo esc_html__("Select the folder name from Amazon S3 where to save the video files. If you leave this blank, the videos will be uploaded to the root folder of your Amazon S3. The plugin will create the directory you define here, if it is not already existing.", 'aiomatic-automatic-ai-content-writer');
7755
+
?>
7756
+
</div>
7757
+
</div>
7758
+
<b><?php echo esc_html__("Amazon S3 Directory:", 'aiomatic-automatic-ai-content-writer');?></b>
7759
+
</th>
7760
+
<td>
7761
+
<input type="text" name="aiomatic_Main_Settings[drive_directory]" value="<?php echo esc_html($drive_directory);?>" placeholder="Folder name from Amazon S3" class="cr_width_full">
7762
+
</td>
7763
+
</tr>
7764
+
<tr>
7765
+
<th>
7766
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7767
+
<div class="bws_hidden_help_text cr_min_260px">
7768
+
<?php
7769
+
echo esc_html__("Input the bucket name from Amazon S3. You can create your Amazon Bucket, here: ", 'aiomatic-automatic-ai-content-writer') . '<a href="https://s3.console.aws.amazon.com/s3/bucket/create" target="_blank">https://s3.console.aws.amazon.com/s3/bucket/create</a>.';
7770
+
?>
7771
+
</div>
7772
+
</div>
7773
+
<b><?php echo esc_html__("Amazon Bucket Name:", 'aiomatic-automatic-ai-content-writer');?></b>
7774
+
</th>
7775
+
<td>
7776
+
<input type="text" name="aiomatic_Main_Settings[bucket_name]" value="<?php echo esc_html($bucket_name);?>" placeholder="Amazon S3 Bucket Name" class="cr_width_full">
7777
+
</td>
7778
+
</tr>
7779
+
<tr>
7780
+
<th>
7781
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7782
+
<div class="bws_hidden_help_text cr_min_260px">
7783
+
<?php
7784
+
echo esc_html__("Input the bucket region from Amazon S3.", 'aiomatic-automatic-ai-content-writer');
7785
+
?>
7786
+
</div>
7787
+
</div>
7788
+
<b><?php echo esc_html__("Amazon Bucket Region:", 'aiomatic-automatic-ai-content-writer');?></b>
7789
+
</th>
7790
+
<td>
7791
+
<select id="bucket_region" name="aiomatic_Main_Settings[bucket_region]" class="cr_width_full">
7792
+
<option value="us-west-1"<?php if($bucket_region == 'us-west-1') {echo ' selected';}?>><?php echo esc_html__("US West 1 (N. California)", 'aiomatic-automatic-ai-content-writer');?></option>
7793
+
<option value="us-west-2"<?php if($bucket_region == 'us-west-2') {echo ' selected';}?>><?php echo esc_html__("US West 2 (Oregon)", 'aiomatic-automatic-ai-content-writer');?></option>
7794
+
<option value="us-east-1"<?php if($bucket_region == 'us-east-1') {echo ' selected';}?>><?php echo esc_html__("US East 1 (N. Virginia)", 'aiomatic-automatic-ai-content-writer');?></option>
7795
+
<option value="us-east-2"<?php if($bucket_region == 'us-east-2') {echo ' selected';}?>><?php echo esc_html__("US East 2 (Ohio)", 'aiomatic-automatic-ai-content-writer');?></option>
7796
+
<option value="sa-east-1"<?php if($bucket_region == 'sa-east-1') {echo ' selected';}?>><?php echo esc_html__("South America 1 (Sao Paulo)", 'aiomatic-automatic-ai-content-writer');?></option>
7797
+
<option value="me-south-1"<?php if($bucket_region == 'me-south-1') {echo ' selected';}?>><?php echo esc_html__("Middle East (Bahrain)", 'aiomatic-automatic-ai-content-writer');?></option>
7798
+
<option value="eu-central-1"<?php if($bucket_region == 'eu-central-1') {echo ' selected';}?>><?php echo esc_html__("EU Central 1 (Frankfurt)", 'aiomatic-automatic-ai-content-writer');?></option>
7799
+
<option value="eu-north-1"<?php if($bucket_region == 'eu-north-1') {echo ' selected';}?>><?php echo esc_html__("EU North 1 (Stockholm)", 'aiomatic-automatic-ai-content-writer');?></option>
7800
+
<option value="eu-west-1"<?php if($bucket_region == 'eu-west-1') {echo ' selected';}?>><?php echo esc_html__("EU West 1 (Ireland)", 'aiomatic-automatic-ai-content-writer');?></option>
7801
+
<option value="eu-west-2"<?php if($bucket_region == 'eu-west-2') {echo ' selected';}?>><?php echo esc_html__("EU West 2 (London)", 'aiomatic-automatic-ai-content-writer');?></option>
7802
+
<option value="eu-west-3"<?php if($bucket_region == 'eu-west-3') {echo ' selected';}?>><?php echo esc_html__("EU West 3 (Paris)", 'aiomatic-automatic-ai-content-writer');?></option>
7803
+
<option value="ca-central-1"<?php if($bucket_region == 'ca-central-1') {echo ' selected';}?>><?php echo esc_html__("Canada (Central)", 'aiomatic-automatic-ai-content-writer');?></option>
7804
+
<option value="ap-northeast-1"<?php if($bucket_region == 'ap-northeast-1') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 1 (Tokyo)", 'aiomatic-automatic-ai-content-writer');?></option>
7805
+
<option value="ap-southeast-2"<?php if($bucket_region == 'ap-southeast-2') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 2 (Sydney)", 'aiomatic-automatic-ai-content-writer');?></option>
7806
+
<option value="ap-southeast-1"<?php if($bucket_region == 'ap-southeast-1') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 3 (Singapore)", 'aiomatic-automatic-ai-content-writer');?></option>
7807
+
<option value="ap-northeast-2"<?php if($bucket_region == 'ap-northeast-2') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 4 (Seoul)", 'aiomatic-automatic-ai-content-writer');?></option>
7808
+
<option value="ap-south-1"<?php if($bucket_region == 'ap-south-1') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 5 (Mumbai)", 'aiomatic-automatic-ai-content-writer');?></option>
7809
+
<option value="ap-east-1"<?php if($bucket_region == 'ap-east-1') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 6 (Hong Kong)", 'aiomatic-automatic-ai-content-writer');?></option>
7810
+
</select>
7811
+
</td>
7812
+
</tr>
7813
+
<tr>
7814
+
<th>
7815
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7816
+
<div class="bws_hidden_help_text cr_min_260px">
7817
+
<?php
7818
+
echo esc_html__("Input the API key for your Amazon S3 client. Details: ", 'aiomatic-automatic-ai-content-writer');
7819
+
?><a href="https://console.aws.amazon.com/iamv2/home#/security_credentials" target="_blank">https://console.aws.amazon.com/iamv2/home#/security_credentials</a>
7820
+
</div>
7821
+
</div>
7822
+
<b><?php echo esc_html__("Amazon S3 API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
7823
+
</th>
7824
+
<td>
7825
+
<input type="text" name="aiomatic_Main_Settings[s3_user]" value="<?php echo esc_html($s3_user);?>" placeholder="Amazon S3 API Key" class="cr_width_full">
7826
+
</td>
7827
+
</tr>
7828
+
<tr>
7829
+
<th>
7830
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7831
+
<div class="bws_hidden_help_text cr_min_260px">
7832
+
<?php
7833
+
echo esc_html__("Input the API secret for your Amazon S3 client. Details: ", 'aiomatic-automatic-ai-content-writer');
7834
+
?><a href="https://console.aws.amazon.com/iamv2/home#/security_credentials" target="_blank">https://console.aws.amazon.com/iamv2/home#/security_credentials</a>
7835
+
</div>
7836
+
</div>
7837
+
<b><?php echo esc_html__("Amazon S3 API Secret:", 'aiomatic-automatic-ai-content-writer');?></b>
7838
+
</th>
7839
+
<td>
7840
+
<input type="password" name="aiomatic_Main_Settings[s3_pass]" value="<?php echo esc_html($s3_pass);?>" placeholder="Amazon S3 API Secret" class="cr_width_full">
7841
+
</td>
7842
+
</tr>
7843
+
<tr class="aiomatic-title-holder">
7844
+
<td colspan="2">
7845
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Wasabi Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
7846
+
</td>
7847
+
</tr>
7848
+
<tr>
7849
+
<th>
7850
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7851
+
<div class="bws_hidden_help_text cr_min_260px">
7852
+
<?php
7853
+
echo esc_html__("Select the folder name from Wasabi where to save the video files. If you leave this blank, the videos will be uploaded to the root folder of your Wasabi. The plugin will create the directory you define here, if it is not already existing.", 'aiomatic-automatic-ai-content-writer');
7854
+
?>
7855
+
</div>
7856
+
</div>
7857
+
<b><?php echo esc_html__("Wasabi Directory:", 'aiomatic-automatic-ai-content-writer');?></b>
7858
+
</th>
7859
+
<td>
7860
+
<input type="text" name="aiomatic_Main_Settings[wasabi_directory]" value="<?php echo esc_html($wasabi_directory);?>" placeholder="Folder name from Wasabi" class="cr_width_full">
7861
+
</td>
7862
+
</tr>
7863
+
<tr>
7864
+
<th>
7865
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7866
+
<div class="bws_hidden_help_text cr_min_260px">
7867
+
<?php
7868
+
echo esc_html__("Input the Bucket Name from Wasabi - You can create your Wasabi bucket, here: ", 'aiomatic-automatic-ai-content-writer') . '<a href="https://console.wasabisys.com/file_manager" target="_blank">https://console.wasabisys.com/file_manager</a>.';
7869
+
?>
7870
+
</div>
7871
+
</div>
7872
+
<b><?php echo esc_html__("Wasabi Bucket Name:", 'aiomatic-automatic-ai-content-writer');?></b>
7873
+
</th>
7874
+
<td>
7875
+
<input type="text" name="aiomatic_Main_Settings[wasabi_bucket]" value="<?php echo esc_html($wasabi_bucket);?>" placeholder="Wasabi bucket name" class="cr_width_full">
7876
+
</td>
7877
+
</tr>
7878
+
<tr>
7879
+
<th>
7880
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7881
+
<div class="bws_hidden_help_text cr_min_260px">
7882
+
<?php
7883
+
echo esc_html__("Input the bucket region from Wasabi.", 'aiomatic-automatic-ai-content-writer');
7884
+
?>
7885
+
</div>
7886
+
</div>
7887
+
<b><?php echo esc_html__("Wasabi Bucket Region:", 'aiomatic-automatic-ai-content-writer');?></b>
7888
+
</th>
7889
+
<td>
7890
+
<select id="wasabi_region" name="aiomatic_Main_Settings[wasabi_region]" class="cr_width_full">
7891
+
<option value="us-west-1"<?php if($wasabi_region == 'us-west-1') {echo ' selected';}?>><?php echo esc_html__("US West 1 (Oregon)", 'aiomatic-automatic-ai-content-writer');?></option>
7892
+
<option value="us-central-1"<?php if($wasabi_region == 'us-central-1') {echo ' selected';}?>><?php echo esc_html__("US Central 1 (Texas)", 'aiomatic-automatic-ai-content-writer');?></option>
7893
+
<option value="us-east-1"<?php if($wasabi_region == 'us-east-1') {echo ' selected';}?>><?php echo esc_html__("US East 1 (N. Virginia)", 'aiomatic-automatic-ai-content-writer');?></option>
7894
+
<option value="us-east-2"<?php if($wasabi_region == 'us-east-2') {echo ' selected';}?>><?php echo esc_html__("US East 2 (N. Virginia)", 'aiomatic-automatic-ai-content-writer');?></option>
7895
+
<option value="eu-central-1"<?php if($wasabi_region == 'eu-central-1') {echo ' selected';}?>><?php echo esc_html__("EU Central 1 (Amsterdam)", 'aiomatic-automatic-ai-content-writer');?></option>
7896
+
<option value="eu-central-2"<?php if($wasabi_region == 'eu-central-2') {echo ' selected';}?>><?php echo esc_html__("EU central 2 (Frankfurt)", 'aiomatic-automatic-ai-content-writer');?></option>
7897
+
<option value="eu-west-1"<?php if($wasabi_region == 'eu-west-1') {echo ' selected';}?>><?php echo esc_html__("EU West 1 (London)", 'aiomatic-automatic-ai-content-writer');?></option>
7898
+
<option value="eu-west-2"<?php if($wasabi_region == 'eu-west-2') {echo ' selected';}?>><?php echo esc_html__("EU West 2 (Paris)", 'aiomatic-automatic-ai-content-writer');?></option>
7899
+
<option value="ca-central-1"<?php if($wasabi_region == 'ca-central-1') {echo ' selected';}?>><?php echo esc_html__("Canada (Toronto)", 'aiomatic-automatic-ai-content-writer');?></option>
7900
+
<option value="ap-northeast-1"<?php if($wasabi_region == 'ap-northeast-1') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 1 (Tokyo)", 'aiomatic-automatic-ai-content-writer');?></option>
7901
+
<option value="ap-southeast-2"<?php if($wasabi_region == 'ap-southeast-2') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 2 (Sydney)", 'aiomatic-automatic-ai-content-writer');?></option>
7902
+
<option value="ap-southeast-1"<?php if($wasabi_region == 'ap-southeast-1') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 3 (Singapore)", 'aiomatic-automatic-ai-content-writer');?></option>
7903
+
<option value="ap-northeast-2"<?php if($wasabi_region == 'ap-northeast-2') {echo ' selected';}?>><?php echo esc_html__("Asia Pacific 4 (Osaka)", 'aiomatic-automatic-ai-content-writer');?></option>
7904
+
</select>
7905
+
</td>
7906
+
</tr>
7907
+
<tr>
7908
+
<th>
7909
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7910
+
<div class="bws_hidden_help_text cr_min_260px">
7911
+
<?php
7912
+
echo esc_html__("Input the API key for your Wasabi client. Details: ", 'aiomatic-automatic-ai-content-writer');
7913
+
?><a href="https://console.wasabisys.com/access_keys" target="_blank">https://console.wasabisys.com/access_keys</a>
7914
+
</div>
7915
+
</div>
7916
+
<b><?php echo esc_html__("Wasabi API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
7917
+
</th>
7918
+
<td>
7919
+
<input type="text" name="aiomatic_Main_Settings[wasabi_user]" value="<?php echo esc_html($wasabi_user);?>" placeholder="Wasabi API Key" class="cr_width_full">
7920
+
</td>
7921
+
</tr>
7922
+
<tr>
7923
+
<th>
7924
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7925
+
<div class="bws_hidden_help_text cr_min_260px">
7926
+
<?php
7927
+
echo esc_html__("Input the API secret for your Wasabi client. Details: ", 'aiomatic-automatic-ai-content-writer');
7928
+
?><a href="https://console.wasabisys.com/access_keys" target="_blank">https://console.wasabisys.com/access_keys</a>
7929
+
</div>
7930
+
</div>
7931
+
<b><?php echo esc_html__("Wasabi API Secret:", 'aiomatic-automatic-ai-content-writer');?></b>
7932
+
</th>
7933
+
<td>
7934
+
<input type="password" name="aiomatic_Main_Settings[wasabi_pass]" value="<?php echo esc_html($wasabi_pass);?>" placeholder="Wasabi API Secret" class="cr_width_full">
7935
+
</td>
7936
+
</tr>
7937
+
<tr class="aiomatic-title-holder">
7938
+
<td colspan="2">
7939
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("CloudFlare R2 Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
7940
+
</td>
7941
+
</tr>
7942
+
<tr>
7943
+
<th>
7944
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7945
+
<div class="bws_hidden_help_text cr_min_260px">
7946
+
<?php
7947
+
echo esc_html__("Select the folder name from CloudFlare R2 where to save the video files. If you leave this blank, the videos will be uploaded to the root folder of your CloudFlare R2. The plugin will create the directory you define here, if it is not already existing.", 'aiomatic-automatic-ai-content-writer');
7948
+
?>
7949
+
</div>
7950
+
</div>
7951
+
<b><?php echo esc_html__("CloudFlare R2 Directory:", 'aiomatic-automatic-ai-content-writer');?></b>
7952
+
</th>
7953
+
<td>
7954
+
<input type="text" name="aiomatic_Main_Settings[cloud_directory]" value="<?php echo esc_html($cloud_directory);?>" placeholder="Folder name from CloudFlare R2" class="cr_width_full">
7955
+
</td>
7956
+
</tr>
7957
+
<tr>
7958
+
<th>
7959
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7960
+
<div class="bws_hidden_help_text cr_min_260px">
7961
+
<?php
7962
+
echo esc_html__("Input your Account ID from CloudFlare R2. You can create CloudFlare R2 account ID by copying the ID from the right of the 'Overview' page from the CloudFlare R2 Control Panel.", 'aiomatic-automatic-ai-content-writer');
7963
+
?>
7964
+
</div>
7965
+
</div>
7966
+
<b><?php echo esc_html__("CloudFlare R2 Account ID:", 'aiomatic-automatic-ai-content-writer');?></b>
7967
+
</th>
7968
+
<td>
7969
+
<input type="text" name="aiomatic_Main_Settings[cloud_account]" value="<?php echo esc_html($cloud_account);?>" placeholder="CloudFlare account ID" class="cr_width_full">
7970
+
</td>
7971
+
</tr>
7972
+
<tr>
7973
+
<th>
7974
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7975
+
<div class="bws_hidden_help_text cr_min_260px">
7976
+
<?php
7977
+
echo esc_html__("Input your CloudFlare R2 Bucket Name. ", 'aiomatic-automatic-ai-content-writer');
7978
+
?>
7979
+
</div>
7980
+
</div>
7981
+
<b><?php echo esc_html__("CloudFlare R2 Bucket Name:", 'aiomatic-automatic-ai-content-writer');?></b>
7982
+
</th>
7983
+
<td>
7984
+
<input type="text" name="aiomatic_Main_Settings[cloud_bucket]" value="<?php echo esc_html($cloud_bucket);?>" placeholder="CloudFlare bucket name" class="cr_width_full">
7985
+
</td>
7986
+
</tr>
7987
+
<tr>
7988
+
<th>
7989
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7990
+
<div class="bws_hidden_help_text cr_min_260px">
7991
+
<?php
7992
+
echo esc_html__("Input the API key for your CloudFlare R2 client. You can create CloudFlare R2 API credentials by clicking the 'Manage R2 API Tokens' link on the right of the 'Overview' page from the CloudFlare R2 Control Panel.", 'aiomatic-automatic-ai-content-writer');
7993
+
?>
7994
+
</div>
7995
+
</div>
7996
+
<b><?php echo esc_html__("CloudFlare R2 API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
7997
+
</th>
7998
+
<td>
7999
+
<input type="text" name="aiomatic_Main_Settings[cloud_user]" value="<?php echo esc_html($cloud_user);?>" placeholder="CloudFlare R2 API Key" class="cr_width_full">
8000
+
</td>
8001
+
</tr>
8002
+
<tr>
8003
+
<th>
8004
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8005
+
<div class="bws_hidden_help_text cr_min_260px">
8006
+
<?php
8007
+
echo esc_html__("Input the API secret for your CloudFlare R2 client. You can create CloudFlare R2 API credentials by clicking the 'Manage R2 API Tokens' link on the right of the 'Overview' page from the CloudFlare R2 Control Panel.", 'aiomatic-automatic-ai-content-writer');
8008
+
?>
8009
+
</div>
8010
+
</div>
8011
+
<b><?php echo esc_html__("CloudFlare R2 API Secret:", 'aiomatic-automatic-ai-content-writer');?></b>
8012
+
</th>
8013
+
<td>
8014
+
<input type="password" name="aiomatic_Main_Settings[cloud_pass]" value="<?php echo esc_html($cloud_pass);?>" placeholder="CloudFlare R2 API Secret" class="cr_width_full">
8015
+
</td>
8016
+
</tr>
8017
+
<tr>
8018
+
<th>
8019
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8020
+
<div class="bws_hidden_help_text cr_min_260px">
8021
+
<?php
8022
+
echo esc_html__("Add your Cloudflare public domain URL. This can be added from the Cloudflare bucket settings, from the 'Custom Domains' settings or by enabling the 'Public Development URL' settings. Add the URL which will make the uploaded files be able to be publicly accessible. Note that without specifying this, Cloudflare hosted files will not be publicly accessible.", 'aiomatic-automatic-ai-content-writer');
8023
+
?>
8024
+
</div>
8025
+
</div>
8026
+
<b><?php echo esc_html__("CloudFlare Public Domain URL:", 'aiomatic-automatic-ai-content-writer');?></b>
8027
+
</th>
8028
+
<td>
8029
+
<input type="url" name="aiomatic_Main_Settings[cloud_public]" value="<?php echo esc_html($cloud_public);?>" placeholder="CloudFlare Public URL" class="cr_width_full">
8030
+
</td>
8031
+
</tr>
8032
+
<tr class="aiomatic-title-holder">
8033
+
<td colspan="2">
8034
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Digital Ocean Spaces Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
8035
+
</td>
8036
+
</tr>
8037
+
<tr>
8038
+
<th>
8039
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8040
+
<div class="bws_hidden_help_text cr_min_260px">
8041
+
<?php
8042
+
echo esc_html__("Select the folder name from Digital Ocean Spaces where to save the video files. If you leave this blank, the videos will be uploaded to the root folder of your Digital Ocean Spaces. The plugin will create the directory you define here, if it is not already existing.", 'aiomatic-automatic-ai-content-writer');
8043
+
?>
8044
+
</div>
8045
+
</div>
8046
+
<b><?php echo esc_html__("Digital Ocean Spaces Directory:", 'aiomatic-automatic-ai-content-writer');?></b>
8047
+
</th>
8048
+
<td>
8049
+
<input type="text" name="aiomatic_Main_Settings[digital_directory]" value="<?php echo esc_html($digital_directory);?>" placeholder="Folder name from Digital Ocean Spaces" class="cr_width_full">
8050
+
</td>
8051
+
</tr>
8052
+
<tr>
8053
+
<th>
8054
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8055
+
<div class="bws_hidden_help_text cr_min_260px">
8056
+
<?php
8057
+
echo esc_html__("Input the Origin Endpoint from Digital Ocean Spaces. This should be in the following format: https://<bucketname>.<datacenterregion>.digitaloceanspaces.com - You can create your Digital Ocean Spaces bucket, here: ", 'aiomatic-automatic-ai-content-writer') . '<a href="https://cloud.digitalocean.com/spaces" target="_blank">https://cloud.digitalocean.com/spaces</a>.';
8058
+
?>
8059
+
</div>
8060
+
</div>
8061
+
<b><?php echo esc_html__("Digital Ocean Spaces Origin Endpoint:", 'aiomatic-automatic-ai-content-writer');?></b>
8062
+
</th>
8063
+
<td>
8064
+
<input type="text" name="aiomatic_Main_Settings[digital_endpoint]" value="<?php echo esc_html($digital_endpoint);?>" placeholder="https://<bucketname>.<datacenterregion>.digitaloceanspaces.com" class="cr_width_full">
8065
+
</td>
8066
+
</tr>
8067
+
<tr>
8068
+
<th>
8069
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8070
+
<div class="bws_hidden_help_text cr_min_260px">
8071
+
<?php
8072
+
echo esc_html__("Input the API key for your Digital Ocean Spaces client. Details: ", 'aiomatic-automatic-ai-content-writer');
8073
+
?><a href="https://cloud.digitalocean.com/account/api/spaces" target="_blank">https://cloud.digitalocean.com/account/api/spaces</a>
8074
+
</div>
8075
+
</div>
8076
+
<b><?php echo esc_html__("Digital Ocean Spaces API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
8077
+
</th>
8078
+
<td>
8079
+
<input type="text" name="aiomatic_Main_Settings[digital_user]" value="<?php echo esc_html($digital_user);?>" placeholder="Digital Ocean Spaces API Key" class="cr_width_full">
8080
+
</td>
8081
+
</tr>
8082
+
<tr>
8083
+
<th>
8084
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8085
+
<div class="bws_hidden_help_text cr_min_260px">
8086
+
<?php
8087
+
echo esc_html__("Input the API secret for your Digital Ocean Spaces client. Details: ", 'aiomatic-automatic-ai-content-writer');
8088
+
?><a href="https://cloud.digitalocean.com/account/api/spaces" target="_blank">https://cloud.digitalocean.com/account/api/spaces</a>
8089
+
</div>
8090
+
</div>
8091
+
<b><?php echo esc_html__("Digital Ocean Spaces API Secret:", 'aiomatic-automatic-ai-content-writer');?></b>
8092
+
</th>
8093
+
<td>
8094
+
<input type="password" name="aiomatic_Main_Settings[digital_pass]" value="<?php echo esc_html($digital_pass);?>" placeholder="Digital Ocean Spaces API Secret" class="cr_width_full">
8095
+
</td>
8096
+
</tr>
8097
+
<tr class="aiomatic-title-holder">
8098
+
<td colspan="2">
8099
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Generic S3 Storage Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
8100
+
</td>
8101
+
</tr>
8102
+
<tr>
8103
+
<th>
8104
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8105
+
<div class="bws_hidden_help_text cr_min_260px">
8106
+
<?php
8107
+
echo esc_html__("Select the URL of the generic S3 Storage you want to use. This might be in this format (adapt it to the generic S3 Storage provider you choose): https://<<BUCKET_NAME>>.s3.<<REGION>>.wasabisys.com/", 'aiomatic-automatic-ai-content-writer');
8108
+
?>
8109
+
</div>
8110
+
</div>
8111
+
<b><?php echo esc_html__("Generic S3 Storage URL:", 'aiomatic-automatic-ai-content-writer');?></b>
8112
+
</th>
8113
+
<td>
8114
+
<input type="url" name="aiomatic_Main_Settings[generic_url]" value="<?php echo esc_html($generic_url);?>" placeholder="Generic S3 Storage URL" class="cr_width_full">
8115
+
</td>
8116
+
</tr>
8117
+
<tr>
8118
+
<th>
8119
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8120
+
<div class="bws_hidden_help_text cr_min_260px">
8121
+
<?php
8122
+
echo esc_html__("Select the folder name from Generic S3 Storage where to save the video files. If you leave this blank, the videos will be uploaded to the root folder of your Generic S3 Storage. The plugin will create the directory you define here, if it is not already existing.", 'aiomatic-automatic-ai-content-writer');
8123
+
?>
8124
+
</div>
8125
+
</div>
8126
+
<b><?php echo esc_html__("Generic S3 Storage Directory:", 'aiomatic-automatic-ai-content-writer');?></b>
8127
+
</th>
8128
+
<td>
8129
+
<input type="text" name="aiomatic_Main_Settings[generic_directory]" value="<?php echo esc_html($generic_directory);?>" placeholder="Folder name from Generic S3 Storage" class="cr_width_full">
8130
+
</td>
8131
+
</tr>
8132
+
<tr>
8133
+
<th>
8134
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8135
+
<div class="bws_hidden_help_text cr_min_260px">
8136
+
<?php
8137
+
echo esc_html__("Input the Bucket Name from Generic S3 Storage", 'aiomatic-automatic-ai-content-writer');
8138
+
?>
8139
+
</div>
8140
+
</div>
8141
+
<b><?php echo esc_html__("Generic S3 Storage Bucket Name:", 'aiomatic-automatic-ai-content-writer');?></b>
8142
+
</th>
8143
+
<td>
8144
+
<input type="text" name="aiomatic_Main_Settings[generic_bucket]" value="<?php echo esc_html($generic_bucket);?>" placeholder="Generic S3 Storage bucket name" class="cr_width_full">
8145
+
</td>
8146
+
</tr>
8147
+
<tr>
8148
+
<th>
8149
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8150
+
<div class="bws_hidden_help_text cr_min_260px">
8151
+
<?php
8152
+
echo esc_html__("Input the bucket region from Generic S3 Storage.", 'aiomatic-automatic-ai-content-writer');
8153
+
?>
8154
+
</div>
8155
+
</div>
8156
+
<b><?php echo esc_html__("Generic S3 Storage Bucket Region:", 'aiomatic-automatic-ai-content-writer');?></b>
8157
+
</th>
8158
+
<td>
8159
+
<input type="text" name="aiomatic_Main_Settings[generic_region]" value="<?php echo esc_html($generic_region);?>" placeholder="Generic S3 Storage region" class="cr_width_full">
8160
+
</td>
8161
+
</tr>
8162
+
<tr>
8163
+
<th>
8164
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8165
+
<div class="bws_hidden_help_text cr_min_260px">
8166
+
<?php
8167
+
echo esc_html__("Input the API key for your Generic S3 Storage client.", 'aiomatic-automatic-ai-content-writer');?>
8168
+
</div>
8169
+
</div>
8170
+
<b><?php echo esc_html__("Generic S3 Storage API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
8171
+
</th>
8172
+
<td>
8173
+
<input type="text" name="aiomatic_Main_Settings[generic_user]" value="<?php echo esc_html($generic_user);?>" placeholder="Generic S3 Storage API Key" class="cr_width_full">
8174
+
</td>
8175
+
</tr>
8176
+
<tr>
8177
+
<th>
8178
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8179
+
<div class="bws_hidden_help_text cr_min_260px">
8180
+
<?php
8181
+
echo esc_html__("Input the API secret for your Generic S3 Storage client.", 'aiomatic-automatic-ai-content-writer');?>
8182
+
</div>
8183
+
</div>
8184
+
<b><?php echo esc_html__("Generic S3 Storage API Secret:", 'aiomatic-automatic-ai-content-writer');?></b>
8185
+
</th>
8186
+
<td>
8187
+
<input type="password" name="aiomatic_Main_Settings[generic_pass]" value="<?php echo esc_html($generic_pass);?>" placeholder="Generic S3 Storage API Secret" class="cr_width_full">
8188
+
</td>
8189
+
</tr>
8190
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
8191
+
?>
8192
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Amazon S3 Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr><tr>
8193
+
<td class="coderevolution_block_input" colspan="2">
8194
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/DIUZkvD4Y6U" allowfullscreen></iframe>
8195
+
</td></tr>
8196
+
<tr><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Other Cloud Storage Options Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
8197
+
<tr>
8198
+
<td class="coderevolution_block_input" colspan="2">
8199
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/FFjrfLJ4Re8" allowfullscreen></iframe>
8200
+
</td>
8201
+
</tr>
8202
+
<?php
8203
+
}
8204
+
?>
8205
+
</table>
8206
+
</div>
8207
+
<div id="tab-29<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
8208
+
<h3><?php echo esc_html__('Advanced AI API Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
8209
+
<p class="aiomatic-settings-desc"><?php
8210
+
echo esc_html__("The 'Advanced AI API Settings' tab enables you to customize and control advanced AI-driven features by adjusting API configurations and parameters for enhanced functionality of the plugin.", 'aiomatic-automatic-ai-content-writer');
8211
+
?></p>
8212
+
<table class="widefat">
8213
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("GPT-5 Specific Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
8214
+
<tr>
8215
+
<th>
8216
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8217
+
<div class="bws_hidden_help_text cr_min_260px">
8218
+
<?php
8219
+
echo esc_html__("Select the gpt-5 reasoning settings.", 'aiomatic-automatic-ai-content-writer');
8220
+
?>
8221
+
</div>
8222
+
</div>
8223
+
<b><?php echo esc_html__("Reasoning Settings:", 'aiomatic-automatic-ai-content-writer');?></b>
8224
+
</th>
8225
+
<td>
8226
+
<select id="api_reasoning" name="aiomatic_Main_Settings[api_reasoning]" class="cr_width_full">
8227
+
<option value=""<?php
8228
+
if ($api_reasoning == "") {
8229
+
echo " selected";
8230
+
}
8231
+
?>><?php echo esc_html__("No change", 'aiomatic-automatic-ai-content-writer');?></option>
8232
+
<option value="minimal"<?php
8233
+
if ($api_reasoning == "minimal") {
8234
+
echo " selected";
8235
+
}
8236
+
?>><?php echo esc_html__("minimal/none", 'aiomatic-automatic-ai-content-writer');?></option>
8237
+
<option value="low"<?php
8238
+
if ($api_reasoning == "low") {
8239
+
echo " selected";
8240
+
}
8241
+
?>><?php echo esc_html__("low", 'aiomatic-automatic-ai-content-writer');?></option>
8242
+
<option value="medium"<?php
8243
+
if ($api_reasoning == "medium") {
8244
+
echo " selected";
8245
+
}
8246
+
?>><?php echo esc_html__("medium", 'aiomatic-automatic-ai-content-writer');?></option>
8247
+
<option value="high"<?php
8248
+
if ($api_reasoning == "high") {
8249
+
echo " selected";
8250
+
}
8251
+
?>><?php echo esc_html__("high", 'aiomatic-automatic-ai-content-writer');?></option>
8252
+
</select>
8253
+
</td>
8254
+
</tr><tr>
8255
+
<th>
8256
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8257
+
<div class="bws_hidden_help_text cr_min_260px">
8258
+
<?php
8259
+
echo esc_html__("Select the gpt-5 verbosity settings.", 'aiomatic-automatic-ai-content-writer');
8260
+
?>
8261
+
</div>
8262
+
</div>
8263
+
<b><?php echo esc_html__("Verbosity Settings:", 'aiomatic-automatic-ai-content-writer');?></b>
8264
+
</th>
8265
+
<td>
8266
+
<select id="api_verbosity" name="aiomatic_Main_Settings[api_verbosity]" class="cr_width_full">
8267
+
<option value=""<?php
8268
+
if ($api_verbosity == "") {
8269
+
echo " selected";
8270
+
}
8271
+
?>><?php echo esc_html__("No change", 'aiomatic-automatic-ai-content-writer');?></option>
8272
+
<option value="low"<?php
8273
+
if ($api_verbosity == "low") {
8274
+
echo " selected";
8275
+
}
8276
+
?>><?php echo esc_html__("low", 'aiomatic-automatic-ai-content-writer');?></option>
8277
+
<option value="medium"<?php
8278
+
if ($api_verbosity == "medium") {
8279
+
echo " selected";
8280
+
}
8281
+
?>><?php echo esc_html__("medium", 'aiomatic-automatic-ai-content-writer');?></option>
8282
+
<option value="high"<?php
8283
+
if ($api_verbosity == "high") {
8284
+
echo " selected";
8285
+
}
8286
+
?>><?php echo esc_html__("high", 'aiomatic-automatic-ai-content-writer');?></option>
8287
+
</select>
8288
+
</td>
8289
+
</tr>
8290
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Textual AI Models Advanced Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
8291
+
<tr>
8292
+
<th>
8293
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8294
+
<div class="bws_hidden_help_text cr_min_260px">
8295
+
<?php
8296
+
echo esc_html__("Select if you want to use the modern Responses API from OpenAI. This is an experimental feature. It also allows access to the o1-pro AI model. This mode will be automatically used if the o1-pro model is selected, as it is available for use only in the Responses API.", 'aiomatic-automatic-ai-content-writer');
8297
+
?>
8298
+
</div>
8299
+
</div>
8300
+
<b><?php echo esc_html__("Enable Usage Of OpenAI's Responses API (Experimental Feature):", 'aiomatic-automatic-ai-content-writer');?></b>
8301
+
</th>
8302
+
<td>
8303
+
<label class="aiomatic-switch"><input type="checkbox" id="responses_api" name="aiomatic_Main_Settings[responses_api]" onchange="responsesChanged();"<?php
8304
+
if ($responses_api == 'on')
8305
+
echo ' checked ';
8306
+
?>><span class="aiomatic-slider round"></span></label>
8307
+
</td>
8308
+
</tr>
8309
+
<tr class="aiomatic-need-responses-api">
8310
+
<th>
8311
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8312
+
<div class="bws_hidden_help_text cr_min_260px">
8313
+
<?php
8314
+
echo esc_html__("Select if you want to enable the web_search tool for OpenAI models. This will allow supported models to search the internet and query data in real time (on OpenAI's side). This works only in the Responses API.", 'aiomatic-automatic-ai-content-writer');
8315
+
?>
8316
+
</div>
8317
+
</div>
8318
+
<b><?php echo esc_html__("Enable AI Models To Search The Web Directly - 'web_search' Tool (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
8319
+
</th>
8320
+
<td>
8321
+
<label class="aiomatic-switch"><input type="checkbox" id="web_search" name="aiomatic_Main_Settings[web_search]"<?php
8322
+
if ($web_search == 'on')
8323
+
echo ' checked ';
8324
+
?>><span class="aiomatic-slider round"></span></label>
8325
+
</td>
8326
+
</tr>
8327
+
<tr class="aiomatic-need-responses-api">
8328
+
<th>
8329
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8330
+
<div class="bws_hidden_help_text cr_min_260px">
8331
+
<?php
8332
+
echo esc_html__("Select if you want to enable the code_interpreter tool for OpenAI models. This will enable the supported models to write and run python code to resolve complex tasks. This works only in the Responses API.", 'aiomatic-automatic-ai-content-writer');
8333
+
?>
8334
+
</div>
8335
+
</div>
8336
+
<b><?php echo esc_html__("Enable AI Models To Write And Run Python Code - 'code_interpreter' Tool (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
8337
+
</th>
8338
+
<td>
8339
+
<label class="aiomatic-switch"><input type="checkbox" id="code_interpreter" name="aiomatic_Main_Settings[code_interpreter]"<?php
8340
+
if ($code_interpreter == 'on')
8341
+
echo ' checked ';
8342
+
?>><span class="aiomatic-slider round"></span></label>
8343
+
</td>
8344
+
</tr>
8345
+
<tr>
8346
+
<th>
8347
+
<div>
8348
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8349
+
<div class="bws_hidden_help_text cr_min_260px">
8350
+
<?php
8351
+
echo esc_html__("If specified, the AI API will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, as changes can be made to the API in the backend, over longer periods of time.", 'aiomatic-automatic-ai-content-writer');
8352
+
?>
8353
+
</div>
8354
+
</div>
8355
+
<b><?php echo esc_html__("Seed For AI Writer (To Make Responses Deterministic):", 'aiomatic-automatic-ai-content-writer');?></b>
8356
+
</div>
8357
+
</th>
8358
+
<td>
8359
+
<div>
8360
+
<input type="number" id="ai_seed" step="1" min="0" placeholder="<?php echo esc_html__("AI Seed", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[ai_seed]" value="<?php
8361
+
echo esc_html($ai_seed);
8362
+
?>" class="cr_width_full"/>
8363
+
</div>
8364
+
</td>
8365
+
</tr>
8366
+
<tr>
8367
+
<th class="cr_min_width_200">
8368
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8369
+
<div class="bws_hidden_help_text cr_min_260px">
8370
+
<?php
8371
+
echo esc_html__("Set a hardcoded context window limit for the gpt-3.5-turbo-1106 model. If you don't set this, the default 16385 token limit will be used.", 'aiomatic-automatic-ai-content-writer');
8372
+
?>
8373
+
</div>
8374
+
</div>
8375
+
<b><?php echo esc_html__("Context Window Limit For gpt-3.5-turbo-1106:", 'aiomatic-automatic-ai-content-writer');?></b>
8376
+
</th>
8377
+
<td>
8378
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[gpt35_context_limit]" value="<?php echo esc_html($gpt35_context_limit);?>" placeholder="16385" class="cr_width_full">
8379
+
</td>
8380
+
</tr>
8381
+
<tr>
8382
+
<th class="cr_min_width_200">
8383
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8384
+
<div class="bws_hidden_help_text cr_min_260px">
8385
+
<?php
8386
+
echo esc_html__("Set a hardcoded context window limit for the gpt-4-1106(-preview) model. If you don't set this, the default 128000 token limit will be used.", 'aiomatic-automatic-ai-content-writer');
8387
+
?>
8388
+
</div>
8389
+
</div>
8390
+
<b><?php echo esc_html__("Context Window Limit For gpt-4-1106:", 'aiomatic-automatic-ai-content-writer');?></b>
8391
+
</th>
8392
+
<td>
8393
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[gpt4_context_limit]" value="<?php echo esc_html($gpt4_context_limit);?>" placeholder="128000" class="cr_width_full">
8394
+
</td>
8395
+
</tr>
8396
+
<tr>
8397
+
<th class="cr_min_width_200">
8398
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8399
+
<div class="bws_hidden_help_text cr_min_260px">
8400
+
<?php
8401
+
echo esc_html__("Set a hardcoded context window limit for the Claude models. If you don't set this, the default 100000 token limit will be used.", 'aiomatic-automatic-ai-content-writer');
8402
+
?>
8403
+
</div>
8404
+
</div>
8405
+
<b><?php echo esc_html__("Context Window Limit For Claude Models:", 'aiomatic-automatic-ai-content-writer');?></b>
8406
+
</th>
8407
+
<td>
8408
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[claude_context_limit]" value="<?php echo esc_html($claude_context_limit);?>" placeholder="100000" class="cr_width_full">
8409
+
</td>
8410
+
</tr>
8411
+
<tr>
8412
+
<th class="cr_min_width_200">
8413
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8414
+
<div class="bws_hidden_help_text cr_min_260px">
8415
+
<?php
8416
+
echo esc_html__("Set a hardcoded context window limit for the Claude 200k models. If you don't set this, the default 200000 token limit will be used.", 'aiomatic-automatic-ai-content-writer');
8417
+
?>
8418
+
</div>
8419
+
</div>
8420
+
<b><?php echo esc_html__("Context Window Limit For Claude 200k Models:", 'aiomatic-automatic-ai-content-writer');?></b>
8421
+
</th>
8422
+
<td>
8423
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[claude_context_limit_200k]" value="<?php echo esc_html($claude_context_limit_200k);?>" placeholder="200000" class="cr_width_full">
8424
+
</td>
8425
+
</tr>
8426
+
<tr>
8427
+
<th class="cr_min_width_200">
8428
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8429
+
<div class="bws_hidden_help_text cr_min_260px">
8430
+
<?php
8431
+
echo esc_html__("Set a fallback AI model list when running AI requests. You can set multiple models, one per line.", 'aiomatic-automatic-ai-content-writer');
8432
+
?>
8433
+
</div>
8434
+
</div>
8435
+
<b><?php echo esc_html__("Fallback AI Model List If The AI Fails To Process The Response:", 'aiomatic-automatic-ai-content-writer');?></b>
8436
+
</th>
8437
+
<td>
8438
+
<textarea name="aiomatic_Main_Settings[fallback_models]" placeholder="Fallback AI model list (one per line)" class="cr_width_full"><?php echo esc_textarea($fallback_models);?></textarea>
8439
+
</td>
8440
+
</tr>
8441
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Assistants Advanced Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
8442
+
<tr>
8443
+
<th>
8444
+
<div>
8445
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8446
+
<div class="bws_hidden_help_text cr_min_260px">
8447
+
<?php
8448
+
echo esc_html__("Set the maximum number of prompt tokens which AI Assistants are allowed to use. Use this settings with caution, incomplete Assistant messages may result if this is used.", 'aiomatic-automatic-ai-content-writer');
8449
+
?>
8450
+
</div>
8451
+
</div>
8452
+
<b><?php echo esc_html__("AI Assistants Maximum Prompt Token Count:", 'aiomatic-automatic-ai-content-writer');?></b>
8453
+
</div>
8454
+
</th>
8455
+
<td>
8456
+
<div>
8457
+
<input type="number" id="assist_max_prompt_token" step="1" min="0" placeholder="<?php echo esc_html__("Max Prompt Token Count", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[assist_max_prompt_token]" value="<?php
8458
+
echo esc_html($assist_max_prompt_token);
8459
+
?>" class="cr_width_full"/>
8460
+
</div>
8461
+
</td>
8462
+
</tr>
8463
+
<tr>
8464
+
<th>
8465
+
<div>
8466
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8467
+
<div class="bws_hidden_help_text cr_min_260px">
8468
+
<?php
8469
+
echo esc_html__("Set the maximum number of completion tokens which AI Assistants are allowed to use. Use this settings with caution, incomplete Assistant messages may result if this is used.", 'aiomatic-automatic-ai-content-writer');
8470
+
?>
8471
+
</div>
8472
+
</div>
8473
+
<b><?php echo esc_html__("AI Assistants Maximum Completion Token Count:", 'aiomatic-automatic-ai-content-writer');?></b>
8474
+
</div>
8475
+
</th>
8476
+
<td>
8477
+
<div>
8478
+
<input type="number" id="assist_max_completion_token" step="1" min="0" placeholder="<?php echo esc_html__("Max Completion Token Count", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[assist_max_completion_token]" value="<?php
8479
+
echo esc_html($assist_max_completion_token);
8480
+
?>" class="cr_width_full"/>
8481
+
</div>
8482
+
</td>
8483
+
</tr>
8484
+
</table>
8485
+
<table class="widefat">
8486
+
<tr class="aiomatic-title-holder">
8487
+
<td class="cr_width_full">
8488
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("HuggingFace Models:", 'aiomatic-automatic-ai-content-writer');?></h2>
8489
+
</td></tr>
8490
+
<?php
8491
+
if(empty($app_id_huggingface))
8492
+
{
8493
+
echo '<tr><td>' . esc_html__("You need to add a HuggingFace API key in plugin settings to use this feature.", 'aiomatic-automatic-ai-content-writer') . '</td></tr>';
8494
+
}
8495
+
else
8496
+
{
8497
+
?>
8498
+
<tr><td class="cr_inline">
8499
+
<div class="table-responsive">
8500
+
<div id="grid-models-aiomatic">
8501
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
8502
+
<?php echo esc_html__("ID", 'aiomatic-automatic-ai-content-writer');?>
8503
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8504
+
<div class="bws_hidden_help_text cr_min_260px">
8505
+
<?php
8506
+
echo esc_html__("This is the ID of the model.", 'aiomatic-automatic-ai-content-writer');
8507
+
?>
8508
+
</div>
8509
+
</div>
8510
+
</div>
8511
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
8512
+
<?php echo esc_html__("Del", 'aiomatic-automatic-ai-content-writer');?>
8513
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8514
+
<div class="bws_hidden_help_text cr_min_260px">
8515
+
<?php
8516
+
echo esc_html__("Do you want to delete this model?", 'aiomatic-automatic-ai-content-writer');
8517
+
?>
8518
+
</div>
8519
+
</div>
8520
+
</div>
8521
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
8522
+
<a href="https://huggingface.co/models?pipeline_tag=text-generation&sort=trending" target="_blank"><?php echo esc_html__("HuggingFace Model Name", 'aiomatic-automatic-ai-content-writer');?></a>
8523
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8524
+
<div class="bws_hidden_help_text cr_min_260px">
8525
+
<?php
8526
+
echo esc_html__("The name of the model from HuggingFace.", 'aiomatic-automatic-ai-content-writer');
8527
+
?>
8528
+
</div>
8529
+
</div>
8530
+
</div>
8531
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
8532
+
<a href="https://ui.endpoints.huggingface.co/" target="_blank"><?php echo esc_html__("Inference Endpoint URL (Optional)", 'aiomatic-automatic-ai-content-writer');?></a>
8533
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8534
+
<div class="bws_hidden_help_text cr_min_260px">
8535
+
<?php
8536
+
echo esc_html__("The Inference Endpoint URL of this model (optional). This is required only for models which are too large to be run on HuggingFace default platform (for which, the 'The model ... is too large to be loaded automatically (...GB > 10GB)' message is returned). Check this tutorial video for details on the usage of this feature:", 'aiomatic-automatic-ai-content-writer') . ' <a href="https://youtu.be/ub81iVAWjJ0" target="_blank">Huggingface Update</a>.';
8537
+
?>
8538
+
</div>
8539
+
</div>
8540
+
</div>
8541
+
<?php
8542
+
echo aiomatic_expand_huggingface_models();
8543
+
?>
8544
+
<div>
8545
+
<hr/>
8546
+
</div>
8547
+
<div>
8548
+
<hr/>
8549
+
</div>
8550
+
<div>
8551
+
<hr/>
8552
+
</div>
8553
+
<div>
8554
+
<hr/>
8555
+
</div>
8556
+
<div class="cr_center">-</div>
8557
+
<div class="cr_center"><span class="cr_gray20">X</span></div>
8558
+
<div class="cr_center"><input type="text" name="aiomatic_huggingface_models[model][]" placeholder="<?php echo esc_html__("Please insert the model name", 'aiomatic-automatic-ai-content-writer');?>" value=""/></div>
8559
+
<div class="cr_center"><input type="url" name="aiomatic_huggingface_models[endpoint_url][]" placeholder="<?php echo esc_html__("Inference Endpoint URL (Optional)", 'aiomatic-automatic-ai-content-writer');?>" value=""/></div>
8560
+
</div>
8561
+
</div>
8562
+
<hr/>
8563
+
<p class="crsubmit"><input type="submit" name="btnSubmitkw" id="btnSubmitkw" class="button button-primary" onclick="unsaved = false;" value="<?php echo esc_html__("Save Models", 'aiomatic-automatic-ai-content-writer');?>"/></p>
8564
+
</td></tr>
8565
+
<?php
8566
+
}
8567
+
?>
8568
+
</table>
8569
+
</div>
8570
+
<div id="tab-26<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
8571
+
<h3><?php echo esc_html__('AI Image Selector', 'aiomatic-automatic-ai-content-writer');?></h3>
8572
+
<p class="aiomatic-settings-desc"><?php
8573
+
echo esc_html__("The 'AI Image Selector Settings' tab enables you to configure and customize AI-driven tools that help select the most relevant and impactful images for your WordPress site's content.", 'aiomatic-automatic-ai-content-writer');
8574
+
?></p>
8575
+
<table class="widefat">
8576
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Default Featured Image Optimizations:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
8577
+
<tr>
8578
+
<th>
8579
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8580
+
<div class="bws_hidden_help_text cr_min_260px">
8581
+
<?php
8582
+
echo esc_html__("If you entered a list of images in the 'Default Featured Image List' settings field, you can set up the plugin to ask the AI to select the image which matches the best the title of the published post.", 'aiomatic-automatic-ai-content-writer');
8583
+
?>
8584
+
</div>
8585
+
</div>
8586
+
<b><?php echo esc_html__("Use AI To Select Default Featured Image For Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
8587
+
</th>
8588
+
<td>
8589
+
<label class="aiomatic-switch"><input type="checkbox" id="use_image_ai" onchange="imageAIChanged();" name="aiomatic_Main_Settings[use_image_ai]"<?php
8590
+
if ($use_image_ai == 'on')
8591
+
echo ' checked ';
8592
+
?>><span class="aiomatic-slider round"></span></label>
8593
+
</td>
8594
+
</tr>
8595
+
<tr class="hideimgai">
8596
+
<th class="cr_min_width_200">
8597
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8598
+
<div class="bws_hidden_help_text cr_min_260px">
8599
+
<?php
8600
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
8601
+
?>
8602
+
</div>
8603
+
</div>
8604
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
8605
+
</th>
8606
+
<td><select id="img_assistant_id" name="aiomatic_Main_Settings[img_assistant_id]" class="cr_width_full" onchange="assistantSelected('img_assistant_id', 'disableImg');">
8607
+
<?php
8608
+
if($all_assistants === false)
8609
+
{
8610
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
8611
+
}
8612
+
else
8613
+
{
8614
+
if(count($all_assistants) == 0)
8615
+
{
8616
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
8617
+
}
8618
+
else
8619
+
{
8620
+
echo '<option value=""';
8621
+
if($img_assistant_id == '')
8622
+
{
8623
+
echo ' selected';
8624
+
}
8625
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
8626
+
foreach($all_assistants as $myassistant)
8627
+
{
8628
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
8629
+
if($img_assistant_id == $myassistant->ID)
8630
+
{
8631
+
echo ' selected';
8632
+
}
8633
+
echo '>' . esc_html($myassistant->post_title);
8634
+
echo '</option>';
8635
+
}
8636
+
}
8637
+
}
8638
+
?>
8639
+
</select>
8640
+
</td>
8641
+
</tr>
8642
+
<tr class="hideimgai">
8643
+
<th>
8644
+
<div>
8645
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8646
+
<div class="bws_hidden_help_text cr_min_260px">
8647
+
<?php
8648
+
echo esc_html__("Select the default model you want to use for the AI Default Featured Image Selector prompt.", 'aiomatic-automatic-ai-content-writer');
8649
+
?>
8650
+
</div>
8651
+
</div>
8652
+
<b><?php echo esc_html__("AI Default Featured Image Selector Model:", 'aiomatic-automatic-ai-content-writer');?></b>
8653
+
</div>
8654
+
</th>
8655
+
<td>
8656
+
<div>
8657
+
<select id="image_ai_model" name="aiomatic_Main_Settings[image_ai_model]" <?php if($img_assistant_id != ''){echo ' disabled';}?> class="cr_width_full disableImg">
8658
+
<?php
8659
+
foreach($all_models as $modelx)
8660
+
{
8661
+
echo '<option value="' . esc_html($modelx) .'"';
8662
+
if ($image_ai_model == $modelx)
8663
+
{
8664
+
echo " selected";
8665
+
}
8666
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
8667
+
}
8668
+
?>
8669
+
</select>
8670
+
</div>
8671
+
</td>
8672
+
</tr>
8673
+
<tr class="hideimgai">
8674
+
<th class="cr_min_width_200">
8675
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8676
+
<div class="bws_hidden_help_text cr_min_260px">
8677
+
<?php
8678
+
echo esc_html__("Set the prompt to be used for the AI Default Featured Image Selector. You can use the following shortcodes: %%post_title%%, %%image_list%% - The default value for this settings field is: Select an image URL, based on its file name, which matches the best the post, based on its title. If no matching image can be selected, pick a random one from the list. Respond only with the URL of the selected image and with nothing else. The title of the post is: \"%%post_title%%\" The image URL list is: %%image_list%%", 'aiomatic-automatic-ai-content-writer');
8679
+
?>
8680
+
</div>
8681
+
</div>
8682
+
<b><?php echo esc_html__("AI Default Featured Image Selector:", 'aiomatic-automatic-ai-content-writer');?></b>
8683
+
</th>
8684
+
<td>
8685
+
<textarea name="aiomatic_Main_Settings[image_ai_prompt]" placeholder="YouTube Video Search Keyword Extractor Prompt" class="cr_width_full"><?php echo esc_textarea($image_ai_prompt);?></textarea>
8686
+
</td>
8687
+
</tr>
8688
+
</table>
8689
+
</div>
8690
+
<div id="tab-21<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
8691
+
<h3><?php echo esc_html__('AI Comment Writer', 'aiomatic-automatic-ai-content-writer');?></h3>
8692
+
<p class="aiomatic-settings-desc"><?php
8693
+
echo esc_html__("The 'AI Comment Writer' tab provides an automated system to generate and manage intelligent, context-aware comments, enhancing engagement across your WordPress site.", 'aiomatic-automatic-ai-content-writer');
8694
+
?></p>
8695
+
<table class="widefat">
8696
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Comment Writer Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
8697
+
<tr>
8698
+
<th class="cr_min_width_200">
8699
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8700
+
<div class="bws_hidden_help_text cr_min_260px">
8701
+
<?php
8702
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
8703
+
?>
8704
+
</div>
8705
+
</div>
8706
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
8707
+
</th>
8708
+
<td><select id="comment_assistant_id" name="aiomatic_Main_Settings[comment_assistant_id]" class="cr_width_full" onchange="assistantSelected('comment_assistant_id', 'disableComment');">
8709
+
<?php
8710
+
if($all_assistants === false)
8711
+
{
8712
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
8713
+
}
8714
+
else
8715
+
{
8716
+
if(count($all_assistants) == 0)
8717
+
{
8718
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
8719
+
}
8720
+
else
8721
+
{
8722
+
echo '<option value=""';
8723
+
if($comment_assistant_id == '')
8724
+
{
8725
+
echo ' selected';
8726
+
}
8727
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
8728
+
foreach($all_assistants as $myassistant)
8729
+
{
8730
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
8731
+
if($comment_assistant_id == $myassistant->ID)
8732
+
{
8733
+
echo ' selected';
8734
+
}
8735
+
echo '>' . esc_html($myassistant->post_title);
8736
+
echo '</option>';
8737
+
}
8738
+
}
8739
+
}
8740
+
?>
8741
+
</select>
8742
+
</td>
8743
+
</tr>
8744
+
<tr>
8745
+
<th>
8746
+
<div>
8747
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8748
+
<div class="bws_hidden_help_text cr_min_260px">
8749
+
<?php
8750
+
echo esc_html__("Select the default model you want to use for the AI Comment Writer.", 'aiomatic-automatic-ai-content-writer');
8751
+
?>
8752
+
</div>
8753
+
</div>
8754
+
<b><?php echo esc_html__("AI Comment Writer Model:", 'aiomatic-automatic-ai-content-writer');?></b>
8755
+
</div>
8756
+
</th>
8757
+
<td>
8758
+
<div>
8759
+
<select id="comment_model" name="aiomatic_Main_Settings[comment_model]" <?php if($comment_assistant_id != ''){echo ' disabled';}?> class="disableComment cr_width_full">
8760
+
<?php
8761
+
foreach($all_models as $modelx)
8762
+
{
8763
+
echo '<option value="' . esc_html($modelx) .'"';
8764
+
if ($comment_model == $modelx)
8765
+
{
8766
+
echo " selected";
8767
+
}
8768
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
8769
+
}
8770
+
?>
8771
+
</select>
8772
+
</div>
8773
+
</td>
8774
+
</tr>
8775
+
<tr>
8776
+
<th class="cr_min_width_200">
8777
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8778
+
<div class="bws_hidden_help_text cr_min_260px">
8779
+
<?php
8780
+
echo esc_html__("Set the prompt to be used for the AI Comment Writer feature. You can use the following shortcodes here: %%post_title%%, %%post_excerpt%%, %%username%%, %%comment%% - default is: Write a reply for %%username%%'s comment on the post titled \"%%post_title%%\". The user's comment is: %%comment%%", 'aiomatic-automatic-ai-content-writer');
8781
+
?>
8782
+
</div>
8783
+
</div>
8784
+
<b><?php echo esc_html__("AI Comment Writer Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
8785
+
</th>
8786
+
<td>
8787
+
<textarea name="aiomatic_Main_Settings[comment_prompt]" placeholder="AI Comment Writer Prompt" class="cr_width_full"><?php echo esc_textarea($comment_prompt);?></textarea>
8788
+
</td>
8789
+
</tr><tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Auto Comment Reply Writer Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
8790
+
<tr>
8791
+
<th>
8792
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8793
+
<div class="bws_hidden_help_text cr_min_260px">
8794
+
<?php
8795
+
echo esc_html__("Select the post types for which you want to enable embeddings auto indexing of comments. For WooCommerce products, newly published product reviews will be indexed.", 'aiomatic-automatic-ai-content-writer');
8796
+
?>
8797
+
</div>
8798
+
</div>
8799
+
<b><?php echo esc_html__("Enable Comment Auto Replies For Newly Published Comments On:", 'aiomatic-automatic-ai-content-writer');?></b>
8800
+
</th>
8801
+
<td>
8802
+
<select autocomplete="off" id="comment_auto_types" multiple name="aiomatic_Main_Settings[comment_auto_types][]" class="cr_width_full">
8803
+
<?php
8804
+
foreach ( get_post_types( '', 'names' ) as $tpost_type ) {
8805
+
if(strstr($tpost_type, 'aiomatic_'))
8806
+
{
8807
+
continue;
8808
+
}
8809
+
echo '<option value="' . esc_attr($tpost_type) . '"';
8810
+
if(in_array($tpost_type, $comment_auto_types))
8811
+
{
8812
+
echo ' selected';
8813
+
}
8814
+
echo '>' . esc_html($tpost_type) . '</option>';
8815
+
}
8816
+
?>
8817
+
</select>
8818
+
</td>
8819
+
</tr>
8820
+
<tr>
8821
+
<th class="cr_min_width_200">
8822
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8823
+
<div class="bws_hidden_help_text cr_min_260px">
8824
+
<?php
8825
+
echo esc_html__("Select the AI Auto Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
8826
+
?>
8827
+
</div>
8828
+
</div>
8829
+
<b><?php echo esc_html__("AI Auto Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
8830
+
</th>
8831
+
<td><select id="comment_assistant_id_auto" name="aiomatic_Main_Settings[comment_assistant_id_auto]" class="cr_width_full" onchange="assistantSelected('comment_assistant_id_auto', 'disableComment');">
8832
+
<?php
8833
+
if($all_assistants === false)
8834
+
{
8835
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
8836
+
}
8837
+
else
8838
+
{
8839
+
if(count($all_assistants) == 0)
8840
+
{
8841
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
8842
+
}
8843
+
else
8844
+
{
8845
+
echo '<option value=""';
8846
+
if($comment_assistant_id_auto == '')
8847
+
{
8848
+
echo ' selected';
8849
+
}
8850
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
8851
+
foreach($all_assistants as $myassistant)
8852
+
{
8853
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
8854
+
if($comment_assistant_id_auto == $myassistant->ID)
8855
+
{
8856
+
echo ' selected';
8857
+
}
8858
+
echo '>' . esc_html($myassistant->post_title);
8859
+
echo '</option>';
8860
+
}
8861
+
}
8862
+
}
8863
+
?>
8864
+
</select>
8865
+
</td>
8866
+
</tr>
8867
+
<tr>
8868
+
<th>
8869
+
<div>
8870
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8871
+
<div class="bws_hidden_help_text cr_min_260px">
8872
+
<?php
8873
+
echo esc_html__("Select the default model you want to use for the AI Auto Comment Writer.", 'aiomatic-automatic-ai-content-writer');
8874
+
?>
8875
+
</div>
8876
+
</div>
8877
+
<b><?php echo esc_html__("AI Auto Comment Writer Model:", 'aiomatic-automatic-ai-content-writer');?></b>
8878
+
</div>
8879
+
</th>
8880
+
<td>
8881
+
<div>
8882
+
<select id="comment_model_auto" name="aiomatic_Main_Settings[comment_model_auto]" <?php if($comment_assistant_id_auto != ''){echo ' disabled';}?> class="disableAutoComment cr_width_full">
8883
+
<?php
8884
+
foreach($all_models as $modelx)
8885
+
{
8886
+
echo '<option value="' . esc_html($modelx) .'"';
8887
+
if ($comment_model_auto == $modelx)
8888
+
{
8889
+
echo " selected";
8890
+
}
8891
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
8892
+
}
8893
+
?>
8894
+
</select>
8895
+
</div>
8896
+
</td>
8897
+
</tr>
8898
+
<tr>
8899
+
<th class="cr_min_width_200">
8900
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8901
+
<div class="bws_hidden_help_text cr_min_260px">
8902
+
<?php
8903
+
echo esc_html__("Set the prompt to be used for the AI Auto Comment Writer feature. You can use the following shortcodes here: %%post_title%%, %%username%%, %%comment%% - default is: Write a reply for %%username%%'s comment on the post titled \"%%post_title%%\". The user's comment is: %%comment%%", 'aiomatic-automatic-ai-content-writer');
8904
+
?>
8905
+
</div>
8906
+
</div>
8907
+
<b><?php echo esc_html__("AI Auto Comment Writer Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
8908
+
</th>
8909
+
<td>
8910
+
<textarea name="aiomatic_Main_Settings[comment_prompt_auto]" placeholder="AI Comment Writer Prompt" class="cr_width_full"><?php echo esc_textarea($comment_prompt_auto);?></textarea>
8911
+
</td>
8912
+
</tr>
8913
+
<tr>
8914
+
<th class="cr_min_width_200">
8915
+
<div>
8916
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8917
+
<div class="bws_hidden_help_text cr_min_260px">
8918
+
<?php
8919
+
echo esc_html__("Do you want to keep created comments/reviews for manual approval?", 'aiomatic-automatic-ai-content-writer');
8920
+
?>
8921
+
</div>
8922
+
</div>
8923
+
<b><?php echo esc_html__("Keep Created Comments For Review (Don't Auto Approve Them):", 'aiomatic-automatic-ai-content-writer');?></b>
8924
+
</div>
8925
+
</th>
8926
+
<td>
8927
+
<div>
8928
+
<label class="aiomatic-switch"><input type="checkbox" id="no_approve" name="aiomatic_Main_Settings[no_approve]"<?php
8929
+
if ($no_approve == 'on')
8930
+
echo ' checked ';
8931
+
?>><span class="aiomatic-slider round"></span></label>
8932
+
</div>
8933
+
</td>
8934
+
</tr>
8935
+
<tr>
8936
+
<th class="cr_min_width_200">
8937
+
<div>
8938
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8939
+
<div class="bws_hidden_help_text cr_min_260px">
8940
+
<?php
8941
+
echo esc_html__("Input a list of user names that the plugin will use when submitting comments/reviews. One per line. If you leave this field empty, a random user will be selected from your site. Possible shortcode that can be used here: %%random_user%%, %%random_new_name%%, %%author_name%%, %%random_sentence%%, %%random_sentence2%%", 'aiomatic-automatic-ai-content-writer');
8942
+
?>
8943
+
</div>
8944
+
</div>
8945
+
<b><?php echo esc_html__("Comment/Review User Name List:", 'aiomatic-automatic-ai-content-writer');?></b>
8946
+
</div>
8947
+
</th>
8948
+
<td>
8949
+
<div>
8950
+
<textarea rows="4" name="aiomatic_Main_Settings[user_list]" placeholder="Insert a list of user names to use when submitting comments (one per line)" class="cr_width_full"><?php
8951
+
echo esc_textarea($user_list);
8952
+
?></textarea>
8953
+
</div>
8954
+
</td>
8955
+
</tr>
8956
+
<tr>
8957
+
<th class="cr_min_width_200">
8958
+
<div>
8959
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8960
+
<div class="bws_hidden_help_text cr_min_260px">
8961
+
<?php
8962
+
echo esc_html__("Input a list of e-mails that the plugin will use when submitting comments/reviews. One per line. If you leave this field empty, a random email will be generated. Possible shortcode that can be used here: %%random_sentence%%, %%random_sentence2%%", 'aiomatic-automatic-ai-content-writer');
8963
+
?>
8964
+
</div>
8965
+
</div>
8966
+
<b><?php echo esc_html__("Comment/Review E-mail List:", 'aiomatic-automatic-ai-content-writer');?></b>
8967
+
</div>
8968
+
</th>
8969
+
<td>
8970
+
<div>
8971
+
<textarea rows="4" name="aiomatic_Main_Settings[email_list]" placeholder="Insert a list of e-mails to use when submitting comments (one per line)" class="cr_width_full"><?php
8972
+
echo esc_textarea($email_list);
8973
+
?></textarea>
8974
+
</div>
8975
+
</td>
8976
+
</tr>
8977
+
<tr>
8978
+
<th class="cr_min_width_200">
8979
+
<div>
8980
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8981
+
<div class="bws_hidden_help_text cr_min_260px">
8982
+
<?php
8983
+
echo esc_html__("Input a list of URLs that the plugin will use when submitting comments/reviews. One per line. Possible shortcode that can be used here: %%post_link%%, %%random_sentence%%, %%random_sentence2%%", 'aiomatic-automatic-ai-content-writer');
8984
+
?>
8985
+
</div>
8986
+
</div>
8987
+
<b><?php echo esc_html__("Comment/Review URL List:", 'aiomatic-automatic-ai-content-writer');?></b>
8988
+
</div>
8989
+
</th>
8990
+
<td>
8991
+
<div>
8992
+
<textarea rows="4" name="aiomatic_Main_Settings[url_list]" placeholder="Insert a list of URLs to use when submitting comments (one per line)" class="cr_width_full"><?php
8993
+
echo esc_textarea($url_list);
8994
+
?></textarea>
8995
+
</div>
8996
+
</td>
8997
+
</tr>
8998
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
8999
+
?>
9000
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Comment Writer Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9001
+
<tr>
9002
+
<td class="coderevolution_block_input" colspan="2">
9003
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/VknKvIcKRuw" allowfullscreen></iframe>
9004
+
</td></tr>
9005
+
<?php
9006
+
}
9007
+
?>
9008
+
</table>
9009
+
</div>
9010
+
<div id="tab-20<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
9011
+
<h3><?php echo esc_html__('[aicontent] Shortcode', 'aiomatic-automatic-ai-content-writer');?></h3>
9012
+
<p class="aiomatic-settings-desc"><?php
9013
+
echo esc_html__("The [aicontent] shortcode offers a wide range of options when it comes to creating AI content anywhere on your site. Check the below tutorial video for full details on this feature.", 'aiomatic-automatic-ai-content-writer');
9014
+
?></p>
9015
+
<table class="widefat">
9016
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("[aicontent] Shortcode Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9017
+
<tr>
9018
+
<th>
9019
+
<div>
9020
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9021
+
<div class="bws_hidden_help_text cr_min_260px">
9022
+
<?php
9023
+
echo esc_html__("Select if you want to disable the automatic rendering of [aicontent] shortcodes when the posts are saved.", 'aiomatic-automatic-ai-content-writer');
9024
+
?>
9025
+
</div>
9026
+
</div>
9027
+
<b><?php echo esc_html__("[aicontent] Disable Post Saving Automatic Shortcode Rendering:", 'aiomatic-automatic-ai-content-writer');?></b>
9028
+
</div>
9029
+
</th>
9030
+
<td>
9031
+
<div>
9032
+
<label class="aiomatic-switch"><input type="checkbox" id="disable_aicontent_saving" name="aiomatic_Main_Settings[disable_aicontent_saving]"<?php
9033
+
if ($disable_aicontent_saving == 'on')
9034
+
echo ' checked ';
9035
+
?>><span class="aiomatic-slider round"></span></label>
9036
+
</div>
9037
+
</td>
9038
+
</tr>
9039
+
<tr>
9040
+
<th class="cr_min_width_200">
9041
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9042
+
<div class="bws_hidden_help_text cr_min_260px">
9043
+
<?php
9044
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
9045
+
?>
9046
+
</div>
9047
+
</div>
9048
+
<b><?php echo esc_html__("[aicontent] AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
9049
+
</th>
9050
+
<td><select id="aicontent_assistant_id" name="aiomatic_Main_Settings[aicontent_assistant_id]" class="cr_width_full" onchange="assistantSelected('aicontent_assistant_id', 'disableAicontent');">
9051
+
<?php
9052
+
if($all_assistants === false)
9053
+
{
9054
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
9055
+
}
9056
+
else
9057
+
{
9058
+
if(count($all_assistants) == 0)
9059
+
{
9060
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
9061
+
}
9062
+
else
9063
+
{
9064
+
echo '<option value=""';
9065
+
if($aicontent_assistant_id == '')
9066
+
{
9067
+
echo ' selected';
9068
+
}
9069
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
9070
+
foreach($all_assistants as $myassistant)
9071
+
{
9072
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
9073
+
if($aicontent_assistant_id == $myassistant->ID)
9074
+
{
9075
+
echo ' selected';
9076
+
}
9077
+
echo '>' . esc_html($myassistant->post_title);
9078
+
echo '</option>';
9079
+
}
9080
+
}
9081
+
}
9082
+
?>
9083
+
</select>
9084
+
</td>
9085
+
</tr>
9086
+
<tr>
9087
+
<th>
9088
+
<div>
9089
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9090
+
<div class="bws_hidden_help_text cr_min_260px">
9091
+
<?php
9092
+
echo esc_html__("Select the default model you want to use for the [aicontent] shortcode. You can defined this also in shortcode parameters.", 'aiomatic-automatic-ai-content-writer');
9093
+
?>
9094
+
</div>
9095
+
</div>
9096
+
<b><?php echo esc_html__("[aicontent] Shortcode Default Model:", 'aiomatic-automatic-ai-content-writer');?></b>
9097
+
</div>
9098
+
</th>
9099
+
<td>
9100
+
<div>
9101
+
<select id="aicontent_model" name="aiomatic_Main_Settings[aicontent_model]" <?php if($aicontent_assistant_id != ''){echo ' disabled';}?> class="disableAicontent cr_width_full">
9102
+
<?php
9103
+
foreach($all_models as $modelx)
9104
+
{
9105
+
echo '<option value="' . esc_html($modelx) .'"';
9106
+
if ($aicontent_model == $modelx)
9107
+
{
9108
+
echo " selected";
9109
+
}
9110
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
9111
+
}
9112
+
?>
9113
+
</select>
9114
+
</div>
9115
+
</td>
9116
+
</tr>
9117
+
<tr>
9118
+
<th class="cr_min_width_200">
9119
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9120
+
<div class="bws_hidden_help_text cr_min_260px">
9121
+
<?php
9122
+
echo esc_html__("What sampling temperature to use. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 (argmax sampling) for ones with a well-defined answer. We generally recommend altering this or top_p but not both.", 'aiomatic-automatic-ai-content-writer');
9123
+
?>
9124
+
</div>
9125
+
</div>
9126
+
<b><?php echo esc_html__("[aicontent] Shortcode Temperature:", 'aiomatic-automatic-ai-content-writer');?></b>
9127
+
</th>
9128
+
<td>
9129
+
<input type="number" min="0" step="0.01" max="2" name="aiomatic_Main_Settings[aicontent_temperature]" value="<?php echo esc_html($aicontent_temperature);?>" placeholder="1" class="cr_width_full">
9130
+
</td>
9131
+
</tr><tr>
9132
+
<th class="cr_min_width_200">
9133
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9134
+
<div class="bws_hidden_help_text cr_min_260px">
9135
+
<?php
9136
+
echo esc_html__("An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.", 'aiomatic-automatic-ai-content-writer');
9137
+
?>
9138
+
</div>
9139
+
</div>
9140
+
<b><?php echo esc_html__("[aicontent] Shortcode Top_p:", 'aiomatic-automatic-ai-content-writer');?></b>
9141
+
</th>
9142
+
<td>
9143
+
<input type="number" min="0" max="1" step="0.01" name="aiomatic_Main_Settings[aicontent_top_p]" value="<?php echo esc_html($aicontent_top_p);?>" placeholder="1" class="cr_width_full">
9144
+
</td>
9145
+
</tr><tr>
9146
+
<th class="cr_min_width_200">
9147
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9148
+
<div class="bws_hidden_help_text cr_min_260px">
9149
+
<?php
9150
+
echo esc_html__("Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.", 'aiomatic-automatic-ai-content-writer');
9151
+
?>
9152
+
</div>
9153
+
</div>
9154
+
<b><?php echo esc_html__("[aicontent] Shortcode Presence Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
9155
+
</th>
9156
+
<td>
9157
+
<input type="number" min="-2" step="0.01" max="2" name="aiomatic_Main_Settings[aicontent_presence_penalty]" value="<?php echo esc_html($aicontent_presence_penalty);?>" placeholder="0" class="cr_width_full">
9158
+
</td>
9159
+
</tr><tr>
9160
+
<th class="cr_min_width_200">
9161
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9162
+
<div class="bws_hidden_help_text cr_min_260px">
9163
+
<?php
9164
+
echo esc_html__("Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.", 'aiomatic-automatic-ai-content-writer');
9165
+
?>
9166
+
</div>
9167
+
</div>
9168
+
<b><?php echo esc_html__("[aicontent] Shortcode Frequency Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
9169
+
</th>
9170
+
<td>
9171
+
<input type="number" min="0" max="2" step="0.01" name="aiomatic_Main_Settings[aicontent_frequency_penalty]" value="<?php echo esc_html($aicontent_frequency_penalty);?>" placeholder="0" class="cr_width_full">
9172
+
</td>
9173
+
</tr>
9174
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
9175
+
?>
9176
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9177
+
<tr>
9178
+
<td class="coderevolution_block_input" colspan="2">
9179
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/z_mGPlBsQQA" allowfullscreen></iframe>
9180
+
</td></tr>
9181
+
<?php
9182
+
}
9183
+
?>
9184
+
</table>
9185
+
</div>
9186
+
<div id="tab-17<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
9187
+
<h3><?php echo esc_html__('Bulk AI Post Creator', 'aiomatic-automatic-ai-content-writer');?></h3>
9188
+
<p class="aiomatic-settings-desc"><?php
9189
+
echo esc_html__("The 'Bulk AI Post Creator' tab offers settings for tools which will efficiently generate multiple AI-driven posts, streamlining content creation and ensuring a consistent flow of fresh material on your WordPress site.", 'aiomatic-automatic-ai-content-writer');
9190
+
?></p>
9191
+
<table class="widefat">
9192
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Bulk AI Post Creator Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9193
+
<tr>
9194
+
<th>
9195
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9196
+
<div class="bws_hidden_help_text cr_min_260px">
9197
+
<?php
9198
+
echo esc_html__("Add a time period between the plugin will run importing at a schedule. To disable this feature, leave this field blank. This works based on your current server timezone and time. Your current server time is: ", 'aiomatic-automatic-ai-content-writer') . esc_html(date("h:i A"));
9199
+
?>
9200
+
</div>
9201
+
</div>
9202
+
<b><?php echo esc_html__("Automatically Run Rules Only Between These Hour Periods Each Day:", 'aiomatic-automatic-ai-content-writer');?></b>
9203
+
</th>
9204
+
<td>
9205
+
<input type="time" id="run_after" name="aiomatic_Main_Settings[run_after]" value="<?php echo esc_html($run_after);?>"> -
9206
+
<input type="time" id="run_before" name="aiomatic_Main_Settings[run_before]" value="<?php echo esc_html($run_before);?>">
9207
+
</td>
9208
+
</tr>
9209
+
<tr>
9210
+
<th>
9211
+
<div>
9212
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9213
+
<div class="bws_hidden_help_text cr_min_260px">
9214
+
<?php
9215
+
echo esc_html__("If you check this checkbox, the plugin will store all prompts used in the plugin, to allow model dillution and other features on OpenAI API's part. This works only if you are using an AI model provided by OpenAI.", 'aiomatic-automatic-ai-content-writer');
9216
+
?>
9217
+
</div>
9218
+
</div>
9219
+
<b><?php echo esc_html__("Store AI Prompts On OpenAI's Part (Bulk Post Creators):", 'aiomatic-automatic-ai-content-writer');?></b>
9220
+
</div>
9221
+
</th>
9222
+
<td>
9223
+
<div>
9224
+
<label class="aiomatic-switch"><input type="checkbox" id="store_data_rules" name="aiomatic_Main_Settings[store_data_rules]"<?php
9225
+
if ($store_data_rules == 'on')
9226
+
echo ' checked ';
9227
+
?>><span class="aiomatic-slider round"></span></label>
9228
+
</div>
9229
+
</td>
9230
+
</tr>
9231
+
<tr>
9232
+
<th>
9233
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9234
+
<div class="bws_hidden_help_text cr_min_260px">
9235
+
<?php
9236
+
echo esc_html__("Check this to force the plugin to make draft posts before they would be fully published. This can help you you use other third party plugins with the automatically published posts.", 'aiomatic-automatic-ai-content-writer');
9237
+
?>
9238
+
</div>
9239
+
</div>
9240
+
<b><?php echo esc_html__("Draft Posts First, And Publish Them Afterwards:", 'aiomatic-automatic-ai-content-writer');?></b>
9241
+
</th>
9242
+
<td>
9243
+
<label class="aiomatic-switch"><input type="checkbox" id="draft_first" name="aiomatic_Main_Settings[draft_first]"<?php
9244
+
if ($draft_first == 'on')
9245
+
echo ' checked ';
9246
+
?>><span class="aiomatic-slider round"></span></label>
9247
+
</td>
9248
+
</tr>
9249
+
<tr>
9250
+
<th>
9251
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9252
+
<div class="bws_hidden_help_text cr_min_260px">
9253
+
<?php
9254
+
echo esc_html__("Choose if you want to skip checking for duplicate post titles when publishing new posts. If you check this, duplicate post titles will be posted! So use it only when it is necesarry.", 'aiomatic-automatic-ai-content-writer');
9255
+
?>
9256
+
</div>
9257
+
</div>
9258
+
<b><?php echo esc_html__("Do Not Check For Duplicate Titles:", 'aiomatic-automatic-ai-content-writer');?></b>
9259
+
</th>
9260
+
<td>
9261
+
<label class="aiomatic-switch"><input type="checkbox" id="do_not_check_duplicates" name="aiomatic_Main_Settings[do_not_check_duplicates]"<?php
9262
+
if ($do_not_check_duplicates == 'on')
9263
+
echo ' checked ';
9264
+
?>><span class="aiomatic-slider round"></span></label>
9265
+
</td>
9266
+
</tr>
9267
+
<tr>
9268
+
<th>
9269
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9270
+
<div class="bws_hidden_help_text cr_min_260px">
9271
+
<?php
9272
+
echo esc_html__("Choose if you want to process entered titles/topics in order of entering them, not in a random order.", 'aiomatic-automatic-ai-content-writer');
9273
+
?>
9274
+
</div>
9275
+
</div>
9276
+
<b><?php echo esc_html__("Process Titles/Topics In Order, Not Random:", 'aiomatic-automatic-ai-content-writer');?></b>
9277
+
</th>
9278
+
<td>
9279
+
<label class="aiomatic-switch"><input type="checkbox" id="no_random_titles" name="aiomatic_Main_Settings[no_random_titles]"<?php
9280
+
if ($no_random_titles == 'on')
9281
+
echo ' checked ';
9282
+
?>><span class="aiomatic-slider round"></span></label>
9283
+
</td>
9284
+
</tr>
9285
+
<tr>
9286
+
<th>
9287
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9288
+
<div class="bws_hidden_help_text cr_min_260px">
9289
+
<?php
9290
+
echo esc_html__("Choose if you want to receive a summary of the rule running in an email.", 'aiomatic-automatic-ai-content-writer');
9291
+
?>
9292
+
</div>
9293
+
</div>
9294
+
<b><?php echo esc_html__("Send Rule Running Summary in Email:", 'aiomatic-automatic-ai-content-writer');?></b>
9295
+
</th>
9296
+
<td>
9297
+
<label class="aiomatic-switch"><input type="checkbox" id="send_email" onchange="mainChanged();" name="aiomatic_Main_Settings[send_email]"<?php
9298
+
if ($send_email == 'on')
9299
+
echo ' checked ';
9300
+
?>><span class="aiomatic-slider round"></span></label>
9301
+
</td>
9302
+
</tr>
9303
+
<tr>
9304
+
<th>
9305
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9306
+
<div class="bws_hidden_help_text cr_min_260px">
9307
+
<?php
9308
+
echo esc_html__("Convert the content to Gutenberg blocks.", 'aiomatic-automatic-ai-content-writer');
9309
+
?>
9310
+
</div>
9311
+
</div>
9312
+
<b><?php echo esc_html__("Convert Published Content To Gutenberg Blocks:", 'aiomatic-automatic-ai-content-writer');?></b>
9313
+
</th>
9314
+
<td>
9315
+
<label class="aiomatic-switch"><input type="checkbox" id="convert_gutenberg" name="aiomatic_Main_Settings[convert_gutenberg]"<?php
9316
+
if ($convert_gutenberg == 'on')
9317
+
echo ' checked ';
9318
+
?>><span class="aiomatic-slider round"></span></label>
9319
+
</td>
9320
+
</tr>
9321
+
<tr>
9322
+
<th>
9323
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9324
+
<div class="bws_hidden_help_text cr_min_260px">
9325
+
<?php
9326
+
echo esc_html__("Do not add images after intro sections in Bulk AI Post Creators?", 'aiomatic-automatic-ai-content-writer');
9327
+
?>
9328
+
</div>
9329
+
</div>
9330
+
<b><?php echo esc_html__("Do Not Add Images After Intro Sections:", 'aiomatic-automatic-ai-content-writer');?></b>
9331
+
</th>
9332
+
<td>
9333
+
<label class="aiomatic-switch"><input type="checkbox" id="no_intro_image" name="aiomatic_Main_Settings[no_intro_image]"<?php
9334
+
if ($no_intro_image == 'on')
9335
+
echo ' checked ';
9336
+
?>><span class="aiomatic-slider round"></span></label>
9337
+
</td>
9338
+
</tr>
9339
+
<tr>
9340
+
<th>
9341
+
<div class="hideMail">
9342
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9343
+
<div class="bws_hidden_help_text cr_min_260px">
9344
+
<?php
9345
+
echo esc_html__("Input the email adress where you want to send the report. You can input more email addresses, separated by commas.", 'aiomatic-automatic-ai-content-writer');
9346
+
?>
9347
+
</div>
9348
+
</div>
9349
+
<b><?php echo esc_html__("Email Address:", 'aiomatic-automatic-ai-content-writer');?></b>
9350
+
</div>
9351
+
</th>
9352
+
<td>
9353
+
<div class="hideMail">
9354
+
<input type="text" id="email_address" placeholder="<?php echo esc_html__("Input a valid email adress", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[email_address]" value="<?php
9355
+
echo esc_html($email_address);
9356
+
?>" class="cr_width_full">
9357
+
</div>
9358
+
</td>
9359
+
</tr>
9360
+
<tr>
9361
+
<th>
9362
+
<div>
9363
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9364
+
<div class="bws_hidden_help_text cr_min_260px">
9365
+
<?php
9366
+
echo esc_html__("Set the required words list that will apply to all plugin rules.", 'aiomatic-automatic-ai-content-writer');
9367
+
?>
9368
+
</div>
9369
+
</div>
9370
+
<b><?php echo esc_html__("Global Required Words List:", 'aiomatic-automatic-ai-content-writer');?></b>
9371
+
</div>
9372
+
</th>
9373
+
<td>
9374
+
<div>
9375
+
<textarea rows="3" cols="70" name="aiomatic_Main_Settings[global_req_words]" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert the global required words list", 'aiomatic-automatic-ai-content-writer');?>"><?php echo esc_textarea($global_req_words);?></textarea>
9376
+
</div>
9377
+
</td>
9378
+
</tr>
9379
+
<tr>
9380
+
<th>
9381
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9382
+
<div class="bws_hidden_help_text cr_min_260px">
9383
+
<?php
9384
+
echo esc_html__("Choose if you want to require only one word from the 'Required Words List' for the post to be accepted.", 'aiomatic-automatic-ai-content-writer');
9385
+
?>
9386
+
</div>
9387
+
</div>
9388
+
<b><?php echo esc_html__("Require Only One Word From The 'Required Words List':", 'aiomatic-automatic-ai-content-writer');?></b>
9389
+
</th>
9390
+
<td>
9391
+
<label class="aiomatic-switch"><input type="checkbox" id="require_only_one" name="aiomatic_Main_Settings[require_only_one]"<?php
9392
+
if ($require_only_one == 'on')
9393
+
echo ' checked ';
9394
+
?>><span class="aiomatic-slider round"></span></label>
9395
+
</td>
9396
+
</tr>
9397
+
<tr>
9398
+
<th>
9399
+
<div>
9400
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9401
+
<div class="bws_hidden_help_text cr_min_260px">
9402
+
<?php
9403
+
echo esc_html__("Set the banned words list that will apply to all plugin rules.", 'aiomatic-automatic-ai-content-writer');
9404
+
?>
9405
+
</div>
9406
+
</div>
9407
+
<b><?php echo esc_html__("Global Banned Words List:", 'aiomatic-automatic-ai-content-writer');?></b>
9408
+
</div>
9409
+
</th>
9410
+
<td>
9411
+
<div>
9412
+
<textarea rows="3" cols="70" name="aiomatic_Main_Settings[global_ban_words]" class="cr_width_full" placeholder="<?php echo esc_html__("Please insert the global banned words list", 'aiomatic-automatic-ai-content-writer');?>"><?php echo esc_textarea($global_ban_words);?></textarea>
9413
+
</div>
9414
+
</td>
9415
+
</tr>
9416
+
<tr>
9417
+
<th>
9418
+
<div>
9419
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9420
+
<div class="bws_hidden_help_text cr_min_260px">
9421
+
<?php
9422
+
echo esc_html__("Set a cookie string to be sent along with the request when scraping YouTube video subtitles. To get the cookie string, inspect YouTube.com (you must be logged in to your YouTube account) with Chrome DevTools (Ctrl+Shift+I), go to Network, select a request, view Headers, find the Cookie field, and copy its value.", 'aiomatic-automatic-ai-content-writer');
9423
+
?>
9424
+
</div>
9425
+
</div>
9426
+
<b><?php echo esc_html__("Cookie String To Use When Scraping YouTube Subtitles From Videos:", 'aiomatic-automatic-ai-content-writer');?></b>
9427
+
</div>
9428
+
</th>
9429
+
<td>
9430
+
<div>
9431
+
<textarea rows="3" cols="70" name="aiomatic_Main_Settings[youtube_cookies]" class="cr_width_full" placeholder="<?php echo esc_html__("YouTube cookie string", 'aiomatic-automatic-ai-content-writer');?>"><?php echo esc_textarea($youtube_cookies);?></textarea>
9432
+
</div>
9433
+
</td>
9434
+
</tr>
9435
+
<tr>
9436
+
<th>
9437
+
<div>
9438
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9439
+
<div class="bws_hidden_help_text cr_min_260px">
9440
+
<?php
9441
+
echo esc_html__("Set the list of social networks to get embeds from, in AI created articles. If you leave this blank, YouTube videos will be imported by default.", 'aiomatic-automatic-ai-content-writer');
9442
+
?>
9443
+
</div>
9444
+
</div>
9445
+
<b><?php echo esc_html__("Get Rich Embeds In Articles From These Social Networks:", 'aiomatic-automatic-ai-content-writer');?></b>
9446
+
</div>
9447
+
</th>
9448
+
<td>
9449
+
<div>
9450
+
<select autocomplete="off" id="social_list" multiple name="aiomatic_Main_Settings[social_list][]" class="cr_width_full">
9451
+
<option value="youtube" <?php
9452
+
if (empty($social_list) || in_array('youtube', $social_list))
9453
+
{
9454
+
echo ' selected';
9455
+
}
9456
+
?>
9457
+
><?php echo esc_html__("YouTube", 'aiomatic-automatic-ai-content-writer');?></option>
9458
+
<option value="twitter" <?php
9459
+
if (!is_plugin_active('twitomatic-twitter-post-generator/twitomatic-twitter-post-generator.php'))
9460
+
{
9461
+
echo ' disabled title="' . esc_html__("Please install and activate the X-omatic plugin for this feature to be activated.", 'aiomatic-automatic-ai-content-writer'). '"';
9462
+
}
9463
+
else
9464
+
{
9465
+
if (in_array('twitter', $social_list))
9466
+
{
9467
+
echo ' selected';
9468
+
}
9469
+
}
9470
+
?>
9471
+
><?php echo esc_html__("X (Twitter)", 'aiomatic-automatic-ai-content-writer');?></option>
9472
+
<option value="instagram"
9473
+
<?php
9474
+
if (!is_plugin_active('instamatic-instagram-post-generator/instamatic-instagram-post-generator.php'))
9475
+
{
9476
+
echo ' disabled title="' . esc_html__("Please install and activate the iMediamatic plugin for this feature to be activated.", 'aiomatic-automatic-ai-content-writer'). '"';
9477
+
}
9478
+
else
9479
+
{
9480
+
if (in_array('instagram', $social_list))
9481
+
{
9482
+
echo ' selected';
9483
+
}
9484
+
}
9485
+
?>
9486
+
><?php echo esc_html__("Instagram", 'aiomatic-automatic-ai-content-writer');?></option>
9487
+
<option value="pinterest"
9488
+
<?php
9489
+
if (!is_plugin_active('pinterestomatic-pinterest-post-generator/pinterestomatic-pinterest-post-generator.php'))
9490
+
{
9491
+
echo ' disabled title="' . esc_html__("Please install and activate the Pinterestomatic plugin for this feature to be activated.", 'aiomatic-automatic-ai-content-writer'). '"';
9492
+
}
9493
+
else
9494
+
{
9495
+
if (in_array('pinterest', $social_list))
9496
+
{
9497
+
echo ' selected';
9498
+
}
9499
+
}
9500
+
?>
9501
+
><?php echo esc_html__("Pinterest", 'aiomatic-automatic-ai-content-writer');?></option>
9502
+
</select>
9503
+
</div>
9504
+
</td>
9505
+
</tr>
9506
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Spin & Translate:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9507
+
<tr>
9508
+
<th>
9509
+
<div>
9510
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9511
+
<div class="bws_hidden_help_text cr_min_260px">
9512
+
<?php
9513
+
echo esc_html__("Do you want to automatically translate generated content using Google Translate?", 'aiomatic-automatic-ai-content-writer');
9514
+
?>
9515
+
</div>
9516
+
</div>
9517
+
<b><?php echo esc_html__("Automatically Translate Content To:", 'aiomatic-automatic-ai-content-writer');?></b><br/><b><?php echo esc_html__("Info:", 'aiomatic-automatic-ai-content-writer');?></b> <?php echo esc_html__("for translation, the plugin also supports WPML.", 'aiomatic-automatic-ai-content-writer');?> <b><a href="https://wpml.org/?aid=238195&affiliate_key=ix3LsFyq0xKz" target="_blank"><?php echo esc_html__("Get WPML now!", 'aiomatic-automatic-ai-content-writer');?></a></b>
9518
+
</div>
9519
+
</th>
9520
+
<td>
9521
+
<div>
9522
+
<select id="translate" name="aiomatic_Main_Settings[translate]" class="cr_width_full">
9523
+
<?php
9524
+
$i = 0;
9525
+
foreach ($language_names as $lang) {
9526
+
echo '<option value="' . esc_html($language_codes[$i]) . '"';
9527
+
if ($translate == $language_codes[$i]) {
9528
+
echo ' selected';
9529
+
}
9530
+
echo '>' . esc_html($language_names[$i]) . '</option>';
9531
+
$i++;
9532
+
}
9533
+
if($deepl_auth != '')
9534
+
{
9535
+
$i = 0;
9536
+
foreach ($language_names_deepl as $lang) {
9537
+
echo '<option value="' . esc_html($language_codes_deepl[$i]) . '"';
9538
+
if ($translate == $language_codes_deepl[$i]) {
9539
+
echo ' selected';
9540
+
}
9541
+
echo '>' . esc_html($language_names_deepl[$i]) . '</option>';
9542
+
$i++;
9543
+
}
9544
+
}
9545
+
if($bing_auth != '')
9546
+
{
9547
+
$i = 0;
9548
+
foreach ($language_names_bing as $lang) {
9549
+
echo '<option value="' . esc_html($language_codes_bing[$i]) . '"';
9550
+
if ($translate == $language_codes_bing[$i]) {
9551
+
echo ' selected';
9552
+
}
9553
+
echo '>' . esc_html($language_names_bing[$i]) . '</option>';
9554
+
$i++;
9555
+
}
9556
+
}
9557
+
?>
9558
+
</select>
9559
+
</div>
9560
+
</td>
9561
+
</tr>
9562
+
<tr>
9563
+
<th>
9564
+
<div>
9565
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9566
+
<div class="bws_hidden_help_text cr_min_260px">
9567
+
<?php
9568
+
echo esc_html__("Select the source language of the translation.", 'aiomatic-automatic-ai-content-writer');
9569
+
?>
9570
+
</div>
9571
+
</div>
9572
+
<b><?php echo esc_html__("Translation Source Language:", 'aiomatic-automatic-ai-content-writer');?></b>
9573
+
</div>
9574
+
</th>
9575
+
<td>
9576
+
<div>
9577
+
<select id="translate_source" name="aiomatic_Main_Settings[translate_source]" class="cr_width_full">
9578
+
<?php
9579
+
$i = 0;
9580
+
foreach ($language_names as $lang) {
9581
+
echo '<option value="' . esc_html($language_codes[$i]) . '"';
9582
+
if ($translate_source == $language_codes[$i]) {
9583
+
echo ' selected';
9584
+
}
9585
+
echo '>' . esc_html($language_names[$i]) . '</option>';
9586
+
$i++;
9587
+
}
9588
+
if($deepl_auth != '')
9589
+
{
9590
+
$i = 0;
9591
+
foreach ($language_names_deepl as $lang) {
9592
+
echo '<option value="' . esc_html($language_codes_deepl[$i]) . '"';
9593
+
if ($translate_source == $language_codes_deepl[$i]) {
9594
+
echo ' selected';
9595
+
}
9596
+
echo '>' . esc_html($language_names_deepl[$i]) . '</option>';
9597
+
$i++;
9598
+
}
9599
+
}
9600
+
if($bing_auth != '')
9601
+
{
9602
+
$i = 0;
9603
+
foreach ($language_names_bing as $lang) {
9604
+
echo '<option value="' . esc_html($language_codes_bing[$i]) . '"';
9605
+
if ($translate_source == $language_codes_bing[$i]) {
9606
+
echo ' selected';
9607
+
}
9608
+
echo '>' . esc_html($language_names_bing[$i]) . '</option>';
9609
+
$i++;
9610
+
}
9611
+
}
9612
+
?>
9613
+
</select>
9614
+
</div>
9615
+
</td>
9616
+
</tr>
9617
+
<tr>
9618
+
<th>
9619
+
<div>
9620
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9621
+
<div class="bws_hidden_help_text cr_min_260px">
9622
+
<?php
9623
+
echo esc_html__("Do you want to automatically translate generated content a second time, to this final language? In some cases, this can replace word spinning of scraped content. Please note that this can increase the amount of requests made to the translation APIs. This field has no effect if you don't set also a first translation language, in the settings field from above.", 'aiomatic-automatic-ai-content-writer');
9624
+
?>
9625
+
</div>
9626
+
</div>
9627
+
<b><?php echo esc_html__("Do Also A Second Translation To:", 'aiomatic-automatic-ai-content-writer');?></b>
9628
+
</div>
9629
+
</th>
9630
+
<td>
9631
+
<div>
9632
+
<select class="cr_width_full" id="second_translate" name="aiomatic_Main_Settings[second_translate]" >
9633
+
<?php
9634
+
$i = 0;
9635
+
foreach ($language_names as $lang) {
9636
+
echo '<option value="' . esc_html($language_codes[$i]) . '"';
9637
+
if ($second_translate == $language_codes[$i]) {
9638
+
echo ' selected';
9639
+
}
9640
+
echo '>' . esc_html($language_names[$i]) . '</option>';
9641
+
$i++;
9642
+
}
9643
+
if($deepl_auth != '')
9644
+
{
9645
+
$i = 0;
9646
+
foreach ($language_names_deepl as $lang) {
9647
+
echo '<option value="' . esc_html($language_codes_deepl[$i]) . '"';
9648
+
if ($second_translate == $language_codes_deepl[$i]) {
9649
+
echo ' selected';
9650
+
}
9651
+
echo '>' . esc_html($language_names_deepl[$i]) . '</option>';
9652
+
$i++;
9653
+
}
9654
+
}
9655
+
if($bing_auth != '')
9656
+
{
9657
+
$i = 0;
9658
+
foreach ($language_names_bing as $lang) {
9659
+
echo '<option value="' . esc_html($language_codes_bing[$i]) . '"';
9660
+
if ($second_translate == $language_codes_bing[$i]) {
9661
+
echo ' selected';
9662
+
}
9663
+
echo '>' . esc_html($language_names_bing[$i]) . '</option>';
9664
+
$i++;
9665
+
}
9666
+
}
9667
+
?>
9668
+
</select>
9669
+
</div>
9670
+
</td>
9671
+
</tr>
9672
+
<tr>
9673
+
<td>
9674
+
<div id="bestspin">
9675
+
<p><?php echo esc_html__("Don't have an 'The Best Spinner' account yet? Click here to get one:", 'aiomatic-automatic-ai-content-writer');?> <b><a href="https://paykstrt.com/10313/38910" target="_blank"><?php echo esc_html__("get a new account now!", 'aiomatic-automatic-ai-content-writer');?></a></b></p>
9676
+
</div>
9677
+
<div id="wordai">
9678
+
<p><?php echo esc_html__("Don't have an 'WordAI' account yet? Click here to get one:", 'aiomatic-automatic-ai-content-writer');?> <b><a href="https://wordai.com/?ref=h17f4" target="_blank"><?php echo esc_html__("get a new account now!", 'aiomatic-automatic-ai-content-writer');?></a></b></p>
9679
+
</div>
9680
+
<div id="spinrewriter">
9681
+
<p><?php echo esc_html__("Don't have an 'SpinRewriter' account yet? Click here to get one:", 'aiomatic-automatic-ai-content-writer');?> <b><a href="https://www.spinrewriter.com/?ref=24b18" target="_blank"><?php echo esc_html__("get a new account now!", 'aiomatic-automatic-ai-content-writer');?></a></b></p>
9682
+
</div>
9683
+
<div id="spinnerchief">
9684
+
<p><?php echo esc_html__("Don't have an 'SpinnerChief' account yet? Click here to get one:", 'aiomatic-automatic-ai-content-writer');?> <b><a href="http://www.whitehatbox.com/Agents/SSS?code=iscpuQScOZMi3vGFhPVBnAP5FyC6mPaOEshvgU4BbyoH8ftVRbM3uQ==" target="_blank"><?php echo esc_html__("get a new account now!", 'aiomatic-automatic-ai-content-writer');?></a></b></p>
9685
+
</div>
9686
+
<div id="contentprofessor">
9687
+
<p><?php echo esc_html__("Don't have an 'ContentProfessor' account yet? Click here to get one:", 'aiomatic-automatic-ai-content-writer');?> <b><a href="http://www.contentprofessor.com/go.php?offer=kisded&pid=2" target="_blank"><?php echo esc_html__("get a new account now!", 'aiomatic-automatic-ai-content-writer');?></a></b></p>
9688
+
</div>
9689
+
<div id="chimprewriter">
9690
+
<p><?php echo esc_html__("Don't have an 'ChimpRewriter' account yet? Click here to get one:", 'aiomatic-automatic-ai-content-writer');?> <b><a href="https://coderevolution--chimprewriter.thrivecart.com/chimp-rewriter-monthly/" target="_blank"><?php echo esc_html__("get a new account now!", 'aiomatic-automatic-ai-content-writer');?></a></b></p>
9691
+
</div>
9692
+
</td>
9693
+
</tr>
9694
+
<tr>
9695
+
<th>
9696
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9697
+
<div class="bws_hidden_help_text cr_min_260px">
9698
+
<?php
9699
+
echo esc_html__("Do you want to randomize text by changing words of a text with synonyms using one of the listed methods? Note that this is an experimental feature and can in some instances drastically increase the rule running time!", 'aiomatic-automatic-ai-content-writer');
9700
+
?>
9701
+
</div>
9702
+
</div>
9703
+
<b><?php echo esc_html__("Spin Text Using Word Synonyms (for automatically generated posts only):", 'aiomatic-automatic-ai-content-writer');?></b>
9704
+
</th>
9705
+
<td>
9706
+
<select id="spin_text" name="aiomatic_Main_Settings[spin_text]" onchange="mainChanged()" class="cr_width_full">
9707
+
<option value="disabled"
9708
+
<?php
9709
+
if ($spin_text == 'disabled') {
9710
+
echo ' selected';
9711
+
}
9712
+
?>
9713
+
><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
9714
+
<option value="wordai"
9715
+
<?php
9716
+
if($spin_text == 'wordai')
9717
+
{
9718
+
echo ' selected';
9719
+
}
9720
+
?>
9721
+
>Wordai - <?php echo esc_html__("High Quality - Paid", 'aiomatic-automatic-ai-content-writer');?></option>
9722
+
<option value="spinrewriter"
9723
+
<?php
9724
+
if($spin_text == 'spinrewriter')
9725
+
{
9726
+
echo ' selected';
9727
+
}
9728
+
?>
9729
+
>SpinRewriter - <?php echo esc_html__("High Quality - Paid", 'aiomatic-automatic-ai-content-writer');?></option>
9730
+
<option value="spinnerchief"
9731
+
<?php
9732
+
if($spin_text == 'spinnerchief')
9733
+
{
9734
+
echo ' selected';
9735
+
}
9736
+
?>
9737
+
>SpinnerChief - <?php echo esc_html__("High Quality - Paid", 'aiomatic-automatic-ai-content-writer');?></option>
9738
+
<option value="chimprewriter"
9739
+
<?php
9740
+
if($spin_text == 'chimprewriter')
9741
+
{
9742
+
echo ' selected';
9743
+
}
9744
+
?>
9745
+
>ChimpRewriter - <?php echo esc_html__("High Quality - Paid", 'aiomatic-automatic-ai-content-writer');?></option>
9746
+
<option value="contentprofessor"
9747
+
<?php
9748
+
if($spin_text == 'contentprofessor')
9749
+
{
9750
+
echo ' selected';
9751
+
}
9752
+
?>
9753
+
>ContentProfessor - <?php echo esc_html__("High Quality - Paid", 'aiomatic-automatic-ai-content-writer');?></option>
9754
+
<option value="builtin"
9755
+
<?php
9756
+
if ($spin_text == 'builtin') {
9757
+
echo ' selected';
9758
+
}
9759
+
?>
9760
+
><?php echo esc_html__("Built-in - Medium Quality - Free", 'aiomatic-automatic-ai-content-writer');?></option>
9761
+
</select>
9762
+
</td>
9763
+
</tr>
9764
+
<tr>
9765
+
<th>
9766
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9767
+
<div class="bws_hidden_help_text cr_min_260px">
9768
+
<?php
9769
+
echo esc_html__("Do you want to randomize text by changing words of a text with synonyms using one of the listed methods? Note that this is an experimental feature and can in some instances drastically increase the rule running time!", 'aiomatic-automatic-ai-content-writer');
9770
+
?>
9771
+
</div>
9772
+
</div>
9773
+
<b><?php echo esc_html__("Enable Spinner For:", 'aiomatic-automatic-ai-content-writer');?></b>
9774
+
</th>
9775
+
<td>
9776
+
<select id="spin_what" name="aiomatic_Main_Settings[spin_what]" onchange="mainChanged()" class="cr_width_full">
9777
+
<option value="all"
9778
+
<?php
9779
+
if ($spin_what == 'all') {
9780
+
echo ' selected';
9781
+
}
9782
+
?>
9783
+
><?php echo esc_html__("Bulk Posters & OmniBlocks", 'aiomatic-automatic-ai-content-writer');?></option>
9784
+
<option value="bulk"
9785
+
<?php
9786
+
if ($spin_what == 'bulk') {
9787
+
echo ' selected';
9788
+
}
9789
+
?>
9790
+
><?php echo esc_html__("Bulk Posters", 'aiomatic-automatic-ai-content-writer');?></option>
9791
+
<option value="omni"
9792
+
<?php
9793
+
if($spin_what == 'omni')
9794
+
{
9795
+
echo ' selected';
9796
+
}
9797
+
?>
9798
+
><?php echo esc_html__("OmniBlocks", 'aiomatic-automatic-ai-content-writer');?></option>
9799
+
</select>
9800
+
</td>
9801
+
</tr>
9802
+
<tr class="hideSpinRewriterSpecific">
9803
+
<th>
9804
+
<div>
9805
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9806
+
<div class="bws_hidden_help_text cr_min_260px">
9807
+
<?php
9808
+
echo esc_html__("Do you want to enable humanaze AI feature of SpinRewriter?", 'aiomatic-automatic-ai-content-writer');
9809
+
?>
9810
+
</div>
9811
+
</div>
9812
+
<b><?php echo esc_html__("Enable SpinRewriter Humanize AI Usage:", 'aiomatic-automatic-ai-content-writer');?></b>
9813
+
</div>
9814
+
</th>
9815
+
<td>
9816
+
<div>
9817
+
<label class="aiomatic-switch"><input type="checkbox" id="best_humanize" name="aiomatic_Main_Settings[best_humanize]"<?php
9818
+
if ($best_humanize == 'on')
9819
+
echo ' checked ';
9820
+
?>><span class="aiomatic-slider round"></span></label>
9821
+
</div>
9822
+
</td>
9823
+
</tr>
9824
+
<tr>
9825
+
<th>
9826
+
<div>
9827
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9828
+
<div class="bws_hidden_help_text cr_min_260px">
9829
+
<?php
9830
+
echo esc_html__("Do you want to not spin title (only content)?", 'aiomatic-automatic-ai-content-writer');
9831
+
?>
9832
+
</div>
9833
+
</div>
9834
+
<b><?php echo esc_html__("Do Not Spin Title, Only Content:", 'aiomatic-automatic-ai-content-writer');?></b>
9835
+
</div>
9836
+
</th>
9837
+
<td>
9838
+
<div>
9839
+
<label class="aiomatic-switch"><input type="checkbox" id="no_title" name="aiomatic_Main_Settings[no_title]"<?php
9840
+
if ($no_title == 'on')
9841
+
echo ' checked ';
9842
+
?>><span class="aiomatic-slider round"></span></label>
9843
+
</div>
9844
+
</td>
9845
+
</tr>
9846
+
<tr>
9847
+
<th>
9848
+
<div>
9849
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9850
+
<div class="bws_hidden_help_text cr_min_260px">
9851
+
<?php
9852
+
echo esc_html__("Select a list of comma separated words that you do not wish to spin (only for built-in spinners).", 'aiomatic-automatic-ai-content-writer');
9853
+
?>
9854
+
</div>
9855
+
</div>
9856
+
<b><?php echo esc_html__("Excluded Word List (For Built-In Spinner Only):", 'aiomatic-automatic-ai-content-writer');?></b>
9857
+
</div>
9858
+
</th>
9859
+
<td>
9860
+
<div>
9861
+
<input type="text" name="aiomatic_Main_Settings[exclude_words]" value="<?php
9862
+
echo esc_html($exclude_words);
9863
+
?>" placeholder="<?php echo esc_html__("word1, word2, word3", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
9864
+
</div>
9865
+
</td>
9866
+
</tr>
9867
+
<tr>
9868
+
<th>
9869
+
<div class="hideBest">
9870
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9871
+
<div class="bws_hidden_help_text cr_min_260px">
9872
+
<?php
9873
+
echo esc_html__("Insert your user name on premium spinner service.", 'aiomatic-automatic-ai-content-writer');
9874
+
?>
9875
+
</div>
9876
+
</div>
9877
+
<b><?php echo esc_html__("Premium Spinner Service User Name/Email:", 'aiomatic-automatic-ai-content-writer');?></b>
9878
+
</div>
9879
+
</th>
9880
+
<td>
9881
+
<div class="hideBest">
9882
+
<input type="text" name="aiomatic_Main_Settings[best_user]" value="<?php
9883
+
echo esc_html($best_user);
9884
+
?>" placeholder="<?php echo esc_html__("Please insert your premium text spinner service user name", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
9885
+
</div>
9886
+
</td>
9887
+
</tr>
9888
+
<tr>
9889
+
<th>
9890
+
<div class="hideBest">
9891
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9892
+
<div class="bws_hidden_help_text cr_min_260px">
9893
+
<?php
9894
+
echo esc_html__("Insert your password for the selected premium spinner service.", 'aiomatic-automatic-ai-content-writer');
9895
+
?>
9896
+
</div>
9897
+
</div>
9898
+
<b><?php echo esc_html__("Premium Spinner Service Password/API Key:", 'aiomatic-automatic-ai-content-writer');?></b>
9899
+
</div>
9900
+
</th>
9901
+
<td>
9902
+
<div class="hideBest">
9903
+
<input type="password" autocomplete="off" name="aiomatic_Main_Settings[best_password]" value="<?php
9904
+
echo esc_html($best_password);
9905
+
?>" placeholder="<?php echo esc_html__("Please insert your premium text spinner service password", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
9906
+
</div>
9907
+
</td>
9908
+
</tr>
9909
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Notification Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9910
+
<tr>
9911
+
<th>
9912
+
<div>
9913
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9914
+
<div class="bws_hidden_help_text cr_min_260px">
9915
+
<?php
9916
+
echo esc_html__("Select an email address where a notification will be sent, in case a specific rule depleted its keywords and it did not publish any new content because of this. This will be applied only if you check the 'Process Each Title/Topic Only Once' checkbox in rules. You can enter a comma separated list of email addresses which will be notified.", 'aiomatic-automatic-ai-content-writer');
9917
+
?>
9918
+
</div>
9919
+
</div>
9920
+
<b><?php echo esc_html__("Send An Email Notification When A Specific Rule Has Depleted Its Keywords/Topics:", 'aiomatic-automatic-ai-content-writer');?></b>
9921
+
</div>
9922
+
</th>
9923
+
<td>
9924
+
<div>
9925
+
<input type="text" name="aiomatic_Main_Settings[email_notification]" value="<?php
9926
+
echo esc_html($email_notification);
9927
+
?>" placeholder="your_email@yoursite.com,your_email2@yoursite.com" class="cr_width_full">
9928
+
</div>
9929
+
</td>
9930
+
</tr>
9931
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("WooCommerce Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9932
+
<tr>
9933
+
<th>
9934
+
<div>
9935
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9936
+
<div class="bws_hidden_help_text cr_min_260px">
9937
+
<?php
9938
+
echo esc_html__("Select if you want to create External WooCommerce Products in the 'Amazon Product Review' Bulk Post Creator. To enable this functionality, you also need to select the 'product' post type in rule settings, in the 'Amazon Product Review' menu of the plugin, for created rules.", 'aiomatic-automatic-ai-content-writer');
9939
+
?>
9940
+
</div>
9941
+
</div>
9942
+
<b><?php echo esc_html__("Create External WooCommerce Products In 'Amazon Product Review':", 'aiomatic-automatic-ai-content-writer');?></b>
9943
+
</div>
9944
+
</th>
9945
+
<td>
9946
+
<div>
9947
+
<label class="aiomatic-switch"><input type="checkbox" id="external_products" name="aiomatic_Main_Settings[external_products]"<?php
9948
+
if ($external_products == 'on')
9949
+
echo ' checked ';
9950
+
?>><span class="aiomatic-slider round"></span></label>
9951
+
</div>
9952
+
</td>
9953
+
</tr>
9954
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Webhook Rule Running:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9955
+
<tr>
9956
+
<th>
9957
+
<div>
9958
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9959
+
<div class="bws_hidden_help_text cr_min_260px">
9960
+
<?php
9961
+
echo esc_html__("Do you want to enable rule running using webhooks? This will enable the plugin to run rules using a speicific webhook URL. The URl will be provided in each rule's details section, after you enable this option.", 'aiomatic-automatic-ai-content-writer');
9962
+
?>
9963
+
</div>
9964
+
</div>
9965
+
<b><?php echo esc_html__("Enable Rule Running Using Webhooks:", 'aiomatic-automatic-ai-content-writer');?></b>
9966
+
</div>
9967
+
</th>
9968
+
<td>
9969
+
<div>
9970
+
<label class="aiomatic-switch"><input type="checkbox" id="rule_webhook" name="aiomatic_Main_Settings[rule_webhook]"<?php
9971
+
if ($rule_webhook == 'on')
9972
+
echo ' checked ';
9973
+
?>><span class="aiomatic-slider round"></span></label>
9974
+
</div>
9975
+
</td>
9976
+
</tr>
9977
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Advanced Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
9978
+
<tr>
9979
+
<th>
9980
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9981
+
<div class="bws_hidden_help_text cr_min_260px">
9982
+
<?php
9983
+
echo esc_html__("If you check this checkbox, all prompts which are used in the plugin will be processed as they are, in a single bulk text block, regardless of new lines from their content. If the checkbox is unchecked, a random prompt will be selected at each run, from the entered prompt lines, based on new lines from the text (like this, you will be able to enter multiple prompts from which the plugin will select a random one at each run).", 'aiomatic-automatic-ai-content-writer');
9984
+
?>
9985
+
</div>
9986
+
</div>
9987
+
<b><?php echo esc_html__("Prompt Processing - Bulk Or Random Selection:", 'aiomatic-automatic-ai-content-writer');?></b>
9988
+
</th>
9989
+
<td>
9990
+
<label class="aiomatic-switch"><input type="checkbox" id="whole_prompt" name="aiomatic_Main_Settings[whole_prompt]"<?php
9991
+
if ($whole_prompt == 'on')
9992
+
echo ' checked ';
9993
+
?>><span class="aiomatic-slider round"></span></label>
9994
+
</td>
9995
+
</tr>
9996
+
<tr>
9997
+
<th>
9998
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9999
+
<div class="bws_hidden_help_text cr_min_260px">
10000
+
<?php
10001
+
echo esc_html__("If you want to create long content (over 10000 words) in a single post and you are getting undesired results, you can check this checkbox for a fix.", 'aiomatic-automatic-ai-content-writer');
10002
+
?>
10003
+
</div>
10004
+
</div>
10005
+
<b><?php echo esc_html__("Use Alternate Continue Tokens (Experimental):", 'aiomatic-automatic-ai-content-writer');?></b>
10006
+
</th>
10007
+
<td>
10008
+
<label class="aiomatic-switch"><input type="checkbox" id="alternate_continue" name="aiomatic_Main_Settings[alternate_continue]"<?php
10009
+
if ($alternate_continue == 'on')
10010
+
echo ' checked ';
10011
+
?>><span class="aiomatic-slider round"></span></label>
10012
+
</td>
10013
+
</tr>
10014
+
<tr>
10015
+
<th>
10016
+
<div>
10017
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10018
+
<div class="bws_hidden_help_text cr_min_260px">
10019
+
<?php
10020
+
echo esc_html__("When using the 'Title Based Posting' mode, if you set the 'AI Content Minimum Character Count' settings field to a large character count, this you add a prompt completion here, it will be prepended to the text which is sent to the AI writer, for continuation..", 'aiomatic-automatic-ai-content-writer');
10021
+
?>
10022
+
</div>
10023
+
</div>
10024
+
<b><?php echo esc_html__("Preppend Text To Prompts For Content Completion:", 'aiomatic-automatic-ai-content-writer');?></b>
10025
+
</div>
10026
+
</th>
10027
+
<td>
10028
+
<div>
10029
+
<textarea rows="3" cols="70" name="aiomatic_Main_Settings[continue_prepend]" class="cr_width_full" placeholder="<?php echo esc_html__("Prompt to prepend to text continuation requests", 'aiomatic-automatic-ai-content-writer');?>"><?php echo esc_textarea($continue_prepend);?></textarea>
10030
+
</div>
10031
+
</td>
10032
+
</tr>
10033
+
<tr>
10034
+
<th>
10035
+
<div>
10036
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10037
+
<div class="bws_hidden_help_text cr_min_260px">
10038
+
<?php
10039
+
echo esc_html__("When using the 'Title Based Posting' mode, if you set the 'AI Content Minimum Character Count' settings field to a large character count, this you add a prompt completion here, it will be appended to the text which is sent to the AI writer, for continuation..", 'aiomatic-automatic-ai-content-writer');
10040
+
?>
10041
+
</div>
10042
+
</div>
10043
+
<b><?php echo esc_html__("Append Text To Prompts For Content Completion:", 'aiomatic-automatic-ai-content-writer');?></b>
10044
+
</div>
10045
+
</th>
10046
+
<td>
10047
+
<div>
10048
+
<textarea rows="3" cols="70" name="aiomatic_Main_Settings[continue_append]" class="cr_width_full" placeholder="<?php echo esc_html__("Prompt to append to text continuation requests", 'aiomatic-automatic-ai-content-writer');?>"><?php echo esc_textarea($continue_append);?></textarea>
10049
+
</div>
10050
+
</td>
10051
+
</tr>
10052
+
<tr>
10053
+
<th>
10054
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10055
+
<div class="bws_hidden_help_text cr_min_260px">
10056
+
<?php
10057
+
echo esc_html__("Select if you want to convert new lines to <br> tags in created article content.", 'aiomatic-automatic-ai-content-writer');
10058
+
?>
10059
+
</div>
10060
+
</div>
10061
+
<b><?php echo esc_html__("Convert New Lines To Line Breaks (br) In AI Generated Post Content:", 'aiomatic-automatic-ai-content-writer');?></b>
10062
+
</th>
10063
+
<td>
10064
+
<label class="aiomatic-switch"><input type="checkbox" id="nlbr_parse" name="aiomatic_Main_Settings[nlbr_parse]"<?php
10065
+
if ($nlbr_parse == 'on')
10066
+
echo ' checked ';
10067
+
?>><span class="aiomatic-slider round"></span></label>
10068
+
</td>
10069
+
</tr>
10070
+
<tr>
10071
+
<th>
10072
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10073
+
<div class="bws_hidden_help_text cr_min_260px">
10074
+
<?php
10075
+
echo esc_html__("Select if you want to use the Bing search results to get related headings for created articles.", 'aiomatic-automatic-ai-content-writer');
10076
+
?>
10077
+
</div>
10078
+
</div>
10079
+
<b><?php echo esc_html__("Disable Bing Search Scraping To Get More Headings:", 'aiomatic-automatic-ai-content-writer');?></b>
10080
+
</th>
10081
+
<td>
10082
+
<label class="aiomatic-switch"><input type="checkbox" id="bing_off" name="aiomatic_Main_Settings[bing_off]"<?php
10083
+
if ($bing_off == 'on')
10084
+
echo ' checked ';
10085
+
?>><span class="aiomatic-slider round"></span></label>
10086
+
</td>
10087
+
</tr>
10088
+
<tr>
10089
+
<th>
10090
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10091
+
<div class="bws_hidden_help_text cr_min_260px">
10092
+
<?php
10093
+
echo esc_html__("Select if you want to use the AI writer to get related headings for created articles.", 'aiomatic-automatic-ai-content-writer');
10094
+
?>
10095
+
</div>
10096
+
</div>
10097
+
<b><?php echo esc_html__("Disable AI Writer Usage To Get More Headings:", 'aiomatic-automatic-ai-content-writer');?></b>
10098
+
</th>
10099
+
<td>
10100
+
<label class="aiomatic-switch"><input type="checkbox" id="ai_off" name="aiomatic_Main_Settings[ai_off]"<?php
10101
+
if ($ai_off == 'on')
10102
+
echo ' checked ';
10103
+
?>><span class="aiomatic-slider round"></span></label>
10104
+
</td>
10105
+
</tr>
10106
+
<tr>
10107
+
<th>
10108
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10109
+
<div class="bws_hidden_help_text cr_min_260px">
10110
+
<?php
10111
+
echo esc_html__("Select if you want to disable the post content processing, to remove the <pre><code> tags added by AI models. These tags can be generated by some models by mistake and the plugin can automatically convert them to correct HTML content. If you want to keep <pre><code> tags intact, check this checkbox. This can be useful if you instruct the AI to create coding examples or different other code related content.", 'aiomatic-automatic-ai-content-writer');
10112
+
?>
10113
+
</div>
10114
+
</div>
10115
+
<b><?php echo esc_html__("Disable Post Content Processing To Remove <pre><code> Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
10116
+
</th>
10117
+
<td>
10118
+
<label class="aiomatic-switch"><input type="checkbox" id="pre_code_off" name="aiomatic_Main_Settings[pre_code_off]"<?php
10119
+
if ($pre_code_off == 'on')
10120
+
echo ' checked ';
10121
+
?>><span class="aiomatic-slider round"></span></label>
10122
+
</td>
10123
+
</tr>
10124
+
</table>
10125
+
</div>
10126
+
<div id="tab-13<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
10127
+
<?php
10128
+
if($pinecone_app_id != '' || $qdrant_app_id != '')
10129
+
{
10130
+
?>
10131
+
<h3><?php echo esc_html__('Embeddings Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
10132
+
<p class="aiomatic-settings-desc"><?php
10133
+
echo esc_html__("The 'Embeddings' tab allows you to manage and configure settings for generating and using content embeddings to enhance the AI content generated by the plugin.", 'aiomatic-automatic-ai-content-writer');
10134
+
?></p>
10135
+
<h2><?php echo esc_html__("More details about Embeddings, check ", 'aiomatic-automatic-ai-content-writer');?><a href="<?php echo esc_url(admin_url('admin.php?page=aiomatic_embeddings_panel'));?>"><?php echo esc_html__("the 'AI Embeddings' settings page", 'aiomatic-automatic-ai-content-writer');?>.</a></h2>
10136
+
<table class="widefat">
10137
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Main AI Embeddings Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
10138
+
<tr>
10139
+
<th>
10140
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10141
+
<div class="bws_hidden_help_text cr_min_260px">
10142
+
<?php
10143
+
echo esc_html__("Select the embeddings API which will be used by default.", 'aiomatic-automatic-ai-content-writer');
10144
+
?>
10145
+
</div>
10146
+
</div>
10147
+
<b><?php echo esc_html__("Default Embeddings API To Use:", 'aiomatic-automatic-ai-content-writer');?></b>
10148
+
</th>
10149
+
<td>
10150
+
<select id="embeddings_api" name="aiomatic_Main_Settings[embeddings_api]" onchange="embeddingsAPIchanged();" class="cr_width_full">
10151
+
<option value="pinecone"<?php
10152
+
if($pinecone_app_id == '')
10153
+
{
10154
+
echo ' disabled';
10155
+
}
10156
+
if ($embeddings_api == "pinecone") {
10157
+
echo " selected";
10158
+
}
10159
+
?>><?php echo esc_html__("Pinecone", 'aiomatic-automatic-ai-content-writer');
10160
+
if($pinecone_app_id == '')
10161
+
{
10162
+
echo ' ' . esc_html__('(No API key added in settings)', 'aiomatic-automatic-ai-content-writer');
10163
+
}?></option>
10164
+
<option value="qdrant"<?php
10165
+
if($qdrant_app_id == '')
10166
+
{
10167
+
echo ' disabled';
10168
+
}
10169
+
if ($embeddings_api == "qdrant") {
10170
+
echo " selected";
10171
+
}
10172
+
?>><?php echo esc_html__("Qdrant", 'aiomatic-automatic-ai-content-writer');
10173
+
if($qdrant_app_id == '')
10174
+
{
10175
+
echo ' ' . esc_html__('(No API key added in settings)', 'aiomatic-automatic-ai-content-writer');
10176
+
}?></option>
10177
+
</select>
10178
+
</td>
10179
+
</tr>
10180
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Additional Embeddings Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
10181
+
<tr class="hidePine">
10182
+
<th>
10183
+
<div>
10184
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10185
+
<div class="bws_hidden_help_text cr_min_260px">
10186
+
<?php
10187
+
echo esc_html__("After creating your Pinecone API, create a new index. Make sure to set your dimension to 1536 and also make sure to set your metric to cosine. Enter the generated index ID here.", 'aiomatic-automatic-ai-content-writer');
10188
+
?>
10189
+
</div>
10190
+
</div>
10191
+
<b><?php echo esc_html__("Pinecone Index:", 'aiomatic-automatic-ai-content-writer');?></b>
10192
+
</div>
10193
+
</th>
10194
+
<td>
10195
+
<div>
10196
+
<input type="text" placeholder="mytestingindex-28cc276.svc.us-east1-gcp.pinecone.io" name="aiomatic_Main_Settings[pinecone_index]" value="<?php echo esc_html($pinecone_index);?>" class="cr_width_full"/>
10197
+
</div>
10198
+
</td>
10199
+
</tr>
10200
+
<tr class="hidePine">
10201
+
<th>
10202
+
<div>
10203
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10204
+
<div class="bws_hidden_help_text cr_min_260px">
10205
+
<?php
10206
+
echo esc_html__("After creating your Pinecone API, create a new namespace (optional).", 'aiomatic-automatic-ai-content-writer');
10207
+
?>
10208
+
</div>
10209
+
</div>
10210
+
<b><?php echo esc_html__("Pinecone Namespace:", 'aiomatic-automatic-ai-content-writer');?></b>
10211
+
</div>
10212
+
</th>
10213
+
<td>
10214
+
<div>
10215
+
<input type="text" placeholder="Pinecone namespace" name="aiomatic_Main_Settings[pinecone_namespace]" value="<?php echo esc_html($pinecone_namespace);?>" class="cr_width_full"/>
10216
+
</div>
10217
+
</td>
10218
+
</tr>
10219
+
<tr class="hideQdr">
10220
+
<th>
10221
+
<div>
10222
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10223
+
<div class="bws_hidden_help_text cr_min_260px">
10224
+
<?php
10225
+
echo esc_html__("After creating your Qdrant_index API, create a new index. Make sure to set your dimension to 1536 and also make sure to set your metric to cosine. Enter the generated index ID here.", 'aiomatic-automatic-ai-content-writer');
10226
+
?>
10227
+
</div>
10228
+
</div>
10229
+
<b><?php echo esc_html__("Qdrant Index URL:", 'aiomatic-automatic-ai-content-writer');?></b>
10230
+
</div>
10231
+
</th>
10232
+
<td>
10233
+
<div>
10234
+
<input type="text" placeholder="29331ee6-e231-409a-b72c-3a1ee4f814d0.europe-west3-0.gcp.cloud.qdrant.io:6333" name="aiomatic_Main_Settings[qdrant_index]" value="<?php echo esc_html($qdrant_index);?>" class="cr_width_full"/>
10235
+
</div>
10236
+
</td>
10237
+
</tr>
10238
+
<tr class="hideQdr">
10239
+
<th>
10240
+
<div>
10241
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10242
+
<div class="bws_hidden_help_text cr_min_260px">
10243
+
<?php
10244
+
echo esc_html__("Add a name for your Qdrant collection. This is optional. The default value for this is: qdrant", 'aiomatic-automatic-ai-content-writer');
10245
+
?>
10246
+
</div>
10247
+
</div>
10248
+
<b><?php echo esc_html__("Qdrant Collection Name (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
10249
+
</div>
10250
+
</th>
10251
+
<td>
10252
+
<div>
10253
+
<input type="text" placeholder="Collection name" name="aiomatic_Main_Settings[qdrant_name]" value="<?php echo esc_html($qdrant_name);?>" class="cr_width_full"/>
10254
+
</div>
10255
+
</td>
10256
+
</tr>
10257
+
<tr><td colspan="2"><hr/></td></tr>
10258
+
<tr>
10259
+
<th>
10260
+
<div>
10261
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10262
+
<div class="bws_hidden_help_text cr_min_260px">
10263
+
<?php
10264
+
echo esc_html__("The number of results to return for each query.", 'aiomatic-automatic-ai-content-writer');
10265
+
?>
10266
+
</div>
10267
+
</div>
10268
+
<b><?php echo esc_html__("Number Of Results To Query:", 'aiomatic-automatic-ai-content-writer');?></b>
10269
+
</div>
10270
+
</th>
10271
+
<td>
10272
+
<div>
10273
+
<input type="number" min="1" max="10000" step="1" placeholder="1" name="aiomatic_Main_Settings[pinecone_topk]" value="<?php echo esc_html($pinecone_topk);?>" class="cr_width_full"/>
10274
+
</div>
10275
+
</td>
10276
+
</tr>
10277
+
<tr>
10278
+
<th>
10279
+
<div>
10280
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10281
+
<div class="bws_hidden_help_text cr_min_260px">
10282
+
<?php
10283
+
echo esc_html__("Select the model you want to use for embeddings.", 'aiomatic-automatic-ai-content-writer');
10284
+
?>
10285
+
</div>
10286
+
</div>
10287
+
<b><?php echo esc_html__("Embeddings Model:", 'aiomatic-automatic-ai-content-writer');?></b>
10288
+
</div>
10289
+
</th>
10290
+
<td>
10291
+
<div>
10292
+
<select id="embeddings_model" name="aiomatic_Main_Settings[embeddings_model]" class="cr_width_full">
10293
+
<?php
10294
+
$all_embeddings = AIMOGEN_EMBEDDINGS_MODELS;
10295
+
if (isset($aiomatic_Main_Settings['app_id_google']) && trim($aiomatic_Main_Settings['app_id_google']) != '')
10296
+
{
10297
+
$all_embeddings = array_merge($all_embeddings, AIMOGEN_GOOGLE_EMBEDDINGS_MODELS);
10298
+
}
10299
+
if (isset($aiomatic_Main_Settings['ollama_url']) && trim($aiomatic_Main_Settings['ollama_url']) != '')
10300
+
{
10301
+
$ollama_embeddings = aiomatic_get_ollama_embedding_models();
10302
+
if(!empty($ollama_embeddings))
10303
+
{
10304
+
$all_embeddings = array_merge($all_embeddings, $ollama_embeddings);
10305
+
}
10306
+
}
10307
+
foreach($all_embeddings as $modelx)
10308
+
{
10309
+
echo '<option value="' . esc_html($modelx) .'"';
10310
+
if ($embeddings_model == $modelx)
10311
+
{
10312
+
echo " selected";
10313
+
}
10314
+
echo '>' . esc_html($modelx);
10315
+
if(in_array($modelx, AIMOGEN_GOOGLE_EMBEDDINGS_MODELS))
10316
+
{
10317
+
echo ' (Google)';
10318
+
}
10319
+
$model_exp = explode(':', $modelx);
10320
+
$ollama_check = $model_exp[0];
10321
+
if(in_array($ollama_check, AIMOGEN_EMBEDDING_OLLAMA_MODELS))
10322
+
{
10323
+
echo ' (Ollama)';
10324
+
}
10325
+
echo '</option>';
10326
+
}
10327
+
?>
10328
+
</select>
10329
+
</div>
10330
+
</td>
10331
+
</tr>
10332
+
<tr>
10333
+
<th>
10334
+
<div>
10335
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10336
+
<div class="bws_hidden_help_text cr_min_260px">
10337
+
<?php
10338
+
echo esc_html__("Enable embeddings for which parts of the plugin. In embeddings namespaces, you can define which namespace should the plugin use for each functionality of it, separately. You can also use the following shortcodes to customize embedding namespaces: %%user_name%%, %%user_email%%, %%user_display_name%%, %%user_role%%, %%user_id%%, %%user_firstname%%, %%user_lastname%%, %%user_description%%, %%user_url%%", 'aiomatic-automatic-ai-content-writer');
10339
+
?>
10340
+
</div>
10341
+
</div>
10342
+
<b><?php echo esc_html__("Enable Embeddings For:", 'aiomatic-automatic-ai-content-writer');?></b>
10343
+
</div>
10344
+
</th>
10345
+
<td>
10346
+
<div>
10347
+
<input type="checkbox" id="embeddings_single" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_single]"<?php
10348
+
if ($embeddings_single == 'on')
10349
+
echo ' checked ';
10350
+
?>>
10351
+
<label for="embeddings_single"><?php echo esc_html__("Single AI Post Creator", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10352
+
<input type="text" id="embeddings_single_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_single_namespace]" value="<?php echo esc_html($embeddings_single_namespace);?>" class="cr_width_full"/>
10353
+
<hr/>
10354
+
<input type="checkbox" id="embeddings_bulk" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk]"<?php
10355
+
if ($embeddings_bulk == 'on')
10356
+
echo ' checked ';
10357
+
?>>
10358
+
<label for="embeddings_bulk"><?php echo esc_html__("Bulk AI Post Creator", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10359
+
<input type="text" id="embeddings_bulk_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_namespace]" value="<?php echo esc_html($embeddings_bulk_namespace);?>" class="cr_width_full"/>
10360
+
<hr/>
10361
+
<div class="hideEmbeddingsContent">
10362
+
<input type="checkbox" id="embeddings_bulk_title" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk_title]"<?php
10363
+
if ($embeddings_bulk_title == 'on')
10364
+
echo ' checked ';
10365
+
?>>
10366
+
<label for="embeddings_bulk_title"><?php echo esc_html__("Bulk AI Post Creator - Title Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10367
+
<input type="text" id="embeddings_bulk_title_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_title_namespace]" value="<?php echo esc_html($embeddings_bulk_title_namespace);?>" class="cr_width_full"/>
10368
+
<hr/>
10369
+
<input type="checkbox" id="embeddings_bulk_sections" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk_sections]"<?php
10370
+
if ($embeddings_bulk_sections == 'on')
10371
+
echo ' checked ';
10372
+
?>>
10373
+
<label for="embeddings_bulk_sections"><?php echo esc_html__("Bulk AI Post Creator - Sections Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10374
+
<input type="text" id="embeddings_bulk_sections_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_sections_namespace]" value="<?php echo esc_html($embeddings_bulk_sections_namespace);?>" class="cr_width_full"/>
10375
+
<hr/>
10376
+
<input type="checkbox" id="embeddings_bulk_intro" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk_intro]"<?php
10377
+
if ($embeddings_bulk_intro == 'on')
10378
+
echo ' checked ';
10379
+
?>>
10380
+
<label for="embeddings_bulk_intro"><?php echo esc_html__("Bulk AI Post Creator - Intro Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10381
+
<input type="text" id="embeddings_bulk_intro_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_intro_namespace]" value="<?php echo esc_html($embeddings_bulk_intro_namespace);?>" class="cr_width_full"/>
10382
+
<hr/>
10383
+
<input type="checkbox" id="embeddings_bulk_content" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk_content]"<?php
10384
+
if ($embeddings_bulk_content == 'on')
10385
+
echo ' checked ';
10386
+
?>>
10387
+
<label for="embeddings_bulk_content"><?php echo esc_html__("Bulk AI Post Creator - Content Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10388
+
<input type="text" id="embeddings_bulk_content_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_content_namespace]" value="<?php echo esc_html($embeddings_bulk_content_namespace);?>" class="cr_width_full"/>
10389
+
<hr/>
10390
+
<input type="checkbox" id="embeddings_bulk_qa" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk_qa]"<?php
10391
+
if ($embeddings_bulk_qa == 'on')
10392
+
echo ' checked ';
10393
+
?>>
10394
+
<label for="embeddings_bulk_qa"><?php echo esc_html__("Bulk AI Post Creator - QA Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10395
+
<input type="text" id="embeddings_bulk_qa_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_qa_namespace]" value="<?php echo esc_html($embeddings_bulk_qa_namespace);?>" class="cr_width_full"/>
10396
+
<hr/>
10397
+
<input type="checkbox" id="embeddings_bulk_outro" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk_outro]"<?php
10398
+
if ($embeddings_bulk_outro == 'on')
10399
+
echo ' checked ';
10400
+
?>>
10401
+
<label for="embeddings_bulk_outro"><?php echo esc_html__("Bulk AI Post Creator - Outro Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10402
+
<input type="text" id="embeddings_bulk_outro_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_outro_namespace]" value="<?php echo esc_html($embeddings_bulk_outro_namespace);?>" class="cr_width_full"/>
10403
+
<hr/>
10404
+
<input type="checkbox" id="embeddings_bulk_excerpt" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_bulk_excerpt]"<?php
10405
+
if ($embeddings_bulk_excerpt == 'on')
10406
+
echo ' checked ';
10407
+
?>>
10408
+
<label for="embeddings_bulk_excerpt"><?php echo esc_html__("Bulk AI Post Creator - Excerpt Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10409
+
<input type="text" id="embeddings_bulk_excerpt_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_bulk_excerpt_namespace]" value="<?php echo esc_html($embeddings_bulk_excerpt_namespace);?>" class="cr_width_full"/>
10410
+
<hr/>
10411
+
</div>
10412
+
<input type="checkbox" id="embeddings_edit" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_edit]"<?php
10413
+
if ($embeddings_edit == 'on')
10414
+
echo ' checked ';
10415
+
?>>
10416
+
<label for="embeddings_edit"><?php echo esc_html__("Content Editing", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10417
+
<input type="text" id="embeddings_edit_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_edit_namespace]" value="<?php echo esc_html($embeddings_edit_namespace);?>" class="cr_width_full"/>
10418
+
<hr/>
10419
+
10420
+
<input type="checkbox" id="embeddings_chat_short" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_chat_short]"<?php
10421
+
if ($embeddings_chat_short == 'on')
10422
+
echo ' checked ';
10423
+
?>>
10424
+
<label for="embeddings_chat_short"><?php echo esc_html__("Chatbot Shortcodes", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10425
+
<input type="text" id="embeddings_chat_short_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_chat_short_namespace]" value="<?php echo esc_html($embeddings_chat_short_namespace);?>" class="cr_width_full"/>
10426
+
<hr/>
10427
+
10428
+
<input type="checkbox" id="embeddings_article_short" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_article_short]"<?php
10429
+
if ($embeddings_article_short == 'on')
10430
+
echo ' checked ';
10431
+
?>>
10432
+
<label for="embeddings_article_short"><?php echo esc_html__("Text Completion Shortcodes", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10433
+
<input type="text" id="embeddings_article_short_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_article_short_namespace]" value="<?php echo esc_html($embeddings_article_short_namespace);?>" class="cr_width_full"/>
10434
+
<hr/>
10435
+
10436
+
<input type="checkbox" id="embeddings_edit_short" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_edit_short]"<?php
10437
+
if ($embeddings_edit_short == 'on')
10438
+
echo ' checked ';
10439
+
?>>
10440
+
<label for="embeddings_edit_short"><?php echo esc_html__("Text Editing Shortcode", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10441
+
<input type="text" id="embeddings_edit_short_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_edit_short_namespace]" value="<?php echo esc_html($embeddings_edit_short_namespace);?>" class="cr_width_full"/>
10442
+
<hr/>
10443
+
10444
+
<input type="checkbox" id="embeddings_related" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_related]"<?php
10445
+
if ($embeddings_related == 'on')
10446
+
echo ' checked ';
10447
+
?>>
10448
+
<label for="embeddings_related"><?php echo esc_html__("Related Questions Creation", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10449
+
<input type="text" id="embeddings_related_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_related_namespace]" value="<?php echo esc_html($embeddings_related_namespace);?>" class="cr_width_full"/>
10450
+
<hr/>
10451
+
10452
+
<input type="checkbox" id="embeddings_assistant" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_assistant]"<?php
10453
+
if ($embeddings_assistant == 'on')
10454
+
echo ' checked ';
10455
+
?>>
10456
+
<label for="embeddings_assistant"><?php echo esc_html__("Content Wizard", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10457
+
<input type="text" id="embeddings_assistant_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_assistant_namespace]" value="<?php echo esc_html($embeddings_assistant_namespace);?>" class="cr_width_full"/>
10458
+
<hr/>
10459
+
10460
+
<input type="checkbox" id="embeddings_forms" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_forms]"<?php
10461
+
if ($embeddings_forms == 'on')
10462
+
echo ' checked ';
10463
+
?>>
10464
+
<label for="embeddings_forms"><?php echo esc_html__("AI Forms", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10465
+
<input type="text" id="embeddings_forms_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_forms_namespace]" value="<?php echo esc_html($embeddings_forms_namespace);?>" class="cr_width_full"/>
10466
+
<hr/>
10467
+
10468
+
<input type="checkbox" id="embeddings_omni" onchange="embeddingsChanged();" name="aiomatic_Main_Settings[embeddings_omni]"<?php
10469
+
if ($embeddings_omni == 'on')
10470
+
echo ' checked ';
10471
+
?>>
10472
+
<label for="embeddings_omni"><?php echo esc_html__("AI OmniBlocks", 'aiomatic-automatic-ai-content-writer');?></label><br/>
10473
+
<input type="text" id="embeddings_omni_namespace" placeholder="<?php echo esc_html__("Embeddings Namespace (Optional)", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[embeddings_omni_namespace]" value="<?php echo esc_html($embeddings_omni_namespace);?>" class="cr_width_full"/>
10474
+
<hr/>
10475
+
</div>
10476
+
</td>
10477
+
</tr>
10478
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Embeddings Optimization Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
10479
+
<tr>
10480
+
<th>
10481
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10482
+
<div class="bws_hidden_help_text cr_min_260px">
10483
+
<?php
10484
+
echo esc_html__("Do you want to rewrite content using AI before sending it to the embedding?", 'aiomatic-automatic-ai-content-writer');
10485
+
?>
10486
+
</div>
10487
+
</div>
10488
+
<b><?php echo esc_html__("Optimize The %%post_content%% Shortcode Using AI:", 'aiomatic-automatic-ai-content-writer');?></b>
10489
+
</th>
10490
+
<td>
10491
+
<label class="aiomatic-switch"><input type="checkbox" id="rewrite_embedding" onchange="embChanged();" name="aiomatic_Main_Settings[rewrite_embedding]"<?php
10492
+
if ($rewrite_embedding == 'on')
10493
+
echo ' checked ';
10494
+
?>><span class="aiomatic-slider round"></span></label>
10495
+
</td>
10496
+
</tr>
10497
+
<tr class="hideEmb">
10498
+
<th>
10499
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10500
+
<div class="bws_hidden_help_text cr_min_260px">
10501
+
<?php
10502
+
echo esc_html__("Do you want to rewrite content using AI before sending it to the embedding? This will rewrite the %%post_content%% in the 'Embedding Template' settings field - so be sure to use the %%post_content%% shortcode in the 'Embedding Template' settings field, if you are wanting to optimize the content for it using this feature. You can use the following shortcodes: %%post_title%%, %%post_content%%, %%post_excerpt%%, %%post_url%%, %%post_id%%. The default value of this field is: Revise the given content concisely, preserving its style and information, while ensuring the revised text stays within 300 words. Each paragraph should range between 60 to 120 words. Exclude non-textual elements and unnecessary repetition. Conclude with a statement directing readers to find more information at %%post_url%%. If these guidelines cannot be met, send an empty response. The content is as follows: %%post_content%%", 'aiomatic-automatic-ai-content-writer');
10503
+
?>
10504
+
</div>
10505
+
</div>
10506
+
<b><?php echo esc_html__("Embedding Content Rewriter Prompt (%%post_content%%):", 'aiomatic-automatic-ai-content-writer');?></b>
10507
+
</th>
10508
+
<td>
10509
+
<textarea rows="8" cols="70" id="embedding_rw_prompt" class="cr_width_full" name="aiomatic_Main_Settings[embedding_rw_prompt]" placeholder="<?php echo esc_html__("Add your embedding rewriter prompt", 'aiomatic-automatic-ai-content-writer');?>"><?php
10510
+
echo esc_textarea($embedding_rw_prompt);
10511
+
?></textarea>
10512
+
</td>
10513
+
</tr><tr class="hideEmb">
10514
+
<th class="cr_min_width_200">
10515
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10516
+
<div class="bws_hidden_help_text cr_min_260px">
10517
+
<?php
10518
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
10519
+
?>
10520
+
</div>
10521
+
</div>
10522
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
10523
+
</th>
10524
+
<td><select id="emb_assistant_id" name="aiomatic_Main_Settings[emb_assistant_id]" class="cr_width_full" onchange="assistantSelected('emb_assistant_id', 'disableEmb');">
10525
+
<?php
10526
+
if($all_assistants === false)
10527
+
{
10528
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
10529
+
}
10530
+
else
10531
+
{
10532
+
if(count($all_assistants) == 0)
10533
+
{
10534
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
10535
+
}
10536
+
else
10537
+
{
10538
+
echo '<option value=""';
10539
+
if($emb_assistant_id == '')
10540
+
{
10541
+
echo ' selected';
10542
+
}
10543
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
10544
+
foreach($all_assistants as $myassistant)
10545
+
{
10546
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
10547
+
if($emb_assistant_id == $myassistant->ID)
10548
+
{
10549
+
echo ' selected';
10550
+
}
10551
+
echo '>' . esc_html($myassistant->post_title);
10552
+
echo '</option>';
10553
+
}
10554
+
}
10555
+
}
10556
+
?>
10557
+
</select>
10558
+
</td>
10559
+
</tr>
10560
+
<tr class="hideEmb">
10561
+
<th>
10562
+
<div>
10563
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10564
+
<div class="bws_hidden_help_text cr_min_260px">
10565
+
<?php
10566
+
echo esc_html__("Select the model you want to use for embedding content rewriting and optimizing.", 'aiomatic-automatic-ai-content-writer');
10567
+
?>
10568
+
</div>
10569
+
</div>
10570
+
<b><?php echo esc_html__("Embedding Content Rewriter Model:", 'aiomatic-automatic-ai-content-writer');?></b>
10571
+
</div>
10572
+
</th>
10573
+
<td>
10574
+
<div>
10575
+
<select id="embedding_rw_model" name="aiomatic_Main_Settings[embedding_rw_model]" <?php if($emb_assistant_id != ''){echo ' disabled';}?> class="disableEmb cr_width_full">
10576
+
<?php
10577
+
foreach($all_models as $modelx)
10578
+
{
10579
+
echo '<option value="' . esc_html($modelx) .'"';
10580
+
if ($embedding_rw_model == $modelx)
10581
+
{
10582
+
echo " selected";
10583
+
}
10584
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
10585
+
}
10586
+
?>
10587
+
</select>
10588
+
</div>
10589
+
</td>
10590
+
</tr>
10591
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Newly Published Post Types Auto Indexing Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
10592
+
<tr>
10593
+
<th>
10594
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10595
+
<div class="bws_hidden_help_text cr_min_260px">
10596
+
<?php
10597
+
echo esc_html__("Select the post types for which you want to enable embeddings auto indexing.", 'aiomatic-automatic-ai-content-writer');
10598
+
?>
10599
+
</div>
10600
+
</div>
10601
+
<b><?php echo esc_html__("Enable Embeddings Auto Indexing For Newly Published:", 'aiomatic-automatic-ai-content-writer');?></b>
10602
+
</th>
10603
+
<td>
10604
+
<select autocomplete="off" id="index_types" multiple name="aiomatic_Main_Settings[index_types][]" class="cr_width_full">
10605
+
<?php
10606
+
foreach ( get_post_types( '', 'names' ) as $tpost_type ) {
10607
+
if(strstr($tpost_type, 'aiomatic_'))
10608
+
{
10609
+
continue;
10610
+
}
10611
+
echo '<option value="' . esc_attr($tpost_type) . '"';
10612
+
if(in_array($tpost_type, $index_types))
10613
+
{
10614
+
echo ' selected';
10615
+
}
10616
+
echo '>' . esc_html($tpost_type) . '</option>';
10617
+
}
10618
+
?>
10619
+
</select>
10620
+
</td>
10621
+
</tr>
10622
+
<tr>
10623
+
<th>
10624
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10625
+
<div class="bws_hidden_help_text cr_min_260px">
10626
+
<?php
10627
+
echo esc_html__("Select the template of the embedding which will be saved in the database. You can use the following shortcodes: %%post_title%%, %%post_content%%, %%post_excerpt%%, %%post_url%%, %%post_id%%. - New feature: List of additional shortcodes: %%post_title%%, %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%post_tags%%, %%featured_image%%, %%blog_title%%, %%author_name%%, %%current_date_time%%, %%post_link%%, %%random_sentence%%, %%random_sentence2%%, %%user_name%%, %%user_email%%, %%user_display_name%%, %%user_role%%, %%user_id%%, %%user_firstname%%, %%user_lastname%%, %%user_url%%, %%user_description%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the seed command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). The default value of this field is: %%post_title%% -- %%post_excerpt%% -- Read more at: %%post_url%%", 'aiomatic-automatic-ai-content-writer');
10628
+
?>
10629
+
</div>
10630
+
</div>
10631
+
<b><?php echo esc_html__("Auto Created Embeddings Template:", 'aiomatic-automatic-ai-content-writer');?></b>
10632
+
</th>
10633
+
<td>
10634
+
<textarea rows="8" cols="70" id="embedding_template" class="cr_width_full" name="aiomatic_Main_Settings[embedding_template]" placeholder="<?php echo esc_html__("Set a template to use for auto created embeddings", 'aiomatic-automatic-ai-content-writer');?>"><?php
10635
+
echo esc_textarea($embedding_template);
10636
+
?></textarea>
10637
+
</td>
10638
+
</tr>
10639
+
<tr>
10640
+
<th>
10641
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10642
+
<div class="bws_hidden_help_text cr_min_260px">
10643
+
<?php
10644
+
echo esc_html__("Set the embeddings namespace you want to assign to automatically indexed content. Different namespaces will allow you to use different embeddings data in different parts of the plugin.", 'aiomatic-automatic-ai-content-writer');
10645
+
?>
10646
+
</div>
10647
+
</div>
10648
+
<b><?php echo esc_html__("Embeddings Namespace For Auto Indexing (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
10649
+
</th>
10650
+
<td>
10651
+
<input type="text" id="auto_namspace" placeholder="<?php echo esc_html__("Embedding namespace", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[auto_namspace]" value="<?php echo esc_html($auto_namspace);?>" class="cr_width_full"/>
10652
+
</td>
10653
+
</tr>
10654
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Newly Published Comments Auto Indexing Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
10655
+
<tr>
10656
+
<th>
10657
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10658
+
<div class="bws_hidden_help_text cr_min_260px">
10659
+
<?php
10660
+
echo esc_html__("Select the post types for which you want to enable embeddings auto indexing of comments. For WooCommerce products, newly published product reviews will be indexed.", 'aiomatic-automatic-ai-content-writer');
10661
+
?>
10662
+
</div>
10663
+
</div>
10664
+
<b><?php echo esc_html__("Enable Embeddings Auto Indexing For Newly Published Comments On:", 'aiomatic-automatic-ai-content-writer');?></b>
10665
+
</th>
10666
+
<td>
10667
+
<select autocomplete="off" id="comment_index_types" multiple name="aiomatic_Main_Settings[comment_index_types][]" class="cr_width_full">
10668
+
<?php
10669
+
foreach ( get_post_types( '', 'names' ) as $tpost_type ) {
10670
+
if(strstr($tpost_type, 'aiomatic_'))
10671
+
{
10672
+
continue;
10673
+
}
10674
+
echo '<option value="' . esc_attr($tpost_type) . '"';
10675
+
if(in_array($tpost_type, $comment_index_types))
10676
+
{
10677
+
echo ' selected';
10678
+
}
10679
+
echo '>' . esc_html($tpost_type) . '</option>';
10680
+
}
10681
+
?>
10682
+
</select>
10683
+
</td>
10684
+
</tr>
10685
+
<tr>
10686
+
<th>
10687
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10688
+
<div class="bws_hidden_help_text cr_min_260px">
10689
+
<?php
10690
+
echo esc_html__("Select the template of the embedding which will be saved in the database. You can use the following shortcodes: %%comment_content%%, %%comment_author%%, %%comment_id%%, %%post_title%%, %%post_content%%, %%post_excerpt%%, %%post_url%%, %%post_id%%. - New feature: List of additional shortcodes: %%post_title%%, %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%post_tags%%, %%featured_image%%, %%blog_title%%, %%author_name%%, %%current_date_time%%, %%post_link%%, %%random_sentence%%, %%random_sentence2%%, %%user_name%%, %%user_email%%, %%user_display_name%%, %%user_role%%, %%user_id%%, %%user_firstname%%, %%user_lastname%%, %%user_url%%, %%user_description%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the seed command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). The default value of this field is: %%comment_content%%", 'aiomatic-automatic-ai-content-writer');
10691
+
?>
10692
+
</div>
10693
+
</div>
10694
+
<b><?php echo esc_html__("Auto Created Comments Embeddings Template:", 'aiomatic-automatic-ai-content-writer');?></b>
10695
+
</th>
10696
+
<td>
10697
+
<textarea rows="8" cols="70" id="comment_embedding_template" class="cr_width_full" name="aiomatic_Main_Settings[comment_embedding_template]" placeholder="<?php echo esc_html__("Set a template to use for auto created embeddings", 'aiomatic-automatic-ai-content-writer');?>"><?php
10698
+
echo esc_textarea($comment_embedding_template);
10699
+
?></textarea>
10700
+
</td>
10701
+
</tr>
10702
+
<tr>
10703
+
<th>
10704
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10705
+
<div class="bws_hidden_help_text cr_min_260px">
10706
+
<?php
10707
+
echo esc_html__("Set the embeddings namespace you want to assign to automatically indexed comment content. Different namespaces will allow you to use different embeddings data in different parts of the plugin.", 'aiomatic-automatic-ai-content-writer');
10708
+
?>
10709
+
</div>
10710
+
</div>
10711
+
<b><?php echo esc_html__("Embeddings Namespace For Comment Auto Indexing (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
10712
+
</th>
10713
+
<td>
10714
+
<input type="text" id="comment_auto_namspace" placeholder="<?php echo esc_html__("Embedding namespace", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[comment_auto_namspace]" value="<?php echo esc_html($comment_auto_namspace);?>" class="cr_width_full"/>
10715
+
</td>
10716
+
</tr>
10717
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Embeddings Bulk Indexing Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
10718
+
<tr>
10719
+
<th>
10720
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10721
+
<div class="bws_hidden_help_text cr_min_260px">
10722
+
<?php
10723
+
echo esc_html__("Select the template of the embedding which will be saved in the database. You can use the following shortcodes: %%post_title%%, %%post_content%%, %%post_excerpt%%, %%post_url%%, %%post_id%%. - New feature: List of additional shortcodes: %%post_title%%, %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%post_tags%%, %%featured_image%%, %%blog_title%%, %%author_name%%, %%current_date_time%%, %%post_link%%, %%random_sentence%%, %%random_sentence2%%, %%user_name%%, %%user_email%%, %%user_display_name%%, %%user_role%%, %%user_id%%, %%user_firstname%%, %%user_lastname%%, %%user_url%%, %%user_description%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the seed command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). The default value of this field is: %%post_title%% -- %%post_excerpt%% -- Read more at: %%post_url%%", 'aiomatic-automatic-ai-content-writer');
10724
+
?>
10725
+
</div>
10726
+
</div>
10727
+
<b><?php echo esc_html__("Bulk Created Embeddings Template:", 'aiomatic-automatic-ai-content-writer');?></b>
10728
+
</th>
10729
+
<td>
10730
+
<textarea rows="8" cols="70" id="bulk_embedding_template" class="cr_width_full" name="aiomatic_Main_Settings[bulk_embedding_template]" placeholder="<?php echo esc_html__("Set a template to use for bulk created embeddings", 'aiomatic-automatic-ai-content-writer');?>"><?php
10731
+
echo esc_textarea($bulk_embedding_template);
10732
+
?></textarea>
10733
+
</td>
10734
+
</tr>
10735
+
<tr>
10736
+
<th>
10737
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10738
+
<div class="bws_hidden_help_text cr_min_260px">
10739
+
<?php
10740
+
echo esc_html__("Set the embeddings namespace you want to assign to bulk indexed content. Different namespaces will allow you to use different embeddings data in different parts of the plugin.", 'aiomatic-automatic-ai-content-writer');
10741
+
?>
10742
+
</div>
10743
+
</div>
10744
+
<b><?php echo esc_html__("Embeddings Namespace For Bulk Indexing (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
10745
+
</th>
10746
+
<td>
10747
+
<input type="text" id="bulk_namspace" placeholder="<?php echo esc_html__("Embedding namespace", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[bulk_namspace]" value="<?php echo esc_html($bulk_namspace);?>" class="cr_width_full"/>
10748
+
</td>
10749
+
</tr>
10750
+
</table>
10751
+
<?php
10752
+
}
10753
+
else
10754
+
{
10755
+
echo '<h2>' . esc_html__("You need to enter a Pinecone.io API or a Qdrant API key in the 'API Keys' tab and save settings, to use this feature.", 'aiomatic-automatic-ai-content-writer') . '</h2>';
10756
+
}
10757
+
?>
10758
+
</div>
10759
+
<div id="tab-14<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
10760
+
<h3><?php echo esc_html__('AI Internet Access Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
10761
+
<p class="aiomatic-settings-desc"><?php
10762
+
echo esc_html__("The 'AI Internet Access' tab enables you to configure and manage the internet connectivity settings for AI functionalities, ensuring your WordPress site's AI tools can access online data and services securely.", 'aiomatic-automatic-ai-content-writer');
10763
+
?></p>
10764
+
<table class="widefat">
10765
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Main AI Internet Access Settings", 'aiomatic-automatic-ai-content-writer');?> (<a href="https://www.youtube.com/watch?v=5XjYjXG_uF8" target="_blank"><?php echo esc_html__("check this feature's tutorial", 'aiomatic-automatic-ai-content-writer');?></a>):</h2></td></tr>
10766
+
10767
+
<tr>
10768
+
<th>
10769
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10770
+
<div class="bws_hidden_help_text cr_min_260px">
10771
+
<?php
10772
+
echo esc_html__("Select if you want to randomize the Internet Access API sources order, at each run. If you check this checkbox, the above below will not be applied any more.", 'aiomatic-automatic-ai-content-writer');
10773
+
?>
10774
+
</div>
10775
+
</div>
10776
+
<b><?php esc_html_e('Do Not Randomize Internet Access APIs Order, But Use The Below Order: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
10777
+
</th>
10778
+
<td>
10779
+
<label class="aiomatic-switch"><input onchange="serpChanged();" type="checkbox" id="random_serp_sources" name="aiomatic_Main_Settings[random_serp_sources]"<?php
10780
+
if ($random_serp_sources == 'on')
10781
+
echo ' checked ';
10782
+
?>><span class="aiomatic-slider round"></span></label>
10783
+
</td>
10784
+
</tr>
10785
+
<tr class="hideSERP">
10786
+
<th>
10787
+
<div>
10788
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10789
+
<div class="bws_hidden_help_text cr_min_260px">
10790
+
<?php
10791
+
echo esc_html__("Select your prefered order in which you want to search Internet Access API sources.", 'aiomatic-automatic-ai-content-writer');
10792
+
?>
10793
+
</div>
10794
+
</div>
10795
+
<b><?php echo esc_html__("Internet Access Search Order:", 'aiomatic-automatic-ai-content-writer');?></b>
10796
+
</div>
10797
+
</th>
10798
+
<td>
10799
+
<?php
10800
+
$serp_cards_order = get_option('aiomatic_serp_cards_order', array());
10801
+
?>
10802
+
<input type="hidden" id="sortable_cards_serp" name="aiomatic_sortable_cards_serp" value="<?php echo esc_attr(implode(',', $serp_cards_order)); ?>">
10803
+
<ul id="aiomatic_serp_sortable">
10804
+
<?php
10805
+
if(empty($serp_cards_order))
10806
+
{
10807
+
echo '<li class="aisortable-card">' . esc_html__('No Internet Access Sources Enabled', 'aiomatic-automatic-ai-content-writer') . '</li>';
10808
+
}
10809
+
else
10810
+
{
10811
+
foreach ($serp_cards_order as $card_id_serp) {
10812
+
if(!empty($card_id_serp))
10813
+
{
10814
+
echo '<li class="aisortable-card" id="' . esc_attr($card_id_serp) . '">' . esc_html(ucfirst($card_id_serp)) . '</li>';
10815
+
}
10816
+
}
10817
+
}
10818
+
?>
10819
+
</ul>
10820
+
</td>
10821
+
</tr>
10822
+
<tr>
10823
+
<th>
10824
+
<div>
10825
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10826
+
<div class="bws_hidden_help_text cr_min_260px">
10827
+
<?php
10828
+
echo esc_html__("Modify the prompt for the AI writer, using the below template, adding also information extracted from the internet. You can use the following shortcodes: %%original_query%% (to add the original search query), %%current_date%% (to add the current date), %%web_results%% (to add the search query results).", 'aiomatic-automatic-ai-content-writer');
10829
+
?>
10830
+
</div>
10831
+
</div>
10832
+
<b><?php echo esc_html__("Modify Prompt For the AI Writer Using Internet Search Results:", 'aiomatic-automatic-ai-content-writer');?></b><br/><input type="button" onclick="populate_default_internet();" value="<?php echo esc_html__("Restore To Default", 'aiomatic-automatic-ai-content-writer');?>">
10833
+
</div>
10834
+
</th>
10835
+
<td>
10836
+
<div>
10837
+
<textarea rows="8" cols="70" id="internet_prompt" class="cr_width_full" name="aiomatic_Main_Settings[internet_prompt]" placeholder="<?php echo esc_html__("Add the edited prompt", 'aiomatic-automatic-ai-content-writer');?>"><?php
10838
+
echo esc_textarea($internet_prompt);
10839
+
?></textarea>
10840
+
</div>
10841
+
</td>
10842
+
</tr>
10843
+
<tr>
10844
+
<th>
10845
+
<div>
10846
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10847
+
<div class="bws_hidden_help_text cr_min_260px">
10848
+
<?php
10849
+
echo esc_html__("Modify the template of the %%web_results%% shortcode. You will be able to use the following shortcodes: %%result_counter%% (to add the index of the current result), %%result_title%% (to add the title of the current result), %%result_snippet%% (to add the snippet of the current result), %%result_link%% (to add the URL of the current result). The default value for this settings field is: [%%result_counter%%]: %%result_title%% %%result_snippet%% URL: %%result_link%%", 'aiomatic-automatic-ai-content-writer');
10850
+
?>
10851
+
</div>
10852
+
</div>
10853
+
<b><?php echo esc_html__("Template For the %%web_results%% Shortcode:", 'aiomatic-automatic-ai-content-writer');?></b><br/><input type="button" onclick="populate_default_template();" value="<?php echo esc_html__("Restore To Default", 'aiomatic-automatic-ai-content-writer');?>">
10854
+
</div>
10855
+
</th>
10856
+
<td>
10857
+
<div>
10858
+
<textarea rows="2" cols="70" id="internet_single_template" class="cr_width_full" name="aiomatic_Main_Settings[internet_single_template]" placeholder="<?php echo esc_html__("Add the %%web_results%% shortcode template", 'aiomatic-automatic-ai-content-writer');?>"><?php
10859
+
echo esc_textarea($internet_single_template);
10860
+
?></textarea>
10861
+
</div>
10862
+
</td>
10863
+
</tr>
10864
+
<tr>
10865
+
<th>
10866
+
<div>
10867
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10868
+
<div class="bws_hidden_help_text cr_min_260px">
10869
+
<?php
10870
+
echo esc_html__("Prompt to use for keyword/keyphrase extraction from the submitted text (so the internet search will be more probable to return related results to the query sent to the AI). You can use the following shortcode here: %%original_prompt%%. The default value for this settings is: Using which keyword or phrase should I search the internet, so I get results related to the following text? Give me only a single search phrase or keyword, don't write anything else. The text is: \"%%original_prompt%%\"?", 'aiomatic-automatic-ai-content-writer');
10871
+
?>
10872
+
</div>
10873
+
</div>
10874
+
<b><?php echo esc_html__("Keyword Extractor Prompt (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
10875
+
</div>
10876
+
</th>
10877
+
<td>
10878
+
<div>
10879
+
<textarea rows="3" cols="70" id="keyword_extractor_prompt" class="cr_width_full" name="aiomatic_Main_Settings[keyword_extractor_prompt]" placeholder="<?php echo esc_html__("Using which keyword or phrase should I search the internet, so I get results related to the following text? Give me only a single search phrase or keyword, don't write anything else. The text is: \"%%original_prompt%%\"?", 'aiomatic-automatic-ai-content-writer');?>"><?php
10880
+
echo esc_textarea($keyword_extractor_prompt);
10881
+
?></textarea>
10882
+
</div>
10883
+
</td>
10884
+
</tr>
10885
+
<tr>
10886
+
<th>
10887
+
<div>
10888
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10889
+
<div class="bws_hidden_help_text cr_min_260px">
10890
+
<?php
10891
+
echo esc_html__("Specifying this parameter should lead to more relevant results for a specific country. This is particularly true for international customers and, even more specifically, for customers in English- speaking countries other than the United States. To restrict search results only to websites located in a specific country, specify this parameter as: countryDE - replace DE with your own 2 letter country code", 'aiomatic-automatic-ai-content-writer');
10892
+
?>
10893
+
</div>
10894
+
</div>
10895
+
<b><?php echo esc_html__("Search Results Location (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
10896
+
</div>
10897
+
</th>
10898
+
<td>
10899
+
<div>
10900
+
<input type="text" id="internet_gl" placeholder="<?php echo esc_html__("2 letter country code", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[internet_gl]" value="<?php echo esc_html($internet_gl);?>" class="cr_width_full"/>
10901
+
</div>
10902
+
</td>
10903
+
</tr>
10904
+
<tr>
10905
+
<th class="cr_min_width_200">
10906
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10907
+
<div class="bws_hidden_help_text cr_min_260px">
10908
+
<?php
10909
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
10910
+
?>
10911
+
</div>
10912
+
</div>
10913
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
10914
+
</th>
10915
+
<td><select id="internet_assistant_id" name="aiomatic_Main_Settings[internet_assistant_id]" class="cr_width_full" onchange="assistantSelected('internet_assistant_id', 'disableInternet');">
10916
+
<?php
10917
+
if($all_assistants === false)
10918
+
{
10919
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
10920
+
}
10921
+
else
10922
+
{
10923
+
if(count($all_assistants) == 0)
10924
+
{
10925
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
10926
+
}
10927
+
else
10928
+
{
10929
+
echo '<option value=""';
10930
+
if($internet_assistant_id == '')
10931
+
{
10932
+
echo ' selected';
10933
+
}
10934
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
10935
+
foreach($all_assistants as $myassistant)
10936
+
{
10937
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
10938
+
if($internet_assistant_id == $myassistant->ID)
10939
+
{
10940
+
echo ' selected';
10941
+
}
10942
+
echo '>' . esc_html($myassistant->post_title);
10943
+
echo '</option>';
10944
+
}
10945
+
}
10946
+
}
10947
+
?>
10948
+
</select>
10949
+
</td>
10950
+
</tr>
10951
+
<tr>
10952
+
<th>
10953
+
<div>
10954
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10955
+
<div class="bws_hidden_help_text cr_min_260px">
10956
+
<?php
10957
+
echo esc_html__("Select the model you want to use for keyword extraction, for internet search results.", 'aiomatic-automatic-ai-content-writer');
10958
+
?>
10959
+
</div>
10960
+
</div>
10961
+
<b><?php echo esc_html__("Keyword Extractor Model (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
10962
+
</div>
10963
+
</th>
10964
+
<td>
10965
+
<div>
10966
+
<select id="internet_model" name="aiomatic_Main_Settings[internet_model]" <?php if($internet_assistant_id != ''){echo ' disabled';}?> class="disableInternet cr_width_full">
10967
+
<?php
10968
+
foreach($all_models as $modelx)
10969
+
{
10970
+
echo '<option value="' . esc_html($modelx) .'"';
10971
+
if ($internet_model == $modelx)
10972
+
{
10973
+
echo " selected";
10974
+
}
10975
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
10976
+
}
10977
+
?>
10978
+
</select>
10979
+
</div>
10980
+
</td>
10981
+
</tr>
10982
+
<tr>
10983
+
<th>
10984
+
<div class="hideLog">
10985
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
10986
+
<div class="bws_hidden_help_text cr_min_260px">
10987
+
<?php
10988
+
echo esc_html__("Select the number of search results to add in the %%web_results%% shortcode. The default value for this settings is : 3", 'aiomatic-automatic-ai-content-writer');
10989
+
?>
10990
+
</div>
10991
+
</div>
10992
+
<b><?php echo esc_html__("Number Of Search Results To Add (In The %%web_results%% Shortcode):", 'aiomatic-automatic-ai-content-writer');?></b>
10993
+
</div>
10994
+
</th>
10995
+
<td>
10996
+
<div class="hideLog">
10997
+
<select id="results_num" name="aiomatic_Main_Settings[results_num]" class="cr_width_full">
10998
+
<option value="1"<?php
10999
+
if ($results_num == "1") {
11000
+
echo " selected";
11001
+
}
11002
+
?>><?php echo esc_html__("1", 'aiomatic-automatic-ai-content-writer');?></option>
11003
+
<option value="2"<?php
11004
+
if ($results_num == "2") {
11005
+
echo " selected";
11006
+
}
11007
+
?>><?php echo esc_html__("2", 'aiomatic-automatic-ai-content-writer');?></option>
11008
+
<option value="3"<?php
11009
+
if ($results_num == "3") {
11010
+
echo " selected";
11011
+
}
11012
+
?>><?php echo esc_html__("3", 'aiomatic-automatic-ai-content-writer');?></option>
11013
+
<option value="4"<?php
11014
+
if ($results_num == "4") {
11015
+
echo " selected";
11016
+
}
11017
+
?>><?php echo esc_html__("4", 'aiomatic-automatic-ai-content-writer');?></option>
11018
+
<option value="5"<?php
11019
+
if ($results_num == "5") {
11020
+
echo " selected";
11021
+
}
11022
+
?>><?php echo esc_html__("5", 'aiomatic-automatic-ai-content-writer');?></option>
11023
+
<option value="6"<?php
11024
+
if ($results_num == "6") {
11025
+
echo " selected";
11026
+
}
11027
+
?>><?php echo esc_html__("6", 'aiomatic-automatic-ai-content-writer');?></option>
11028
+
<option value="7"<?php
11029
+
if ($results_num == "7") {
11030
+
echo " selected";
11031
+
}
11032
+
?>><?php echo esc_html__("7", 'aiomatic-automatic-ai-content-writer');?></option>
11033
+
<option value="8"<?php
11034
+
if ($results_num == "8") {
11035
+
echo " selected";
11036
+
}
11037
+
?>><?php echo esc_html__("8", 'aiomatic-automatic-ai-content-writer');?></option>
11038
+
<option value="9"<?php
11039
+
if ($results_num == "9") {
11040
+
echo " selected";
11041
+
}
11042
+
?>><?php echo esc_html__("9", 'aiomatic-automatic-ai-content-writer');?></option>
11043
+
<option value="10"<?php
11044
+
if ($results_num == "10") {
11045
+
echo " selected";
11046
+
}
11047
+
?>><?php echo esc_html__("10", 'aiomatic-automatic-ai-content-writer');?></option>
11048
+
</select>
11049
+
</div>
11050
+
</td>
11051
+
</tr>
11052
+
<tr>
11053
+
<th>
11054
+
<div>
11055
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11056
+
<div class="bws_hidden_help_text cr_min_260px">
11057
+
<?php
11058
+
echo esc_html__("Enable AI internet access for the following features of the plugin.", 'aiomatic-automatic-ai-content-writer');
11059
+
?>
11060
+
</div>
11061
+
</div>
11062
+
<b><?php echo esc_html__("Enable AI Internet Access For:", 'aiomatic-automatic-ai-content-writer');?></b>
11063
+
</div>
11064
+
</th>
11065
+
<td>
11066
+
<div>
11067
+
<input type="checkbox" id="internet_single" name="aiomatic_Main_Settings[internet_single]"<?php
11068
+
if ($internet_single == 'on')
11069
+
echo ' checked ';
11070
+
?>>
11071
+
<label for="internet_single"><?php echo esc_html__("Single AI Post Creator", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11072
+
11073
+
<input type="checkbox" id="internet_bulk" onchange="internetChanged();" name="aiomatic_Main_Settings[internet_bulk]"<?php
11074
+
if ($internet_bulk == 'on')
11075
+
echo ' checked ';
11076
+
?>>
11077
+
<label for="internet_bulk"><?php echo esc_html__("Bulk AI Post Creator", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11078
+
<div class="hideInternetContent">
11079
+
<input type="checkbox" id="internet_bulk_title" name="aiomatic_Main_Settings[internet_bulk_title]"<?php
11080
+
if ($internet_bulk_title == 'on')
11081
+
echo ' checked ';
11082
+
?>>
11083
+
<label for="internet_bulk_title"><?php echo esc_html__("Bulk AI Post Creator - Title Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11084
+
<input type="checkbox" id="internet_bulk_sections" name="aiomatic_Main_Settings[internet_bulk_sections]"<?php
11085
+
if ($internet_bulk_sections == 'on')
11086
+
echo ' checked ';
11087
+
?>>
11088
+
<label for="internet_bulk_sections"><?php echo esc_html__("Bulk AI Post Creator - Sections Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11089
+
<input type="checkbox" id="internet_bulk_intro" name="aiomatic_Main_Settings[internet_bulk_intro]"<?php
11090
+
if ($internet_bulk_intro == 'on')
11091
+
echo ' checked ';
11092
+
?>>
11093
+
<label for="internet_bulk_intro"><?php echo esc_html__("Bulk AI Post Creator - Intro Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11094
+
<input type="checkbox" id="internet_bulk_content" name="aiomatic_Main_Settings[internet_bulk_content]"<?php
11095
+
if ($internet_bulk_content == 'on')
11096
+
echo ' checked ';
11097
+
?>>
11098
+
<label for="internet_bulk_content"><?php echo esc_html__("Bulk AI Post Creator - Content Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11099
+
<input type="checkbox" id="internet_bulk_qa" name="aiomatic_Main_Settings[internet_bulk_qa]"<?php
11100
+
if ($internet_bulk_qa == 'on')
11101
+
echo ' checked ';
11102
+
?>>
11103
+
<label for="internet_bulk_qa"><?php echo esc_html__("Bulk AI Post Creator - QA Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11104
+
<input type="checkbox" id="internet_bulk_outro" name="aiomatic_Main_Settings[internet_bulk_outro]"<?php
11105
+
if ($internet_bulk_outro == 'on')
11106
+
echo ' checked ';
11107
+
?>>
11108
+
<label for="internet_bulk_outro"><?php echo esc_html__("Bulk AI Post Creator - Outro Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11109
+
<input type="checkbox" id="internet_bulk_excerpt" name="aiomatic_Main_Settings[internet_bulk_excerpt]"<?php
11110
+
if ($internet_bulk_excerpt == 'on')
11111
+
echo ' checked ';
11112
+
?>>
11113
+
<label for="internet_bulk_excerpt"><?php echo esc_html__("Bulk AI Post Creator - Excerpt Prompts", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11114
+
</div>
11115
+
<input type="checkbox" id="internet_edit" name="aiomatic_Main_Settings[internet_edit]"<?php
11116
+
if ($internet_edit == 'on')
11117
+
echo ' checked ';
11118
+
?>>
11119
+
<label for="internet_edit"><?php echo esc_html__("Content Editing", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11120
+
11121
+
<input type="checkbox" id="internet_chat_short" name="aiomatic_Main_Settings[internet_chat_short]"<?php
11122
+
if ($internet_chat_short == 'on')
11123
+
echo ' checked ';
11124
+
?>>
11125
+
<label for="internet_chat_short"><?php echo esc_html__("Chatbot Shortcodes", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11126
+
11127
+
<input type="checkbox" id="internet_article_short" name="aiomatic_Main_Settings[internet_article_short]"<?php
11128
+
if ($internet_article_short == 'on')
11129
+
echo ' checked ';
11130
+
?>>
11131
+
<label for="internet_article_short"><?php echo esc_html__("Text Completion Shortcodes", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11132
+
11133
+
<input type="checkbox" id="internet_edit_short" name="aiomatic_Main_Settings[internet_edit_short]"<?php
11134
+
if ($internet_edit_short == 'on')
11135
+
echo ' checked ';
11136
+
?>>
11137
+
<label for="internet_edit_short"><?php echo esc_html__("Text Editing Shortcode", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11138
+
11139
+
<input type="checkbox" id="internet_related" name="aiomatic_Main_Settings[internet_related]"<?php
11140
+
if ($internet_related == 'on')
11141
+
echo ' checked ';
11142
+
?>>
11143
+
<label for="internet_related"><?php echo esc_html__("Related Questions Creation", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11144
+
11145
+
<input type="checkbox" id="internet_assistant" name="aiomatic_Main_Settings[internet_assistant]"<?php
11146
+
if ($internet_assistant == 'on')
11147
+
echo ' checked ';
11148
+
?>>
11149
+
<label for="internet_assistant"><?php echo esc_html__("Content Wizard", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11150
+
11151
+
<input type="checkbox" id="internet_forms" name="aiomatic_Main_Settings[internet_forms]"<?php
11152
+
if ($internet_forms == 'on')
11153
+
echo ' checked ';
11154
+
?>>
11155
+
<label for="internet_forms"><?php echo esc_html__("AI Forms", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11156
+
11157
+
<input type="checkbox" id="internet_omni" name="aiomatic_Main_Settings[internet_omni]"<?php
11158
+
if ($internet_omni == 'on')
11159
+
echo ' checked ';
11160
+
?>>
11161
+
<label for="internet_omni"><?php echo esc_html__("AI OmniBlocks", 'aiomatic-automatic-ai-content-writer');?></label><br/>
11162
+
</div>
11163
+
</td>
11164
+
</tr>
11165
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
11166
+
?>
11167
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr><tr>
11168
+
<td class="coderevolution_block_input" colspan="2">
11169
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/5XjYjXG_uF8" allowfullscreen></iframe>
11170
+
</td></tr>
11171
+
<?php
11172
+
}
11173
+
?>
11174
+
</table>
11175
+
</div>
11176
+
<div id="tab-7<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
11177
+
<h3><?php echo esc_html__('Plugin General Settings', 'aiomatic-automatic-ai-content-writer');?></h3>
11178
+
<p class="aiomatic-settings-desc"><?php
11179
+
echo esc_html__("The 'General Settings' tab allows you to configure advanced options and preferences that affect the overall operation of the plugin.", 'aiomatic-automatic-ai-content-writer');
11180
+
?></p>
11181
+
<table class="widefat">
11182
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Basic Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
11183
+
<tr>
11184
+
<th>
11185
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11186
+
<div class="bws_hidden_help_text cr_min_260px">
11187
+
<?php
11188
+
echo esc_html__("Do you want to enable logging for rules?", 'aiomatic-automatic-ai-content-writer');
11189
+
?>
11190
+
</div>
11191
+
</div>
11192
+
<b><?php echo esc_html__("Enable Logging for Rules:", 'aiomatic-automatic-ai-content-writer');?></b>
11193
+
</th>
11194
+
<td>
11195
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_logging" onclick="mainChanged();" name="aiomatic_Main_Settings[enable_logging]"<?php
11196
+
if ($enable_logging == 'on')
11197
+
echo ' checked ';
11198
+
?>><span class="aiomatic-slider round"></span></label>
11199
+
</td>
11200
+
</tr>
11201
+
<tr>
11202
+
<th>
11203
+
<div class="hideLog">
11204
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11205
+
<div class="bws_hidden_help_text cr_min_260px">
11206
+
<?php
11207
+
echo esc_html__("Do you want to enable detailed logging for rules? Note that this will dramatically increase the size of the log this plugin generates.", 'aiomatic-automatic-ai-content-writer');
11208
+
?>
11209
+
</div>
11210
+
</div>
11211
+
<b><?php echo esc_html__("Enable Detailed Logging for Rules:", 'aiomatic-automatic-ai-content-writer');?></b>
11212
+
</div>
11213
+
</th>
11214
+
<td>
11215
+
<div class="hideLog">
11216
+
<label class="aiomatic-switch"><input type="checkbox" id="enable_detailed_logging" name="aiomatic_Main_Settings[enable_detailed_logging]"<?php
11217
+
if ($enable_detailed_logging == 'on')
11218
+
echo ' checked ';
11219
+
?>><span class="aiomatic-slider round"></span></label>
11220
+
</div>
11221
+
</td>
11222
+
</tr>
11223
+
<tr>
11224
+
<th>
11225
+
<div class="hideLog">
11226
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11227
+
<div class="bws_hidden_help_text cr_min_260px">
11228
+
<?php
11229
+
echo esc_html__("Do you want to hide all tutorial videos from the plugin's admin menu?", 'aiomatic-automatic-ai-content-writer');
11230
+
?>
11231
+
</div>
11232
+
</div>
11233
+
<b><?php echo esc_html__("Hide All Tutorial Video From The Plugin's Admin Menu:", 'aiomatic-automatic-ai-content-writer');?></b>
11234
+
</div>
11235
+
</th>
11236
+
<td>
11237
+
<div class="hideLog">
11238
+
<label class="aiomatic-switch"><input type="checkbox" id="hide_videos" name="aiomatic_Main_Settings[hide_videos]"<?php
11239
+
if ($hide_videos == 'on')
11240
+
echo ' checked ';
11241
+
?>><span class="aiomatic-slider round"></span></label>
11242
+
</div>
11243
+
</td>
11244
+
</tr>
11245
+
<tr>
11246
+
<th>
11247
+
<div>
11248
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11249
+
<div class="bws_hidden_help_text cr_min_260px">
11250
+
<?php
11251
+
echo esc_html__("If you check this checkbox, the plugin will store all prompts used in the plugin, to allow model dillution and other features on OpenAI API's part. This works only if you are using an AI model provided by OpenAI.", 'aiomatic-automatic-ai-content-writer');
11252
+
?>
11253
+
</div>
11254
+
</div>
11255
+
<b><?php echo esc_html__("Store AI Prompts On OpenAI's Part (Global):", 'aiomatic-automatic-ai-content-writer');?></b>
11256
+
</div>
11257
+
</th>
11258
+
<td>
11259
+
<div>
11260
+
<label class="aiomatic-switch"><input type="checkbox" id="store_data" name="aiomatic_Main_Settings[store_data]"<?php
11261
+
if ($store_data == 'on')
11262
+
echo ' checked ';
11263
+
?>><span class="aiomatic-slider round"></span></label>
11264
+
</div>
11265
+
</td>
11266
+
</tr>
11267
+
<tr>
11268
+
<th>
11269
+
<div>
11270
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11271
+
<div class="bws_hidden_help_text cr_min_260px">
11272
+
<?php
11273
+
echo esc_html__("Select the AI model you want to use for when no specific AI model is selected or available for a specific task.", 'aiomatic-automatic-ai-content-writer');
11274
+
?>
11275
+
</div>
11276
+
</div>
11277
+
<b><?php echo esc_html__("Default AI Model To Use When No AI Model Available:", 'aiomatic-automatic-ai-content-writer');?></b>
11278
+
</div>
11279
+
</th>
11280
+
<td>
11281
+
<div>
11282
+
<select id="default_ai_model" name="aiomatic_Main_Settings[default_ai_model]" class="cr_width_full">
11283
+
<?php
11284
+
foreach($all_models as $modelx)
11285
+
{
11286
+
echo '<option value="' . esc_html($modelx) .'"';
11287
+
if ($default_ai_model == $modelx)
11288
+
{
11289
+
echo " selected";
11290
+
}
11291
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
11292
+
}
11293
+
?>
11294
+
</select>
11295
+
</div>
11296
+
</td>
11297
+
</tr>
11298
+
<tr>
11299
+
<th>
11300
+
<div class="hideLog">
11301
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11302
+
<div class="bws_hidden_help_text cr_min_260px">
11303
+
<?php
11304
+
echo esc_html__("Choose if you want to automatically clear logs after a period of time.", 'aiomatic-automatic-ai-content-writer');
11305
+
?>
11306
+
</div>
11307
+
</div>
11308
+
<b><?php echo esc_html__("Automatically Clear Logs After:", 'aiomatic-automatic-ai-content-writer');?></b>
11309
+
</div>
11310
+
</th>
11311
+
<td>
11312
+
<div class="hideLog">
11313
+
<select id="auto_clear_logs" name="aiomatic_Main_Settings[auto_clear_logs]" class="cr_width_full">
11314
+
<option value="No"<?php
11315
+
if ($auto_clear_logs == "No") {
11316
+
echo " selected";
11317
+
}
11318
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
11319
+
<option value="monthly"<?php
11320
+
if ($auto_clear_logs == "monthly") {
11321
+
echo " selected";
11322
+
}
11323
+
?>><?php echo esc_html__("Once a month", 'aiomatic-automatic-ai-content-writer');?></option>
11324
+
<option value="weekly"<?php
11325
+
if ($auto_clear_logs == "weekly") {
11326
+
echo " selected";
11327
+
}
11328
+
?>><?php echo esc_html__("Once a week", 'aiomatic-automatic-ai-content-writer');?></option>
11329
+
<option value="daily"<?php
11330
+
if ($auto_clear_logs == "daily") {
11331
+
echo " selected";
11332
+
}
11333
+
?>><?php echo esc_html__("Once a day", 'aiomatic-automatic-ai-content-writer');?></option>
11334
+
<option value="twicedaily"<?php
11335
+
if ($auto_clear_logs == "twicedaily") {
11336
+
echo " selected";
11337
+
}
11338
+
?>><?php echo esc_html__("Twice a day", 'aiomatic-automatic-ai-content-writer');?></option>
11339
+
<option value="hourly"<?php
11340
+
if ($auto_clear_logs == "hourly") {
11341
+
echo " selected";
11342
+
}
11343
+
?>><?php echo esc_html__("Once an hour", 'aiomatic-automatic-ai-content-writer');?></option>
11344
+
</select>
11345
+
</div>
11346
+
</td>
11347
+
</tr>
11348
+
<tr>
11349
+
<th>
11350
+
<div>
11351
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11352
+
<div class="bws_hidden_help_text cr_min_260px">
11353
+
<?php
11354
+
echo esc_html__("If you want to use a proxy to crawl webpages, input it's address here. Required format: IP Address/URL:port. You can input a comma separated list of proxies.", 'aiomatic-automatic-ai-content-writer');
11355
+
?>
11356
+
</div>
11357
+
</div>
11358
+
<b><?php echo esc_html__("Web Proxy Address List:", 'aiomatic-automatic-ai-content-writer');?></b>
11359
+
</div>
11360
+
</th>
11361
+
<td>
11362
+
<div>
11363
+
<input type="text" id="proxy_url" placeholder="<?php echo esc_html__("Input web proxy url", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[proxy_url]" value="<?php echo esc_html($proxy_url);?>" class="cr_width_full"/>
11364
+
</div>
11365
+
</td>
11366
+
</tr>
11367
+
<tr>
11368
+
<th>
11369
+
<div>
11370
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11371
+
<div class="bws_hidden_help_text cr_min_260px">
11372
+
<?php
11373
+
echo esc_html__("If you want to use a proxy to crawl webpages, and it requires authentification, input it's authentification details here. Required format: username:password. You can input a comma separated list of users/passwords. If a proxy does not have a user/password, please leave it blank in the list. Example: user1:pass1,user2:pass2,,user4:pass4.", 'aiomatic-automatic-ai-content-writer');
11374
+
?>
11375
+
</div>
11376
+
</div>
11377
+
<b><?php echo esc_html__("Web Proxy Authentication:", 'aiomatic-automatic-ai-content-writer');?></b>
11378
+
</div>
11379
+
</th>
11380
+
<td>
11381
+
<div>
11382
+
<input type="text" id="proxy_auth" placeholder="<?php echo esc_html__("Input web proxy auth", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[proxy_auth]" value="<?php echo esc_html($proxy_auth);?>" class="cr_width_full"/>
11383
+
</div>
11384
+
</td>
11385
+
</tr>
11386
+
<tr>
11387
+
<th>
11388
+
<div>
11389
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11390
+
<div class="bws_hidden_help_text cr_min_260px">
11391
+
<?php
11392
+
echo esc_html__("Do you want to use the above proxies also when accessing OpenAI API? Otherwise, they will be used for Amazon product scraping / image downloading only.", 'aiomatic-automatic-ai-content-writer');
11393
+
?>
11394
+
</div>
11395
+
</div>
11396
+
<b><?php echo esc_html__("Use Proxies Also For OpenAI API Accessing:", 'aiomatic-automatic-ai-content-writer');?></b>
11397
+
</div>
11398
+
</th>
11399
+
<td>
11400
+
<div>
11401
+
<label class="aiomatic-switch"><input type="checkbox" id="proxy_ai" name="aiomatic_Main_Settings[proxy_ai]"<?php
11402
+
if ($proxy_ai == 'on')
11403
+
echo ' checked ';
11404
+
?>><span class="aiomatic-slider round"></span></label>
11405
+
</div>
11406
+
</td>
11407
+
</tr>
11408
+
<tr>
11409
+
<th>
11410
+
<div>
11411
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11412
+
<div class="bws_hidden_help_text cr_min_260px">
11413
+
<?php
11414
+
echo esc_html__("Set the timeout (in seconds) for every rule running and also for automatic post editing. I recommend that you leave this field at it's default value (3600).", 'aiomatic-automatic-ai-content-writer');
11415
+
?>
11416
+
</div>
11417
+
</div>
11418
+
<b><?php echo esc_html__("Timeout for Processing (seconds):", 'aiomatic-automatic-ai-content-writer');?></b>
11419
+
</div>
11420
+
</th>
11421
+
<td>
11422
+
<div>
11423
+
<input type="number" id="rule_timeout" step="1" min="0" placeholder="<?php echo esc_html__("Input rule timeout in seconds", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[rule_timeout]" value="<?php
11424
+
echo esc_html($rule_timeout);
11425
+
?>" class="cr_width_full"/>
11426
+
</div>
11427
+
</td>
11428
+
</tr>
11429
+
<tr>
11430
+
<th>
11431
+
<div>
11432
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11433
+
<div class="bws_hidden_help_text cr_min_260px">
11434
+
<?php
11435
+
echo esc_html__("Resize the image that was assigned to be the featured image to the width specified in this text field (in pixels). If you want to disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
11436
+
?>
11437
+
</div>
11438
+
</div>
11439
+
<b><?php echo esc_html__("Featured Image Resize Width:", 'aiomatic-automatic-ai-content-writer');?></b>
11440
+
</div>
11441
+
</th>
11442
+
<td>
11443
+
<div>
11444
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[resize_width]" value="<?php echo esc_html($resize_width);?>" placeholder="<?php echo esc_html__("Please insert the desired width for featured images", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
11445
+
</div>
11446
+
</td>
11447
+
</tr>
11448
+
<tr>
11449
+
<th>
11450
+
<div>
11451
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11452
+
<div class="bws_hidden_help_text cr_min_260px">
11453
+
<?php
11454
+
echo esc_html__("Resize the image that was assigned to be the featured image to the height specified in this text field (in pixels). If you want to disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
11455
+
?>
11456
+
</div>
11457
+
</div>
11458
+
<b><?php echo esc_html__("Featured Image Resize Height:", 'aiomatic-automatic-ai-content-writer');?></b>
11459
+
</div>
11460
+
</th>
11461
+
<td>
11462
+
<div>
11463
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[resize_height]" value="<?php echo esc_html($resize_height);?>" placeholder="<?php echo esc_html__("Please insert the desired height for featured images", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
11464
+
</div>
11465
+
</td>
11466
+
</tr>
11467
+
<tr>
11468
+
<th>
11469
+
<div>
11470
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11471
+
<div class="bws_hidden_help_text cr_min_260px">
11472
+
<?php
11473
+
echo esc_html__("Select the quality of the resized images. Accepted values: 1-100. 1 is lowest quality, 100 is highest quality. If you want to disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
11474
+
?>
11475
+
</div>
11476
+
</div>
11477
+
<b><?php echo esc_html__("Featured Image Resize Quality:", 'aiomatic-automatic-ai-content-writer');?></b>
11478
+
</div>
11479
+
</th>
11480
+
<td>
11481
+
<div>
11482
+
<input type="number" min="1" step="1" max="100" name="aiomatic_Main_Settings[resize_quality]" value="<?php echo esc_html($resize_quality);?>" placeholder="<?php echo esc_html__("Resize quality", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
11483
+
</div>
11484
+
</td>
11485
+
</tr>
11486
+
<tr>
11487
+
<th>
11488
+
<div>
11489
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11490
+
<div class="bws_hidden_help_text cr_min_260px">
11491
+
<?php
11492
+
echo esc_html__("Do you want to enable swear word filtering for created content?", 'aiomatic-automatic-ai-content-writer');
11493
+
?>
11494
+
</div>
11495
+
</div>
11496
+
<b><?php echo esc_html__("Enable Swear Word Filtering:", 'aiomatic-automatic-ai-content-writer');?></b>
11497
+
</div>
11498
+
</th>
11499
+
<td>
11500
+
<div>
11501
+
<label class="aiomatic-switch"><input type="checkbox" id="swear_filter" name="aiomatic_Main_Settings[swear_filter]"<?php
11502
+
if ($swear_filter == 'on')
11503
+
echo ' checked ';
11504
+
?>><span class="aiomatic-slider round"></span></label>
11505
+
</div>
11506
+
</td>
11507
+
</tr>
11508
+
<tr>
11509
+
<th>
11510
+
<div>
11511
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11512
+
<div class="bws_hidden_help_text cr_min_260px">
11513
+
<?php
11514
+
echo esc_html__("Do you want to disable the Media Library extension of the plugin?", 'aiomatic-automatic-ai-content-writer');
11515
+
?>
11516
+
</div>
11517
+
</div>
11518
+
<b><?php echo esc_html__("Disable Media Library Extension:", 'aiomatic-automatic-ai-content-writer');?></b>
11519
+
</div>
11520
+
</th>
11521
+
<td>
11522
+
<div>
11523
+
<label class="aiomatic-switch"><input type="checkbox" id="no_media_library" name="aiomatic_Main_Settings[no_media_library]"<?php
11524
+
if ($no_media_library == 'on')
11525
+
echo ' checked ';
11526
+
?>><span class="aiomatic-slider round"></span></label>
11527
+
</div>
11528
+
</td>
11529
+
</tr>
11530
+
<tr>
11531
+
<th>
11532
+
<div>
11533
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11534
+
<div class="bws_hidden_help_text cr_min_260px">
11535
+
<?php
11536
+
echo esc_html__("Do you want to disable the Single Page/Post Editor extension of the plugin?", 'aiomatic-automatic-ai-content-writer');
11537
+
?>
11538
+
</div>
11539
+
</div>
11540
+
<b><?php echo esc_html__("Disable Single Page/Post Editor Functionality:", 'aiomatic-automatic-ai-content-writer');?></b>
11541
+
</div>
11542
+
</th>
11543
+
<td>
11544
+
<div>
11545
+
<label class="aiomatic-switch"><input type="checkbox" id="no_post_editor" name="aiomatic_Main_Settings[no_post_editor]"<?php
11546
+
if ($no_post_editor == 'on')
11547
+
echo ' checked ';
11548
+
?>><span class="aiomatic-slider round"></span></label>
11549
+
</div>
11550
+
</td>
11551
+
</tr>
11552
+
<tr>
11553
+
<th>
11554
+
<div>
11555
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11556
+
<div class="bws_hidden_help_text cr_min_260px">
11557
+
<?php
11558
+
echo esc_html__("Do you want to disable the Elementor integration extension of the plugin?", 'aiomatic-automatic-ai-content-writer');
11559
+
?>
11560
+
</div>
11561
+
</div>
11562
+
<b><?php echo esc_html__("Disable Elementor Integration:", 'aiomatic-automatic-ai-content-writer');?></b>
11563
+
</div>
11564
+
</th>
11565
+
<td>
11566
+
<div>
11567
+
<label class="aiomatic-switch"><input type="checkbox" id="no_elementor" name="aiomatic_Main_Settings[no_elementor]"<?php
11568
+
if ($no_elementor == 'on')
11569
+
echo ' checked ';
11570
+
?>><span class="aiomatic-slider round"></span></label>
11571
+
</div>
11572
+
</td>
11573
+
</tr>
11574
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Advanced Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
11575
+
<tr>
11576
+
<th>
11577
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11578
+
<div class="bws_hidden_help_text cr_min_260px">
11579
+
<?php
11580
+
echo esc_html__("Select if you want to convert markdown to HTML in AI generated content.", 'aiomatic-automatic-ai-content-writer');
11581
+
?>
11582
+
</div>
11583
+
</div>
11584
+
<b><?php echo esc_html__("Convert Markdown To HTML In AI Generated Content:", 'aiomatic-automatic-ai-content-writer');?></b>
11585
+
</th>
11586
+
<td>
11587
+
<label class="aiomatic-switch"><input type="checkbox" id="markdown_parse" name="aiomatic_Main_Settings[markdown_parse]"<?php
11588
+
if ($markdown_parse == 'on')
11589
+
echo ' checked ';
11590
+
?>><span class="aiomatic-slider round"></span></label>
11591
+
</td>
11592
+
</tr>
11593
+
<tr>
11594
+
<th>
11595
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11596
+
<div class="bws_hidden_help_text cr_min_260px">
11597
+
<?php
11598
+
echo esc_html__("Select if you want to first search embeddings data and then check internet search results, when enriching the prompts sent to the AI. If you don't check this, the internet search results will be checked first and afterwards embeddings will be checked.", 'aiomatic-automatic-ai-content-writer');
11599
+
?>
11600
+
</div>
11601
+
</div>
11602
+
<b><?php echo esc_html__("Search Embeddings Before Searching Internet Data For AI Prompt Enrichment:", 'aiomatic-automatic-ai-content-writer');?></b>
11603
+
</th>
11604
+
<td>
11605
+
<label class="aiomatic-switch"><input type="checkbox" id="first_embeddings" name="aiomatic_Main_Settings[first_embeddings]"<?php
11606
+
if ($first_embeddings == 'on')
11607
+
echo ' checked ';
11608
+
?>><span class="aiomatic-slider round"></span></label>
11609
+
</td>
11610
+
</tr>
11611
+
<tr>
11612
+
<th>
11613
+
<div>
11614
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11615
+
<div class="bws_hidden_help_text cr_min_260px">
11616
+
<?php
11617
+
echo esc_html__("Do you want to not remove the <pre><code> tags created by the AI writer?", 'aiomatic-automatic-ai-content-writer');
11618
+
?>
11619
+
</div>
11620
+
</div>
11621
+
<b><?php echo esc_html__("Don't Remove <pre><code> Tags From AI Generated Content:", 'aiomatic-automatic-ai-content-writer');?></b>
11622
+
</div>
11623
+
</th>
11624
+
<td>
11625
+
<div>
11626
+
<label class="aiomatic-switch"><input type="checkbox" id="no_pre_code_remove" name="aiomatic_Main_Settings[no_pre_code_remove]"<?php
11627
+
if ($no_pre_code_remove == 'on')
11628
+
echo ' checked ';
11629
+
?>><span class="aiomatic-slider round"></span></label>
11630
+
</div>
11631
+
</td>
11632
+
</tr>
11633
+
<tr>
11634
+
<th>
11635
+
<div>
11636
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11637
+
<div class="bws_hidden_help_text cr_min_260px">
11638
+
<?php
11639
+
echo esc_html__("Do you want to clear the OmniBlock processed keywords list at plugin deactivation?", 'aiomatic-automatic-ai-content-writer');
11640
+
?>
11641
+
</div>
11642
+
</div>
11643
+
<b><?php echo esc_html__("Clear OmniBlock Processed Keywords List At Plugin Deactivation:", 'aiomatic-automatic-ai-content-writer');?></b>
11644
+
</div>
11645
+
</th>
11646
+
<td>
11647
+
<div>
11648
+
<label class="aiomatic-switch"><input type="checkbox" id="clear_omni" name="aiomatic_Main_Settings[clear_omni]"<?php
11649
+
if ($clear_omni == 'on')
11650
+
echo ' checked ';
11651
+
?>><span class="aiomatic-slider round"></span></label>
11652
+
</div>
11653
+
</td>
11654
+
</tr>
11655
+
<tr>
11656
+
<th>
11657
+
<div>
11658
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11659
+
<div class="bws_hidden_help_text cr_min_260px">
11660
+
<?php
11661
+
echo esc_html__("Do you want to disable the rendering of shortcodes in OmniBlocks? Any shortcode which the AI will create, will be rendered on your website directly.", 'aiomatic-automatic-ai-content-writer');
11662
+
?>
11663
+
</div>
11664
+
</div>
11665
+
<b><?php echo esc_html__("Disable Shortcode Rendering In OmniBlocks:", 'aiomatic-automatic-ai-content-writer');?></b>
11666
+
</div>
11667
+
</th>
11668
+
<td>
11669
+
<div>
11670
+
<label class="aiomatic-switch"><input type="checkbox" id="no_omni_shortcode_render" name="aiomatic_Main_Settings[no_omni_shortcode_render]"<?php
11671
+
if ($no_omni_shortcode_render == 'on')
11672
+
echo ' checked ';
11673
+
?>><span class="aiomatic-slider round"></span></label>
11674
+
</div>
11675
+
</td>
11676
+
</tr>
11677
+
<tr>
11678
+
<th>
11679
+
<div>
11680
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11681
+
<div class="bws_hidden_help_text cr_min_260px">
11682
+
<?php
11683
+
echo esc_html__("Set the maximum number of times the plugin will retry API calls in case they fail. This is useful, as in some cases OpenAI API is failing and a retry will work. To disable this feature, leave this field blank. This feature is currently not supported if the chatbot is in streaming mode.", 'aiomatic-automatic-ai-content-writer');
11684
+
?>
11685
+
</div>
11686
+
</div>
11687
+
<b><?php echo esc_html__("How Many Times To Retry API Calls In Case Of API Failure:", 'aiomatic-automatic-ai-content-writer');?></b>
11688
+
</div>
11689
+
</th>
11690
+
<td>
11691
+
<div>
11692
+
<input type="number" id="max_retry" step="1" min="0" placeholder="<?php echo esc_html__("API retry max count", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[max_retry]" value="<?php
11693
+
echo esc_html($max_retry);
11694
+
?>" class="cr_width_full"/>
11695
+
</div>
11696
+
</td>
11697
+
</tr>
11698
+
<tr>
11699
+
<th>
11700
+
<div>
11701
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11702
+
<div class="bws_hidden_help_text cr_min_260px">
11703
+
<?php
11704
+
echo esc_html__("Set the maximum number of times the plugin will retry chat API calls in case the AI writer considers the chat as ended. Warning, this can consume more tokens, as it will retry API calls multiple times. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
11705
+
?>
11706
+
</div>
11707
+
</div>
11708
+
<b><?php echo esc_html__("Chat End of Conversation Retry Count:", 'aiomatic-automatic-ai-content-writer');?></b>
11709
+
</div>
11710
+
</th>
11711
+
<td>
11712
+
<div>
11713
+
<input type="number" id="max_chat_retry" step="1" min="0" placeholder="<?php echo esc_html__("Chat end API retry max count", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[max_chat_retry]" value="<?php
11714
+
echo esc_html($max_chat_retry);
11715
+
?>" class="cr_width_full"/>
11716
+
</div>
11717
+
</td>
11718
+
</tr>
11719
+
<tr>
11720
+
<th>
11721
+
<div>
11722
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11723
+
<div class="bws_hidden_help_text cr_min_260px">
11724
+
<?php
11725
+
echo esc_html__("Set the maximum number of seconds the plugin will wait for API requests. The default is 120 seconds.", 'aiomatic-automatic-ai-content-writer');
11726
+
?>
11727
+
</div>
11728
+
</div>
11729
+
<b><?php echo esc_html__("Timeout For API Requests (s):", 'aiomatic-automatic-ai-content-writer');?></b>
11730
+
</div>
11731
+
</th>
11732
+
<td>
11733
+
<div>
11734
+
<input type="number" id="max_timeout" step="1" min="0" placeholder="<?php echo esc_html__("API Requests Timeout", 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Main_Settings[max_timeout]" value="<?php
11735
+
echo esc_html($max_timeout);
11736
+
?>" class="cr_width_full"/>
11737
+
</div>
11738
+
</td>
11739
+
</tr>
11740
+
<tr>
11741
+
<th>
11742
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11743
+
<div class="bws_hidden_help_text cr_min_260px">
11744
+
<?php
11745
+
echo esc_html__("If you are using content editing which contain Chinese characters, you can try checking this checkbox.", 'aiomatic-automatic-ai-content-writer');
11746
+
?>
11747
+
</div>
11748
+
</div>
11749
+
<b><?php echo esc_html__("Don't Send Maximum Tokens In API Request (Experimental):", 'aiomatic-automatic-ai-content-writer');?></b>
11750
+
</th>
11751
+
<td>
11752
+
<label class="aiomatic-switch"><input type="checkbox" id="no_max" name="aiomatic_Main_Settings[no_max]"<?php
11753
+
if ($no_max == 'on')
11754
+
echo ' checked ';
11755
+
?>><span class="aiomatic-slider round"></span></label>
11756
+
</td>
11757
+
</tr>
11758
+
<tr>
11759
+
<th>
11760
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11761
+
<div class="bws_hidden_help_text cr_min_260px">
11762
+
<?php
11763
+
echo esc_html__("If you encounter issues while using the Single AI Post Creator Advanced Mode tab, check this checkbox.", 'aiomatic-automatic-ai-content-writer');
11764
+
?>
11765
+
</div>
11766
+
</div>
11767
+
<b><?php echo esc_html__("Don't Use Jobs In The Advanced Mode Single AI Post Creator (Experimental):", 'aiomatic-automatic-ai-content-writer');?></b>
11768
+
</th>
11769
+
<td>
11770
+
<label class="aiomatic-switch"><input type="checkbox" id="no_jobs" name="aiomatic_Main_Settings[no_jobs]"<?php
11771
+
if ($no_jobs == 'on')
11772
+
echo ' checked ';
11773
+
?>><span class="aiomatic-slider round"></span></label>
11774
+
</td>
11775
+
</tr>
11776
+
<tr>
11777
+
<th>
11778
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11779
+
<div class="bws_hidden_help_text cr_min_260px">
11780
+
<?php
11781
+
echo esc_html__("If you want to get maximum customizability for your shortcodes, check this checkbox. It will allow maximum customizability for content created by shortcodes.", 'aiomatic-automatic-ai-content-writer');
11782
+
?>
11783
+
</div>
11784
+
</div>
11785
+
<b><?php echo esc_html__("Don't Use !important In Generated CSS For Shortcodes:", 'aiomatic-automatic-ai-content-writer');?></b>
11786
+
</th>
11787
+
<td>
11788
+
<label class="aiomatic-switch"><input type="checkbox" id="not_important" name="aiomatic_Main_Settings[not_important]"<?php
11789
+
if ($not_important == 'on')
11790
+
echo ' checked ';
11791
+
?>><span class="aiomatic-slider round"></span></label>
11792
+
</td>
11793
+
</tr>
11794
+
<tr>
11795
+
<th>
11796
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11797
+
<div class="bws_hidden_help_text cr_min_260px">
11798
+
<?php
11799
+
echo esc_html__("If you have custom images created by your PHP files, you can use this option to enable their usage in the plugin. Otherwise, the security settings of the plugin will block their usage.", 'aiomatic-automatic-ai-content-writer');
11800
+
?>
11801
+
</div>
11802
+
</div>
11803
+
<b><?php echo esc_html__("Allow Uploading Of PHP Generated Images:", 'aiomatic-automatic-ai-content-writer');?></b>
11804
+
</th>
11805
+
<td>
11806
+
<label class="aiomatic-switch"><input type="checkbox" id="php_images" name="aiomatic_Main_Settings[php_images]"<?php
11807
+
if ($php_images == 'on')
11808
+
echo ' checked ';
11809
+
?>><span class="aiomatic-slider round"></span></label>
11810
+
</td>
11811
+
</tr>
11812
+
</table>
11813
+
</div>
11814
+
<div id="tab-8<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
11815
+
<h3><?php echo esc_html__('Royalty Free Image Options', 'aiomatic-automatic-ai-content-writer');?></h3>
11816
+
<p class="aiomatic-settings-desc"><?php
11817
+
echo esc_html__("The 'Royalty Free Images' tab offers access to settings of features of the plugin which offers access to a curated collection of copyright-free images, allowing you to enrich your WordPress site's content without licensing concerns.", 'aiomatic-automatic-ai-content-writer');
11818
+
?></p>
11819
+
<table class="widefat">
11820
+
<tr class="aiomatic-title-holder">
11821
+
<td colspan="2">
11822
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Royalty Free Image Search Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
11823
+
</td></tr>
11824
+
<tr>
11825
+
<th>
11826
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11827
+
<div class="bws_hidden_help_text cr_min_260px">
11828
+
<?php
11829
+
echo esc_html__("Select if you want to randomize the royalty free image sources order, at each run. If you check this checkbox, the above below will not be applied any more.", 'aiomatic-automatic-ai-content-writer');
11830
+
?>
11831
+
</div>
11832
+
</div>
11833
+
<b><?php esc_html_e('Do Not Randomize Royalty Free Source Order, But Use The Below Order: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
11834
+
</th>
11835
+
<td>
11836
+
<label class="aiomatic-switch"><input onchange="imgChanged();" type="checkbox" id="random_image_sources" name="aiomatic_Main_Settings[random_image_sources]"<?php
11837
+
if ($random_image_sources == 'on')
11838
+
echo ' checked ';
11839
+
?>><span class="aiomatic-slider round"></span></label>
11840
+
</td>
11841
+
</tr>
11842
+
<tr class="hideImgs">
11843
+
<th>
11844
+
<div>
11845
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11846
+
<div class="bws_hidden_help_text cr_min_260px">
11847
+
<?php
11848
+
echo esc_html__("Select your prefered order in which you want to search royalty free image sources.", 'aiomatic-automatic-ai-content-writer');
11849
+
?>
11850
+
</div>
11851
+
</div>
11852
+
<b><?php echo esc_html__("Royalty Free Image Search Order:", 'aiomatic-automatic-ai-content-writer');?></b>
11853
+
</div>
11854
+
</th>
11855
+
<td>
11856
+
<?php
11857
+
$cards_order = get_option('aiomatic_image_cards_order', array());
11858
+
?>
11859
+
<input type="hidden" id="sortable_cards" name="aiomatic_sortable_cards" value="<?php echo esc_attr(implode(',', $cards_order)); ?>">
11860
+
<ul id="aiomatic_roaylty_free_sortable">
11861
+
<?php
11862
+
if(empty($cards_order))
11863
+
{
11864
+
echo '<li class="aisortable-card">' . esc_html__('No Royalty Free Image Sources Enabled', 'aiomatic-automatic-ai-content-writer') . '</li>';
11865
+
}
11866
+
else
11867
+
{
11868
+
foreach ($cards_order as $card_id) {
11869
+
if(!empty($card_id))
11870
+
{
11871
+
echo '<li class="aisortable-card" id="' . esc_attr($card_id) . '">' . esc_html(ucfirst($card_id)) . '</li>';
11872
+
}
11873
+
}
11874
+
}
11875
+
?>
11876
+
</ul>
11877
+
</td>
11878
+
</tr>
11879
+
<tr>
11880
+
<th>
11881
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11882
+
<div class="bws_hidden_help_text cr_min_260px">
11883
+
<?php
11884
+
echo esc_html__("Select if you want to randomize the search results order, of the returned images. This can lower the accuracy of images, but make images more unique.", 'aiomatic-automatic-ai-content-writer');
11885
+
?>
11886
+
</div>
11887
+
</div>
11888
+
<b><?php esc_html_e('Do Not Randomize Royalty Free Image Results Order: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
11889
+
</th>
11890
+
<td>
11891
+
<label class="aiomatic-switch"><input type="checkbox" id="random_results_order" name="aiomatic_Main_Settings[random_results_order]"<?php
11892
+
if ($random_results_order == 'on')
11893
+
echo ' checked ';
11894
+
?>><span class="aiomatic-slider round"></span></label>
11895
+
</td>
11896
+
</tr>
11897
+
<tr>
11898
+
<th>
11899
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11900
+
<div class="bws_hidden_help_text cr_min_260px">
11901
+
<?php
11902
+
echo esc_html__("Select if you want to try to translate search query keywords to English. This can be useful for non-English languages.", 'aiomatic-automatic-ai-content-writer');
11903
+
?>
11904
+
</div>
11905
+
</div>
11906
+
<b><?php esc_html_e('Try To Translate Search Query Keywords To English: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
11907
+
</th>
11908
+
<td>
11909
+
<label class="aiomatic-switch"><input type="checkbox" id="image_query_translate_en" name="aiomatic_Main_Settings[image_query_translate_en]"<?php
11910
+
if ($image_query_translate_en == 'on')
11911
+
echo ' checked ';
11912
+
?>><span class="aiomatic-slider round"></span></label>
11913
+
</td>
11914
+
</tr>
11915
+
<tr>
11916
+
<th>
11917
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11918
+
<div class="bws_hidden_help_text cr_min_260px">
11919
+
<?php
11920
+
echo esc_html__("Select the maximum position of the images from the image search results. More relevant images are shown first in the royalty free image search results. Because of this, using here a number as low as 4 will make the plugin use only the first 4 image results which were returned by the royalty free image search. This can improve image precision. If you leave this field blank, the default value will be used: 4", 'aiomatic-automatic-ai-content-writer');
11921
+
?>
11922
+
</div>
11923
+
</div>
11924
+
<b><?php esc_html_e('Eligible Images Rank At Most At Position: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
11925
+
</th>
11926
+
<td>
11927
+
<input type="number" min="1" step="1" placeholder="4" class="cr_width_full" name="aiomatic_Main_Settings[image_pool]" value="<?php echo esc_html($image_pool);?>">
11928
+
</td>
11929
+
</tr>
11930
+
<tr>
11931
+
<th>
11932
+
<div>
11933
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11934
+
<div class="bws_hidden_help_text cr_min_260px">
11935
+
<?php
11936
+
echo esc_html__("Choose if you want to improve royalty free image importing, using the below services. These will extract keywords from the original text and provide better image quality results. If you select TextRazor, you also need to enter a TextRazor API key below. If you select OpenAI, you also need to enter a prompt for OpenAI keyword extraction, below. To enable TextRazor to be selected, please enter an API key for TextRazor below.", 'aiomatic-automatic-ai-content-writer');
11937
+
?>
11938
+
</div>
11939
+
</div>
11940
+
<b><?php echo esc_html__("Improve Royalty Free Featured Image Precision Using This Service:", 'aiomatic-automatic-ai-content-writer');?></b>
11941
+
</div>
11942
+
</th>
11943
+
<td>
11944
+
<div>
11945
+
<select id="improve_keywords" name="aiomatic_Main_Settings[improve_keywords]" class="cr_width_full" >
11946
+
<option value="disabled"<?php
11947
+
if ($improve_keywords == "disabled") {
11948
+
echo " selected";
11949
+
}
11950
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
11951
+
<option value="textrazor"<?php
11952
+
if ($improve_keywords == "textrazor") {
11953
+
echo " selected";
11954
+
}
11955
+
if(empty($textrazor_key))
11956
+
{
11957
+
echo " disabled title='You need to add your API key in API Keys tab to use this feature'";
11958
+
}
11959
+
?>><?php echo esc_html__("TextRazor", 'aiomatic-automatic-ai-content-writer');?></option>
11960
+
<option value="openai"<?php
11961
+
if ($improve_keywords == "openai") {
11962
+
echo " selected";
11963
+
}
11964
+
?>><?php echo esc_html__("OpenAI/AiomaticAPI", 'aiomatic-automatic-ai-content-writer');?></option>
11965
+
</select>
11966
+
</div>
11967
+
</td>
11968
+
</tr>
11969
+
<tr>
11970
+
<th>
11971
+
<div>
11972
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11973
+
<div class="bws_hidden_help_text cr_min_260px">
11974
+
<?php
11975
+
echo esc_html__( "Set a prompt for generating a keyword for importing royalty free images for the created posts. You can also instruct the AI writer to return a comma separated list of keywords. You can use the following shortcodes here: %%post_title%% (which can be replaced in some cases with the heading text for which the image is searched), %%original_post_title%% (which is always the post title), %%random_sentence%%, %%random_sentence2%%, %%blog_title%%. You can also add a link to a TXT file, containing keywords (one per line), or to an RSS feed. If you use RSS feeds, you can also use the following additional shortcodes: %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%author_name%%, %%current_date_time%%, %%post_link%%. The length of this command should not be greater than the max token count set in the settings for the seed command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You can also add here a link to a .txt file, where you can add multiple prompts (one per line) and the plugin will select a random one at each run. You can use something like: Do not act as a virtual assistant, ask only what you are asked. I need to find highly relevant royalty-free images for an article heading, please extract a comma-separated list of the most relevant keywords or key phrases from the heading, prioritizing specific references over general keywords. Add the highest priority to the most specific keyword that is still related to the main topic. Keep in mind also the main subject of the post title when you suggest the keywords. I need the most relevant images, based on the keywords you return. Remember, also include the general niche keyword in the key phrase, to allow images to be relevant to the current subject. For example, if the heading is about food and the article is about dogs, don't just return food, but instead, return 'dog food'. By doing so, you can help me find more appropriate and targeted images for the article heading. The blog post heading title is: \"%%post_title%%\". Post title is: \"%%original_post_title%%\"", 'aiomatic-automatic-ai-content-writer');
11976
+
?>
11977
+
</div>
11978
+
</div>
11979
+
<b><?php echo esc_html__("Prompt For OpenAI Keyword Generator For Royalty Free Image Importing:", 'aiomatic-automatic-ai-content-writer');?></b>
11980
+
</div>
11981
+
</th>
11982
+
<td>
11983
+
<div>
11984
+
<textarea rows="2" cols="70" class="cr_width_full" name="aiomatic_Main_Settings[keyword_prompts]" placeholder="<?php echo esc_html__("Do not act as a virtual assistant, ask only what you are asked. I need to find highly relevant royalty-free images for an article heading, please extract a comma-separated list of the most relevant keywords or key phrases from the heading, prioritizing specific references over general keywords. Add the highest priority to the most specific keyword that is still related to the main topic. Keep in mind also the main subject of the post title when you suggest the keywords. I need the most relevant images, based on the keywords you return. Remember, also include the general niche keyword in the key phrase, to allow images to be relevant to the current subject. For example, if the heading is about food and the article is about dogs, don't just return food, but instead, return 'dog food'. By doing so, you can help me find more appropriate and targeted images for the article heading. The blog post heading title is: \"%%post_title%%\". Post title is: \"%%original_post_title%%\"", 'aiomatic-automatic-ai-content-writer');?>"><?php
11985
+
echo esc_textarea($keyword_prompts);
11986
+
?></textarea>
11987
+
</div>
11988
+
</td>
11989
+
</tr>
11990
+
<tr>
11991
+
<th class="cr_min_width_200">
11992
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
11993
+
<div class="bws_hidden_help_text cr_min_260px">
11994
+
<?php
11995
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assisgned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
11996
+
?>
11997
+
</div>
11998
+
</div>
11999
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
12000
+
</th>
12001
+
<td><select id="keyword_assistant_id" name="aiomatic_Main_Settings[keyword_assistant_id]" class="cr_width_full">
12002
+
<?php
12003
+
if($all_assistants === false)
12004
+
{
12005
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
12006
+
}
12007
+
else
12008
+
{
12009
+
if(count($all_assistants) == 0)
12010
+
{
12011
+
echo '<option value="" selected disabled>' . esc_html__("No Assistans added, go to the plugin's 'AI Assistans' menu to add new assistants!", 'aiomatic-automatic-ai-content-writer') . '</option>';
12012
+
}
12013
+
else
12014
+
{
12015
+
echo '<option value=""';
12016
+
if($keyword_assistant_id == '')
12017
+
{
12018
+
echo ' selected';
12019
+
}
12020
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
12021
+
foreach($all_assistants as $myassistant)
12022
+
{
12023
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
12024
+
if($keyword_assistant_id == $myassistant->ID)
12025
+
{
12026
+
echo ' selected';
12027
+
}
12028
+
echo '>' . esc_html($myassistant->post_title);
12029
+
echo '</option>';
12030
+
}
12031
+
}
12032
+
}
12033
+
?>
12034
+
</select>
12035
+
</td>
12036
+
</tr>
12037
+
<tr>
12038
+
<th>
12039
+
<div>
12040
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12041
+
<div class="bws_hidden_help_text cr_min_260px">
12042
+
<?php
12043
+
echo esc_html__("Select the model you want to use for keyword extraction, for royalty free image importing.", 'aiomatic-automatic-ai-content-writer');
12044
+
?>
12045
+
</div>
12046
+
</div>
12047
+
<b><?php echo esc_html__("Model For Keyword Extraction For Royalty Free Images:", 'aiomatic-automatic-ai-content-writer');?></b>
12048
+
</div>
12049
+
</th>
12050
+
<td>
12051
+
<div>
12052
+
<select id="keyword_model" name="aiomatic_Main_Settings[keyword_model]" class="cr_width_full">
12053
+
<?php
12054
+
foreach($all_models as $modelx)
12055
+
{
12056
+
echo '<option value="' . esc_html($modelx) .'"';
12057
+
if ($keyword_model == $modelx)
12058
+
{
12059
+
echo " selected";
12060
+
}
12061
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
12062
+
}
12063
+
?>
12064
+
</select>
12065
+
</div>
12066
+
</td>
12067
+
</tr>
12068
+
<tr class="aiomatic-title-holder">
12069
+
<td colspan="2">
12070
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("More Royalty Free Image Search Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12071
+
</td></tr>
12072
+
<tr>
12073
+
<th>
12074
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12075
+
<div class="bws_hidden_help_text cr_min_260px">
12076
+
<?php
12077
+
echo esc_html__("Please set a the image attribution shortcode value. You can use this value, using the %%image_attribution%% shortcode, in 'Prepend Content With' and 'Append Content With' settings fields. You can use the following shortcodes, in this settings field: %%image_source_name%%, %%image_source_website%%, %%image_source_url%%. These will be updated automatically for the respective image source, from where the imported image is from. This will replace the %%royalty_free_image_attribution%% shortcode, in 'Generated Post Content' settings field.", 'aiomatic-automatic-ai-content-writer');
12078
+
?>
12079
+
</div>
12080
+
</div>
12081
+
<b><?php esc_html_e('Royalty Free Image Attribution Text (%%royalty_free_image_attribution%%): ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12082
+
</th>
12083
+
<td>
12084
+
<input type="text" name="aiomatic_Main_Settings[attr_text]" value="<?php echo esc_html(stripslashes($attr_text));?>" placeholder="<?php echo esc_html__("Please insert image attribution text pattern", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
12085
+
</td>
12086
+
</tr>
12087
+
<tr>
12088
+
<th>
12089
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12090
+
<div class="bws_hidden_help_text cr_min_260px">
12091
+
<?php
12092
+
echo esc_html__("Do you want to enable broad search for royalty free images?", 'aiomatic-automatic-ai-content-writer');
12093
+
?>
12094
+
</div>
12095
+
</div>
12096
+
<b><?php esc_html_e('Enable broad image search: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12097
+
</th>
12098
+
<td>
12099
+
<label class="aiomatic-switch"><input type="checkbox" id="bimage" name="aiomatic_Main_Settings[bimage]"<?php
12100
+
if ($bimage == 'on')
12101
+
echo ' checked ';
12102
+
?>><span class="aiomatic-slider round"></span></label>
12103
+
</td>
12104
+
</tr>
12105
+
<tr>
12106
+
<th>
12107
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12108
+
<div class="bws_hidden_help_text cr_min_260px">
12109
+
<?php
12110
+
echo esc_html__("Do you want to not skip importing the aritcle if no royalty free image found for the post?", 'aiomatic-automatic-ai-content-writer');
12111
+
?>
12112
+
</div>
12113
+
</div>
12114
+
<b><?php esc_html_e('Skip Importing of Article If No Free Image Found: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12115
+
</th>
12116
+
<td>
12117
+
<label class="aiomatic-switch"><input type="checkbox" id="no_royalty_skip" name="aiomatic_Main_Settings[no_royalty_skip]"<?php
12118
+
if ($no_royalty_skip == 'on')
12119
+
echo ' checked ';
12120
+
?>><span class="aiomatic-slider round"></span></label>
12121
+
</td>
12122
+
</tr><tr class="aiomatic-title-holder">
12123
+
<td colspan="2">
12124
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Pexels API Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12125
+
</td></tr>
12126
+
<tr>
12127
+
<th>
12128
+
<div>
12129
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12130
+
<div class="bws_hidden_help_text cr_min_260px">
12131
+
<?php
12132
+
echo sprintf( wp_kses( __( "Insert your Pexels App ID. Learn how to get an API key <a href='%s' target='_blank'>here</a>. If you enter an API Key and an API Secret, you will enable search for images using the Pexels API.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), "https://www.pexels.com/api/" );
12133
+
?>
12134
+
</div>
12135
+
</div>
12136
+
<b><a href="https://www.pexels.com/api/" target="_blank"><?php echo esc_html__("Pexels App ID:", 'aiomatic-automatic-ai-content-writer');?></a></b>
12137
+
</div>
12138
+
</th>
12139
+
<td>
12140
+
<div>
12141
+
<input type="password" autocomplete="off" name="aiomatic_Main_Settings[pexels_api]" value="<?php
12142
+
echo esc_html($pexels_api);
12143
+
?>" placeholder="<?php echo esc_html__("Please insert your Pexels API key", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
12144
+
</div>
12145
+
</td>
12146
+
</tr><tr class="aiomatic-title-holder">
12147
+
<td colspan="2">
12148
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Flickr API Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12149
+
</td></tr>
12150
+
<tr>
12151
+
<th>
12152
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12153
+
<div class="bws_hidden_help_text cr_min_260px">
12154
+
<?php
12155
+
echo sprintf( wp_kses( __( "Insert your Flickr App ID. Learn how to get an API key <a href='%s' target='_blank'>here</a>. If you enter an API Key and an API Secret, you will enable search for images using the Flickr API.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), "https://www.flickr.com/services/apps/create/apply" );
12156
+
?>
12157
+
</div>
12158
+
</div>
12159
+
<b><a href="https://www.flickr.com/services/apps/create/apply" target="_blank"><?php esc_html_e('Flickr App ID: ', 'aiomatic-automatic-ai-content-writer'); ?></a></b>
12160
+
</th>
12161
+
<td>
12162
+
<input type="password" autocomplete="off" name="aiomatic_Main_Settings[flickr_api]" placeholder="<?php echo esc_html__("Please insert your Flickr APP ID", 'aiomatic-automatic-ai-content-writer');?>" value="<?php if(isset($flickr_api)){echo esc_html($flickr_api);}?>" class="cr_width_full" />
12163
+
</td>
12164
+
</tr>
12165
+
<tr>
12166
+
<th>
12167
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12168
+
<div class="bws_hidden_help_text cr_min_260px">
12169
+
<?php
12170
+
echo esc_html__("The license id for photos to be searched.", 'aiomatic-automatic-ai-content-writer');
12171
+
?>
12172
+
</div>
12173
+
</div>
12174
+
<b><?php esc_html_e('Photo License: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12175
+
</th>
12176
+
<td>
12177
+
<select name="aiomatic_Main_Settings[flickr_license]" class="cr_width_full">
12178
+
<option value="-1"
12179
+
<?php
12180
+
if($flickr_license == '-1')
12181
+
{
12182
+
echo ' selected';
12183
+
}
12184
+
?>
12185
+
><?php echo esc_html__("Do Not Search By Photo Licenses", 'aiomatic-automatic-ai-content-writer');?></option>
12186
+
<option value="0"
12187
+
<?php
12188
+
if($flickr_license == '0')
12189
+
{
12190
+
echo ' selected';
12191
+
}
12192
+
?>><?php echo esc_html__("All Rights Reserved", 'aiomatic-automatic-ai-content-writer');?></option>
12193
+
<option value="1"
12194
+
<?php
12195
+
if($flickr_license == '1')
12196
+
{
12197
+
echo ' selected';
12198
+
}
12199
+
?>><?php echo esc_html__("Attribution-NonCommercial-ShareAlike License", 'aiomatic-automatic-ai-content-writer');?></option>
12200
+
<option value="2"
12201
+
<?php
12202
+
if($flickr_license == '2')
12203
+
{
12204
+
echo ' selected';
12205
+
}
12206
+
?>><?php echo esc_html__("Attribution-NonCommercial License", 'aiomatic-automatic-ai-content-writer');?></option>
12207
+
<option value="3"
12208
+
<?php
12209
+
if($flickr_license == '3')
12210
+
{
12211
+
echo ' selected';
12212
+
}
12213
+
?>><?php echo esc_html__("Attribution-NonCommercial-NoDerivs License", 'aiomatic-automatic-ai-content-writer');?></option>
12214
+
<option value="4"
12215
+
<?php
12216
+
if($flickr_license == '4')
12217
+
{
12218
+
echo ' selected';
12219
+
}
12220
+
?>><?php echo esc_html__("Attribution License", 'aiomatic-automatic-ai-content-writer');?></option>
12221
+
<option value="5"
12222
+
<?php
12223
+
if($flickr_license == '5')
12224
+
{
12225
+
echo ' selected';
12226
+
}
12227
+
?>><?php echo esc_html__("Attribution-ShareAlike License", 'aiomatic-automatic-ai-content-writer');?></option>
12228
+
<option value="6"
12229
+
<?php
12230
+
if($flickr_license == '6')
12231
+
{
12232
+
echo ' selected';
12233
+
}
12234
+
?>><?php echo esc_html__("Attribution-NoDerivs License", 'aiomatic-automatic-ai-content-writer');?></option>
12235
+
<option value="7"
12236
+
<?php
12237
+
if($flickr_license == '7')
12238
+
{
12239
+
echo ' selected';
12240
+
}
12241
+
?>><?php echo esc_html__("No known copyright restrictions", 'aiomatic-automatic-ai-content-writer');?></option>
12242
+
<option value="8"
12243
+
<?php
12244
+
if($flickr_license == '8')
12245
+
{
12246
+
echo ' selected';
12247
+
}
12248
+
?>><?php echo esc_html__("United States Government Work", 'aiomatic-automatic-ai-content-writer');?></option>
12249
+
</select>
12250
+
</td>
12251
+
</tr>
12252
+
<tr>
12253
+
<th>
12254
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12255
+
<div class="bws_hidden_help_text cr_min_260px">
12256
+
<?php
12257
+
echo esc_html__("The order in which to sort returned photos. Deafults to date-posted-desc (unless you are doing a radial geo query, in which case the default sorting is by ascending distance from the point specified).", 'aiomatic-automatic-ai-content-writer');
12258
+
?>
12259
+
</div>
12260
+
</div>
12261
+
<b><?php esc_html_e('Search Results Order: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12262
+
</th>
12263
+
<td>
12264
+
<select name="aiomatic_Main_Settings[flickr_order]" class="cr_width_full">
12265
+
<option value="date-posted-desc"
12266
+
<?php
12267
+
if($flickr_order == 'date-posted-desc')
12268
+
{
12269
+
echo ' selected';
12270
+
}
12271
+
?>><?php echo esc_html__("Date Posted Descendant", 'aiomatic-automatic-ai-content-writer');?></option>
12272
+
<option value="date-posted-asc"
12273
+
<?php
12274
+
if($flickr_order == 'date-posted-asc')
12275
+
{
12276
+
echo ' selected';
12277
+
}
12278
+
?>><?php echo esc_html__("Date Posted Ascendent", 'aiomatic-automatic-ai-content-writer');?></option>
12279
+
<option value="date-taken-asc"
12280
+
<?php
12281
+
if($flickr_order == 'date-taken-asc')
12282
+
{
12283
+
echo ' selected';
12284
+
}
12285
+
?>><?php echo esc_html__("Date Taken Ascendent", 'aiomatic-automatic-ai-content-writer');?></option>
12286
+
<option value="date-taken-desc"
12287
+
<?php
12288
+
if($flickr_order == 'date-taken-desc')
12289
+
{
12290
+
echo ' selected';
12291
+
}
12292
+
?>><?php echo esc_html__("Date Taken Descendant", 'aiomatic-automatic-ai-content-writer');?></option>
12293
+
<option value="interestingness-desc"
12294
+
<?php
12295
+
if($flickr_order == 'interestingness-desc')
12296
+
{
12297
+
echo ' selected';
12298
+
}
12299
+
?>><?php echo esc_html__("Interestingness Descendant", 'aiomatic-automatic-ai-content-writer');?></option>
12300
+
<option value="interestingness-asc"
12301
+
<?php
12302
+
if($flickr_order == 'interestingness-asc')
12303
+
{
12304
+
echo ' selected';
12305
+
}
12306
+
?>><?php echo esc_html__("Interestingness Ascendant", 'aiomatic-automatic-ai-content-writer');?></option>
12307
+
<option value="relevance"
12308
+
<?php
12309
+
if($flickr_order == 'relevance')
12310
+
{
12311
+
echo ' selected';
12312
+
}
12313
+
?>><?php echo esc_html__("Relevance", 'aiomatic-automatic-ai-content-writer');?></option>
12314
+
</select>
12315
+
</td>
12316
+
</tr><tr class="aiomatic-title-holder">
12317
+
<td colspan="2">
12318
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Pixabay API Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12319
+
</td></tr>
12320
+
<tr>
12321
+
<th>
12322
+
<div>
12323
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12324
+
<div class="bws_hidden_help_text cr_min_260px">
12325
+
<?php
12326
+
echo sprintf( wp_kses( __( "Insert your Pixabay App ID. Learn how to get one <a href='%s' target='_blank'>here</a>. If you enter an API Key here, you will enable search for images using the Pixabay API.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), "https://pixabay.com/api/docs/" );
12327
+
?>
12328
+
</div>
12329
+
</div>
12330
+
<b><a href="https://pixabay.com/api/docs/" target="_blank"><?php echo esc_html__("Pixabay App ID:", 'aiomatic-automatic-ai-content-writer');?></a></b>
12331
+
</div>
12332
+
</th>
12333
+
<td>
12334
+
<div>
12335
+
<input type="password" autocomplete="off" class="cr_width_full" name="aiomatic_Main_Settings[pixabay_api]" value="<?php
12336
+
echo esc_html($pixabay_api);
12337
+
?>" placeholder="<?php echo esc_html__("Please insert your Pixabay API key", 'aiomatic-automatic-ai-content-writer');?>">
12338
+
</div>
12339
+
</td>
12340
+
</tr>
12341
+
<tr>
12342
+
<th>
12343
+
<div>
12344
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12345
+
<div class="bws_hidden_help_text cr_min_260px">
12346
+
<?php
12347
+
echo esc_html__("Filter results by image type.", 'aiomatic-automatic-ai-content-writer');
12348
+
?>
12349
+
</div>
12350
+
</div>
12351
+
<b><?php echo esc_html__("Image Types To Search:", 'aiomatic-automatic-ai-content-writer');?></b>
12352
+
</div>
12353
+
</th>
12354
+
<td>
12355
+
<div>
12356
+
<select class="cr_width_full" name="aiomatic_Main_Settings[imgtype]" >
12357
+
<option value='all'<?php
12358
+
if ($imgtype == 'all')
12359
+
echo ' selected';
12360
+
?>><?php echo esc_html__("All", 'aiomatic-automatic-ai-content-writer');?></option>
12361
+
<option value='photo'<?php
12362
+
if ($imgtype == 'photo')
12363
+
echo ' selected';
12364
+
?>><?php echo esc_html__("Photo", 'aiomatic-automatic-ai-content-writer');?></option>
12365
+
<option value='illustration'<?php
12366
+
if ($imgtype == 'illustration')
12367
+
echo ' selected';
12368
+
?>><?php echo esc_html__("Illustration", 'aiomatic-automatic-ai-content-writer');?></option>
12369
+
<option value='vector'<?php
12370
+
if ($imgtype == 'vector')
12371
+
echo ' selected';
12372
+
?>><?php echo esc_html__("Vector", 'aiomatic-automatic-ai-content-writer');?></option>
12373
+
</select>
12374
+
</div>
12375
+
</td>
12376
+
</tr>
12377
+
<tr>
12378
+
<th>
12379
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12380
+
<div class="bws_hidden_help_text cr_min_260px">
12381
+
<?php
12382
+
echo esc_html__("Order results by a predefined rule.", 'aiomatic-automatic-ai-content-writer');
12383
+
?>
12384
+
</div>
12385
+
</div>
12386
+
<b><?php esc_html_e('Results Order: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12387
+
</th>
12388
+
<td>
12389
+
<select name="aiomatic_Main_Settings[img_order]" class="cr_width_full">
12390
+
<option value="popular"<?php
12391
+
if ($img_order == "popular") {
12392
+
echo " selected";
12393
+
}
12394
+
?>><?php echo esc_html__("Popular", 'aiomatic-automatic-ai-content-writer');?></option>
12395
+
<option value="latest"<?php
12396
+
if ($img_order == "latest") {
12397
+
echo " selected";
12398
+
}
12399
+
?>><?php echo esc_html__("Latest", 'aiomatic-automatic-ai-content-writer');?></option>
12400
+
</select>
12401
+
</td>
12402
+
</tr>
12403
+
<tr>
12404
+
<th>
12405
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12406
+
<div class="bws_hidden_help_text cr_min_260px">
12407
+
<?php
12408
+
echo esc_html__("Filter results by image category.", 'aiomatic-automatic-ai-content-writer');
12409
+
?>
12410
+
</div>
12411
+
</div>
12412
+
<b><?php esc_html_e('Image Category: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12413
+
</th>
12414
+
<td>
12415
+
<select name="aiomatic_Main_Settings[img_cat]" class="cr_width_full">
12416
+
<option value="all"<?php
12417
+
if ($img_cat == "all") {
12418
+
echo " selected";
12419
+
}
12420
+
?>><?php echo esc_html__("All", 'aiomatic-automatic-ai-content-writer');?></option>
12421
+
<option value="fashion"<?php
12422
+
if ($img_cat == "fashion") {
12423
+
echo " selected";
12424
+
}
12425
+
?>><?php echo esc_html__("Fashion", 'aiomatic-automatic-ai-content-writer');?></option>
12426
+
<option value="nature"<?php
12427
+
if ($img_cat == "nature") {
12428
+
echo " selected";
12429
+
}
12430
+
?>><?php echo esc_html__("Nature", 'aiomatic-automatic-ai-content-writer');?></option>
12431
+
<option value="backgrounds"<?php
12432
+
if ($img_cat == "backgrounds") {
12433
+
echo " selected";
12434
+
}
12435
+
?>><?php echo esc_html__("Backgrounds", 'aiomatic-automatic-ai-content-writer');?></option>
12436
+
<option value="science"<?php
12437
+
if ($img_cat == "science") {
12438
+
echo " selected";
12439
+
}
12440
+
?>><?php echo esc_html__("Science", 'aiomatic-automatic-ai-content-writer');?></option>
12441
+
<option value="education"<?php
12442
+
if ($img_cat == "education") {
12443
+
echo " selected";
12444
+
}
12445
+
?>><?php echo esc_html__("Education", 'aiomatic-automatic-ai-content-writer');?></option>
12446
+
<option value="people"<?php
12447
+
if ($img_cat == "people") {
12448
+
echo " selected";
12449
+
}
12450
+
?>><?php echo esc_html__("People", 'aiomatic-automatic-ai-content-writer');?></option>
12451
+
<option value="feelings"<?php
12452
+
if ($img_cat == "feelings") {
12453
+
echo " selected";
12454
+
}
12455
+
?>><?php echo esc_html__("Feelings", 'aiomatic-automatic-ai-content-writer');?></option>
12456
+
<option value="religion"<?php
12457
+
if ($img_cat == "religion") {
12458
+
echo " selected";
12459
+
}
12460
+
?>><?php echo esc_html__("Religion", 'aiomatic-automatic-ai-content-writer');?></option>
12461
+
<option value="health"<?php
12462
+
if ($img_cat == "health") {
12463
+
echo " selected";
12464
+
}
12465
+
?>><?php echo esc_html__("Health", 'aiomatic-automatic-ai-content-writer');?></option>
12466
+
<option value="places"<?php
12467
+
if ($img_cat == "places") {
12468
+
echo " selected";
12469
+
}
12470
+
?>><?php echo esc_html__("Places", 'aiomatic-automatic-ai-content-writer');?></option>
12471
+
<option value="animals"<?php
12472
+
if ($img_cat == "animals") {
12473
+
echo " selected";
12474
+
}
12475
+
?>><?php echo esc_html__("Animals", 'aiomatic-automatic-ai-content-writer');?></option>
12476
+
<option value="industry"<?php
12477
+
if ($img_cat == "industry") {
12478
+
echo " selected";
12479
+
}
12480
+
?>><?php echo esc_html__("Industry", 'aiomatic-automatic-ai-content-writer');?></option>
12481
+
<option value="food"<?php
12482
+
if ($img_cat == "food") {
12483
+
echo " selected";
12484
+
}
12485
+
?>><?php echo esc_html__("Food", 'aiomatic-automatic-ai-content-writer');?></option>
12486
+
<option value="computer"<?php
12487
+
if ($img_cat == "computer") {
12488
+
echo " selected";
12489
+
}
12490
+
?>><?php echo esc_html__("Computer", 'aiomatic-automatic-ai-content-writer');?></option>
12491
+
<option value="sports"<?php
12492
+
if ($img_cat == "sports") {
12493
+
echo " selected";
12494
+
}
12495
+
?>><?php echo esc_html__("Sports", 'aiomatic-automatic-ai-content-writer');?></option>
12496
+
<option value="transportation"<?php
12497
+
if ($img_cat == "transportation") {
12498
+
echo " selected";
12499
+
}
12500
+
?>><?php echo esc_html__("Transportation", 'aiomatic-automatic-ai-content-writer');?></option>
12501
+
<option value="travel"<?php
12502
+
if ($img_cat == "travel") {
12503
+
echo " selected";
12504
+
}
12505
+
?>><?php echo esc_html__("Travel", 'aiomatic-automatic-ai-content-writer');?></option>
12506
+
<option value="buildings"<?php
12507
+
if ($img_cat == "buildings") {
12508
+
echo " selected";
12509
+
}
12510
+
?>><?php echo esc_html__("Buildings", 'aiomatic-automatic-ai-content-writer');?></option>
12511
+
<option value="business"<?php
12512
+
if ($img_cat == "business") {
12513
+
echo " selected";
12514
+
}
12515
+
?>><?php echo esc_html__("Business", 'aiomatic-automatic-ai-content-writer');?></option>
12516
+
<option value="music"<?php
12517
+
if ($img_cat == "music") {
12518
+
echo " selected";
12519
+
}
12520
+
?>><?php echo esc_html__("Music", 'aiomatic-automatic-ai-content-writer');?></option>
12521
+
</select>
12522
+
</td>
12523
+
</tr>
12524
+
<tr>
12525
+
<th>
12526
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12527
+
<div class="bws_hidden_help_text cr_min_260px">
12528
+
<?php
12529
+
echo esc_html__("Minimum image width.", 'aiomatic-automatic-ai-content-writer');
12530
+
?>
12531
+
</div>
12532
+
</div>
12533
+
<b><?php esc_html_e('Image Min Width: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12534
+
</th>
12535
+
<td>
12536
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[img_width]" value="<?php echo esc_html($img_width);?>" placeholder="<?php echo esc_html__("Please insert image min width", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
12537
+
</td>
12538
+
</tr>
12539
+
<tr>
12540
+
<th>
12541
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12542
+
<div class="bws_hidden_help_text cr_min_260px">
12543
+
<?php
12544
+
echo esc_html__("Maximum image width.", 'aiomatic-automatic-ai-content-writer');
12545
+
?>
12546
+
</div>
12547
+
</div>
12548
+
<b><?php esc_html_e('Image Max Width: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12549
+
</th>
12550
+
<td>
12551
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[img_mwidth]" value="<?php echo esc_html($img_mwidth);?>" placeholder="<?php echo esc_html__("Please insert image max width", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
12552
+
</td>
12553
+
</tr>
12554
+
<tr>
12555
+
<th>
12556
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12557
+
<div class="bws_hidden_help_text cr_min_260px">
12558
+
<?php
12559
+
echo esc_html__("A flag indicating that only images suitable for all ages should be returned.", 'aiomatic-automatic-ai-content-writer');
12560
+
?>
12561
+
</div>
12562
+
</div>
12563
+
<b><?php esc_html_e('Safe Search: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12564
+
</th>
12565
+
<td>
12566
+
<label class="aiomatic-switch"><input type="checkbox" id="img_ss" name="aiomatic_Main_Settings[img_ss]"<?php
12567
+
if ($img_ss == 'on')
12568
+
echo ' checked ';
12569
+
?>><span class="aiomatic-slider round"></span></label>
12570
+
</td>
12571
+
</tr>
12572
+
<tr>
12573
+
<th>
12574
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12575
+
<div class="bws_hidden_help_text cr_min_260px">
12576
+
<?php
12577
+
echo esc_html__("Select images that have received an Editor's Choice award.", 'aiomatic-automatic-ai-content-writer');
12578
+
?>
12579
+
</div>
12580
+
</div>
12581
+
<b><?php esc_html_e('Editor\'s Choice: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12582
+
</th>
12583
+
<td>
12584
+
<label class="aiomatic-switch"><input type="checkbox" id="img_editor" name="aiomatic_Main_Settings[img_editor]"<?php
12585
+
if ($img_editor == 'on')
12586
+
echo ' checked ';
12587
+
?>><span class="aiomatic-slider round"></span></label>
12588
+
</td>
12589
+
</tr>
12590
+
<tr>
12591
+
<th>
12592
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12593
+
<div class="bws_hidden_help_text cr_min_260px">
12594
+
<?php
12595
+
echo esc_html__("Specify default language for regional content.", 'aiomatic-automatic-ai-content-writer');
12596
+
?>
12597
+
</div>
12598
+
</div>
12599
+
<b><?php esc_html_e('Filter Language: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12600
+
</th>
12601
+
<td>
12602
+
<select name="aiomatic_Main_Settings[img_language]" class="cr_width_full">
12603
+
<option value="any"<?php
12604
+
if ($img_language == "any") {
12605
+
echo " selected";
12606
+
}
12607
+
?>><?php echo esc_html__("Any", 'aiomatic-automatic-ai-content-writer');?></option>
12608
+
<option value="en"<?php
12609
+
if ($img_language == "en") {
12610
+
echo " selected";
12611
+
}
12612
+
?>><?php echo esc_html__("English", 'aiomatic-automatic-ai-content-writer');?></option>
12613
+
<option value="cs"<?php
12614
+
if ($img_language == "cs") {
12615
+
echo " selected";
12616
+
}
12617
+
?>><?php echo esc_html__("Czech", 'aiomatic-automatic-ai-content-writer');?></option>
12618
+
<option value="da"<?php
12619
+
if ($img_language == "da") {
12620
+
echo " selected";
12621
+
}
12622
+
?>><?php echo esc_html__("Danish", 'aiomatic-automatic-ai-content-writer');?></option>
12623
+
<option value="de"<?php
12624
+
if ($img_language == "de") {
12625
+
echo " selected";
12626
+
}
12627
+
?>><?php echo esc_html__("German", 'aiomatic-automatic-ai-content-writer');?></option>
12628
+
<option value="es"<?php
12629
+
if ($img_language == "es") {
12630
+
echo " selected";
12631
+
}
12632
+
?>><?php echo esc_html__("Spanish", 'aiomatic-automatic-ai-content-writer');?></option>
12633
+
<option value="fr"<?php
12634
+
if ($img_language == "fr") {
12635
+
echo " selected";
12636
+
}
12637
+
?>><?php echo esc_html__("French", 'aiomatic-automatic-ai-content-writer');?></option>
12638
+
<option value="id"<?php
12639
+
if ($img_language == "id") {
12640
+
echo " selected";
12641
+
}
12642
+
?>><?php echo esc_html__("Indonesian", 'aiomatic-automatic-ai-content-writer');?></option>
12643
+
<option value="it"<?php
12644
+
if ($img_language == "it") {
12645
+
echo " selected";
12646
+
}
12647
+
?>><?php echo esc_html__("Italian", 'aiomatic-automatic-ai-content-writer');?></option>
12648
+
<option value="hu"<?php
12649
+
if ($img_language == "hu") {
12650
+
echo " selected";
12651
+
}
12652
+
?>><?php echo esc_html__("Hungarian", 'aiomatic-automatic-ai-content-writer');?></option>
12653
+
<option value="nl"<?php
12654
+
if ($img_language == "nl") {
12655
+
echo " selected";
12656
+
}
12657
+
?>><?php echo esc_html__("Dutch", 'aiomatic-automatic-ai-content-writer');?></option>
12658
+
<option value="no"<?php
12659
+
if ($img_language == "no") {
12660
+
echo " selected";
12661
+
}
12662
+
?>><?php echo esc_html__("Norvegian", 'aiomatic-automatic-ai-content-writer');?></option>
12663
+
<option value="pl"<?php
12664
+
if ($img_language == "pl") {
12665
+
echo " selected";
12666
+
}
12667
+
?>><?php echo esc_html__("Polish", 'aiomatic-automatic-ai-content-writer');?></option>
12668
+
<option value="pt"<?php
12669
+
if ($img_language == "pt") {
12670
+
echo " selected";
12671
+
}
12672
+
?>><?php echo esc_html__("Portuguese", 'aiomatic-automatic-ai-content-writer');?></option>
12673
+
<option value="ro"<?php
12674
+
if ($img_language == "ro") {
12675
+
echo " selected";
12676
+
}
12677
+
?>><?php echo esc_html__("Romanian", 'aiomatic-automatic-ai-content-writer');?></option>
12678
+
<option value="sk"<?php
12679
+
if ($img_language == "sk") {
12680
+
echo " selected";
12681
+
}
12682
+
?>><?php echo esc_html__("Slovak", 'aiomatic-automatic-ai-content-writer');?></option>
12683
+
<option value="fi"<?php
12684
+
if ($img_language == "fi") {
12685
+
echo " selected";
12686
+
}
12687
+
?>><?php echo esc_html__("Finish", 'aiomatic-automatic-ai-content-writer');?></option>
12688
+
<option value="sv"<?php
12689
+
if ($img_language == "sv") {
12690
+
echo " selected";
12691
+
}
12692
+
?>><?php echo esc_html__("Swedish", 'aiomatic-automatic-ai-content-writer');?></option>
12693
+
<option value="tr"<?php
12694
+
if ($img_language == "tr") {
12695
+
echo " selected";
12696
+
}
12697
+
?>><?php echo esc_html__("Turkish", 'aiomatic-automatic-ai-content-writer');?></option>
12698
+
<option value="vi"<?php
12699
+
if ($img_language == "vi") {
12700
+
echo " selected";
12701
+
}
12702
+
?>><?php echo esc_html__("Vietnamese", 'aiomatic-automatic-ai-content-writer');?></option>
12703
+
<option value="th"<?php
12704
+
if ($img_language == "th") {
12705
+
echo " selected";
12706
+
}
12707
+
?>><?php echo esc_html__("Thai", 'aiomatic-automatic-ai-content-writer');?></option>
12708
+
<option value="bg"<?php
12709
+
if ($img_language == "bg") {
12710
+
echo " selected";
12711
+
}
12712
+
?>><?php echo esc_html__("Bulgarian", 'aiomatic-automatic-ai-content-writer');?></option>
12713
+
<option value="ru"<?php
12714
+
if ($img_language == "ru") {
12715
+
echo " selected";
12716
+
}
12717
+
?>><?php echo esc_html__("Russian", 'aiomatic-automatic-ai-content-writer');?></option>
12718
+
<option value="el"<?php
12719
+
if ($img_language == "el") {
12720
+
echo " selected";
12721
+
}
12722
+
?>><?php echo esc_html__("Greek", 'aiomatic-automatic-ai-content-writer');?></option>
12723
+
<option value="ja"<?php
12724
+
if ($img_language == "ja") {
12725
+
echo " selected";
12726
+
}
12727
+
?>><?php echo esc_html__("Japanese", 'aiomatic-automatic-ai-content-writer');?></option>
12728
+
<option value="ko"<?php
12729
+
if ($img_language == "ko") {
12730
+
echo " selected";
12731
+
}
12732
+
?>><?php echo esc_html__("Korean", 'aiomatic-automatic-ai-content-writer');?></option>
12733
+
<option value="zh"<?php
12734
+
if ($img_language == "zh") {
12735
+
echo " selected";
12736
+
}
12737
+
?>><?php echo esc_html__("Chinese", 'aiomatic-automatic-ai-content-writer');?></option>
12738
+
</select>
12739
+
</td>
12740
+
</tr><tr class="aiomatic-title-holder">
12741
+
<td colspan="2">
12742
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Google Images API Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12743
+
</td></tr>
12744
+
<tr>
12745
+
<th>
12746
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12747
+
<div class="bws_hidden_help_text cr_min_260px">
12748
+
<?php
12749
+
echo esc_html__("Select if you want to enable usage of the Google Images Search with the Creative Commons filter enabled, for getting images.", 'aiomatic-automatic-ai-content-writer');
12750
+
?>
12751
+
</div>
12752
+
</div>
12753
+
<b><?php esc_html_e('Enable Google Images Search Usage: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12754
+
</th>
12755
+
<td>
12756
+
<label class="aiomatic-switch"><input type="checkbox" id="google_images" name="aiomatic_Main_Settings[google_images]"<?php
12757
+
if ($google_images == 'on')
12758
+
echo ' checked ';
12759
+
?>><span class="aiomatic-slider round"></span></label>
12760
+
</td>
12761
+
</tr><tr class="aiomatic-title-holder">
12762
+
<td colspan="2">
12763
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Google SERP API Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12764
+
</td></tr>
12765
+
<tr>
12766
+
<th>
12767
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12768
+
<div class="bws_hidden_help_text cr_min_260px">
12769
+
<?php
12770
+
echo esc_html__("Select if you want to enable usage of the Google SERP API Image Search, for getting images. For this, you will need to configure the Google SERP API in the 'API Keys' tab.", 'aiomatic-automatic-ai-content-writer');
12771
+
?>
12772
+
</div>
12773
+
</div>
12774
+
<b><?php esc_html_e('Enable Google SERP API Usage: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12775
+
<?php
12776
+
if (!isset($aiomatic_Main_Settings['google_search_api']) || trim($aiomatic_Main_Settings['google_search_api']) == '' || !isset($aiomatic_Main_Settings['google_search_cx']) || trim($aiomatic_Main_Settings['google_search_cx']) == '')
12777
+
{
12778
+
echo '<p class="cr_red">' . esc_html__("You need to set up Google SERP API in the 'API Keys' tab to use this feature.", 'aiomatic-automatic-ai-content-writer') . '</p>';
12779
+
}
12780
+
?>
12781
+
</th>
12782
+
<td>
12783
+
<label class="aiomatic-switch"><input type="checkbox"<?php
12784
+
if (!isset($aiomatic_Main_Settings['google_search_api']) || trim($aiomatic_Main_Settings['google_search_api']) == '' || !isset($aiomatic_Main_Settings['google_search_cx']) || trim($aiomatic_Main_Settings['google_search_cx']) == '')
12785
+
{
12786
+
echo ' disabled title="' . esc_html__("You need to set up Google SERP API in the 'API Keys' tab to use this feature.", 'aiomatic-automatic-ai-content-writer') . '"';
12787
+
}
12788
+
?> id="google_images_api" name="aiomatic_Main_Settings[google_images_api]"<?php
12789
+
if ($google_images_api == 'on')
12790
+
echo ' checked ';
12791
+
?>><span class="aiomatic-slider round"></span></label>
12792
+
</td>
12793
+
</tr><tr class="aiomatic-title-holder">
12794
+
<td colspan="2">
12795
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Unsplash API Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12796
+
</td></tr>
12797
+
<tr>
12798
+
<th>
12799
+
<div>
12800
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12801
+
<div class="bws_hidden_help_text cr_min_260px">
12802
+
<?php
12803
+
echo sprintf( wp_kses( __( "Insert your Unsplash Access Key. Learn how to get one <a href='%s' target='_blank'>here</a>. If you enter an Unsplash Access Key here, you will enable search for images using the Unsplash API.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), "https://unsplash.com/documentation#creating-a-developer-account" );
12804
+
?>
12805
+
</div>
12806
+
</div>
12807
+
<b><a href="https://unsplash.com/oauth/applications" target="_blank"><?php echo esc_html__("Unsplash Access Key:", 'aiomatic-automatic-ai-content-writer');?></a></b>
12808
+
</div>
12809
+
</th>
12810
+
<td>
12811
+
<div>
12812
+
<input type="password" autocomplete="off" class="cr_width_full" name="aiomatic_Main_Settings[unsplash_key]" value="<?php
12813
+
echo esc_html($unsplash_key);
12814
+
?>" placeholder="<?php echo esc_html__("Please insert your Unsplash Access Key", 'aiomatic-automatic-ai-content-writer');?>">
12815
+
</div>
12816
+
</td>
12817
+
</tr>
12818
+
<tr class="aiomatic-title-holder">
12819
+
<td colspan="2">
12820
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Pixabay Direct Scraping Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
12821
+
</td></tr>
12822
+
<tr>
12823
+
<th>
12824
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12825
+
<div class="bws_hidden_help_text cr_min_260px">
12826
+
<?php
12827
+
echo esc_html__("Select if you want to enable direct scraping of Pixabay website. This will generate different results from the API.", 'aiomatic-automatic-ai-content-writer');
12828
+
?>
12829
+
</div>
12830
+
</div>
12831
+
<b><?php esc_html_e('Enable Pixabay Direct Website Scraping: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12832
+
</th>
12833
+
<td>
12834
+
<label class="aiomatic-switch"><input type="checkbox" id="pixabay_scrape" name="aiomatic_Main_Settings[pixabay_scrape]"<?php
12835
+
if ($pixabay_scrape == 'on')
12836
+
echo ' checked ';
12837
+
?>><span class="aiomatic-slider round"></span></label>
12838
+
</td>
12839
+
</tr>
12840
+
<tr>
12841
+
<th>
12842
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12843
+
<div class="bws_hidden_help_text cr_min_260px">
12844
+
<?php
12845
+
echo esc_html__("Filter results by image type.", 'aiomatic-automatic-ai-content-writer');
12846
+
?>
12847
+
</div>
12848
+
</div>
12849
+
<b><?php esc_html_e('Image Types To Search: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12850
+
</th>
12851
+
<td>
12852
+
<select name="aiomatic_Main_Settings[scrapeimgtype]" class="cr_width_full">
12853
+
<option value="all"<?php
12854
+
if ($scrapeimgtype == "all") {
12855
+
echo " selected";
12856
+
}
12857
+
?>><?php echo esc_html__("All", 'aiomatic-automatic-ai-content-writer');?></option>
12858
+
<option value="photo"<?php
12859
+
if ($scrapeimgtype == "photo") {
12860
+
echo " selected";
12861
+
}
12862
+
?>><?php echo esc_html__("Photo", 'aiomatic-automatic-ai-content-writer');?></option>
12863
+
<option value="illustration"<?php
12864
+
if ($scrapeimgtype == "illustration") {
12865
+
echo " selected";
12866
+
}
12867
+
?>><?php echo esc_html__("Illustration", 'aiomatic-automatic-ai-content-writer');?></option>
12868
+
<option value="vector"<?php
12869
+
if ($scrapeimgtype == "vector") {
12870
+
echo " selected";
12871
+
}
12872
+
?>><?php echo esc_html__("Vector", 'aiomatic-automatic-ai-content-writer');?></option>
12873
+
</select>
12874
+
</td>
12875
+
</tr>
12876
+
<tr>
12877
+
<th>
12878
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12879
+
<div class="bws_hidden_help_text cr_min_260px">
12880
+
<?php
12881
+
echo esc_html__("Filter results by image orientation.", 'aiomatic-automatic-ai-content-writer');
12882
+
?>
12883
+
</div>
12884
+
</div>
12885
+
<b><?php esc_html_e('Image Orientation: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12886
+
</th>
12887
+
<td>
12888
+
<select name="aiomatic_Main_Settings[scrapeimg_orientation]" class="cr_width_full">
12889
+
<option value="all"<?php
12890
+
if ($scrapeimg_orientation == "all") {
12891
+
echo " selected";
12892
+
}
12893
+
?>><?php echo esc_html__("All", 'aiomatic-automatic-ai-content-writer');?></option>
12894
+
<option value="horizontal"<?php
12895
+
if ($scrapeimg_orientation == "horizontal") {
12896
+
echo " selected";
12897
+
}
12898
+
?>><?php echo esc_html__("Horizontal", 'aiomatic-automatic-ai-content-writer');?></option>
12899
+
<option value="vertical"<?php
12900
+
if ($scrapeimg_orientation == "vertical") {
12901
+
echo " selected";
12902
+
}
12903
+
?>><?php echo esc_html__("Vertical", 'aiomatic-automatic-ai-content-writer');?></option>
12904
+
</select>
12905
+
</td>
12906
+
</tr>
12907
+
<tr>
12908
+
<th>
12909
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12910
+
<div class="bws_hidden_help_text cr_min_260px">
12911
+
<?php
12912
+
echo esc_html__("Order results by a predefined rule.", 'aiomatic-automatic-ai-content-writer');
12913
+
?>
12914
+
</div>
12915
+
</div>
12916
+
<b><?php esc_html_e('Results Order: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12917
+
</th>
12918
+
<td>
12919
+
<select name="aiomatic_Main_Settings[scrapeimg_order]" class="cr_width_full">
12920
+
<option value="any"<?php
12921
+
if ($scrapeimg_order == "any") {
12922
+
echo " selected";
12923
+
}
12924
+
?>><?php echo esc_html__("Any", 'aiomatic-automatic-ai-content-writer');?></option>
12925
+
<option value="popular"<?php
12926
+
if ($scrapeimg_order == "popular") {
12927
+
echo " selected";
12928
+
}
12929
+
?>><?php echo esc_html__("Popular", 'aiomatic-automatic-ai-content-writer');?></option>
12930
+
<option value="latest"<?php
12931
+
if ($scrapeimg_order == "latest") {
12932
+
echo " selected";
12933
+
}
12934
+
?>><?php echo esc_html__("Latest", 'aiomatic-automatic-ai-content-writer');?></option>
12935
+
</select>
12936
+
</td>
12937
+
</tr>
12938
+
<tr>
12939
+
<th>
12940
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
12941
+
<div class="bws_hidden_help_text cr_min_260px">
12942
+
<?php
12943
+
echo esc_html__("Filter results by image category.", 'aiomatic-automatic-ai-content-writer');
12944
+
?>
12945
+
</div>
12946
+
</div>
12947
+
<b><?php esc_html_e('Image Category: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
12948
+
</th>
12949
+
<td>
12950
+
<select name="aiomatic_Main_Settings[scrapeimg_cat]" class="cr_width_full">
12951
+
<option value="all"<?php
12952
+
if ($scrapeimg_cat == "all") {
12953
+
echo " selected";
12954
+
}
12955
+
?>><?php echo esc_html__("All", 'aiomatic-automatic-ai-content-writer');?></option>
12956
+
<option value="fashion"<?php
12957
+
if ($scrapeimg_cat == "fashion") {
12958
+
echo " selected";
12959
+
}
12960
+
?>><?php echo esc_html__("Fashion", 'aiomatic-automatic-ai-content-writer');?></option>
12961
+
<option value="nature"<?php
12962
+
if ($scrapeimg_cat == "nature") {
12963
+
echo " selected";
12964
+
}
12965
+
?>><?php echo esc_html__("Nature", 'aiomatic-automatic-ai-content-writer');?></option>
12966
+
<option value="backgrounds"<?php
12967
+
if ($scrapeimg_cat == "backgrounds") {
12968
+
echo " selected";
12969
+
}
12970
+
?>><?php echo esc_html__("Backgrounds", 'aiomatic-automatic-ai-content-writer');?></option>
12971
+
<option value="science"<?php
12972
+
if ($scrapeimg_cat == "science") {
12973
+
echo " selected";
12974
+
}
12975
+
?>><?php echo esc_html__("Science", 'aiomatic-automatic-ai-content-writer');?></option>
12976
+
<option value="education"<?php
12977
+
if ($scrapeimg_cat == "education") {
12978
+
echo " selected";
12979
+
}
12980
+
?>><?php echo esc_html__("Education", 'aiomatic-automatic-ai-content-writer');?></option>
12981
+
<option value="people"<?php
12982
+
if ($scrapeimg_cat == "people") {
12983
+
echo " selected";
12984
+
}
12985
+
?>><?php echo esc_html__("People", 'aiomatic-automatic-ai-content-writer');?></option>
12986
+
<option value="feelings"<?php
12987
+
if ($scrapeimg_cat == "feelings") {
12988
+
echo " selected";
12989
+
}
12990
+
?>><?php echo esc_html__("Feelings", 'aiomatic-automatic-ai-content-writer');?></option>
12991
+
<option value="religion"<?php
12992
+
if ($scrapeimg_cat == "religion") {
12993
+
echo " selected";
12994
+
}
12995
+
?>><?php echo esc_html__("Religion", 'aiomatic-automatic-ai-content-writer');?></option>
12996
+
<option value="health"<?php
12997
+
if ($scrapeimg_cat == "health") {
12998
+
echo " selected";
12999
+
}
13000
+
?>><?php echo esc_html__("Health", 'aiomatic-automatic-ai-content-writer');?></option>
13001
+
<option value="places"<?php
13002
+
if ($scrapeimg_cat == "places") {
13003
+
echo " selected";
13004
+
}
13005
+
?>><?php echo esc_html__("Places", 'aiomatic-automatic-ai-content-writer');?></option>
13006
+
<option value="animals"<?php
13007
+
if ($scrapeimg_cat == "animals") {
13008
+
echo " selected";
13009
+
}
13010
+
?>><?php echo esc_html__("Animals", 'aiomatic-automatic-ai-content-writer');?></option>
13011
+
<option value="industry"<?php
13012
+
if ($scrapeimg_cat == "industry") {
13013
+
echo " selected";
13014
+
}
13015
+
?>><?php echo esc_html__("Industry", 'aiomatic-automatic-ai-content-writer');?></option>
13016
+
<option value="food"<?php
13017
+
if ($scrapeimg_cat == "food") {
13018
+
echo " selected";
13019
+
}
13020
+
?>><?php echo esc_html__("Food", 'aiomatic-automatic-ai-content-writer');?></option>
13021
+
<option value="computer"<?php
13022
+
if ($scrapeimg_cat == "computer") {
13023
+
echo " selected";
13024
+
}
13025
+
?>><?php echo esc_html__("Computer", 'aiomatic-automatic-ai-content-writer');?></option>
13026
+
<option value="sports"<?php
13027
+
if ($scrapeimg_cat == "sports") {
13028
+
echo " selected";
13029
+
}
13030
+
?>><?php echo esc_html__("Sports", 'aiomatic-automatic-ai-content-writer');?></option>
13031
+
<option value="transportation"<?php
13032
+
if ($scrapeimg_cat == "transportation") {
13033
+
echo " selected";
13034
+
}
13035
+
?>><?php echo esc_html__("Transportation", 'aiomatic-automatic-ai-content-writer');?></option>
13036
+
<option value="travel"<?php
13037
+
if ($scrapeimg_cat == "travel") {
13038
+
echo " selected";
13039
+
}
13040
+
?>><?php echo esc_html__("Travel", 'aiomatic-automatic-ai-content-writer');?></option>
13041
+
<option value="buildings"<?php
13042
+
if ($scrapeimg_cat == "buildings") {
13043
+
echo " selected";
13044
+
}
13045
+
?>><?php echo esc_html__("Buildings", 'aiomatic-automatic-ai-content-writer');?></option>
13046
+
<option value="business"<?php
13047
+
if ($scrapeimg_cat == "business") {
13048
+
echo " selected";
13049
+
}
13050
+
?>><?php echo esc_html__("Business", 'aiomatic-automatic-ai-content-writer');?></option>
13051
+
<option value="music"<?php
13052
+
if ($scrapeimg_cat == "music") {
13053
+
echo " selected";
13054
+
}
13055
+
?>><?php echo esc_html__("Music", 'aiomatic-automatic-ai-content-writer');?></option>
13056
+
</select>
13057
+
</td>
13058
+
</tr>
13059
+
<tr>
13060
+
<th>
13061
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13062
+
<div class="bws_hidden_help_text cr_min_260px">
13063
+
<?php
13064
+
echo esc_html__("Minimum image width.", 'aiomatic-automatic-ai-content-writer');
13065
+
?>
13066
+
</div>
13067
+
</div>
13068
+
<b><?php esc_html_e('Image Min Width: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
13069
+
</th>
13070
+
<td>
13071
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[scrapeimg_width]" value="<?php echo esc_html($scrapeimg_width);?>" placeholder="<?php echo esc_html__("Please insert image min width", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
13072
+
</td>
13073
+
</tr>
13074
+
<tr>
13075
+
<th>
13076
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13077
+
<div class="bws_hidden_help_text cr_min_260px">
13078
+
<?php
13079
+
echo esc_html__("Maximum image height.", 'aiomatic-automatic-ai-content-writer');
13080
+
?>
13081
+
</div>
13082
+
</div>
13083
+
<b><?php esc_html_e('Image Min Height: ', 'aiomatic-automatic-ai-content-writer'); ?></b>
13084
+
</th>
13085
+
<td>
13086
+
<input type="number" min="1" step="1" name="aiomatic_Main_Settings[scrapeimg_height]" value="<?php echo esc_html($scrapeimg_height);?>" placeholder="<?php echo esc_html__("Please insert image min height", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
13087
+
</td>
13088
+
</tr></table>
13089
+
</div>
13090
+
<div id="tab-9<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
13091
+
<h3><?php echo esc_html__('Random Sentences', 'aiomatic-automatic-ai-content-writer');?></h3>
13092
+
<p class="aiomatic-settings-desc"><?php
13093
+
echo esc_html__("The 'Random Sentences' tab provides tools to generate and customize random sentences, offering creative content solutions and inspiration for your WordPress site.", 'aiomatic-automatic-ai-content-writer');
13094
+
?></p>
13095
+
<table class="widefat">
13096
+
<tr class="aiomatic-title-holder">
13097
+
<td>
13098
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Random Sentence Generator Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
13099
+
</td>
13100
+
</tr>
13101
+
<tr>
13102
+
<th>
13103
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13104
+
<div class="bws_hidden_help_text cr_min_260px">
13105
+
<?php
13106
+
echo esc_html__("Insert some sentences from which you want to get one at random. You can also use variables defined below. %something ==> is a variable. Each sentence must be separated by a new line.", 'aiomatic-automatic-ai-content-writer');
13107
+
?>
13108
+
</div>
13109
+
</div>
13110
+
<b><?php echo esc_html__("First List of Possible Sentences (%%random_sentence%%):", 'aiomatic-automatic-ai-content-writer');?></b>
13111
+
</th>
13112
+
<td>
13113
+
<textarea rows="8" class="cr_width_full" cols="70" name="aiomatic_Main_Settings[sentence_list]" placeholder="<?php echo esc_html__("Please insert the first list of sentences", 'aiomatic-automatic-ai-content-writer');?>"><?php
13114
+
echo esc_textarea($sentence_list);
13115
+
?></textarea>
13116
+
</td>
13117
+
</tr>
13118
+
<tr>
13119
+
<th>
13120
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13121
+
<div class="bws_hidden_help_text cr_min_260px">
13122
+
<?php
13123
+
echo esc_html__("Insert some sentences from which you want to get one at random. You can also use variables defined below. %something ==> is a variable. Each sentence must be separated by a new line.", 'aiomatic-automatic-ai-content-writer');
13124
+
?>
13125
+
</div>
13126
+
</div>
13127
+
<b><?php echo esc_html__("Second List of Possible Sentences (%%random_sentence2%%):", 'aiomatic-automatic-ai-content-writer');?></b>
13128
+
</th>
13129
+
<td>
13130
+
<textarea rows="8" cols="70" class="cr_width_full" name="aiomatic_Main_Settings[sentence_list2]" placeholder="<?php echo esc_html__("Please insert the second list of sentences", 'aiomatic-automatic-ai-content-writer');?>"><?php
13131
+
echo esc_textarea($sentence_list2);
13132
+
?></textarea>
13133
+
</td>
13134
+
</tr>
13135
+
<tr>
13136
+
<th>
13137
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13138
+
<div class="bws_hidden_help_text cr_min_260px">
13139
+
<?php
13140
+
echo esc_html__("Insert some variables you wish to be exchanged for different instances of one sentence. Please format this list as follows:<br/>
13141
+
Variablename => Variables (seperated by semicolon)<br/>Example:<br/>adjective => clever;interesting;smart;huge;astonishing;unbelievable;nice;adorable;beautiful;elegant;fancy;glamorous;magnificent;helpful;awesome<br/>", 'aiomatic-automatic-ai-content-writer');
13142
+
?>
13143
+
</div>
13144
+
</div>
13145
+
<b><?php echo esc_html__("List of Possible Variables:", 'aiomatic-automatic-ai-content-writer');?></b>
13146
+
</th>
13147
+
<td>
13148
+
<textarea rows="8" cols="70" class="cr_width_full" name="aiomatic_Main_Settings[variable_list]" placeholder="<?php echo esc_html__("Please insert the list of variables", 'aiomatic-automatic-ai-content-writer');?>"><?php
13149
+
echo esc_textarea($variable_list);
13150
+
?></textarea>
13151
+
</td>
13152
+
</tr></table>
13153
+
</div>
13154
+
<div id="tab-10<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
13155
+
<h3><?php echo esc_html__('Custom HTML', 'aiomatic-automatic-ai-content-writer');?></h3>
13156
+
<p class="aiomatic-settings-desc"><?php
13157
+
echo esc_html__("The 'Custom HTML' tab allows you to directly edit and manage HTML code, giving you the flexibility to create custom designs and functionalities for your WordPress site.", 'aiomatic-automatic-ai-content-writer');
13158
+
?></p>
13159
+
<table class="widefat">
13160
+
<tr class="aiomatic-title-holder">
13161
+
<td>
13162
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Custom HTML Code/ Ad Code Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
13163
+
</td>
13164
+
</tr>
13165
+
<tr>
13166
+
<th>
13167
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13168
+
<div class="bws_hidden_help_text cr_min_260px">
13169
+
<?php
13170
+
echo esc_html__("Insert a custom HTML code that will replace the %%custom_html%% variable. This can be anything, even an Ad code.", 'aiomatic-automatic-ai-content-writer');
13171
+
?>
13172
+
</div>
13173
+
</div>
13174
+
<b><?php echo esc_html__("Custom HTML Code #1:", 'aiomatic-automatic-ai-content-writer');?></b>
13175
+
</th>
13176
+
<td>
13177
+
<textarea rows="3" cols="70" class="cr_width_full" name="aiomatic_Main_Settings[custom_html]" placeholder="<?php echo esc_html__("Custom HTML #1", 'aiomatic-automatic-ai-content-writer');?>"><?php
13178
+
echo esc_textarea($custom_html);
13179
+
?></textarea>
13180
+
</td>
13181
+
</tr>
13182
+
<tr>
13183
+
<th>
13184
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13185
+
<div class="bws_hidden_help_text cr_min_260px">
13186
+
<?php
13187
+
echo esc_html__("Insert a custom HTML code that will replace the %%custom_html2%% variable. This can be anything, even an Ad code.", 'aiomatic-automatic-ai-content-writer');
13188
+
?>
13189
+
</div>
13190
+
</div>
13191
+
<b><?php echo esc_html__("Custom HTML Code #2:", 'aiomatic-automatic-ai-content-writer');?></b>
13192
+
</th>
13193
+
<td>
13194
+
<textarea rows="3" cols="70" class="cr_width_full" name="aiomatic_Main_Settings[custom_html2]" placeholder="<?php echo esc_html__("Custom HTML #2", 'aiomatic-automatic-ai-content-writer');?>"><?php
13195
+
echo esc_textarea($custom_html2);
13196
+
?></textarea>
13197
+
</td>
13198
+
</tr>
13199
+
</table>
13200
+
</div>
13201
+
<div id="tab-11<?php if($is_activated !== true && $is_activated !== 2 && $is_activated !== -2){echo 'x';}?>" class="tab-content">
13202
+
<h3><?php echo esc_html__('Keyword Replacer', 'aiomatic-automatic-ai-content-writer');?></h3>
13203
+
<p class="aiomatic-settings-desc"><?php
13204
+
echo esc_html__("The 'Keyword Replacer' tab offers tools to automatically identify and replace specified keywords throughout your WordPress site's content, enhancing SEO and content consistency.", 'aiomatic-automatic-ai-content-writer');
13205
+
?></p>
13206
+
<table class="widefat">
13207
+
<tr class="aiomatic-title-holder">
13208
+
<td>
13209
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Keyword Replacer Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
13210
+
</td>
13211
+
</tr>
13212
+
<tr>
13213
+
<th>
13214
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13215
+
<div class="bws_hidden_help_text cr_min_260px">
13216
+
<?php
13217
+
echo esc_html__("Select if you want the Keyword Replacer Tool to match also partial words, or only full words.", 'aiomatic-automatic-ai-content-writer');
13218
+
?>
13219
+
</div>
13220
+
</div>
13221
+
<b><?php echo esc_html__("Match Also Partial Words:", 'aiomatic-automatic-ai-content-writer');?></b>
13222
+
</th>
13223
+
<td>
13224
+
<label class="aiomatic-switch"><input type="checkbox" id="partial_kws" name="aiomatic_Main_Settings[partial_kws]"<?php
13225
+
if ($partial_kws == 'on')
13226
+
echo ' checked ';
13227
+
?>><span class="aiomatic-slider round"></span></label>
13228
+
</td>
13229
+
</tr>
13230
+
<tr>
13231
+
<th>
13232
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13233
+
<div class="bws_hidden_help_text cr_min_260px">
13234
+
<?php
13235
+
echo esc_html__("Select if you want the Keyword Replacer Tool to match in a case sensitive words mode (upper case differentiated from lower case words).", 'aiomatic-automatic-ai-content-writer');
13236
+
?>
13237
+
</div>
13238
+
</div>
13239
+
<b><?php echo esc_html__("Make Search Case Sensitive:", 'aiomatic-automatic-ai-content-writer');?></b>
13240
+
</th>
13241
+
<td>
13242
+
<label class="aiomatic-switch"><input type="checkbox" id="kws_case" name="aiomatic_Main_Settings[kws_case]"<?php
13243
+
if ($kws_case == 'on')
13244
+
echo ' checked ';
13245
+
?>><span class="aiomatic-slider round"></span></label>
13246
+
</td>
13247
+
</tr>
13248
+
<tr>
13249
+
<th>
13250
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13251
+
<div class="bws_hidden_help_text cr_min_260px">
13252
+
<?php
13253
+
echo esc_html__("Select if you want to open added links in a new tab.", 'aiomatic-automatic-ai-content-writer');
13254
+
?>
13255
+
</div>
13256
+
</div>
13257
+
<b><?php echo esc_html__("Don't Open Links In A New Tab:", 'aiomatic-automatic-ai-content-writer');?></b>
13258
+
</th>
13259
+
<td>
13260
+
<label class="aiomatic-switch"><input type="checkbox" id="no_new_tab_kw" name="aiomatic_Main_Settings[no_new_tab_kw]"<?php
13261
+
if ($no_new_tab_kw == 'on')
13262
+
echo ' checked ';
13263
+
?>><span class="aiomatic-slider round"></span></label>
13264
+
</td>
13265
+
</tr>
13266
+
<tr>
13267
+
<th>
13268
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13269
+
<div class="bws_hidden_help_text cr_min_260px">
13270
+
<?php
13271
+
echo esc_html__("Add a comma separated list of post IDs on which the Keyword Replacer will not function.", 'aiomatic-automatic-ai-content-writer');
13272
+
?>
13273
+
</div>
13274
+
</div>
13275
+
<b><?php echo esc_html__("Skip Processing Of These Post IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
13276
+
</th>
13277
+
<td>
13278
+
<textarea rows="2" cols="70" class="cr_width_full" name="aiomatic_Main_Settings[kw_skip_ids]" placeholder="<?php echo esc_html__("ex: 23,24,25", 'aiomatic-automatic-ai-content-writer');?>"><?php
13279
+
echo esc_textarea($kw_skip_ids);
13280
+
?></textarea>
13281
+
</td>
13282
+
</tr>
13283
+
</table>
13284
+
<table class="widefat">
13285
+
<tr class="aiomatic-title-holder">
13286
+
<td>
13287
+
<h2 class="aiomatic-inner-title"><?php echo esc_html__("Affiliate Keyword Replacer Rules:", 'aiomatic-automatic-ai-content-writer');?></h2>
13288
+
<hr/>
13289
+
<div class="table-responsive">
13290
+
<div id="grid-keywords-aiomatic">
13291
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
13292
+
<?php echo esc_html__("ID", 'aiomatic-automatic-ai-content-writer');?>
13293
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13294
+
<div class="bws_hidden_help_text cr_min_260px">
13295
+
<?php
13296
+
echo esc_html__("This is the ID of the rule.", 'aiomatic-automatic-ai-content-writer');
13297
+
?>
13298
+
</div>
13299
+
</div>
13300
+
</div>
13301
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
13302
+
<?php echo esc_html__("Del", 'aiomatic-automatic-ai-content-writer');?>
13303
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13304
+
<div class="bws_hidden_help_text cr_min_260px">
13305
+
<?php
13306
+
echo esc_html__("Do you want to delete this rule?", 'aiomatic-automatic-ai-content-writer');
13307
+
?>
13308
+
</div>
13309
+
</div>
13310
+
</div>
13311
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
13312
+
<?php echo esc_html__("Search Keyword", 'aiomatic-automatic-ai-content-writer');?>
13313
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13314
+
<div class="bws_hidden_help_text cr_min_260px">
13315
+
<?php
13316
+
echo esc_html__("This keyword will be replaced with a link you define.", 'aiomatic-automatic-ai-content-writer');
13317
+
?>
13318
+
</div>
13319
+
</div>
13320
+
</div>
13321
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
13322
+
<?php echo esc_html__("Replacement Keyword", 'aiomatic-automatic-ai-content-writer');?>
13323
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13324
+
<div class="bws_hidden_help_text cr_min_260px">
13325
+
<?php
13326
+
echo esc_html__("This keyword will replace the search keyword you define. Leave this field blank if you only want to add an URL to the specified keyword.", 'aiomatic-automatic-ai-content-writer');
13327
+
?>
13328
+
</div>
13329
+
</div>
13330
+
</div>
13331
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle">
13332
+
<?php echo esc_html__("Link to Add", 'aiomatic-automatic-ai-content-writer');?>
13333
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13334
+
<div class="bws_hidden_help_text cr_min_260px">
13335
+
<?php
13336
+
echo esc_html__("Define the link you want to appear the defined keyword. Leave this field blank if you only want to replace the specified keyword without linking from it.", 'aiomatic-automatic-ai-content-writer');
13337
+
?>
13338
+
</div>
13339
+
</div>
13340
+
</div>
13341
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle"><?php echo esc_html__("Target Content", 'aiomatic-automatic-ai-content-writer');?><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13342
+
<div class="bws_hidden_help_text cr_min_260px">
13343
+
<?php
13344
+
echo esc_html__("Select if you want to make this rule target post title, content or both.", 'aiomatic-automatic-ai-content-writer');
13345
+
?>
13346
+
</div>
13347
+
</div></div>
13348
+
<div class="grid-keywords-heading-aiomatic aiomatic-middle"><?php echo esc_html__("Maximum Replacement Count", 'aiomatic-automatic-ai-content-writer');?>
13349
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
13350
+
<div class="bws_hidden_help_text cr_min_260px">
13351
+
<?php
13352
+
echo esc_html__("Set the maximum number of instances which will be replaced in the matched content.", 'aiomatic-automatic-ai-content-writer');
13353
+
?>
13354
+
</div>
13355
+
</div></div>
13356
+
<?php
13357
+
echo aiomatic_expand_keyword_rules();
13358
+
?>
13359
+
13360
+
<div>
13361
+
<hr/>
13362
+
</div>
13363
+
<div>
13364
+
<hr/>
13365
+
</div>
13366
+
<div>
13367
+
<hr/>
13368
+
</div>
13369
+
<div>
13370
+
<hr/>
13371
+
</div>
13372
+
<div>
13373
+
<hr/>
13374
+
</div>
13375
+
<div>
13376
+
<hr/>
13377
+
</div>
13378
+
<div>
13379
+
<hr/>
13380
+
</div>
13381
+
13382
+
<div class="cr_center">-</div>
13383
+
<div class="cr_center"><span class="cr_gray20">X</span></div>
13384
+
<div class="cr_center"><input type="text" name="aiomatic_keyword_list[keyword][]" placeholder="<?php echo esc_html__("Please insert the keyword to be replaced", 'aiomatic-automatic-ai-content-writer');?>" value=""/></div>
13385
+
<div class="cr_center"><input type="text" name="aiomatic_keyword_list[replace][]" placeholder="<?php echo esc_html__("Please insert the keyword to replace the search keyword", 'aiomatic-automatic-ai-content-writer');?>" value="" /></div>
13386
+
<div class="cr_center"><input type="url" name="aiomatic_keyword_list[link][]" placeholder="<?php echo esc_html__("Please insert the link to be added to the keyword", 'aiomatic-automatic-ai-content-writer');?>" value="" />
13387
+
</div>
13388
+
<div class="cr_center"><select id="aiomatic_keyword_target" name="aiomatic_keyword_list[target][]">
13389
+
<option value="content" selected><?php echo esc_html__("Content", 'aiomatic-automatic-ai-content-writer');?></option>
13390
+
<option value="title"><?php echo esc_html__("Title", 'aiomatic-automatic-ai-content-writer');?></option>
13391
+
<option value="both"><?php echo esc_html__("Content and Title", 'aiomatic-automatic-ai-content-writer');?></option></select></div>
13392
+
<div class="cr_center"><input type="number" min="1" step="1" name="aiomatic_keyword_list[max][]" placeholder="<?php echo esc_html__("Max #", 'aiomatic-automatic-ai-content-writer');?>" value="" />
13393
+
</div>
13394
+
</div>
13395
+
</div>
13396
+
<hr/>
13397
+
<p class="crsubmit"><input type="submit" name="btnSubmitkw" id="btnSubmitkw2" class="button button-primary" onclick="unsaved = false;" value="<?php echo esc_html__("Save Keyword Replacer Rules", 'aiomatic-automatic-ai-content-writer');?>"/></p>
13398
+
</td></tr></table>
13399
+
</div>
13400
+
<hr/>
13401
+
<table><tr class="aiomatic-float-option">
13402
+
<th class="aiomatic-save-section dashboard">
13403
+
<p class="crsubmit"><input type="submit" name="btnSubmit" id="btnSubmit" class="button button-primary" onclick="unsaved = false;" value="<?php echo esc_html__("Save Settings", 'aiomatic-automatic-ai-content-writer');?>"/></p>
13404
+
</th>
13405
+
</tr></table>
13406
+
<input name="aiomatic_nonce" type="hidden" value="<?php echo esc_html(wp_create_nonce('openai-secret-nonce'));?>">
13407
+
</div>
13408
+
</form>
13409
+
</div>
13410
+
</div>
13411
+
</div>
13412
+
<?php
13413
+
}
13414
+
if (isset($_POST['aiomatic_keyword_list'])) {
13415
+
add_action('admin_init', 'aiomatic_save_keyword_rules');
13416
+
}
13417
+
function aiomatic_card_save_settings()
13418
+
{
13419
+
if (current_user_can('manage_options') && isset($_POST['btnSubmit']) && isset($_POST['aiomatic_nonce']) && wp_verify_nonce( $_POST['aiomatic_nonce'], 'openai-secret-nonce'))
13420
+
{
13421
+
$change_done = false;
13422
+
$old_order = get_option('aiomatic_image_cards_order', array());
13423
+
if (isset($_POST['aiomatic_Main_Settings']['pexels_api']) && $_POST['aiomatic_Main_Settings']['pexels_api'] != '')
13424
+
{
13425
+
if(!in_array('pexels', $old_order))
13426
+
{
13427
+
$old_order[] = 'pexels';
13428
+
$change_done = true;
13429
+
}
13430
+
}
13431
+
else
13432
+
{
13433
+
if(isset($_POST['aiomatic_Main_Settings']))
13434
+
{
13435
+
if (($xkey = array_search('pexels', $old_order)) !== false)
13436
+
{
13437
+
unset($old_order[$xkey]);
13438
+
$change_done = true;
13439
+
}
13440
+
}
13441
+
}
13442
+
if (isset($_POST['aiomatic_Main_Settings']['flickr_api']) && $_POST['aiomatic_Main_Settings']['flickr_api'] != '')
13443
+
{
13444
+
if(!in_array('flickr', $old_order))
13445
+
{
13446
+
$old_order[] = 'flickr';
13447
+
$change_done = true;
13448
+
}
13449
+
}
13450
+
else
13451
+
{
13452
+
if(isset($_POST['aiomatic_Main_Settings']))
13453
+
{
13454
+
if (($xkey = array_search('flickr', $old_order)) !== false)
13455
+
{
13456
+
unset($old_order[$xkey]);
13457
+
$change_done = true;
13458
+
}
13459
+
}
13460
+
}
13461
+
if (isset($_POST['aiomatic_Main_Settings']['pixabay_api']) && $_POST['aiomatic_Main_Settings']['pixabay_api'] != '')
13462
+
{
13463
+
if(!in_array('pixabay', $old_order))
13464
+
{
13465
+
$old_order[] = 'pixabay';
13466
+
$change_done = true;
13467
+
}
13468
+
}
13469
+
else
13470
+
{
13471
+
if(isset($_POST['aiomatic_Main_Settings']))
13472
+
{
13473
+
if (($xkey = array_search('pixabay', $old_order)) !== false)
13474
+
{
13475
+
unset($old_order[$xkey]);
13476
+
$change_done = true;
13477
+
}
13478
+
}
13479
+
}
13480
+
if (isset($_POST['aiomatic_Main_Settings']['google_images']) && $_POST['aiomatic_Main_Settings']['google_images'] == 'on')
13481
+
{
13482
+
if(!in_array('google', $old_order))
13483
+
{
13484
+
$old_order[] = 'google';
13485
+
$change_done = true;
13486
+
}
13487
+
}
13488
+
else
13489
+
{
13490
+
if(isset($_POST['aiomatic_Main_Settings']))
13491
+
{
13492
+
if (($xkey = array_search('google', $old_order)) !== false)
13493
+
{
13494
+
unset($old_order[$xkey]);
13495
+
$change_done = true;
13496
+
}
13497
+
}
13498
+
}
13499
+
if (isset($_POST['aiomatic_Main_Settings']['google_images_api']) && $_POST['aiomatic_Main_Settings']['google_images_api'] == 'on')
13500
+
{
13501
+
if(!in_array('googleapi', $old_order))
13502
+
{
13503
+
$old_order[] = 'googleapi';
13504
+
$change_done = true;
13505
+
}
13506
+
}
13507
+
else
13508
+
{
13509
+
if(isset($_POST['aiomatic_Main_Settings']))
13510
+
{
13511
+
if (($xkey = array_search('googleapi', $old_order)) !== false)
13512
+
{
13513
+
unset($old_order[$xkey]);
13514
+
$change_done = true;
13515
+
}
13516
+
}
13517
+
}
13518
+
if (isset($_POST['aiomatic_Main_Settings']['unsplash_key']) && $_POST['aiomatic_Main_Settings']['unsplash_key'] != '')
13519
+
{
13520
+
if(!in_array('unsplash', $old_order))
13521
+
{
13522
+
$old_order[] = 'unsplash';
13523
+
$change_done = true;
13524
+
}
13525
+
}
13526
+
else
13527
+
{
13528
+
if(isset($_POST['aiomatic_Main_Settings']))
13529
+
{
13530
+
if (($xkey = array_search('unsplash', $old_order)) !== false)
13531
+
{
13532
+
unset($old_order[$xkey]);
13533
+
$change_done = true;
13534
+
}
13535
+
}
13536
+
}
13537
+
if (isset($_POST['aiomatic_Main_Settings']['pixabay_scrape']) && $_POST['aiomatic_Main_Settings']['pixabay_scrape'] == 'on')
13538
+
{
13539
+
if(!in_array('pixabayscrape', $old_order))
13540
+
{
13541
+
$old_order[] = 'pixabayscrape';
13542
+
$change_done = true;
13543
+
}
13544
+
}
13545
+
else
13546
+
{
13547
+
if(isset($_POST['aiomatic_Main_Settings']))
13548
+
{
13549
+
if (($xkey = array_search('pixabayscrape', $old_order)) !== false)
13550
+
{
13551
+
unset($old_order[$xkey]);
13552
+
$change_done = true;
13553
+
}
13554
+
}
13555
+
}
13556
+
if($change_done == false)
13557
+
{
13558
+
if(isset($_POST['aiomatic_sortable_cards']))
13559
+
{
13560
+
$new_order = isset($_POST['aiomatic_sortable_cards']) ? $_POST['aiomatic_sortable_cards'] : '';
13561
+
$new_order = explode(',', $new_order);
13562
+
aiomatic_update_option('aiomatic_image_cards_order', $new_order);
13563
+
}
13564
+
}
13565
+
else
13566
+
{
13567
+
aiomatic_update_option('aiomatic_image_cards_order', $old_order);
13568
+
}
13569
+
}
13570
+
}
13571
+
add_action('admin_init', 'aiomatic_card_save_settings');
13572
+
function aiomatic_card_save_serp_settings()
13573
+
{
13574
+
if (current_user_can('manage_options') && isset($_POST['btnSubmit']) && isset($_POST['aiomatic_nonce']) && wp_verify_nonce( $_POST['aiomatic_nonce'], 'openai-secret-nonce'))
13575
+
{
13576
+
$change_done = false;
13577
+
$old_order = get_option('aiomatic_serp_cards_order', array());
13578
+
if (isset($_POST['aiomatic_Main_Settings']['google_search_api']) && $_POST['aiomatic_Main_Settings']['google_search_api'] != '' && isset($_POST['aiomatic_Main_Settings']['google_search_cx']) && $_POST['aiomatic_Main_Settings']['google_search_cx'] != '')
13579
+
{
13580
+
if(!in_array('googleapi', $old_order))
13581
+
{
13582
+
$old_order[] = 'googleapi';
13583
+
$change_done = true;
13584
+
}
13585
+
}
13586
+
else
13587
+
{
13588
+
if(isset($_POST['aiomatic_Main_Settings']))
13589
+
{
13590
+
if (($xkey = array_search('googleapi', $old_order)) !== false)
13591
+
{
13592
+
unset($old_order[$xkey]);
13593
+
$change_done = true;
13594
+
}
13595
+
}
13596
+
}
13597
+
if (isset($_POST['aiomatic_Main_Settings']['bing_auth_internet']) && $_POST['aiomatic_Main_Settings']['bing_auth_internet'] != '')
13598
+
{
13599
+
if(!in_array('bing', $old_order))
13600
+
{
13601
+
$old_order[] = 'bing';
13602
+
$change_done = true;
13603
+
}
13604
+
}
13605
+
else
13606
+
{
13607
+
if(isset($_POST['aiomatic_Main_Settings']))
13608
+
{
13609
+
if (($xkey = array_search('bing', $old_order)) !== false)
13610
+
{
13611
+
unset($old_order[$xkey]);
13612
+
$change_done = true;
13613
+
}
13614
+
}
13615
+
}
13616
+
if (isset($_POST['aiomatic_Main_Settings']['serpapi_auth']) && $_POST['aiomatic_Main_Settings']['serpapi_auth'] != '')
13617
+
{
13618
+
if(!in_array('serpapi', $old_order))
13619
+
{
13620
+
$old_order[] = 'serpapi';
13621
+
$change_done = true;
13622
+
}
13623
+
}
13624
+
else
13625
+
{
13626
+
if(isset($_POST['aiomatic_Main_Settings']))
13627
+
{
13628
+
if (($xkey = array_search('serpapi', $old_order)) !== false)
13629
+
{
13630
+
unset($old_order[$xkey]);
13631
+
$change_done = true;
13632
+
}
13633
+
}
13634
+
}
13635
+
if (isset($_POST['aiomatic_Main_Settings']['valueserp_auth']) && $_POST['aiomatic_Main_Settings']['valueserp_auth'] != '')
13636
+
{
13637
+
if(!in_array('valueserp', $old_order))
13638
+
{
13639
+
$old_order[] = 'valueserp';
13640
+
$change_done = true;
13641
+
}
13642
+
}
13643
+
else
13644
+
{
13645
+
if(isset($_POST['aiomatic_Main_Settings']))
13646
+
{
13647
+
if (($xkey = array_search('valueserp', $old_order)) !== false)
13648
+
{
13649
+
unset($old_order[$xkey]);
13650
+
$change_done = true;
13651
+
}
13652
+
}
13653
+
}
13654
+
if (isset($_POST['aiomatic_Main_Settings']['spaceserp_auth']) && $_POST['aiomatic_Main_Settings']['spaceserp_auth'] != '')
13655
+
{
13656
+
if(!in_array('spaceserp', $old_order))
13657
+
{
13658
+
$old_order[] = 'spaceserp';
13659
+
$change_done = true;
13660
+
}
13661
+
}
13662
+
else
13663
+
{
13664
+
if(isset($_POST['aiomatic_Main_Settings']))
13665
+
{
13666
+
if (($xkey = array_search('spaceserp', $old_order)) !== false)
13667
+
{
13668
+
unset($old_order[$xkey]);
13669
+
$change_done = true;
13670
+
}
13671
+
}
13672
+
}
13673
+
if (isset($_POST['aiomatic_Main_Settings']['serper_auth']) && $_POST['aiomatic_Main_Settings']['serper_auth'] != '')
13674
+
{
13675
+
if(!in_array('serperdev', $old_order))
13676
+
{
13677
+
$old_order[] = 'serperdev';
13678
+
$change_done = true;
13679
+
}
13680
+
}
13681
+
else
13682
+
{
13683
+
if(isset($_POST['aiomatic_Main_Settings']))
13684
+
{
13685
+
if (($xkey = array_search('serperdev', $old_order)) !== false)
13686
+
{
13687
+
unset($old_order[$xkey]);
13688
+
$change_done = true;
13689
+
}
13690
+
}
13691
+
}
13692
+
if (isset($_POST['aiomatic_Main_Settings']['tavily_auth']) && $_POST['aiomatic_Main_Settings']['tavily_auth'] != '')
13693
+
{
13694
+
if(!in_array('tavily', $old_order))
13695
+
{
13696
+
$old_order[] = 'tavily';
13697
+
$change_done = true;
13698
+
}
13699
+
}
13700
+
else
13701
+
{
13702
+
if(isset($_POST['aiomatic_Main_Settings']))
13703
+
{
13704
+
if (($xkey = array_search('tavily', $old_order)) !== false)
13705
+
{
13706
+
unset($old_order[$xkey]);
13707
+
$change_done = true;
13708
+
}
13709
+
}
13710
+
}
13711
+
if (isset($_POST['aiomatic_Main_Settings']['duck_enable']) && $_POST['aiomatic_Main_Settings']['duck_enable'] == 'on')
13712
+
{
13713
+
if(!in_array('duckduckgoscrape', $old_order))
13714
+
{
13715
+
$old_order[] = 'duckduckgoscrape';
13716
+
$change_done = true;
13717
+
}
13718
+
}
13719
+
else
13720
+
{
13721
+
if(isset($_POST['aiomatic_Main_Settings']))
13722
+
{
13723
+
if (($xkey = array_search('duckduckgoscrape', $old_order)) !== false)
13724
+
{
13725
+
unset($old_order[$xkey]);
13726
+
$change_done = true;
13727
+
}
13728
+
}
13729
+
}
13730
+
if (isset($_POST['aiomatic_Main_Settings']['bing_scrape']) && $_POST['aiomatic_Main_Settings']['bing_scrape'] == 'on')
13731
+
{
13732
+
if(!in_array('bingscrape', $old_order))
13733
+
{
13734
+
$old_order[] = 'bingscrape';
13735
+
$change_done = true;
13736
+
}
13737
+
}
13738
+
else
13739
+
{
13740
+
if(isset($_POST['aiomatic_Main_Settings']))
13741
+
{
13742
+
if (($xkey = array_search('bingscrape', $old_order)) !== false)
13743
+
{
13744
+
unset($old_order[$xkey]);
13745
+
$change_done = true;
13746
+
}
13747
+
}
13748
+
}
13749
+
if($change_done == false)
13750
+
{
13751
+
if(isset($_POST['aiomatic_sortable_cards_serp']))
13752
+
{
13753
+
$new_order = isset($_POST['aiomatic_sortable_cards_serp']) ? $_POST['aiomatic_sortable_cards_serp'] : '';
13754
+
$new_order = explode(',', $new_order);
13755
+
aiomatic_update_option('aiomatic_serp_cards_order', $new_order);
13756
+
}
13757
+
}
13758
+
else
13759
+
{
13760
+
aiomatic_update_option('aiomatic_serp_cards_order', $old_order);
13761
+
}
13762
+
}
13763
+
}
13764
+
add_action('admin_init', 'aiomatic_card_save_serp_settings');
13765
+
13766
+
function aiomatic_save_keyword_rules($data2)
13767
+
{
13768
+
if (isset($_POST['aiomatic_keyword_list']) && isset($_POST['aiomatic_nonce']) && wp_verify_nonce( $_POST['aiomatic_nonce'], 'openai-secret-nonce'))
13769
+
{
13770
+
$data2 = $_POST['aiomatic_keyword_list'];
13771
+
$rules = array();
13772
+
if (isset($data2['keyword'][0])) {
13773
+
for ($i = 0; $i < sizeof($data2['keyword']); ++$i) {
13774
+
if (isset($data2['keyword'][$i]) && $data2['keyword'][$i] != '') {
13775
+
$index = trim(sanitize_text_field($data2['keyword'][$i]));
13776
+
$rules[$index] = array(
13777
+
trim(sanitize_text_field($data2['link'][$i])),
13778
+
trim(sanitize_text_field($data2['replace'][$i])),
13779
+
trim(sanitize_text_field($data2['target'][$i])),
13780
+
trim(sanitize_text_field($data2['max'][$i]))
13781
+
);
13782
+
}
13783
+
}
13784
+
}
13785
+
aiomatic_update_option('aiomatic_keyword_list', $rules);
13786
+
}
13787
+
}
13788
+
if (isset($_POST['aiomatic_assistant_list'])) {
13789
+
add_action('admin_init', 'aiomatic_save_assistant_rules');
13790
+
}
13791
+
function aiomatic_save_assistant_rules($data2)
13792
+
{
13793
+
if (isset($_POST['aiomatic_assistant_list']) && isset($_POST['aiomatic_nonce']) && wp_verify_nonce( $_POST['aiomatic_nonce'], 'openai-secret-nonce'))
13794
+
{
13795
+
$data2 = $_POST['aiomatic_assistant_list'];
13796
+
$rules = array();
13797
+
if (isset($data2['menu_name'][0])) {
13798
+
for ($i = 0; $i < sizeof($data2['menu_name']); ++$i) {
13799
+
if (isset($data2['menu_name'][$i]) && $data2['menu_name'][$i] != '' && isset($data2['prompt'][$i]) && $data2['prompt'][$i] != '')
13800
+
{
13801
+
$index = trim(sanitize_text_field($data2['menu_name'][$i]));
13802
+
$rules[$index] = array(
13803
+
trim($data2['prompt'][$i]),
13804
+
trim(sanitize_text_field($data2['type'][$i])),
13805
+
);
13806
+
}
13807
+
}
13808
+
}
13809
+
aiomatic_update_option('aiomatic_assistant_list', $rules);
13810
+
}
13811
+
}
13812
+
if (isset($_POST['aiomatic_huggingface_models'])) {
13813
+
add_action('admin_init', 'aiomatic_save_huggingface_models');
13814
+
}
13815
+
function aiomatic_save_huggingface_models($data2)
13816
+
{
13817
+
if (isset($_POST['aiomatic_huggingface_models']) && isset($_POST['aiomatic_nonce']) && wp_verify_nonce( $_POST['aiomatic_nonce'], 'openai-secret-nonce'))
13818
+
{
13819
+
$data2 = $_POST['aiomatic_huggingface_models'];
13820
+
$rules = array();
13821
+
if (isset($data2['model'][0])) {
13822
+
for ($i = 0; $i < sizeof($data2['model']); ++$i) {
13823
+
if (isset($data2['model'][$i]) && $data2['model'][$i] != '')
13824
+
{
13825
+
$model = str_replace(' ', '', sanitize_text_field($data2['model'][$i]));
13826
+
$endpoint_url = $data2['endpoint_url'][$i];
13827
+
$rules[$model] = array($model, $endpoint_url);
13828
+
}
13829
+
}
13830
+
}
13831
+
aiomatic_update_option('aiomatic_huggingface_models', $rules);
13832
+
}
13833
+
}
13834
+
function aiomatic_expand_keyword_rules()
13835
+
{
13836
+
$rules = get_option('aiomatic_keyword_list');
13837
+
if(!is_array($rules))
13838
+
{
13839
+
$rules = array();
13840
+
}
13841
+
$output = '';
13842
+
$cont = 0;
13843
+
if (!empty($rules)) {
13844
+
foreach ($rules as $request => $value)
13845
+
{
13846
+
$uniq = uniqid();
13847
+
$output .= '<div class="cr_center aiuniq-' . esc_html($uniq) . '">' . esc_html($cont) . '</div>
13848
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><span data-id="' . esc_html($uniq) . '" class="wpaiomatic-delete">X</span></div>
13849
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><input type="text" placeholder="' . esc_html__('Input the keyword to be replaced. This field is required', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_keyword_list[keyword][]" value="' . esc_html(stripslashes($request)) . '" required></div>
13850
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><input type="text" placeholder="' . esc_html__('Input the replacement word', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_keyword_list[replace][]" value="' . esc_html(stripslashes($value[1])) . '" ></div>
13851
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><input type="url" placeholder="' . esc_html__('Input the URL to be added', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_keyword_list[link][]" value="' . esc_html(stripslashes($value[0])) . '"></div>';
13852
+
if(isset($value[2]))
13853
+
{
13854
+
$target = $value[2];
13855
+
}
13856
+
else
13857
+
{
13858
+
$target = 'content';
13859
+
}
13860
+
$output .= '<div class="cr_center aiuniq-' . esc_html($uniq) . '"><select id="aiomatic_keyword_target' . wp_rand() . '" name="aiomatic_keyword_list[target][]">
13861
+
<option value="content"';
13862
+
if ($target == "content") {
13863
+
$output .= " selected";
13864
+
}
13865
+
$output .= '>' . esc_html__('Content', 'aiomatic-automatic-ai-content-writer') . '</option>
13866
+
<option value="title"';
13867
+
if ($target == "title") {
13868
+
$output .= " selected";
13869
+
}
13870
+
$output .= '>' . esc_html__('Title', 'aiomatic-automatic-ai-content-writer') . '</option>
13871
+
<option value="both"';
13872
+
if ($target == "both") {
13873
+
$output .= " selected";
13874
+
}
13875
+
$output .= '>' . esc_html__('Content and Title', 'aiomatic-automatic-ai-content-writer') . '</option>
13876
+
</select></div>
13877
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><input type="number" min="1" step="1" placeholder="' . esc_html__('Max #', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_keyword_list[max][]" value="' . esc_html($value[3]) . '" class="cr_width_100"></div>';
13878
+
$cont++;
13879
+
}
13880
+
}
13881
+
return $output;
13882
+
}
13883
+
13884
+
function aiomatic_expand_huggingface_models()
13885
+
{
13886
+
$rules = get_option('aiomatic_huggingface_models', array());
13887
+
if(!is_array($rules))
13888
+
{
13889
+
$rules = array();
13890
+
}
13891
+
$output = '';
13892
+
$cont = 0;
13893
+
if (!empty($rules)) {
13894
+
foreach ($rules as $request => $value)
13895
+
{
13896
+
$uniq = uniqid();
13897
+
$output .= '<div class="cr_center aiuniq-' . esc_html($uniq) . '">' . esc_html($cont) . '</div>
13898
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><span data-id="' . esc_html($uniq) . '" class="wpaiomatic-delete">X</span></div>
13899
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><input type="text" placeholder="' . esc_html__('Input the model name. This field is required', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_huggingface_models[model][]" value="' . esc_html(stripslashes($request)) . '" required></div>';
13900
+
if(is_array($value) && isset($value[1]))
13901
+
{
13902
+
$endpoint_url = $value[1];
13903
+
}
13904
+
else
13905
+
{
13906
+
$endpoint_url = '';
13907
+
}
13908
+
$output .= '<div class="cr_center aiuniq-' . esc_html($uniq) . '"><input type="url" placeholder="' . esc_html__('Inference Endpoint URL (Optional)', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_huggingface_models[endpoint_url][]" value="' . esc_attr($endpoint_url) . '"></div>';
13909
+
$cont++;
13910
+
}
13911
+
}
13912
+
return $output;
13913
+
}
13914
+
13915
+
function aiomatic_expand_assistant_rules()
13916
+
{
13917
+
$rules = aiomatic_get_assistant();
13918
+
if(!is_array($rules))
13919
+
{
13920
+
$rules = array();
13921
+
}
13922
+
$output = '';
13923
+
$cont = 0;
13924
+
if (!empty($rules)) {
13925
+
foreach ($rules as $menu_name => $value)
13926
+
{
13927
+
$uniq = uniqid();
13928
+
$output .= '<div class="cr_center aiuniq-' . esc_html($uniq) . '"><input type="text" placeholder="' . esc_html__('Add a menu name', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_assistant_list[menu_name][]" value="' . esc_attr(stripslashes($menu_name)) . '" required></div>
13929
+
<div class="cr_center aiuniq-' . esc_html($uniq) . '"><textarea rows="1" placeholder="' . esc_html__('Add a prompt', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_assistant_list[prompt][]">' . esc_textarea(stripslashes($value[0])) . '</textarea></div>';
13930
+
$output .= '<div class="cr_center aiuniq-' . esc_html($uniq) . '"><select id="aiomatic_keyword_target' . wp_rand() . '" name="aiomatic_assistant_list[type][]">
13931
+
<option value="text"';
13932
+
if (esc_html($value[1]) == "text") {
13933
+
$output .= " selected";
13934
+
}
13935
+
$output .= '>' . esc_html__('Text', 'aiomatic-automatic-ai-content-writer') . '</option>
13936
+
<option value="image"';
13937
+
if (esc_html($value[1]) == "image") {
13938
+
$output .= " selected";
13939
+
}
13940
+
$output .= '>' . esc_html__('Image', 'aiomatic-automatic-ai-content-writer') . '</option>
13941
+
</select></div>';
13942
+
$output .= '<div class="cr_center aiuniq-' . esc_html($uniq) . '"><span data-id="' . esc_html($uniq) . '" class="wpaiomatic-delete">X</span></div>';
13943
+
$cont++;
13944
+
}
13945
+
}
13946
+
return $output;
13947
+
}
13948
+
?>