Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/aimogen-pro/res/aiomatic-spinner-list.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
function aiomatic_spinner_panel()
3
+
{
4
+
$aiomatic_Main_Settings = get_option('aiomatic_Main_Settings', false);
5
+
if (!isset($aiomatic_Main_Settings['app_id']) || trim($aiomatic_Main_Settings['app_id']) == '')
6
+
{
7
+
?>
8
+
<h1><?php echo esc_html__("You must add an OpenAI/AiomaticAPI API Key into the plugin's 'Settings' menu before you can use this feature!", 'aiomatic-automatic-ai-content-writer');?></h1>
9
+
<?php
10
+
return;
11
+
}
12
+
$all_models = aiomatic_get_all_models(true);
13
+
$all_assistants = aiomatic_get_all_assistants(true);
14
+
$all_edit_models = array_merge($all_models, AIMOGEN_EDIT_MODELS);
15
+
$all_speech_models = AIMOGEN_OPENAI_SPEECH_MODELS;
16
+
?>
17
+
<div class="wp-header-end"></div>
18
+
<?php
19
+
$temp_list = array();
20
+
$paged = 1;
21
+
$posts_per_page = 100;
22
+
23
+
do {
24
+
$args = array(
25
+
'post_type' => 'aiomatic_editor_temp',
26
+
'posts_per_page' => $posts_per_page,
27
+
'paged' => $paged,
28
+
);
29
+
30
+
$the_query = new WP_Query($args);
31
+
32
+
if ($the_query->have_posts()) {
33
+
while ($the_query->have_posts()) {
34
+
$the_query->the_post();
35
+
$temp_list[get_the_ID()] = get_the_title();
36
+
}
37
+
}
38
+
39
+
$paged++;
40
+
wp_reset_postdata();
41
+
} while ($the_query->have_posts());
42
+
$max_execution = ini_get('max_execution_time');
43
+
if($max_execution != 0 && $max_execution < 1000)
44
+
{
45
+
?>
46
+
<div class="notice notice-error">
47
+
<p class="cr_red">
48
+
<?php echo sprintf( wp_kses( __( "Warning! Your PHP INI max_execution_time is less than 1000 seconds (%s). This means that the plugin's execution will be forcefully stopped by your server after this amount of seconds. Please increase it to ensure that the plugin functions properly. Please check details on server settings, <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_html($max_execution), esc_url_raw( get_admin_url() . 'admin.php?page=aiomatic_logs#tab-2' ) );?>
49
+
</p>
50
+
</div>
51
+
<?php
52
+
}
53
+
?>
54
+
<div class="wrap gs_popuptype_holder seo_pops">
55
+
<h2 class="cr_center"><?php echo esc_html__("AI Content Editor", 'aiomatic-automatic-ai-content-writer');?></h2>
56
+
<nav class="nav-tab-wrapper">
57
+
<a href="#tab-0" class="nav-tab"><?php echo esc_html__("Tutorial", 'aiomatic-automatic-ai-content-writer');?></a>
58
+
<a href="#tab-1" class="nav-tab"><?php echo esc_html__("Editing Template Manager", 'aiomatic-automatic-ai-content-writer');?></a>
59
+
<a href="#tab-3" class="nav-tab"><?php echo esc_html__("Automatic Content Editing", 'aiomatic-automatic-ai-content-writer');?></a>
60
+
<a href="#tab-4" class="nav-tab"><?php echo esc_html__("Existing Content Editing", 'aiomatic-automatic-ai-content-writer');?></a>
61
+
<a href="#tab-2" class="nav-tab"><?php echo esc_html__("More AI Tools", 'aiomatic-automatic-ai-content-writer');?></a>
62
+
</nav>
63
+
<form id="myForm" method="post" action="<?php if(is_multisite() && is_network_admin()){echo '../options.php';}else{echo 'options.php';}?>">
64
+
<div class="cr_autocomplete">
65
+
<input type="password" id="PreventChromeAutocomplete"
66
+
name="PreventChromeAutocomplete" autocomplete="address-level4" />
67
+
</div>
68
+
<?php
69
+
settings_fields('aiomatic_option_group2');
70
+
do_settings_sections('aiomatic_option_group2');
71
+
$aiomatic_Spinner_Settings = get_option('aiomatic_Spinner_Settings', false);
72
+
if (isset($aiomatic_Spinner_Settings['aiomatic_spinning'])) {
73
+
$aiomatic_spinning = $aiomatic_Spinner_Settings['aiomatic_spinning'];
74
+
} else {
75
+
$aiomatic_spinning = '';
76
+
}
77
+
if (isset($aiomatic_Spinner_Settings['post_posts'])) {
78
+
$post_posts = $aiomatic_Spinner_Settings['post_posts'];
79
+
} else {
80
+
$post_posts = '';
81
+
}
82
+
if (isset($aiomatic_Spinner_Settings['post_pages'])) {
83
+
$post_pages = $aiomatic_Spinner_Settings['post_pages'];
84
+
} else {
85
+
$post_pages = '';
86
+
}
87
+
if (isset($aiomatic_Spinner_Settings['post_custom'])) {
88
+
$post_custom = $aiomatic_Spinner_Settings['post_custom'];
89
+
} else {
90
+
$post_custom = '';
91
+
}
92
+
if (isset($aiomatic_Spinner_Settings['except_type'])) {
93
+
$except_type = $aiomatic_Spinner_Settings['except_type'];
94
+
} else {
95
+
$except_type = '';
96
+
}
97
+
if (isset($aiomatic_Spinner_Settings['only_type'])) {
98
+
$only_type = $aiomatic_Spinner_Settings['only_type'];
99
+
} else {
100
+
$only_type = '';
101
+
}
102
+
if (isset($aiomatic_Spinner_Settings['disable_tags'])) {
103
+
$disable_tags = $aiomatic_Spinner_Settings['disable_tags'];
104
+
} else {
105
+
$disable_tags = '';
106
+
}
107
+
if (isset($aiomatic_Spinner_Settings['enable_tags'])) {
108
+
$enable_tags = $aiomatic_Spinner_Settings['enable_tags'];
109
+
} else {
110
+
$enable_tags = '';
111
+
}
112
+
if (isset($aiomatic_Spinner_Settings['disable_users'])) {
113
+
$disable_users = $aiomatic_Spinner_Settings['disable_users'];
114
+
} else {
115
+
$disable_users = '';
116
+
}
117
+
if (isset($aiomatic_Spinner_Settings['enable_users'])) {
118
+
$enable_users = $aiomatic_Spinner_Settings['enable_users'];
119
+
} else {
120
+
$enable_users = '';
121
+
}
122
+
if (isset($aiomatic_Spinner_Settings['featured_status'])) {
123
+
$featured_status = $aiomatic_Spinner_Settings['featured_status'];
124
+
} else {
125
+
$featured_status = '';
126
+
}
127
+
if (isset($aiomatic_Spinner_Settings['seo_status'])) {
128
+
$seo_status = $aiomatic_Spinner_Settings['seo_status'];
129
+
} else {
130
+
$seo_status = '';
131
+
}
132
+
if (isset($aiomatic_Spinner_Settings['enable_field'])) {
133
+
$enable_field = $aiomatic_Spinner_Settings['enable_field'];
134
+
} else {
135
+
$enable_field = '';
136
+
}
137
+
if (isset($aiomatic_Spinner_Settings['disable_field'])) {
138
+
$disable_field = $aiomatic_Spinner_Settings['disable_field'];
139
+
} else {
140
+
$disable_field = '';
141
+
}
142
+
if (isset($aiomatic_Spinner_Settings['change_status'])) {
143
+
$change_status = $aiomatic_Spinner_Settings['change_status'];
144
+
} else {
145
+
$change_status = '';
146
+
}
147
+
if (isset($aiomatic_Spinner_Settings['change_date'])) {
148
+
$change_date = $aiomatic_Spinner_Settings['change_date'];
149
+
} else {
150
+
$change_date = '';
151
+
}
152
+
if (isset($aiomatic_Spinner_Settings['store_data'])) {
153
+
$store_data = $aiomatic_Spinner_Settings['store_data'];
154
+
} else {
155
+
$store_data = '';
156
+
}
157
+
if (isset($aiomatic_Spinner_Settings['delay_post'])) {
158
+
$delay_post = $aiomatic_Spinner_Settings['delay_post'];
159
+
} else {
160
+
$delay_post = '';
161
+
}
162
+
if (isset($aiomatic_Spinner_Settings['process_event'])) {
163
+
$process_event = $aiomatic_Spinner_Settings['process_event'];
164
+
} else {
165
+
$process_event = '';
166
+
}
167
+
if (isset($aiomatic_Spinner_Settings['use_template_auto'])) {
168
+
$use_template_auto = $aiomatic_Spinner_Settings['use_template_auto'];
169
+
} else {
170
+
$use_template_auto = '';
171
+
}
172
+
if (isset($aiomatic_Spinner_Settings['run_background'])) {
173
+
$run_background = $aiomatic_Spinner_Settings['run_background'];
174
+
} else {
175
+
$run_background = '';
176
+
}
177
+
if (isset($aiomatic_Spinner_Settings['enable_default'])) {
178
+
$enable_default = $aiomatic_Spinner_Settings['enable_default'];
179
+
} else {
180
+
$enable_default = '';
181
+
}
182
+
if (isset($aiomatic_Spinner_Settings['append_spintax'])) {
183
+
$append_spintax = $aiomatic_Spinner_Settings['append_spintax'];
184
+
} else {
185
+
$append_spintax = '';
186
+
}
187
+
if (isset($aiomatic_Spinner_Settings['append_location'])) {
188
+
$append_location = $aiomatic_Spinner_Settings['append_location'];
189
+
} else {
190
+
$append_location = '';
191
+
}
192
+
if (isset($aiomatic_Spinner_Settings['ai_featured_image'])) {
193
+
$ai_featured_image = $aiomatic_Spinner_Settings['ai_featured_image'];
194
+
} else {
195
+
$ai_featured_image = '';
196
+
}
197
+
if (isset($aiomatic_Spinner_Settings['ai_featured_image_source'])) {
198
+
$ai_featured_image_source = $aiomatic_Spinner_Settings['ai_featured_image_source'];
199
+
} else {
200
+
$ai_featured_image_source = '';
201
+
}
202
+
if (isset($aiomatic_Spinner_Settings['ai_image_command'])) {
203
+
$ai_image_command = $aiomatic_Spinner_Settings['ai_image_command'];
204
+
} else {
205
+
$ai_image_command = '';
206
+
}
207
+
if (isset($aiomatic_Spinner_Settings['url_image_list'])) {
208
+
$url_image_list = $aiomatic_Spinner_Settings['url_image_list'];
209
+
} else {
210
+
$url_image_list = '';
211
+
}
212
+
if (isset($aiomatic_Spinner_Settings['ai_featured_image_edit'])) {
213
+
$ai_featured_image_edit = $aiomatic_Spinner_Settings['ai_featured_image_edit'];
214
+
} else {
215
+
$ai_featured_image_edit = 'disabled';
216
+
}
217
+
if (isset($aiomatic_Spinner_Settings['ai_featured_image_engine'])) {
218
+
$ai_featured_image_engine = $aiomatic_Spinner_Settings['ai_featured_image_engine'];
219
+
} else {
220
+
$ai_featured_image_engine = '';
221
+
}
222
+
if (isset($aiomatic_Spinner_Settings['ai_image_command_edit'])) {
223
+
$ai_image_command_edit = $aiomatic_Spinner_Settings['ai_image_command_edit'];
224
+
} else {
225
+
$ai_image_command_edit = 'Slightly change the image, making it unique.';
226
+
}
227
+
if (isset($aiomatic_Spinner_Settings['image_strength'])) {
228
+
$image_strength = $aiomatic_Spinner_Settings['image_strength'];
229
+
} else {
230
+
$image_strength = '0.90';
231
+
}
232
+
if (isset($aiomatic_Spinner_Settings['image_strength_content'])) {
233
+
$image_strength_content = $aiomatic_Spinner_Settings['image_strength_content'];
234
+
} else {
235
+
$image_strength_content = '0.90';
236
+
}
237
+
if (isset($aiomatic_Spinner_Settings['image_size'])) {
238
+
$image_size = $aiomatic_Spinner_Settings['image_size'];
239
+
} else {
240
+
$image_size = '';
241
+
}
242
+
if (isset($aiomatic_Spinner_Settings['max_edit_content'])) {
243
+
$max_edit_content = $aiomatic_Spinner_Settings['max_edit_content'];
244
+
} else {
245
+
$max_edit_content = '';
246
+
}
247
+
if (isset($aiomatic_Spinner_Settings['image_model'])) {
248
+
$image_model = $aiomatic_Spinner_Settings['image_model'];
249
+
} else {
250
+
$image_model = '';
251
+
}
252
+
if (isset($aiomatic_Spinner_Settings['min_char'])) {
253
+
$min_char = $aiomatic_Spinner_Settings['min_char'];
254
+
} else {
255
+
$min_char = '';
256
+
}
257
+
if (isset($aiomatic_Spinner_Settings['videos'])) {
258
+
$videos = $aiomatic_Spinner_Settings['videos'];
259
+
} else {
260
+
$videos = '';
261
+
}
262
+
if (isset($aiomatic_Spinner_Settings['social_list'])) {
263
+
$social_list = $aiomatic_Spinner_Settings['social_list'];
264
+
} else {
265
+
$social_list = array();
266
+
}
267
+
if (isset($aiomatic_Spinner_Settings['rich_embed_location'])) {
268
+
$rich_embed_location = $aiomatic_Spinner_Settings['rich_embed_location'];
269
+
} else {
270
+
$rich_embed_location = 'bottom';
271
+
}
272
+
if (isset($aiomatic_Spinner_Settings['append_toc'])) {
273
+
$append_toc = $aiomatic_Spinner_Settings['append_toc'];
274
+
} else {
275
+
$append_toc = '';
276
+
}
277
+
if (isset($aiomatic_Spinner_Settings['when_toc'])) {
278
+
$when_toc = $aiomatic_Spinner_Settings['when_toc'];
279
+
} else {
280
+
$when_toc = '';
281
+
}
282
+
if (isset($aiomatic_Spinner_Settings['title_toc'])) {
283
+
$title_toc = $aiomatic_Spinner_Settings['title_toc'];
284
+
} else {
285
+
$title_toc = '';
286
+
}
287
+
if (isset($aiomatic_Spinner_Settings['hierarchy_toc'])) {
288
+
$hierarchy_toc = $aiomatic_Spinner_Settings['hierarchy_toc'];
289
+
} else {
290
+
$hierarchy_toc = '';
291
+
}
292
+
if (isset($aiomatic_Spinner_Settings['add_numbers_toc'])) {
293
+
$add_numbers_toc = $aiomatic_Spinner_Settings['add_numbers_toc'];
294
+
} else {
295
+
$add_numbers_toc = '';
296
+
}
297
+
if (isset($aiomatic_Spinner_Settings['heading_levels1'])) {
298
+
$heading_levels1 = $aiomatic_Spinner_Settings['heading_levels1'];
299
+
} else {
300
+
$heading_levels1 = '';
301
+
}
302
+
if (isset($aiomatic_Spinner_Settings['heading_levels2'])) {
303
+
$heading_levels2 = $aiomatic_Spinner_Settings['heading_levels2'];
304
+
} else {
305
+
$heading_levels2 = '';
306
+
}
307
+
if (isset($aiomatic_Spinner_Settings['heading_levels3'])) {
308
+
$heading_levels3 = $aiomatic_Spinner_Settings['heading_levels3'];
309
+
} else {
310
+
$heading_levels3 = '';
311
+
}
312
+
if (isset($aiomatic_Spinner_Settings['heading_levels4'])) {
313
+
$heading_levels4 = $aiomatic_Spinner_Settings['heading_levels4'];
314
+
} else {
315
+
$heading_levels4 = '';
316
+
}
317
+
if (isset($aiomatic_Spinner_Settings['heading_levels5'])) {
318
+
$heading_levels5 = $aiomatic_Spinner_Settings['heading_levels5'];
319
+
} else {
320
+
$heading_levels5 = '';
321
+
}
322
+
if (isset($aiomatic_Spinner_Settings['heading_levels6'])) {
323
+
$heading_levels6 = $aiomatic_Spinner_Settings['heading_levels6'];
324
+
} else {
325
+
$heading_levels6 = '';
326
+
}
327
+
if (isset($aiomatic_Spinner_Settings['exclude_toc'])) {
328
+
$exclude_toc = $aiomatic_Spinner_Settings['exclude_toc'];
329
+
} else {
330
+
$exclude_toc = '';
331
+
}
332
+
if (isset($aiomatic_Spinner_Settings['float_toc'])) {
333
+
$float_toc = $aiomatic_Spinner_Settings['float_toc'];
334
+
} else {
335
+
$float_toc = '';
336
+
}
337
+
if (isset($aiomatic_Spinner_Settings['color_toc'])) {
338
+
$color_toc = $aiomatic_Spinner_Settings['color_toc'];
339
+
} else {
340
+
$color_toc = '';
341
+
}
342
+
if (isset($aiomatic_Spinner_Settings['add_links'])) {
343
+
$add_links = $aiomatic_Spinner_Settings['add_links'];
344
+
} else {
345
+
$add_links = '';
346
+
}
347
+
if (isset($aiomatic_Spinner_Settings['link_method'])) {
348
+
$link_method = $aiomatic_Spinner_Settings['link_method'];
349
+
} else {
350
+
$link_method = '';
351
+
}
352
+
if (isset($aiomatic_Spinner_Settings['link_juicer_prompt'])) {
353
+
$link_juicer_prompt = $aiomatic_Spinner_Settings['link_juicer_prompt'];
354
+
} else {
355
+
$link_juicer_prompt = 'Generate a comma-separated list of relevant keywords for the post title (for use in the Link Juicer plugin): "%%post_title%%".';
356
+
}
357
+
if (isset($aiomatic_Spinner_Settings['link_juicer_assistant_id'])) {
358
+
$link_juicer_assistant_id = $aiomatic_Spinner_Settings['link_juicer_assistant_id'];
359
+
} else {
360
+
$link_juicer_assistant_id = '';
361
+
}
362
+
if (isset($aiomatic_Spinner_Settings['link_juicer_model'])) {
363
+
$link_juicer_model = $aiomatic_Spinner_Settings['link_juicer_model'];
364
+
} else {
365
+
$link_juicer_model = '';
366
+
}
367
+
if (isset($aiomatic_Spinner_Settings['ai_vision_link_juicer'])) {
368
+
$ai_vision_link_juicer = $aiomatic_Spinner_Settings['ai_vision_link_juicer'];
369
+
} else {
370
+
$ai_vision_link_juicer = '';
371
+
}
372
+
if (isset($aiomatic_Spinner_Settings['title_model'])) {
373
+
$title_model = $aiomatic_Spinner_Settings['title_model'];
374
+
} else {
375
+
$title_model = '';
376
+
}
377
+
if (isset($aiomatic_Spinner_Settings['ai_title_vision'])) {
378
+
$ai_title_vision = $aiomatic_Spinner_Settings['ai_title_vision'];
379
+
} else {
380
+
$ai_title_vision = '';
381
+
}
382
+
if (isset($aiomatic_Spinner_Settings['ai_excerpt_vision'])) {
383
+
$ai_excerpt_vision = $aiomatic_Spinner_Settings['ai_excerpt_vision'];
384
+
} else {
385
+
$ai_excerpt_vision = '';
386
+
}
387
+
if (isset($aiomatic_Spinner_Settings['excerpt_model'])) {
388
+
$excerpt_model = $aiomatic_Spinner_Settings['excerpt_model'];
389
+
} else {
390
+
$excerpt_model = '';
391
+
}
392
+
if (isset($aiomatic_Spinner_Settings['ai_slug_vision'])) {
393
+
$ai_slug_vision = $aiomatic_Spinner_Settings['ai_slug_vision'];
394
+
} else {
395
+
$ai_slug_vision = '';
396
+
}
397
+
if (isset($aiomatic_Spinner_Settings['slug_model'])) {
398
+
$slug_model = $aiomatic_Spinner_Settings['slug_model'];
399
+
} else {
400
+
$slug_model = '';
401
+
}
402
+
if (isset($aiomatic_Spinner_Settings['max_links'])) {
403
+
$max_links = $aiomatic_Spinner_Settings['max_links'];
404
+
} else {
405
+
$max_links = '';
406
+
}
407
+
if (isset($aiomatic_Spinner_Settings['link_list'])) {
408
+
$link_list = $aiomatic_Spinner_Settings['link_list'];
409
+
} else {
410
+
$link_list = '';
411
+
}
412
+
if (isset($aiomatic_Spinner_Settings['link_nofollow'])) {
413
+
$link_nofollow = $aiomatic_Spinner_Settings['link_nofollow'];
414
+
} else {
415
+
$link_nofollow = '';
416
+
}
417
+
if (isset($aiomatic_Spinner_Settings['link_type'])) {
418
+
$link_type = $aiomatic_Spinner_Settings['link_type'];
419
+
} else {
420
+
$link_type = 'internal';
421
+
}
422
+
if (isset($aiomatic_Spinner_Settings['affiliate_id'])) {
423
+
$affiliate_id = $aiomatic_Spinner_Settings['affiliate_id'];
424
+
} else {
425
+
$affiliate_id = '';
426
+
}
427
+
if (isset($aiomatic_Spinner_Settings['target_country'])) {
428
+
$target_country = $aiomatic_Spinner_Settings['target_country'];
429
+
} else {
430
+
$target_country = 'com';
431
+
}
432
+
if (isset($aiomatic_Spinner_Settings['link_post_types'])) {
433
+
$link_post_types = $aiomatic_Spinner_Settings['link_post_types'];
434
+
} else {
435
+
$link_post_types = '';
436
+
}
437
+
if (isset($aiomatic_Spinner_Settings['link_post_not_ids'])) {
438
+
$link_post_not_ids = $aiomatic_Spinner_Settings['link_post_not_ids'];
439
+
} else {
440
+
$link_post_not_ids = '';
441
+
}
442
+
if (isset($aiomatic_Spinner_Settings['force_keywords'])) {
443
+
$force_keywords = $aiomatic_Spinner_Settings['force_keywords'];
444
+
} else {
445
+
$force_keywords = '';
446
+
}
447
+
if (isset($aiomatic_Spinner_Settings['link_post_ids'])) {
448
+
$link_post_ids = $aiomatic_Spinner_Settings['link_post_ids'];
449
+
} else {
450
+
$link_post_ids = '';
451
+
}
452
+
if (isset($aiomatic_Spinner_Settings['add_cats'])) {
453
+
$add_cats = $aiomatic_Spinner_Settings['add_cats'];
454
+
} else {
455
+
$add_cats = 'disabled';
456
+
}
457
+
if (isset($aiomatic_Spinner_Settings['add_tags'])) {
458
+
$add_tags = $aiomatic_Spinner_Settings['add_tags'];
459
+
} else {
460
+
$add_tags = 'disabled';
461
+
}
462
+
if (isset($aiomatic_Spinner_Settings['cats_tax'])) {
463
+
$cats_tax = $aiomatic_Spinner_Settings['cats_tax'];
464
+
} else {
465
+
$cats_tax = '';
466
+
}
467
+
if (isset($aiomatic_Spinner_Settings['tags_tax'])) {
468
+
$tags_tax = $aiomatic_Spinner_Settings['tags_tax'];
469
+
} else {
470
+
$tags_tax = '';
471
+
}
472
+
if (isset($aiomatic_Spinner_Settings['max_cats'])) {
473
+
$max_cats = $aiomatic_Spinner_Settings['max_cats'];
474
+
} else {
475
+
$max_cats = '';
476
+
}
477
+
if (isset($aiomatic_Spinner_Settings['max_tags'])) {
478
+
$max_tags = $aiomatic_Spinner_Settings['max_tags'];
479
+
} else {
480
+
$max_tags = '';
481
+
}
482
+
if (isset($aiomatic_Spinner_Settings['skip_inexist'])) {
483
+
$skip_inexist = $aiomatic_Spinner_Settings['skip_inexist'];
484
+
} else {
485
+
$skip_inexist = '';
486
+
}
487
+
if (isset($aiomatic_Spinner_Settings['skip_inexist_tags'])) {
488
+
$skip_inexist_tags = $aiomatic_Spinner_Settings['skip_inexist_tags'];
489
+
} else {
490
+
$skip_inexist_tags = '';
491
+
}
492
+
if (isset($aiomatic_Spinner_Settings['ai_cats'])) {
493
+
$ai_cats = $aiomatic_Spinner_Settings['ai_cats'];
494
+
} else {
495
+
$ai_cats = 'Write a comma separated list of 5 categories for post title: %%post_title%%';
496
+
}
497
+
if (isset($aiomatic_Spinner_Settings['ai_tags'])) {
498
+
$ai_tags = $aiomatic_Spinner_Settings['ai_tags'];
499
+
} else {
500
+
$ai_tags = 'Write a comma separated list of 5 tags for post title: %%post_title%%';
501
+
}
502
+
if (isset($aiomatic_Spinner_Settings['cats_model'])) {
503
+
$cats_model = $aiomatic_Spinner_Settings['cats_model'];
504
+
} else {
505
+
$cats_model = '';
506
+
}
507
+
if (isset($aiomatic_Spinner_Settings['tags_model'])) {
508
+
$tags_model = $aiomatic_Spinner_Settings['tags_model'];
509
+
} else {
510
+
$tags_model = '';
511
+
}
512
+
if (isset($aiomatic_Spinner_Settings['ai_vision_tag'])) {
513
+
$ai_vision_tag = $aiomatic_Spinner_Settings['ai_vision_tag'];
514
+
} else {
515
+
$ai_vision_tag = '';
516
+
}
517
+
if (isset($aiomatic_Spinner_Settings['add_custom'])) {
518
+
$add_custom = $aiomatic_Spinner_Settings['add_custom'];
519
+
} else {
520
+
$add_custom = '';
521
+
}
522
+
if (isset($aiomatic_Spinner_Settings['ai_custom_field'])) {
523
+
$ai_custom_field = $aiomatic_Spinner_Settings['ai_custom_field'];
524
+
} else {
525
+
$ai_custom_field = '';
526
+
}
527
+
if (isset($aiomatic_Spinner_Settings['no_custom_field_prompt'])) {
528
+
$no_custom_field_prompt = $aiomatic_Spinner_Settings['no_custom_field_prompt'];
529
+
} else {
530
+
$no_custom_field_prompt = '';
531
+
}
532
+
if (isset($aiomatic_Spinner_Settings['no_custom_tax_prompt'])) {
533
+
$no_custom_tax_prompt = $aiomatic_Spinner_Settings['no_custom_tax_prompt'];
534
+
} else {
535
+
$no_custom_tax_prompt = '';
536
+
}
537
+
if (isset($aiomatic_Spinner_Settings['ai_custom_tax'])) {
538
+
$ai_custom_tax = $aiomatic_Spinner_Settings['ai_custom_tax'];
539
+
} else {
540
+
$ai_custom_tax = '';
541
+
}
542
+
if (isset($aiomatic_Spinner_Settings['max_custom'])) {
543
+
$max_custom = $aiomatic_Spinner_Settings['max_custom'];
544
+
} else {
545
+
$max_custom = '';
546
+
}
547
+
if (isset($aiomatic_Spinner_Settings['skip_inexist_custom'])) {
548
+
$skip_inexist_custom = $aiomatic_Spinner_Settings['skip_inexist_custom'];
549
+
} else {
550
+
$skip_inexist_custom = '';
551
+
}
552
+
if (isset($aiomatic_Spinner_Settings['custom_assistant_id'])) {
553
+
$custom_assistant_id = $aiomatic_Spinner_Settings['custom_assistant_id'];
554
+
} else {
555
+
$custom_assistant_id = '';
556
+
}
557
+
if (isset($aiomatic_Spinner_Settings['custom_model'])) {
558
+
$custom_model = $aiomatic_Spinner_Settings['custom_model'];
559
+
} else {
560
+
$custom_model = '';
561
+
}
562
+
if (isset($aiomatic_Spinner_Settings['ai_vision_custom'])) {
563
+
$ai_vision_custom = $aiomatic_Spinner_Settings['ai_vision_custom'];
564
+
} else {
565
+
$ai_vision_custom = '';
566
+
}
567
+
if (isset($aiomatic_Spinner_Settings['ai_vision_cat'])) {
568
+
$ai_vision_cat = $aiomatic_Spinner_Settings['ai_vision_cat'];
569
+
} else {
570
+
$ai_vision_cat = '';
571
+
}
572
+
if (isset($aiomatic_Spinner_Settings['tags_assistant_id'])) {
573
+
$tags_assistant_id = $aiomatic_Spinner_Settings['tags_assistant_id'];
574
+
} else {
575
+
$tags_assistant_id = '';
576
+
}
577
+
if (isset($aiomatic_Spinner_Settings['add_comments'])) {
578
+
$add_comments = $aiomatic_Spinner_Settings['add_comments'];
579
+
} else {
580
+
$add_comments = '';
581
+
}
582
+
if (isset($aiomatic_Spinner_Settings['max_comments'])) {
583
+
$max_comments = $aiomatic_Spinner_Settings['max_comments'];
584
+
} else {
585
+
$max_comments = '';
586
+
}
587
+
if (isset($aiomatic_Spinner_Settings['ai_comments'])) {
588
+
$ai_comments = $aiomatic_Spinner_Settings['ai_comments'];
589
+
} else {
590
+
$ai_comments = '';
591
+
}
592
+
if (isset($aiomatic_Spinner_Settings['star_count'])) {
593
+
$star_count = $aiomatic_Spinner_Settings['star_count'];
594
+
} else {
595
+
$star_count = '';
596
+
}
597
+
if (isset($aiomatic_Spinner_Settings['prev_comms'])) {
598
+
$prev_comms = $aiomatic_Spinner_Settings['prev_comms'];
599
+
} else {
600
+
$prev_comms = '';
601
+
}
602
+
if (isset($aiomatic_Spinner_Settings['comments_assistant_id'])) {
603
+
$comments_assistant_id = $aiomatic_Spinner_Settings['comments_assistant_id'];
604
+
} else {
605
+
$comments_assistant_id = '';
606
+
}
607
+
if (isset($aiomatic_Spinner_Settings['comments_model'])) {
608
+
$comments_model = $aiomatic_Spinner_Settings['comments_model'];
609
+
} else {
610
+
$comments_model = '';
611
+
}
612
+
if (isset($aiomatic_Spinner_Settings['tax_assistant_id'])) {
613
+
$tax_assistant_id = $aiomatic_Spinner_Settings['tax_assistant_id'];
614
+
} else {
615
+
$tax_assistant_id = '';
616
+
}
617
+
if (isset($aiomatic_Spinner_Settings['tax_description_model'])) {
618
+
$tax_description_model = $aiomatic_Spinner_Settings['tax_description_model'];
619
+
} else {
620
+
$tax_description_model = '';
621
+
}
622
+
if (isset($aiomatic_Spinner_Settings['tax_description_prompt'])) {
623
+
$tax_description_prompt = $aiomatic_Spinner_Settings['tax_description_prompt'];
624
+
} else {
625
+
$tax_description_prompt = '';
626
+
}
627
+
if (isset($aiomatic_Spinner_Settings['tax_seo_auto'])) {
628
+
$tax_seo_auto = $aiomatic_Spinner_Settings['tax_seo_auto'];
629
+
} else {
630
+
$tax_seo_auto = '';
631
+
}
632
+
if (isset($aiomatic_Spinner_Settings['tax_seo_assistant_id'])) {
633
+
$tax_seo_assistant_id = $aiomatic_Spinner_Settings['tax_seo_assistant_id'];
634
+
} else {
635
+
$tax_seo_assistant_id = '';
636
+
}
637
+
if (isset($aiomatic_Spinner_Settings['tax_seo_description_prompt'])) {
638
+
$tax_seo_description_prompt = $aiomatic_Spinner_Settings['tax_seo_description_prompt'];
639
+
} else {
640
+
$tax_seo_description_prompt = '';
641
+
}
642
+
if (isset($aiomatic_Spinner_Settings['tax_description_auto'])) {
643
+
$tax_description_auto = $aiomatic_Spinner_Settings['tax_description_auto'];
644
+
} else {
645
+
$tax_description_auto = array();
646
+
}
647
+
if (isset($aiomatic_Spinner_Settings['tax_description_manual'])) {
648
+
$tax_description_manual = $aiomatic_Spinner_Settings['tax_description_manual'];
649
+
} else {
650
+
$tax_description_manual = '';
651
+
}
652
+
if (isset($aiomatic_Spinner_Settings['max_tax_nr'])) {
653
+
$max_tax_nr = $aiomatic_Spinner_Settings['max_tax_nr'];
654
+
} else {
655
+
$max_tax_nr = '';
656
+
}
657
+
if (isset($aiomatic_Spinner_Settings['overwite_tax'])) {
658
+
$overwite_tax = $aiomatic_Spinner_Settings['overwite_tax'];
659
+
} else {
660
+
$overwite_tax = '';
661
+
}
662
+
if (isset($aiomatic_Spinner_Settings['tax_seo_description_model'])) {
663
+
$tax_seo_description_model = $aiomatic_Spinner_Settings['tax_seo_description_model'];
664
+
} else {
665
+
$tax_seo_description_model = '';
666
+
}
667
+
if (isset($aiomatic_Spinner_Settings['user_list'])) {
668
+
$user_list = $aiomatic_Spinner_Settings['user_list'];
669
+
} else {
670
+
$user_list = '%%random_user%%';
671
+
}
672
+
if (isset($aiomatic_Spinner_Settings['email_list'])) {
673
+
$email_list = $aiomatic_Spinner_Settings['email_list'];
674
+
} else {
675
+
$email_list = '';
676
+
}
677
+
if (isset($aiomatic_Spinner_Settings['url_list'])) {
678
+
$url_list = $aiomatic_Spinner_Settings['url_list'];
679
+
} else {
680
+
$url_list = '';
681
+
}
682
+
if (isset($aiomatic_Spinner_Settings['min_time'])) {
683
+
$min_time = $aiomatic_Spinner_Settings['min_time'];
684
+
} else {
685
+
$min_time = '';
686
+
}
687
+
if (isset($aiomatic_Spinner_Settings['max_time'])) {
688
+
$max_time = $aiomatic_Spinner_Settings['max_time'];
689
+
} else {
690
+
$max_time = '';
691
+
}
692
+
if (isset($aiomatic_Spinner_Settings['headings'])) {
693
+
$headings = $aiomatic_Spinner_Settings['headings'];
694
+
} else {
695
+
$headings = '';
696
+
}
697
+
if (isset($aiomatic_Spinner_Settings['headings_model'])) {
698
+
$headings_model = $aiomatic_Spinner_Settings['headings_model'];
699
+
} else {
700
+
$headings_model = '';
701
+
}
702
+
if (isset($aiomatic_Spinner_Settings['headings_assistant_id'])) {
703
+
$headings_assistant_id = $aiomatic_Spinner_Settings['headings_assistant_id'];
704
+
} else {
705
+
$headings_assistant_id = '';
706
+
}
707
+
if (isset($aiomatic_Spinner_Settings['categories_assistant_id'])) {
708
+
$categories_assistant_id = $aiomatic_Spinner_Settings['categories_assistant_id'];
709
+
} else {
710
+
$categories_assistant_id = '';
711
+
}
712
+
if (isset($aiomatic_Spinner_Settings['headings_ai_command'])) {
713
+
$headings_ai_command = $aiomatic_Spinner_Settings['headings_ai_command'];
714
+
} else {
715
+
$headings_ai_command = '';
716
+
}
717
+
if (isset($aiomatic_Spinner_Settings['append_assistant_id'])) {
718
+
$append_assistant_id = $aiomatic_Spinner_Settings['append_assistant_id'];
719
+
} else {
720
+
$append_assistant_id = '';
721
+
}
722
+
if (isset($aiomatic_Spinner_Settings['enable_ai_images'])) {
723
+
$enable_ai_images = $aiomatic_Spinner_Settings['enable_ai_images'];
724
+
} else {
725
+
$enable_ai_images = '';
726
+
}
727
+
if (isset($aiomatic_Spinner_Settings['images'])) {
728
+
$images = $aiomatic_Spinner_Settings['images'];
729
+
} else {
730
+
$images = '';
731
+
}
732
+
if (isset($aiomatic_Spinner_Settings['max_tokens'])) {
733
+
$max_tokens = $aiomatic_Spinner_Settings['max_tokens'];
734
+
} else {
735
+
$max_tokens = '';
736
+
}
737
+
if (isset($aiomatic_Spinner_Settings['max_seed_tokens'])) {
738
+
$max_seed_tokens = $aiomatic_Spinner_Settings['max_seed_tokens'];
739
+
} else {
740
+
$max_seed_tokens = '';
741
+
}
742
+
if (isset($aiomatic_Spinner_Settings['add_seo'])) {
743
+
$add_seo = $aiomatic_Spinner_Settings['add_seo'];
744
+
} else {
745
+
$add_seo = '';
746
+
}
747
+
if (isset($aiomatic_Spinner_Settings['add_seo_title'])) {
748
+
$add_seo_title = $aiomatic_Spinner_Settings['add_seo_title'];
749
+
} else {
750
+
$add_seo_title = '';
751
+
}
752
+
if (isset($aiomatic_Spinner_Settings['ai_seo_title'])) {
753
+
$ai_seo_title = $aiomatic_Spinner_Settings['ai_seo_title'];
754
+
} else {
755
+
$ai_seo_title = '';
756
+
}
757
+
if (isset($aiomatic_Spinner_Settings['meta_assistant_id_title'])) {
758
+
$meta_assistant_id_title = $aiomatic_Spinner_Settings['meta_assistant_id_title'];
759
+
} else {
760
+
$meta_assistant_id_title = '';
761
+
}
762
+
if (isset($aiomatic_Spinner_Settings['seo_model_title'])) {
763
+
$seo_model_title = $aiomatic_Spinner_Settings['seo_model_title'];
764
+
} else {
765
+
$seo_model_title = '';
766
+
}
767
+
if (isset($aiomatic_Spinner_Settings['seo_max_char_title'])) {
768
+
$seo_max_char_title = $aiomatic_Spinner_Settings['seo_max_char_title'];
769
+
} else {
770
+
$seo_max_char_title = '';
771
+
}
772
+
if (isset($aiomatic_Spinner_Settings['ai_vision_seo_title'])) {
773
+
$ai_vision_seo_title = $aiomatic_Spinner_Settings['ai_vision_seo_title'];
774
+
} else {
775
+
$ai_vision_seo_title = '';
776
+
}
777
+
if (isset($aiomatic_Spinner_Settings['ai_seo'])) {
778
+
$ai_seo = $aiomatic_Spinner_Settings['ai_seo'];
779
+
} else {
780
+
$ai_seo = '';
781
+
}
782
+
if (isset($aiomatic_Spinner_Settings['meta_assistant_id'])) {
783
+
$meta_assistant_id = $aiomatic_Spinner_Settings['meta_assistant_id'];
784
+
} else {
785
+
$meta_assistant_id = '';
786
+
}
787
+
if (isset($aiomatic_Spinner_Settings['seo_model'])) {
788
+
$seo_model = $aiomatic_Spinner_Settings['seo_model'];
789
+
} else {
790
+
$seo_model = '';
791
+
}
792
+
if (isset($aiomatic_Spinner_Settings['ai_vision_com'])) {
793
+
$ai_vision_com = $aiomatic_Spinner_Settings['ai_vision_com'];
794
+
} else {
795
+
$ai_vision_com = '';
796
+
}
797
+
if (isset($aiomatic_Spinner_Settings['no_approve'])) {
798
+
$no_approve = $aiomatic_Spinner_Settings['no_approve'];
799
+
} else {
800
+
$no_approve = '';
801
+
}
802
+
if (isset($aiomatic_Spinner_Settings['ai_vision_seo'])) {
803
+
$ai_vision_seo = $aiomatic_Spinner_Settings['ai_vision_seo'];
804
+
} else {
805
+
$ai_vision_seo = '';
806
+
}
807
+
if (isset($aiomatic_Spinner_Settings['seo_max_char'])) {
808
+
$seo_max_char = $aiomatic_Spinner_Settings['seo_max_char'];
809
+
} else {
810
+
$seo_max_char = '';
811
+
}
812
+
if (isset($aiomatic_Spinner_Settings['seo_copy_excerpt'])) {
813
+
$seo_copy_excerpt = $aiomatic_Spinner_Settings['seo_copy_excerpt'];
814
+
} else {
815
+
$seo_copy_excerpt = '';
816
+
}
817
+
if (isset($aiomatic_Spinner_Settings['content_text_speech'])) {
818
+
$content_text_speech = $aiomatic_Spinner_Settings['content_text_speech'];
819
+
} else {
820
+
$content_text_speech = 'off';
821
+
}
822
+
if (isset($aiomatic_Spinner_Settings['did_image'])) {
823
+
$did_image = $aiomatic_Spinner_Settings['did_image'];
824
+
} else {
825
+
$did_image = '';
826
+
}
827
+
if (isset($aiomatic_Spinner_Settings['did_voice'])) {
828
+
$did_voice = $aiomatic_Spinner_Settings['did_voice'];
829
+
} else {
830
+
$did_voice = '';
831
+
}
832
+
if (isset($aiomatic_Spinner_Settings['eleven_voice'])) {
833
+
$eleven_voice = $aiomatic_Spinner_Settings['eleven_voice'];
834
+
} else {
835
+
$eleven_voice = '';
836
+
}
837
+
if (isset($aiomatic_Spinner_Settings['eleven_voice_custom'])) {
838
+
$eleven_voice_custom = $aiomatic_Spinner_Settings['eleven_voice_custom'];
839
+
} else {
840
+
$eleven_voice_custom = '';
841
+
}
842
+
if (isset($aiomatic_Spinner_Settings['eleven_model_id'])) {
843
+
$eleven_model_id = $aiomatic_Spinner_Settings['eleven_model_id'];
844
+
} else {
845
+
$eleven_model_id = '';
846
+
}
847
+
if (isset($aiomatic_Spinner_Settings['voice_stability'])) {
848
+
$voice_stability = $aiomatic_Spinner_Settings['voice_stability'];
849
+
} else {
850
+
$voice_stability = '';
851
+
}
852
+
if (isset($aiomatic_Spinner_Settings['voice_similarity_boost'])) {
853
+
$voice_similarity_boost = $aiomatic_Spinner_Settings['voice_similarity_boost'];
854
+
} else {
855
+
$voice_similarity_boost = '';
856
+
}
857
+
if (isset($aiomatic_Spinner_Settings['voice_style'])) {
858
+
$voice_style = $aiomatic_Spinner_Settings['voice_style'];
859
+
} else {
860
+
$voice_style = '';
861
+
}
862
+
if (isset($aiomatic_Spinner_Settings['speaker_boost'])) {
863
+
$speaker_boost = $aiomatic_Spinner_Settings['speaker_boost'];
864
+
} else {
865
+
$speaker_boost = '';
866
+
}
867
+
if (isset($aiomatic_Spinner_Settings['open_model_id'])) {
868
+
$open_model_id = $aiomatic_Spinner_Settings['open_model_id'];
869
+
} else {
870
+
$open_model_id = '';
871
+
}
872
+
if (isset($aiomatic_Spinner_Settings['open_voice'])) {
873
+
$open_voice = $aiomatic_Spinner_Settings['open_voice'];
874
+
} else {
875
+
$open_voice = '';
876
+
}
877
+
if (isset($aiomatic_Spinner_Settings['open_format'])) {
878
+
$open_format = $aiomatic_Spinner_Settings['open_format'];
879
+
} else {
880
+
$open_format = '';
881
+
}
882
+
if (isset($aiomatic_Spinner_Settings['open_speed'])) {
883
+
$open_speed = $aiomatic_Spinner_Settings['open_speed'];
884
+
} else {
885
+
$open_speed = '';
886
+
}
887
+
if (isset($aiomatic_Spinner_Settings['voice_language'])) {
888
+
$voice_language = $aiomatic_Spinner_Settings['voice_language'];
889
+
} else {
890
+
$voice_language = '';
891
+
}
892
+
if (isset($aiomatic_Spinner_Settings['google_voice'])) {
893
+
$google_voice = $aiomatic_Spinner_Settings['google_voice'];
894
+
} else {
895
+
$google_voice = '';
896
+
}
897
+
if (isset($aiomatic_Spinner_Settings['audio_profile'])) {
898
+
$audio_profile = $aiomatic_Spinner_Settings['audio_profile'];
899
+
} else {
900
+
$audio_profile = '';
901
+
}
902
+
if (isset($aiomatic_Spinner_Settings['google_voice_model'])) {
903
+
$google_voice_model = $aiomatic_Spinner_Settings['google_voice_model'];
904
+
} else {
905
+
$google_voice_model = 'default';
906
+
}
907
+
if (isset($aiomatic_Spinner_Settings['voice_speed'])) {
908
+
$voice_speed = $aiomatic_Spinner_Settings['voice_speed'];
909
+
} else {
910
+
$voice_speed = '';
911
+
}
912
+
if (isset($aiomatic_Spinner_Settings['voice_pitch'])) {
913
+
$voice_pitch = $aiomatic_Spinner_Settings['voice_pitch'];
914
+
} else {
915
+
$voice_pitch = '';
916
+
}
917
+
if (isset($aiomatic_Spinner_Settings['text_to_audio'])) {
918
+
$text_to_audio = $aiomatic_Spinner_Settings['text_to_audio'];
919
+
} else {
920
+
$text_to_audio = '%%post_content%%';
921
+
}
922
+
if (isset($aiomatic_Spinner_Settings['audio_location'])) {
923
+
$audio_location = $aiomatic_Spinner_Settings['audio_location'];
924
+
} else {
925
+
$audio_location = 'append';
926
+
}
927
+
if (isset($aiomatic_Spinner_Settings['content_speech_text'])) {
928
+
$content_speech_text = $aiomatic_Spinner_Settings['content_speech_text'];
929
+
} else {
930
+
$content_speech_text = 'off';
931
+
}
932
+
if (isset($aiomatic_Spinner_Settings['speech_model'])) {
933
+
$speech_model = $aiomatic_Spinner_Settings['speech_model'];
934
+
} else {
935
+
$speech_model = 'whisper-1';
936
+
}
937
+
if (isset($aiomatic_Spinner_Settings['max_speech'])) {
938
+
$max_speech = $aiomatic_Spinner_Settings['max_speech'];
939
+
} else {
940
+
$max_speech = '';
941
+
}
942
+
if (isset($aiomatic_Spinner_Settings['audio_to_text'])) {
943
+
$audio_to_text = $aiomatic_Spinner_Settings['audio_to_text'];
944
+
} else {
945
+
$audio_to_text = '%%audio_to_text%%';
946
+
}
947
+
if (isset($aiomatic_Spinner_Settings['audio_to_text_prompt'])) {
948
+
$audio_to_text_prompt = $aiomatic_Spinner_Settings['audio_to_text_prompt'];
949
+
} else {
950
+
$audio_to_text_prompt = '';
951
+
}
952
+
if (isset($aiomatic_Spinner_Settings['speech_temperature'])) {
953
+
$speech_temperature = $aiomatic_Spinner_Settings['speech_temperature'];
954
+
} else {
955
+
$speech_temperature = '';
956
+
}
957
+
if (isset($aiomatic_Spinner_Settings['audio_text_location'])) {
958
+
$audio_text_location = $aiomatic_Spinner_Settings['audio_text_location'];
959
+
} else {
960
+
$audio_text_location = 'append';
961
+
}
962
+
if (isset($aiomatic_Spinner_Settings['publish_new'])) {
963
+
$publish_new = $aiomatic_Spinner_Settings['publish_new'];
964
+
} else {
965
+
$publish_new = 'no';
966
+
}
967
+
if (isset($aiomatic_Spinner_Settings['prep_audio'])) {
968
+
$prep_audio = $aiomatic_Spinner_Settings['prep_audio'];
969
+
} else {
970
+
$prep_audio = '';
971
+
}
972
+
if (isset($aiomatic_Spinner_Settings['copy_location'])) {
973
+
$copy_location = $aiomatic_Spinner_Settings['copy_location'];
974
+
} else {
975
+
$copy_location = '';
976
+
}
977
+
if (isset($aiomatic_Spinner_Settings['max_result_tokens'])) {
978
+
$max_result_tokens = $aiomatic_Spinner_Settings['max_result_tokens'];
979
+
} else {
980
+
$max_result_tokens = '';
981
+
}
982
+
if (isset($aiomatic_Spinner_Settings['max_continue_tokens'])) {
983
+
$max_continue_tokens = $aiomatic_Spinner_Settings['max_continue_tokens'];
984
+
} else {
985
+
$max_continue_tokens = '';
986
+
}
987
+
if (isset($aiomatic_Spinner_Settings['model'])) {
988
+
$model = $aiomatic_Spinner_Settings['model'];
989
+
} else {
990
+
$model = '';
991
+
}
992
+
if (isset($aiomatic_Spinner_Settings['ai_command'])) {
993
+
$ai_command = $aiomatic_Spinner_Settings['ai_command'];
994
+
} else {
995
+
$ai_command = '';
996
+
}
997
+
if (isset($aiomatic_Spinner_Settings['temperature'])) {
998
+
$temperature = $aiomatic_Spinner_Settings['temperature'];
999
+
} else {
1000
+
$temperature = '';
1001
+
}
1002
+
if (isset($aiomatic_Spinner_Settings['top_p'])) {
1003
+
$top_p = $aiomatic_Spinner_Settings['top_p'];
1004
+
} else {
1005
+
$top_p = '';
1006
+
}
1007
+
if (isset($aiomatic_Spinner_Settings['presence_penalty'])) {
1008
+
$presence_penalty = $aiomatic_Spinner_Settings['presence_penalty'];
1009
+
} else {
1010
+
$presence_penalty = '';
1011
+
}
1012
+
if (isset($aiomatic_Spinner_Settings['frequency_penalty'])) {
1013
+
$frequency_penalty = $aiomatic_Spinner_Settings['frequency_penalty'];
1014
+
} else {
1015
+
$frequency_penalty = '';
1016
+
}
1017
+
if (isset($aiomatic_Spinner_Settings['ai_rewriter'])) {
1018
+
$ai_rewriter = $aiomatic_Spinner_Settings['ai_rewriter'];
1019
+
} else {
1020
+
$ai_rewriter = '';
1021
+
}
1022
+
if (isset($aiomatic_Spinner_Settings['similarity_threshold'])) {
1023
+
$similarity_threshold = $aiomatic_Spinner_Settings['similarity_threshold'];
1024
+
} else {
1025
+
$similarity_threshold = '';
1026
+
}
1027
+
if (isset($aiomatic_Spinner_Settings['duplication_template'])) {
1028
+
$duplication_template = $aiomatic_Spinner_Settings['duplication_template'];
1029
+
} else {
1030
+
$duplication_template = '';
1031
+
}
1032
+
if (isset($aiomatic_Spinner_Settings['enhance_model'])) {
1033
+
$enhance_model = $aiomatic_Spinner_Settings['enhance_model'];
1034
+
} else {
1035
+
$enhance_model = '';
1036
+
}
1037
+
if (isset($aiomatic_Spinner_Settings['enhance_assistant_id'])) {
1038
+
$enhance_assistant_id = $aiomatic_Spinner_Settings['enhance_assistant_id'];
1039
+
} else {
1040
+
$enhance_assistant_id = '';
1041
+
}
1042
+
if (isset($aiomatic_Spinner_Settings['max_to_process_in_one_go'])) {
1043
+
$max_to_process_in_one_go = $aiomatic_Spinner_Settings['max_to_process_in_one_go'];
1044
+
} else {
1045
+
$max_to_process_in_one_go = '';
1046
+
}
1047
+
if (isset($aiomatic_Spinner_Settings['duplication_index'])) {
1048
+
$duplication_index = $aiomatic_Spinner_Settings['duplication_index'];
1049
+
} else {
1050
+
$duplication_index = '';
1051
+
}
1052
+
if (isset($aiomatic_Spinner_Settings['dup_titles'])) {
1053
+
$dup_titles = $aiomatic_Spinner_Settings['dup_titles'];
1054
+
} else {
1055
+
$dup_titles = '';
1056
+
}
1057
+
if (isset($aiomatic_Spinner_Settings['enhance_articles'])) {
1058
+
$enhance_articles = $aiomatic_Spinner_Settings['enhance_articles'];
1059
+
} else {
1060
+
$enhance_articles = '';
1061
+
}
1062
+
if (isset($aiomatic_Spinner_Settings['ai_instruction_enhance'])) {
1063
+
$ai_instruction_enhance = $aiomatic_Spinner_Settings['ai_instruction_enhance'];
1064
+
} else {
1065
+
$ai_instruction_enhance = 'You are an AI content editor tasked with resolving duplicate content issues on a blog. Compare the content of two posts to determine if any valuable or unique information from the duplicate post can be integrated into the post to be kept. If the duplicate post contains unique information that is not already present in the post to be kept, integrate it seamlessly into the content of the post to be kept while preserving its natural flow and meaning. Ensure that the HTML tags and structure are maintained during processing. If the duplicate post contains no new or unique information, return the content of the post to be kept unchanged. Do not make unnecessary edits.
1066
+
----
1067
+
Post content from where additional info should be gathered (if found):
1068
+
%%post_plain_text_content_to_be_removed%%
1069
+
----
1070
+
Post content where info should be inserted (if needed):
1071
+
%%post_content_to_be_kept%%
1072
+
----
1073
+
Process the content now, return only the edited content, nothing else.';
1074
+
}
1075
+
if (isset($aiomatic_Spinner_Settings['duplicate_action'])) {
1076
+
$duplicate_action = $aiomatic_Spinner_Settings['duplicate_action'];
1077
+
} else {
1078
+
$duplicate_action = '';
1079
+
}
1080
+
if (isset($aiomatic_Spinner_Settings['duplicate_handle'])) {
1081
+
$duplicate_handle = $aiomatic_Spinner_Settings['duplicate_handle'];
1082
+
} else {
1083
+
$duplicate_handle = '';
1084
+
}
1085
+
if (isset($aiomatic_Spinner_Settings['ai_duplication'])) {
1086
+
$ai_duplication = $aiomatic_Spinner_Settings['ai_duplication'];
1087
+
} else {
1088
+
$ai_duplication = '';
1089
+
}
1090
+
if (isset($aiomatic_Spinner_Settings['ai_instruction'])) {
1091
+
$ai_instruction = $aiomatic_Spinner_Settings['ai_instruction'];
1092
+
} else {
1093
+
$ai_instruction = '';
1094
+
}
1095
+
if (isset($aiomatic_Spinner_Settings['ai_instruction_title'])) {
1096
+
$ai_instruction_title = $aiomatic_Spinner_Settings['ai_instruction_title'];
1097
+
} else {
1098
+
$ai_instruction_title = '';
1099
+
}
1100
+
if (isset($aiomatic_Spinner_Settings['no_add_excerpt'])) {
1101
+
$no_add_excerpt = $aiomatic_Spinner_Settings['no_add_excerpt'];
1102
+
} else {
1103
+
$no_add_excerpt = '';
1104
+
}
1105
+
if (isset($aiomatic_Spinner_Settings['no_add_slug'])) {
1106
+
$no_add_slug = $aiomatic_Spinner_Settings['no_add_slug'];
1107
+
} else {
1108
+
$no_add_slug = '';
1109
+
}
1110
+
if (isset($aiomatic_Spinner_Settings['no_add_content'])) {
1111
+
$no_add_content = $aiomatic_Spinner_Settings['no_add_content'];
1112
+
} else {
1113
+
$no_add_content = '';
1114
+
}
1115
+
if (isset($aiomatic_Spinner_Settings['no_add_title'])) {
1116
+
$no_add_title = $aiomatic_Spinner_Settings['no_add_title'];
1117
+
} else {
1118
+
$no_add_title = '';
1119
+
}
1120
+
if (isset($aiomatic_Spinner_Settings['ai_instruction_slug'])) {
1121
+
$ai_instruction_slug = $aiomatic_Spinner_Settings['ai_instruction_slug'];
1122
+
} else {
1123
+
$ai_instruction_slug = '';
1124
+
}
1125
+
if (isset($aiomatic_Spinner_Settings['no_slug'])) {
1126
+
$no_slug = $aiomatic_Spinner_Settings['no_slug'];
1127
+
} else {
1128
+
$no_slug = '';
1129
+
}
1130
+
if (isset($aiomatic_Spinner_Settings['edit_temperature'])) {
1131
+
$edit_temperature = $aiomatic_Spinner_Settings['edit_temperature'];
1132
+
} else {
1133
+
$edit_temperature = '';
1134
+
}
1135
+
if (isset($aiomatic_Spinner_Settings['edit_top_p'])) {
1136
+
$edit_top_p = $aiomatic_Spinner_Settings['edit_top_p'];
1137
+
} else {
1138
+
$edit_top_p = '';
1139
+
}
1140
+
if (isset($aiomatic_Spinner_Settings['edit_presence_penalty'])) {
1141
+
$edit_presence_penalty = $aiomatic_Spinner_Settings['edit_presence_penalty'];
1142
+
} else {
1143
+
$edit_presence_penalty = '';
1144
+
}
1145
+
if (isset($aiomatic_Spinner_Settings['edit_frequency_penalty'])) {
1146
+
$edit_frequency_penalty = $aiomatic_Spinner_Settings['edit_frequency_penalty'];
1147
+
} else {
1148
+
$edit_frequency_penalty = '';
1149
+
}
1150
+
if (isset($aiomatic_Spinner_Settings['max_char_chunks'])) {
1151
+
$max_char_chunks = $aiomatic_Spinner_Settings['max_char_chunks'];
1152
+
} else {
1153
+
$max_char_chunks = '';
1154
+
}
1155
+
if (isset($aiomatic_Spinner_Settings['max_char'])) {
1156
+
$max_char = $aiomatic_Spinner_Settings['max_char'];
1157
+
} else {
1158
+
$max_char = '';
1159
+
}
1160
+
if (isset($aiomatic_Spinner_Settings['no_title'])) {
1161
+
$no_title = $aiomatic_Spinner_Settings['no_title'];
1162
+
} else {
1163
+
$no_title = '';
1164
+
}
1165
+
if (isset($aiomatic_Spinner_Settings['ai_vision'])) {
1166
+
$ai_vision = $aiomatic_Spinner_Settings['ai_vision'];
1167
+
} else {
1168
+
$ai_vision = '';
1169
+
}
1170
+
if (isset($aiomatic_Spinner_Settings['ai_vision_add'])) {
1171
+
$ai_vision_add = $aiomatic_Spinner_Settings['ai_vision_add'];
1172
+
} else {
1173
+
$ai_vision_add = '';
1174
+
}
1175
+
if (isset($aiomatic_Spinner_Settings['preppend_add'])) {
1176
+
$preppend_add = $aiomatic_Spinner_Settings['preppend_add'];
1177
+
} else {
1178
+
$preppend_add = '';
1179
+
}
1180
+
if (isset($aiomatic_Spinner_Settings['append_add'])) {
1181
+
$append_add = $aiomatic_Spinner_Settings['append_add'];
1182
+
} else {
1183
+
$append_add = '';
1184
+
}
1185
+
if (isset($aiomatic_Spinner_Settings['rewrite_url'])) {
1186
+
$rewrite_url = $aiomatic_Spinner_Settings['rewrite_url'];
1187
+
} else {
1188
+
$rewrite_url = '';
1189
+
}
1190
+
if (isset($aiomatic_Spinner_Settings['edit_model'])) {
1191
+
$edit_model = $aiomatic_Spinner_Settings['edit_model'];
1192
+
} else {
1193
+
$edit_model = '';
1194
+
}
1195
+
if (isset($aiomatic_Spinner_Settings['edit_assistant_id'])) {
1196
+
$edit_assistant_id = $aiomatic_Spinner_Settings['edit_assistant_id'];
1197
+
} else {
1198
+
$edit_assistant_id = '';
1199
+
}
1200
+
if (isset($aiomatic_Spinner_Settings['no_html_check'])) {
1201
+
$no_html_check = $aiomatic_Spinner_Settings['no_html_check'];
1202
+
} else {
1203
+
$no_html_check = '';
1204
+
}
1205
+
if (isset($aiomatic_Spinner_Settings['protect_html'])) {
1206
+
$protect_html = $aiomatic_Spinner_Settings['protect_html'];
1207
+
} else {
1208
+
$protect_html = '';
1209
+
}
1210
+
if (isset($aiomatic_Spinner_Settings['ai_featured_image_edit_content'])) {
1211
+
$ai_featured_image_edit_content = $aiomatic_Spinner_Settings['ai_featured_image_edit_content'];
1212
+
} else {
1213
+
$ai_featured_image_edit_content = 'disabled';
1214
+
}
1215
+
if (isset($aiomatic_Spinner_Settings['ai_featured_image_engine_content'])) {
1216
+
$ai_featured_image_engine_content = $aiomatic_Spinner_Settings['ai_featured_image_engine_content'];
1217
+
} else {
1218
+
$ai_featured_image_engine_content = '';
1219
+
}
1220
+
if (isset($aiomatic_Spinner_Settings['ai_image_command_edit_content'])) {
1221
+
$ai_image_command_edit_content = $aiomatic_Spinner_Settings['ai_image_command_edit_content'];
1222
+
} else {
1223
+
$ai_image_command_edit_content = 'Slightly change the image, making it unique.';
1224
+
}
1225
+
if (isset($aiomatic_Spinner_Settings['no_content'])) {
1226
+
$no_content = $aiomatic_Spinner_Settings['no_content'];
1227
+
} else {
1228
+
$no_content = '';
1229
+
}
1230
+
if (isset($aiomatic_Spinner_Settings['enable_gutenberg'])) {
1231
+
$enable_gutenberg = $aiomatic_Spinner_Settings['enable_gutenberg'];
1232
+
} else {
1233
+
$enable_gutenberg = '1';
1234
+
}
1235
+
if (isset($aiomatic_Spinner_Settings['enable_elementor'])) {
1236
+
$enable_elementor = $aiomatic_Spinner_Settings['enable_elementor'];
1237
+
} else {
1238
+
$enable_elementor = '1';
1239
+
}
1240
+
if (isset($aiomatic_Spinner_Settings['no_excerpt'])) {
1241
+
$no_excerpt = $aiomatic_Spinner_Settings['no_excerpt'];
1242
+
} else {
1243
+
$no_excerpt = '';
1244
+
}
1245
+
if (isset($aiomatic_Spinner_Settings['max_slug_len'])) {
1246
+
$max_slug_len = $aiomatic_Spinner_Settings['max_slug_len'];
1247
+
} else {
1248
+
$max_slug_len = '';
1249
+
}
1250
+
if (isset($aiomatic_Spinner_Settings['ai_instruction_excerpt'])) {
1251
+
$ai_instruction_excerpt = $aiomatic_Spinner_Settings['ai_instruction_excerpt'];
1252
+
} else {
1253
+
$ai_instruction_excerpt = '';
1254
+
}
1255
+
if (isset($aiomatic_Spinner_Settings['tag_name'])) {
1256
+
$tag_name = $aiomatic_Spinner_Settings['tag_name'];
1257
+
} else {
1258
+
$tag_name = '';
1259
+
}
1260
+
if (isset($aiomatic_Spinner_Settings['post_id'])) {
1261
+
$post_id = $aiomatic_Spinner_Settings['post_id'];
1262
+
} else {
1263
+
$post_id = '';
1264
+
}
1265
+
if (isset($aiomatic_Spinner_Settings['post_name'])) {
1266
+
$post_name = $aiomatic_Spinner_Settings['post_name'];
1267
+
} else {
1268
+
$post_name = '';
1269
+
}
1270
+
if (isset($aiomatic_Spinner_Settings['page_id'])) {
1271
+
$page_id = $aiomatic_Spinner_Settings['page_id'];
1272
+
} else {
1273
+
$page_id = '';
1274
+
}
1275
+
if (isset($aiomatic_Spinner_Settings['post_parent'])) {
1276
+
$post_parent = $aiomatic_Spinner_Settings['post_parent'];
1277
+
} else {
1278
+
$post_parent = '';
1279
+
}
1280
+
if (isset($aiomatic_Spinner_Settings['post_status'])) {
1281
+
$post_status = $aiomatic_Spinner_Settings['post_status'];
1282
+
} else {
1283
+
$post_status = '';
1284
+
}
1285
+
if (isset($aiomatic_Spinner_Settings['type_post'])) {
1286
+
$type_post = $aiomatic_Spinner_Settings['type_post'];
1287
+
} else {
1288
+
$type_post = '';
1289
+
}
1290
+
if (isset($aiomatic_Spinner_Settings['pagename'])) {
1291
+
$pagename = $aiomatic_Spinner_Settings['pagename'];
1292
+
} else {
1293
+
$pagename = '';
1294
+
}
1295
+
if (isset($aiomatic_Spinner_Settings['search_offset'])) {
1296
+
$search_offset = $aiomatic_Spinner_Settings['search_offset'];
1297
+
} else {
1298
+
$search_offset = '';
1299
+
}
1300
+
if (isset($aiomatic_Spinner_Settings['search_query'])) {
1301
+
$search_query = $aiomatic_Spinner_Settings['search_query'];
1302
+
} else {
1303
+
$search_query = '';
1304
+
}
1305
+
if (isset($aiomatic_Spinner_Settings['meta_name'])) {
1306
+
$meta_name = $aiomatic_Spinner_Settings['meta_name'];
1307
+
} else {
1308
+
$meta_name = '';
1309
+
}
1310
+
if (isset($aiomatic_Spinner_Settings['meta_value'])) {
1311
+
$meta_value = $aiomatic_Spinner_Settings['meta_value'];
1312
+
} else {
1313
+
$meta_value = '';
1314
+
}
1315
+
if (isset($aiomatic_Spinner_Settings['year'])) {
1316
+
$year = $aiomatic_Spinner_Settings['year'];
1317
+
} else {
1318
+
$year = '';
1319
+
}
1320
+
if (isset($aiomatic_Spinner_Settings['month'])) {
1321
+
$month = $aiomatic_Spinner_Settings['month'];
1322
+
} else {
1323
+
$month = '';
1324
+
}
1325
+
if (isset($aiomatic_Spinner_Settings['day'])) {
1326
+
$day = $aiomatic_Spinner_Settings['day'];
1327
+
} else {
1328
+
$day = '';
1329
+
}
1330
+
if (isset($aiomatic_Spinner_Settings['order'])) {
1331
+
$order = $aiomatic_Spinner_Settings['order'];
1332
+
} else {
1333
+
$order = '';
1334
+
}
1335
+
if (isset($aiomatic_Spinner_Settings['orderby'])) {
1336
+
$orderby = $aiomatic_Spinner_Settings['orderby'];
1337
+
} else {
1338
+
$orderby = '';
1339
+
}
1340
+
if (isset($aiomatic_Spinner_Settings['featured_image'])) {
1341
+
$featured_image = $aiomatic_Spinner_Settings['featured_image'];
1342
+
} else {
1343
+
$featured_image = '';
1344
+
}
1345
+
if (isset($aiomatic_Spinner_Settings['max_posts'])) {
1346
+
$max_posts = $aiomatic_Spinner_Settings['max_posts'];
1347
+
} else {
1348
+
$max_posts = '';
1349
+
}
1350
+
if (isset($aiomatic_Spinner_Settings['category_name'])) {
1351
+
$category_name = $aiomatic_Spinner_Settings['category_name'];
1352
+
} else {
1353
+
$category_name = '';
1354
+
}
1355
+
if (isset($aiomatic_Spinner_Settings['author_id'])) {
1356
+
$author_id = $aiomatic_Spinner_Settings['author_id'];
1357
+
} else {
1358
+
$author_id = '';
1359
+
}
1360
+
if (isset($aiomatic_Spinner_Settings['author_name'])) {
1361
+
$author_name = $aiomatic_Spinner_Settings['author_name'];
1362
+
} else {
1363
+
$author_name = '';
1364
+
}
1365
+
if (isset($aiomatic_Spinner_Settings['max_nr'])) {
1366
+
$max_nr = $aiomatic_Spinner_Settings['max_nr'];
1367
+
} else {
1368
+
$max_nr = '';
1369
+
}
1370
+
if (isset($aiomatic_Spinner_Settings['delay_request'])) {
1371
+
$delay_request = $aiomatic_Spinner_Settings['delay_request'];
1372
+
} else {
1373
+
$delay_request = '';
1374
+
}
1375
+
if (isset($aiomatic_Spinner_Settings['secret_word'])) {
1376
+
$secret_word = $aiomatic_Spinner_Settings['secret_word'];
1377
+
} else {
1378
+
$secret_word = '';
1379
+
}
1380
+
if (isset($aiomatic_Spinner_Settings['use_template_manual'])) {
1381
+
$use_template_manual = $aiomatic_Spinner_Settings['use_template_manual'];
1382
+
} else {
1383
+
$use_template_manual = '';
1384
+
}
1385
+
if (isset($aiomatic_Spinner_Settings['auto_edit'])) {
1386
+
$auto_edit = $aiomatic_Spinner_Settings['auto_edit'];
1387
+
} else {
1388
+
$auto_edit = 'disabled';
1389
+
}
1390
+
if (isset($aiomatic_Spinner_Settings['auto_run_interval'])) {
1391
+
$auto_run_interval = $aiomatic_Spinner_Settings['auto_run_interval'];
1392
+
} else {
1393
+
$auto_run_interval = 'No';
1394
+
}
1395
+
if (isset($aiomatic_Spinner_Settings['no_twice'])) {
1396
+
$no_twice = $aiomatic_Spinner_Settings['no_twice'];
1397
+
} else {
1398
+
$no_twice = '';
1399
+
}
1400
+
if (isset($aiomatic_Spinner_Settings['custom_name'])) {
1401
+
$custom_name = $aiomatic_Spinner_Settings['custom_name'];
1402
+
} else {
1403
+
$custom_name = 'aiomatic_published';
1404
+
}
1405
+
if (isset($_GET['settings-updated'])) {
1406
+
?>
1407
+
<div id="message" class="updated">
1408
+
<p class="cr_saved_notif"><strong> <?php echo esc_html__('Settings saved.', 'aiomatic-automatic-ai-content-writer');?></strong></p>
1409
+
</div>
1410
+
<?php
1411
+
$get = get_option('coderevolution_settings_changed', 0);
1412
+
if($get == 1)
1413
+
{
1414
+
delete_option('coderevolution_settings_changed');
1415
+
?>
1416
+
<div id="message" class="updated">
1417
+
<p class="cr_failed_notif"><strong> <?php echo esc_html__('Plugin registration failed!', 'aiomatic-automatic-ai-content-writer');?></strong></p>
1418
+
</div>
1419
+
<?php
1420
+
}
1421
+
elseif($get == 2)
1422
+
{
1423
+
delete_option('coderevolution_settings_changed');
1424
+
?>
1425
+
<div id="message" class="updated">
1426
+
<p class="cr_saved_notif"><strong> <?php echo esc_html__('Plugin registration successful!', 'aiomatic-automatic-ai-content-writer');?></strong></p>
1427
+
</div>
1428
+
<?php
1429
+
}
1430
+
elseif($get != 0)
1431
+
{
1432
+
delete_option('coderevolution_settings_changed');
1433
+
?>
1434
+
<div id="message" class="updated">
1435
+
<p class="cr_failed_notif"><strong> <?php echo esc_html($get);?></strong></p>
1436
+
</div>
1437
+
<?php
1438
+
}
1439
+
}
1440
+
?>
1441
+
<div class="aiomatic_class">
1442
+
<div id="tab-0" class="tab-content">
1443
+
<br/>
1444
+
<h2><?php echo esc_html__('Welcome to Automatic AI Content Editing', 'aiomatic-automatic-ai-content-writer');?></h2>
1445
+
<p>
1446
+
<?php echo esc_html__('Welcome to this comprehensive guide on how to use the automatic post editing feature of the Aimogen plugin. This powerful tool leverages artificial intelligence to automatically edit and enhance your WordPress posts, saving you time and effort while ensuring your content is optimized and engaging. Whether you\'re publishing new posts, drafting content, or revising existing posts, the Aimogen plugin can be configured to automatically apply a range of edits. These include rewriting content, assigning featured images, appending or prepending AI-generated content, adding internal links, inserting related comments, and generating SEO meta descriptions.', 'aiomatic-automatic-ai-content-writer');?>
1447
+
</p>
1448
+
<p>
1449
+
<?php echo esc_html__('In this tutorial, we will walk you through each step of setting up and using this feature, from installation and activation of the plugin, to configuring automatic and manual editing settings, to defining your editing templates and options, and finally, to adjusting advanced AI API settings for the editing process. By the end of this guide, you\'ll be able to harness the power of AI to streamline your content creation process and enhance the quality of your posts. Let\'s get started!', 'aiomatic-automatic-ai-content-writer');?>
1450
+
</p>
1451
+
<h2><?php echo esc_html__('"Automatic Content Editing Settings" Tab', 'aiomatic-automatic-ai-content-writer');?></h2>
1452
+
<?php echo esc_html__('Here, you can set up the conditions for automatic post editing:', 'aiomatic-automatic-ai-content-writer');?>
1453
+
1454
+
<ul><li><?php echo esc_html__('When to edit posts: Choose whether you want posts to be edited when they are published, drafted, or set as pending.', 'aiomatic-automatic-ai-content-writer');?>
1455
+
</li><li>
1456
+
<?php echo esc_html__('What post types to edit: Select the types of posts you want to be edited. This could be blog posts, pages, or any custom post types you have on your site.', 'aiomatic-automatic-ai-content-writer');?>
1457
+
</li><li>
1458
+
<?php echo esc_html__('How long to wait before editing new posts: Set a delay for the editing process. This could be useful if you want to review the posts yourself before they are automatically edited.', 'aiomatic-automatic-ai-content-writer');?>
1459
+
</li><li>
1460
+
<?php echo esc_html__('What categories or tags not to edit: If there are certain categories or tags you don\'t want to be edited, you can specify them here.', 'aiomatic-automatic-ai-content-writer');?>
1461
+
</li></ul>
1462
+
<h2><?php echo esc_html__('"Existing Content Editing" Tab', 'aiomatic-automatic-ai-content-writer');?></h2>
1463
+
1464
+
<?php echo esc_html__('In the \'Existing Content Editing\' tab, you can set up the conditions for manual post editing. This is useful for editing existing posts. You can set detailed filters on what posts/pages/custom post types to automatically edit.', 'aiomatic-automatic-ai-content-writer');?>
1465
+
1466
+
<h2><?php echo esc_html__('"Editing Template Manager" Tab', 'aiomatic-automatic-ai-content-writer');?></h2>
1467
+
1468
+
<?php echo esc_html__('In the \'Editing Template Manager\' tab, you can set how to edit posts. Here are the options:', 'aiomatic-automatic-ai-content-writer');?>
1469
+
<ul><li>
1470
+
<?php echo esc_html__('Enable AI Content Rewriting: This will enable the editing and rewriting of the content.', 'aiomatic-automatic-ai-content-writer');?>
1471
+
</li><li>
1472
+
<?php echo esc_html__('Enable Featured Image Creation: This will automatically assign a featured image to the published content.', 'aiomatic-automatic-ai-content-writer');?>
1473
+
</li><li>
1474
+
<?php echo esc_html__('Enable Featured Image Editing: This will automatically edit the current featured image of the post, based on a predefined prompt.', 'aiomatic-automatic-ai-content-writer');?>
1475
+
</li><li>
1476
+
<?php echo esc_html__('Add AI Generated Content: This will automatically append or prepend AI generated content to posts.', 'aiomatic-automatic-ai-content-writer');?>
1477
+
</li><li>
1478
+
<?php echo esc_html__('Automatically Add Internal Links: This will automatically add internal links to posts.', 'aiomatic-automatic-ai-content-writer');?>
1479
+
</li><li>
1480
+
<?php echo esc_html__('Automatically Add Post Comments/Product Reviews: This will add related comments to posts or reviews to products.', 'aiomatic-automatic-ai-content-writer');?>
1481
+
</li><li>
1482
+
<?php echo esc_html__('Automatically Add AI Generated SEO Description To Posts: This will automatically add SEO meta description for posts.', 'aiomatic-automatic-ai-content-writer');?>
1483
+
</li><li>
1484
+
<?php echo esc_html__('You can also change the status of the posts after they were edited, using the \'Change Post Status After Editing\' settings field.', 'aiomatic-automatic-ai-content-writer');?>
1485
+
</li></ul>
1486
+
1487
+
<h2><?php echo esc_html__('General Tips', 'aiomatic-automatic-ai-content-writer');?></h2>
1488
+
<?php echo esc_html__('Be sure to always save settings you change.', 'aiomatic-automatic-ai-content-writer');?>
1489
+
1490
+
<?php echo esc_html__('After you\'ve configured all the settings to your liking, make sure to click the "Save Changes" button at the bottom of the page.', 'aiomatic-automatic-ai-content-writer');?>
1491
+
1492
+
<?php echo esc_html__('And that\'s it! Your Aimogen plugin is now set up to automatically edit your posts using AI. Remember, you can always go back and change these settings if you find that the automatic editing isn\'t working quite how you want it to.', 'aiomatic-automatic-ai-content-writer');?>
1493
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
1494
+
?>
1495
+
<h2><?php echo esc_html__("AI Content Editor Tutorial Video", 'aiomatic-automatic-ai-content-writer');?></h2>
1496
+
<p class="cr_center"><div class="embedtool"><iframe src="https://www.youtube.com/embed/WVccxtXQTcc" frameborder="0" allowfullscreen></iframe></div></p>
1497
+
<h2><?php echo esc_html__("AI Content Editor Templates Tutorial Video", 'aiomatic-automatic-ai-content-writer');?></h2>
1498
+
<p class="cr_center"><div class="embedtool"><iframe src="https://www.youtube.com/embed/pZ9EtV_t3gs" frameborder="0" allowfullscreen></iframe></div></p>
1499
+
<?php
1500
+
}
1501
+
?>
1502
+
</div>
1503
+
<div id="tab-1" class="tab-content">
1504
+
<table class="widefat">
1505
+
<tr><td colspan="2">
1506
+
<h2><?php echo esc_html__("AI Based Content Duplication Checking:", 'aiomatic-automatic-ai-content-writer');?></h2>
1507
+
</td></tr><tr><td>
1508
+
<div>
1509
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1510
+
<div class="bws_hidden_help_text cr_min_260px">
1511
+
<?php
1512
+
echo esc_html__("The plugin will check the content which is published on your site for duplication, using AI. Uses AI embeddings to analyze full content (not just titles), remove duplicates, and keep the most thorough articles. If a newly published post adds no value, delete it. If it does add more value than the previous post which was matched, replace the old post with the new one (delete the old post).", 'aiomatic-automatic-ai-content-writer');
1513
+
?>
1514
+
</div>
1515
+
</div>
1516
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Enable AI Content Duplication Checking:", 'aiomatic-automatic-ai-content-writer');?></b>
1517
+
<span class="new-feature-badge"><?php echo esc_html__("New", 'aiomatic-automatic-ai-content-writer'); ?></span>
1518
+
</div>
1519
+
</td><td>
1520
+
<div>
1521
+
<select id="ai_duplication" name="aiomatic_Spinner_Settings[ai_duplication]" onchange="mainChangedx();" >
1522
+
<option value="enabled"<?php
1523
+
if ($ai_duplication == "enabled") {
1524
+
echo " selected";
1525
+
}
1526
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
1527
+
<option value="disabled"<?php
1528
+
if ($ai_duplication == "disabled") {
1529
+
echo " selected";
1530
+
}
1531
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
1532
+
</select>
1533
+
</div>
1534
+
</td></tr><tr class="hideDup"><td>
1535
+
<div>
1536
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1537
+
<div class="bws_hidden_help_text cr_min_260px">
1538
+
<?php
1539
+
echo esc_html__("Select how to handle duplicated posts.", 'aiomatic-automatic-ai-content-writer');
1540
+
?>
1541
+
</div>
1542
+
</div>
1543
+
<b><?php echo esc_html__("How To Handle Duplicates:", 'aiomatic-automatic-ai-content-writer');?></b>
1544
+
</div>
1545
+
</td><td>
1546
+
<div>
1547
+
<select id="duplicate_handle" name="aiomatic_Spinner_Settings[duplicate_handle]">
1548
+
<option value="keep_relevant"<?php
1549
+
if ($duplicate_handle == "keep_relevant") {
1550
+
echo " selected";
1551
+
}
1552
+
?>><?php echo esc_html__("Keep The More Relevant Article", 'aiomatic-automatic-ai-content-writer');?></option>
1553
+
<option value="keep_new"<?php
1554
+
if ($duplicate_handle == "keep_new") {
1555
+
echo " selected";
1556
+
}
1557
+
?>><?php echo esc_html__("Keep New", 'aiomatic-automatic-ai-content-writer');?></option>
1558
+
<option value="keep_old"<?php
1559
+
if ($duplicate_handle == "keep_old") {
1560
+
echo " selected";
1561
+
}
1562
+
?>><?php echo esc_html__("Keep Old", 'aiomatic-automatic-ai-content-writer');?></option>
1563
+
</select>
1564
+
</div></td></tr><tr class="hideDup"><td>
1565
+
<div>
1566
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1567
+
<div class="bws_hidden_help_text cr_min_260px">
1568
+
<?php
1569
+
echo esc_html__("Select the action which will be done for the duplicated posts.", 'aiomatic-automatic-ai-content-writer');
1570
+
?>
1571
+
</div>
1572
+
</div>
1573
+
<b><?php echo esc_html__("Duplicate Posts Action:", 'aiomatic-automatic-ai-content-writer');?></b>
1574
+
</div>
1575
+
</td><td>
1576
+
<div>
1577
+
<select id="duplicate_action" name="aiomatic_Spinner_Settings[duplicate_action]">
1578
+
<option value="delete"<?php
1579
+
if ($duplicate_action == "delete") {
1580
+
echo " selected";
1581
+
}
1582
+
?>><?php echo esc_html__("Delete", 'aiomatic-automatic-ai-content-writer');?></option>
1583
+
<option value="thrash"<?php
1584
+
if ($duplicate_action == "thrash") {
1585
+
echo " selected";
1586
+
}
1587
+
?>><?php echo esc_html__("Thrash", 'aiomatic-automatic-ai-content-writer');?></option>
1588
+
<option value="nothing"<?php
1589
+
if ($duplicate_action == "nothing") {
1590
+
echo " selected";
1591
+
}
1592
+
?>><?php echo esc_html__("Only Log (No Action)", 'aiomatic-automatic-ai-content-writer');?></option>
1593
+
</select>
1594
+
</div></td></tr>
1595
+
<tr class="hideDup">
1596
+
<td class="cr_min_width_200">
1597
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1598
+
<div class="bws_hidden_help_text cr_min_260px">
1599
+
<?php
1600
+
echo esc_html__("Do you want to directly flag as duplicates also posts with matching titles? No AI based checking will be used in this case.", 'aiomatic-automatic-ai-content-writer');
1601
+
?>
1602
+
</div>
1603
+
</div>
1604
+
<b><?php echo esc_html__("Directly Flag As Duplicates Posts Which Have The Exact Same Title:", 'aiomatic-automatic-ai-content-writer');?></b>
1605
+
</td>
1606
+
<td>
1607
+
<input type="checkbox" id="dup_titles" name="aiomatic_Spinner_Settings[dup_titles]"<?php
1608
+
if ($dup_titles == 'on')
1609
+
echo ' checked ';
1610
+
?>>
1611
+
</td>
1612
+
</tr>
1613
+
<tr class="hideDup">
1614
+
<td class="cr_min_width_200">
1615
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1616
+
<div class="bws_hidden_help_text cr_min_260px">
1617
+
<?php
1618
+
echo esc_html__("Do you want to enhance duplicated articles using AI?", 'aiomatic-automatic-ai-content-writer');
1619
+
?>
1620
+
</div>
1621
+
</div>
1622
+
<b><?php echo esc_html__("Enhance Articles Content Using Data From The Duplicated Articles:", 'aiomatic-automatic-ai-content-writer');?></b>
1623
+
</td>
1624
+
<td>
1625
+
<input type="checkbox" id="enhance_articles" name="aiomatic_Spinner_Settings[enhance_articles]"<?php
1626
+
if ($enhance_articles == 'on')
1627
+
echo ' checked ';
1628
+
?> onclick="enhanceChanged();">
1629
+
</td>
1630
+
</tr><tr class="hideDup hideEnhance"><td>
1631
+
<div>
1632
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1633
+
<div class="bws_hidden_help_text cr_min_260px">
1634
+
<?php
1635
+
echo esc_html__("Instruction for the AI editor, to edit the duplicated post content. You can use the following shortcodes: %%post_title_to_be_kept%%, %%post_content_to_be_kept%%, %%post_plain_text_content_to_be_kept%%, %%post_source_to_be_kept%%, %%post_title_to_be_removed%%, %%post_content_to_be_removed%%, %%post_plain_text_content_to_be_removed%%, %%post_source_to_be_removed%%", 'aiomatic-automatic-ai-content-writer');
1636
+
?>
1637
+
</div>
1638
+
</div>
1639
+
<b><?php echo esc_html__("Enhance Duplicated Post Content Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
1640
+
</div>
1641
+
</td><td>
1642
+
<div>
1643
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_instruction_enhance]" placeholder="Please insert duplicated post content enhancer prompt"><?php
1644
+
echo esc_textarea($ai_instruction_enhance);
1645
+
?></textarea>
1646
+
</div>
1647
+
</td></tr><tr class="hideDup hideEnhance">
1648
+
<td class="cr_min_width_200">
1649
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1650
+
<div class="bws_hidden_help_text cr_min_260px">
1651
+
<?php
1652
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
1653
+
?>
1654
+
</div>
1655
+
</div>
1656
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
1657
+
</td>
1658
+
<td><select id="enhance_assistant_id" name="aiomatic_Spinner_Settings[enhance_assistant_id]" class="cr_width_full" onchange="assistantSelected('enhance_assistant_id', 'disableEnhance');">
1659
+
<?php
1660
+
if($all_assistants === false)
1661
+
{
1662
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
1663
+
}
1664
+
else
1665
+
{
1666
+
if(count($all_assistants) == 0)
1667
+
{
1668
+
echo '<option val="" 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>';
1669
+
}
1670
+
else
1671
+
{
1672
+
echo '<option value=""';
1673
+
if($enhance_assistant_id == '')
1674
+
{
1675
+
echo ' selected';
1676
+
}
1677
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
1678
+
foreach($all_assistants as $myassistant)
1679
+
{
1680
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
1681
+
if($enhance_assistant_id == $myassistant->ID)
1682
+
{
1683
+
echo ' selected';
1684
+
}
1685
+
echo '>' . esc_html($myassistant->post_title);
1686
+
echo '</option>';
1687
+
}
1688
+
}
1689
+
}
1690
+
?>
1691
+
</select>
1692
+
</td>
1693
+
</tr>
1694
+
<tr class="hideDup hideEnhance">
1695
+
<td class="cr_min_width_200">
1696
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1697
+
<div class="bws_hidden_help_text cr_min_260px">
1698
+
<?php
1699
+
echo esc_html__("Select the AI model to use for prompt enhancement.", 'aiomatic-automatic-ai-content-writer');
1700
+
?>
1701
+
</div>
1702
+
</div>
1703
+
<b><?php echo esc_html__("AI Model To Use For Prompt Enhancement:", 'aiomatic-automatic-ai-content-writer');?></b>
1704
+
</td>
1705
+
<td>
1706
+
<select id="enhance_model" name="aiomatic_Spinner_Settings[enhance_model]" <?php if($enhance_assistant_id != ''){echo ' disabled';}?> class="disableEnhance">
1707
+
<?php
1708
+
foreach($all_edit_models as $modelx)
1709
+
{
1710
+
echo '<option value="' . esc_html($modelx) .'"';
1711
+
if ($enhance_model == $modelx)
1712
+
{
1713
+
echo " selected";
1714
+
}
1715
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1716
+
}
1717
+
?>
1718
+
</select>
1719
+
</td>
1720
+
</tr><tr class="hideDup"><td colspan="2">
1721
+
<h3><?php echo esc_html__("Advanced Duplication Exclusion/Filter Settings:", 'aiomatic-automatic-ai-content-writer');?></h3>
1722
+
</td></tr>
1723
+
1724
+
<tr class="hideDup"><td>
1725
+
<div>
1726
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1727
+
<div class="bws_hidden_help_text cr_min_260px">
1728
+
<?php echo esc_html__("Exclude duplicate checking by date range. For example, only check posts published after 2023-01-01 and before 2024-01-01.", 'aiomatic-automatic-ai-content-writer'); ?>
1729
+
</div>
1730
+
</div>
1731
+
<b><?php echo esc_html__("Date Range Filters:", 'aiomatic-automatic-ai-content-writer');?></b>
1732
+
</div>
1733
+
</td><td>
1734
+
<label><?php echo esc_html__("After:", 'aiomatic-automatic-ai-content-writer');?></label>
1735
+
<input type="date" name="aiomatic_Spinner_Settings[duplication_date_after]" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_date_after'] ?? ''); ?>">
1736
+
<label><?php echo esc_html__("Before:", 'aiomatic-automatic-ai-content-writer');?></label>
1737
+
<input type="date" name="aiomatic_Spinner_Settings[duplication_date_before]" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_date_before'] ?? ''); ?>">
1738
+
</td></tr>
1739
+
1740
+
<tr class="hideDup"><td>
1741
+
<div>
1742
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1743
+
<div class="bws_hidden_help_text cr_min_260px">
1744
+
<?php echo esc_html__("Exclude posts by author IDs (comma separated). Example: 1,5,9", 'aiomatic-automatic-ai-content-writer'); ?>
1745
+
</div>
1746
+
</div>
1747
+
<b><?php echo esc_html__("Exclude Authors:", 'aiomatic-automatic-ai-content-writer');?></b>
1748
+
</div>
1749
+
</td><td>
1750
+
<input type="text" name="aiomatic_Spinner_Settings[duplication_author_exclude]" placeholder="e.g. 1,5,9" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_author_exclude'] ?? ''); ?>">
1751
+
</td></tr>
1752
+
1753
+
<tr class="hideDup"><td>
1754
+
<div>
1755
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1756
+
<div class="bws_hidden_help_text cr_min_260px">
1757
+
<?php echo esc_html__("Only include posts from specific authors (comma separated IDs). Leave empty to include all.", 'aiomatic-automatic-ai-content-writer'); ?>
1758
+
</div>
1759
+
</div>
1760
+
<b><?php echo esc_html__("Include Only Authors:", 'aiomatic-automatic-ai-content-writer');?></b>
1761
+
</div>
1762
+
</td><td>
1763
+
<input type="text" name="aiomatic_Spinner_Settings[duplication_author_include]" placeholder="e.g. 2,7" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_author_include'] ?? ''); ?>">
1764
+
</td></tr>
1765
+
1766
+
<tr class="hideDup"><td>
1767
+
<div>
1768
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1769
+
<div class="bws_hidden_help_text cr_min_260px">
1770
+
<?php echo esc_html__("Limit checking only to posts in specific categories (comma separated category IDs).", 'aiomatic-automatic-ai-content-writer'); ?>
1771
+
</div>
1772
+
</div>
1773
+
<b><?php echo esc_html__("Include Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
1774
+
</div>
1775
+
</td><td>
1776
+
<input type="text" name="aiomatic_Spinner_Settings[duplication_category_include]" placeholder="e.g. 3,8" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_category_include'] ?? ''); ?>">
1777
+
</td></tr>
1778
+
1779
+
<tr class="hideDup"><td>
1780
+
<div>
1781
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1782
+
<div class="bws_hidden_help_text cr_min_260px">
1783
+
<?php echo esc_html__("Exclude specific categories from duplication checking (comma separated IDs).", 'aiomatic-automatic-ai-content-writer'); ?>
1784
+
</div>
1785
+
</div>
1786
+
<b><?php echo esc_html__("Exclude Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
1787
+
</div>
1788
+
</td><td>
1789
+
<input type="text" name="aiomatic_Spinner_Settings[duplication_category_exclude]" placeholder="e.g. 10,12" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_category_exclude'] ?? ''); ?>">
1790
+
</td></tr>
1791
+
1792
+
<tr class="hideDup"><td>
1793
+
<div>
1794
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1795
+
<div class="bws_hidden_help_text cr_min_260px">
1796
+
<?php echo esc_html__("Include only specific tags (comma separated tag IDs).", 'aiomatic-automatic-ai-content-writer'); ?>
1797
+
</div>
1798
+
</div>
1799
+
<b><?php echo esc_html__("Include Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
1800
+
</div>
1801
+
</td><td>
1802
+
<input type="text" name="aiomatic_Spinner_Settings[duplication_tag_include]" placeholder="e.g. 2,4" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_tag_include'] ?? ''); ?>">
1803
+
</td></tr>
1804
+
1805
+
<tr class="hideDup"><td>
1806
+
<div>
1807
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1808
+
<div class="bws_hidden_help_text cr_min_260px">
1809
+
<?php echo esc_html__("Exclude specific tags from duplication checking (comma separated tag IDs).", 'aiomatic-automatic-ai-content-writer'); ?>
1810
+
</div>
1811
+
</div>
1812
+
<b><?php echo esc_html__("Exclude Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
1813
+
</div>
1814
+
</td><td>
1815
+
<input type="text" name="aiomatic_Spinner_Settings[duplication_tag_exclude]" placeholder="e.g. 6,11" value="<?php echo esc_attr($aiomatic_Spinner_Settings['duplication_tag_exclude'] ?? ''); ?>">
1816
+
</td></tr>
1817
+
<tr class="hideDup"><td colspan="2">
1818
+
<h3><?php echo esc_html__("Advanced Duplication Checking Settings:", 'aiomatic-automatic-ai-content-writer');?></h3>
1819
+
1820
+
</td></tr>
1821
+
<tr class="hideDup"><td>
1822
+
<div>
1823
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1824
+
<div class="bws_hidden_help_text cr_min_260px">
1825
+
<?php
1826
+
echo esc_html__("Set the template the plugin will use for duplication checking. You can include the post content, post title and other post data. You can use the following shortcodes: %%post_title%%, %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%. Default is: %%post_content_plain_text%%", 'aiomatic-automatic-ai-content-writer');
1827
+
?>
1828
+
</div>
1829
+
</div>
1830
+
<b><?php echo esc_html__("Duplication Checking Template:", 'aiomatic-automatic-ai-content-writer');?></b>
1831
+
</div>
1832
+
</td><td>
1833
+
<div>
1834
+
<textarea rows="1" name="aiomatic_Spinner_Settings[duplication_template]" placeholder="%%post_content_plain_text%%"><?php
1835
+
echo esc_textarea($duplication_template);
1836
+
?></textarea>
1837
+
</div>
1838
+
</td></tr>
1839
+
<tr class="hideDup"><td>
1840
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1841
+
<div class="bws_hidden_help_text cr_min_260px">
1842
+
<?php
1843
+
echo esc_html__("Select the similarity threshold between 2 article contents for them to be classified as duplicates. You can set values between 1 and 0. 1 represents identical content, 0 repesents no matches in the content. Default is 0.9", 'aiomatic-automatic-ai-content-writer');
1844
+
?>
1845
+
</div>
1846
+
</div>
1847
+
<b><?php echo esc_html__("Matching Content Similarity Threashold:", 'aiomatic-automatic-ai-content-writer');?></b>
1848
+
1849
+
</td><td>
1850
+
<input type="number" min="0" step="0.01" max="1" id="similarity_threshold" name="aiomatic_Spinner_Settings[similarity_threshold]" class="cr_450" value="<?php echo esc_html($similarity_threshold);?>" placeholder="0.9">
1851
+
</td></tr>
1852
+
<tr class="hideDup"><td>
1853
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1854
+
<div class="bws_hidden_help_text cr_min_260px">
1855
+
<?php
1856
+
echo esc_html__("Select the maximum number of unindexed articles to process when running duplication checking. If you install the plugin on a site with a large number of articleas already published, if you publish a new article with this feature enabled, the plugin will index all existing articles and check them for similarity. This will happen only once per article. Here you can limit the number of articles the plugin should process at each published article. Default is 300", 'aiomatic-automatic-ai-content-writer');
1857
+
?>
1858
+
</div>
1859
+
</div>
1860
+
<b><?php echo esc_html__("Maximum Number Of Unindexed Articles To Process:", 'aiomatic-automatic-ai-content-writer');?></b>
1861
+
1862
+
</td><td>
1863
+
<input type="number" min="0" id="max_to_process_in_one_go" name="aiomatic_Spinner_Settings[max_to_process_in_one_go]" class="cr_450" value="<?php echo esc_html($max_to_process_in_one_go);?>" placeholder="No limit">
1864
+
</td></tr><tr class="hideDup"><td>
1865
+
<div>
1866
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1867
+
<div class="bws_hidden_help_text cr_min_260px">
1868
+
<?php
1869
+
echo esc_html__("Set the name of the custom field you want to use for content duplication checking indexing. The default is: _aiomatic_index", 'aiomatic-automatic-ai-content-writer');
1870
+
?>
1871
+
</div>
1872
+
</div>
1873
+
<b><?php echo esc_html__("Custom Field Name For Indexing:", 'aiomatic-automatic-ai-content-writer');?></b>
1874
+
</div>
1875
+
</td><td>
1876
+
<div>
1877
+
<textarea rows="1" name="aiomatic_Spinner_Settings[duplication_index]" placeholder="_aiomatic_index"><?php
1878
+
echo esc_textarea($duplication_index);
1879
+
?></textarea>
1880
+
</div>
1881
+
</td></tr>
1882
+
<tr><td colspan="2">
1883
+
<h2><?php echo esc_html__("AI Content Editing Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
1884
+
</td></tr><tr><td>
1885
+
<div>
1886
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1887
+
<div class="bws_hidden_help_text cr_min_260px">
1888
+
<?php
1889
+
echo esc_html__("The plugin will rewrite the textual content of the post, using AI.", 'aiomatic-automatic-ai-content-writer');
1890
+
?>
1891
+
</div>
1892
+
</div>
1893
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Enable AI Content Rewriting:", 'aiomatic-automatic-ai-content-writer');?></b>
1894
+
</div>
1895
+
</td><td>
1896
+
<div>
1897
+
<select id="ai_rewriter" name="aiomatic_Spinner_Settings[ai_rewriter]" onchange="mainChanged();" >
1898
+
<option value="enabled"<?php
1899
+
if ($ai_rewriter == "enabled") {
1900
+
echo " selected";
1901
+
}
1902
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
1903
+
<option value="disabled"<?php
1904
+
if ($ai_rewriter == "disabled") {
1905
+
echo " selected";
1906
+
}
1907
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
1908
+
</select>
1909
+
</div>
1910
+
</td></tr>
1911
+
<tr class="hideMain"><td colspan="2"><hr/></td></tr>
1912
+
<tr class="hideMain">
1913
+
<td class="cr_min_width_200">
1914
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1915
+
<div class="bws_hidden_help_text cr_min_260px">
1916
+
<?php
1917
+
echo esc_html__("Do you want to enable post title editing?", 'aiomatic-automatic-ai-content-writer');
1918
+
?>
1919
+
</div>
1920
+
</div>
1921
+
<b><?php echo esc_html__("Enable Post Title Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
1922
+
</td>
1923
+
<td>
1924
+
<select name="aiomatic_Spinner_Settings[no_title]" id="no_title" class="cr_width_full" onchange="titleChanged();">
1925
+
<option value="yes"<?php
1926
+
if ($no_title == 'yes')
1927
+
echo ' selected ';
1928
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
1929
+
<option value="on"<?php
1930
+
if ($no_title == 'on')
1931
+
echo ' selected ';
1932
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
1933
+
</select>
1934
+
</td>
1935
+
</tr><tr class="hideTitle">
1936
+
<td class="cr_min_width_200">
1937
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1938
+
<div class="bws_hidden_help_text cr_min_260px">
1939
+
<?php
1940
+
echo esc_html__("Do you want to rewrite also post URL with the modified title?", 'aiomatic-automatic-ai-content-writer');
1941
+
?>
1942
+
</div>
1943
+
</div>
1944
+
<b><?php echo esc_html__("Rewrite Also Post URL With The Modified Title:", 'aiomatic-automatic-ai-content-writer');?></b>
1945
+
</td>
1946
+
<td>
1947
+
<input type="checkbox" id="rewrite_url" name="aiomatic_Spinner_Settings[rewrite_url]"<?php
1948
+
if ($rewrite_url == 'on')
1949
+
echo ' checked ';
1950
+
?>>
1951
+
</td>
1952
+
</tr><tr class="hideTitle"><td>
1953
+
<div>
1954
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1955
+
<div class="bws_hidden_help_text cr_min_260px">
1956
+
<?php
1957
+
echo esc_html__("Instruction for the AI editor, to edit post title. Please specify your instruction without adding the %%post_title%% shortcode, as the content will be automatically added at processing time. Nested shortcodes from other plugins also supported here. You can also use the following 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%%. 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');
1958
+
?>
1959
+
</div>
1960
+
</div>
1961
+
<b><?php echo esc_html__("Instructions to Send For the AI Editor (Title Editing):", 'aiomatic-automatic-ai-content-writer');?></b>
1962
+
</div>
1963
+
</td><td>
1964
+
<div>
1965
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_instruction_title]" placeholder="Please insert a title editor instruction"><?php
1966
+
echo esc_textarea($ai_instruction_title);
1967
+
?></textarea>
1968
+
</div>
1969
+
</td></tr><tr class="hideTitle">
1970
+
<td class="cr_min_width_200">
1971
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1972
+
<div class="bws_hidden_help_text cr_min_260px">
1973
+
<?php
1974
+
echo esc_html__("Select if you don't want to auto add the title to the above AI prompt.", 'aiomatic-automatic-ai-content-writer');
1975
+
?>
1976
+
</div>
1977
+
</div>
1978
+
<b><?php echo esc_html__("Do Not Auto Add The Title To The AI Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
1979
+
</td>
1980
+
<td>
1981
+
<input type="checkbox" id="no_add_title" name="aiomatic_Spinner_Settings[no_add_title]"<?php
1982
+
if ($no_add_title == 'on')
1983
+
echo ' checked ';
1984
+
?>>
1985
+
</td>
1986
+
</tr>
1987
+
<tr class="hideMain"><td colspan="2"><hr/></td></tr>
1988
+
<tr class="hideMain">
1989
+
<td class="cr_min_width_200">
1990
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1991
+
<div class="bws_hidden_help_text cr_min_260px">
1992
+
<?php
1993
+
echo esc_html__("Do you want to enable post content editing?", 'aiomatic-automatic-ai-content-writer');
1994
+
?>
1995
+
</div>
1996
+
</div>
1997
+
<b><?php echo esc_html__("Enable Post Content Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
1998
+
</td>
1999
+
<td>
2000
+
<select name="aiomatic_Spinner_Settings[no_content]" id="no_content" class="cr_width_full" onchange="contentChanged();">
2001
+
<option value="yes"<?php
2002
+
if ($no_content == 'yes')
2003
+
echo ' selected ';
2004
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
2005
+
<option value="on"<?php
2006
+
if ($no_content == 'on')
2007
+
echo ' selected ';
2008
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
2009
+
</select>
2010
+
</td>
2011
+
</tr><tr class="hideContent">
2012
+
<td class="cr_min_width_200">
2013
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2014
+
<div class="bws_hidden_help_text cr_min_260px">
2015
+
<?php
2016
+
echo esc_html__("Do you want to enable Gutenberg block support and edit each Gutenberg block separately? If this is disabled, the who post content will be sent to the AI editor, and the result might not respect Gutenberg block structure.", 'aiomatic-automatic-ai-content-writer');
2017
+
?>
2018
+
</div>
2019
+
</div>
2020
+
<b><?php echo esc_html__("Enable Gutenberg Block Support (Will Run The Prompt Separately For Each Block):", 'aiomatic-automatic-ai-content-writer');?></b>
2021
+
</td>
2022
+
<td>
2023
+
<select name="aiomatic_Spinner_Settings[enable_gutenberg]" id="enable_gutenberg" class="cr_width_full" onchange="gutChanged();">
2024
+
<option value="1"<?php
2025
+
if ($enable_gutenberg == '1')
2026
+
echo ' selected ';
2027
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
2028
+
<option value="0"<?php
2029
+
if ($enable_gutenberg == '0')
2030
+
echo ' selected ';
2031
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
2032
+
</select>
2033
+
</td>
2034
+
</tr><tr class="hideContent hideGut">
2035
+
<td class="cr_min_width_200">
2036
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2037
+
<div class="bws_hidden_help_text cr_min_260px">
2038
+
<?php
2039
+
echo esc_html__("Do you want to enable editing of the below Gutenberg blocks only? If you leave this list empty, the plugin will automatically edit only default textual Gutenberg blocks.", 'aiomatic-automatic-ai-content-writer');
2040
+
?>
2041
+
</div>
2042
+
</div>
2043
+
<b><?php echo esc_html__("Enable Editing For These Gutenberg Blocks:", 'aiomatic-automatic-ai-content-writer');?></b>
2044
+
</td>
2045
+
<td>
2046
+
<select name="aiomatic_Spinner_Settings[gutenberg_list][]" multiple class="cr_width_full ai_resize_vertical">
2047
+
<?php
2048
+
$gutenberg_block_types = aiomatic_get_gutenberg_block_list();
2049
+
foreach ($gutenberg_block_types as $bname => $bid)
2050
+
{
2051
+
$selected = '';
2052
+
if (isset($aiomatic_Spinner_Settings['gutenberg_list']) && !empty($aiomatic_Spinner_Settings['gutenberg_list'])) {
2053
+
$selected = in_array($bid, $aiomatic_Spinner_Settings['gutenberg_list']) ? 'selected' : '';
2054
+
}
2055
+
$name_arr = explode('~', $bname);
2056
+
if(isset($name_arr[1]) && $name_arr[1] != '')
2057
+
{
2058
+
$explicit_name = $name_arr[1];
2059
+
}
2060
+
else
2061
+
{
2062
+
$explicit_name = $name_arr[0];
2063
+
}
2064
+
?>
2065
+
<option value="<?php echo esc_html($bid); ?>" <?php echo esc_html($selected); ?>>
2066
+
<?php echo esc_html(sanitize_text_field($explicit_name)); ?>
2067
+
</option>
2068
+
<?php
2069
+
}
2070
+
?>
2071
+
</select>
2072
+
</td>
2073
+
</tr><tr class="hideContent">
2074
+
<td class="cr_min_width_200">
2075
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2076
+
<div class="bws_hidden_help_text cr_min_260px">
2077
+
<?php
2078
+
echo esc_html__("Do you want to enable Elementor block support and edit each Elementor block separately? If this is disabled, Elementor Blocks will not be processed.", 'aiomatic-automatic-ai-content-writer');
2079
+
?>
2080
+
</div>
2081
+
</div>
2082
+
<b><?php echo esc_html__("Enable Elementor Editor Block Support (Will Run The Prompt Separately For Each Elementor Block):", 'aiomatic-automatic-ai-content-writer');?></b>
2083
+
</td>
2084
+
<td>
2085
+
<select name="aiomatic_Spinner_Settings[enable_elementor]" id="enable_elementor" class="cr_width_full" onchange="elemChanged();">
2086
+
<option value="1"<?php
2087
+
if ($enable_elementor == '1')
2088
+
echo ' selected ';
2089
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
2090
+
<option value="0"<?php
2091
+
if ($enable_elementor == '0')
2092
+
echo ' selected ';
2093
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
2094
+
</select>
2095
+
</td>
2096
+
</tr><tr class="hideContent hideElementor">
2097
+
<td class="cr_min_width_200">
2098
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2099
+
<div class="bws_hidden_help_text cr_min_260px">
2100
+
<?php
2101
+
echo esc_html__(
2102
+
"Enter one or more CSS classes (comma separated) to restrict which Elementor blocks are processed.
2103
+
Only widgets with at least one of these classes will be edited.
2104
+
Leave empty to process all Elementor blocks.",
2105
+
'aiomatic-automatic-ai-content-writer'
2106
+
);
2107
+
?>
2108
+
</div>
2109
+
</div>
2110
+
<b>
2111
+
<?php echo esc_html__(
2112
+
"Elementor CSS Class Filter:",
2113
+
'aiomatic-automatic-ai-content-writer'
2114
+
); ?>
2115
+
</b>
2116
+
</td>
2117
+
<td>
2118
+
<input
2119
+
type="text"
2120
+
name="aiomatic_Spinner_Settings[elementor_css_class_filter]"
2121
+
id="elementor_css_class_filter"
2122
+
class="cr_width_full"
2123
+
value="<?php
2124
+
echo isset($aiomatic_Spinner_Settings['elementor_css_class_filter'])
2125
+
? esc_attr($aiomatic_Spinner_Settings['elementor_css_class_filter'])
2126
+
: '';
2127
+
?>"
2128
+
placeholder="aiomatic-bulk-prompt, another-class"
2129
+
/>
2130
+
</td>
2131
+
</tr><tr class="hideContent"><td>
2132
+
<div>
2133
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2134
+
<div class="bws_hidden_help_text cr_min_260px">
2135
+
<?php
2136
+
echo esc_html__("Instruction for the AI editor, to edit post content. Please specify your instruction without adding the %%post_content%% shortcode, as the content will be automatically added at processing time. Nested shortcodes from other plugins also supported here. You can also use the following 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%%. 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');
2137
+
?>
2138
+
</div>
2139
+
</div>
2140
+
<b><?php echo esc_html__("Instructions to Send For the AI Editor (Content Editing):", 'aiomatic-automatic-ai-content-writer');?></b>
2141
+
</div>
2142
+
</td><td>
2143
+
<div>
2144
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_instruction]" placeholder="Please insert a content editor instruction"><?php
2145
+
echo esc_textarea($ai_instruction);
2146
+
?></textarea>
2147
+
</div>
2148
+
</td></tr><tr class="hideContent">
2149
+
<td class="cr_min_width_200">
2150
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2151
+
<div class="bws_hidden_help_text cr_min_260px">
2152
+
<?php
2153
+
echo esc_html__("Select if you don't want to auto add the content to the above AI prompt.", 'aiomatic-automatic-ai-content-writer');
2154
+
?>
2155
+
</div>
2156
+
</div>
2157
+
<b><?php echo esc_html__("Do Not Auto Add The Content To The AI Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
2158
+
</td>
2159
+
<td>
2160
+
<input type="checkbox" id="no_add_content" name="aiomatic_Spinner_Settings[no_add_content]"<?php
2161
+
if ($no_add_content == 'on')
2162
+
echo ' checked ';
2163
+
?>>
2164
+
</td>
2165
+
</tr>
2166
+
<tr class="hideMain"><td colspan="2"><hr/></td></tr>
2167
+
<tr class="hideMain">
2168
+
<td class="cr_min_width_200">
2169
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2170
+
<div class="bws_hidden_help_text cr_min_260px">
2171
+
<?php
2172
+
echo esc_html__("Do you want to enable post slug (URL) editing?", 'aiomatic-automatic-ai-content-writer');
2173
+
?>
2174
+
</div>
2175
+
</div>
2176
+
<b><?php echo esc_html__("Enable Post Slug Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2177
+
</td>
2178
+
<td>
2179
+
<select name="aiomatic_Spinner_Settings[no_slug]" id="no_slug" class="cr_width_full" onchange="slugChanged();">
2180
+
<option value="yes"<?php
2181
+
if ($no_slug == 'yes')
2182
+
echo ' selected ';
2183
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
2184
+
<option value="on"<?php
2185
+
if ($no_slug == 'on')
2186
+
echo ' selected ';
2187
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
2188
+
</select>
2189
+
</td>
2190
+
</tr><tr class="hideSlug"><td>
2191
+
<div>
2192
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2193
+
<div class="bws_hidden_help_text cr_min_260px">
2194
+
<?php
2195
+
echo esc_html__("Instruction for the AI editor, to edit post slug. Please specify your instruction without adding the %%post_slug%% shortcode, as the excerpt will be automatically added at processing time. Nested shortcodes from other plugins also supported here. You can also use the following shortcodes: %%post_slug%%, %%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');
2196
+
?>
2197
+
</div>
2198
+
</div>
2199
+
<b><?php echo esc_html__("Instructions to Send For the AI Editor (Slug Editing):", 'aiomatic-automatic-ai-content-writer');?></b>
2200
+
</div>
2201
+
</td><td>
2202
+
<div>
2203
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_instruction_slug]" placeholder="Please insert a slug editor instruction"><?php
2204
+
echo esc_textarea($ai_instruction_slug);
2205
+
?></textarea>
2206
+
</div>
2207
+
</td></tr><tr class="hideSlug">
2208
+
<td class="cr_min_width_200">
2209
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2210
+
<div class="bws_hidden_help_text cr_min_260px">
2211
+
<?php
2212
+
echo esc_html__("Select if you don't want to auto add the slug to the above AI prompt.", 'aiomatic-automatic-ai-content-writer');
2213
+
?>
2214
+
</div>
2215
+
</div>
2216
+
<b><?php echo esc_html__("Do Not Auto Add The Slug To The AI Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
2217
+
</td>
2218
+
<td>
2219
+
<input type="checkbox" id="no_add_slug" name="aiomatic_Spinner_Settings[no_add_slug]"<?php
2220
+
if ($no_add_slug == 'on')
2221
+
echo ' checked ';
2222
+
?>>
2223
+
</td>
2224
+
</tr>
2225
+
<tr class="hideSlug"><td>
2226
+
<div>
2227
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2228
+
<div class="bws_hidden_help_text cr_min_260px">
2229
+
<?php
2230
+
echo esc_html__("Set the maximum length of the edited post slug (in characters).", 'aiomatic-automatic-ai-content-writer');
2231
+
?>
2232
+
</div>
2233
+
</div>
2234
+
<b><?php echo esc_html__("Edited Post Slug Max Length (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
2235
+
2236
+
</td><td>
2237
+
<input type="number" min="1" step="1" id="max_slug_len" name="aiomatic_Spinner_Settings[max_slug_len]" class="cr_450" value="<?php echo esc_html($max_slug_len);?>" placeholder="Slug max length">
2238
+
</td></tr>
2239
+
<tr class="hideMain"><td colspan="2"><hr/></td></tr>
2240
+
<tr class="hideMain">
2241
+
<td class="cr_min_width_200">
2242
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2243
+
<div class="bws_hidden_help_text cr_min_260px">
2244
+
<?php
2245
+
echo esc_html__("Do you want to enable post excerpt editing?", 'aiomatic-automatic-ai-content-writer');
2246
+
?>
2247
+
</div>
2248
+
</div>
2249
+
<b><?php echo esc_html__("Enable Post Excerpt Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2250
+
</td>
2251
+
<td>
2252
+
<select name="aiomatic_Spinner_Settings[no_excerpt]" id="no_excerpt" class="cr_width_full" onchange="excerptChanged();">
2253
+
<option value="yes"<?php
2254
+
if ($no_excerpt == 'yes')
2255
+
echo ' selected ';
2256
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
2257
+
<option value="on"<?php
2258
+
if ($no_excerpt == 'on')
2259
+
echo ' selected ';
2260
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
2261
+
</select>
2262
+
</td>
2263
+
</tr><tr class="hideExcerpt"><td>
2264
+
<div>
2265
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2266
+
<div class="bws_hidden_help_text cr_min_260px">
2267
+
<?php
2268
+
echo esc_html__("Instruction for the AI editor, to edit post excerpt. Please specify your instruction without adding the %%post_excerpt%% shortcode, as the excerpt will be automatically added at processing time. Nested shortcodes from other plugins also supported here. You can also use the following 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%%. 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');
2269
+
?>
2270
+
</div>
2271
+
</div>
2272
+
<b><?php echo esc_html__("Instructions to Send For the AI Editor (Excerpt Editing):", 'aiomatic-automatic-ai-content-writer');?></b>
2273
+
</div>
2274
+
</td><td>
2275
+
<div>
2276
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_instruction_excerpt]" placeholder="Please insert a excerpt editor instruction"><?php
2277
+
echo esc_textarea($ai_instruction_excerpt);
2278
+
?></textarea>
2279
+
</div>
2280
+
</td></tr><tr class="hideExcerpt">
2281
+
<td class="cr_min_width_200">
2282
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2283
+
<div class="bws_hidden_help_text cr_min_260px">
2284
+
<?php
2285
+
echo esc_html__("Select if you don't want to auto add the excerpt to the above AI prompt.", 'aiomatic-automatic-ai-content-writer');
2286
+
?>
2287
+
</div>
2288
+
</div>
2289
+
<b><?php echo esc_html__("Do Not Auto Add The Excerpt To The AI Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
2290
+
</td>
2291
+
<td>
2292
+
<input type="checkbox" id="no_add_excerpt" name="aiomatic_Spinner_Settings[no_add_excerpt]"<?php
2293
+
if ($no_add_excerpt == 'on')
2294
+
echo ' checked ';
2295
+
?>>
2296
+
</td>
2297
+
</tr>
2298
+
<tr class="hideMain"><td colspan="2"><hr/></td></tr>
2299
+
<tr class="hideMain">
2300
+
<td colspan="2">
2301
+
<h3><?php echo esc_html__("Advanced Editing Options:", 'aiomatic-automatic-ai-content-writer');?></h3></td></tr>
2302
+
<tr class="hideMain">
2303
+
<td class="cr_min_width_200">
2304
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2305
+
<div class="bws_hidden_help_text cr_min_260px">
2306
+
<?php
2307
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
2308
+
?>
2309
+
</div>
2310
+
</div>
2311
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
2312
+
</td>
2313
+
<td><select id="edit_assistant_id" name="aiomatic_Spinner_Settings[edit_assistant_id]" class="cr_width_full" onchange="assistantSelected('edit_assistant_id', 'disableEdit');">
2314
+
<?php
2315
+
if($all_assistants === false)
2316
+
{
2317
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
2318
+
}
2319
+
else
2320
+
{
2321
+
if(count($all_assistants) == 0)
2322
+
{
2323
+
echo '<option val="" 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>';
2324
+
}
2325
+
else
2326
+
{
2327
+
echo '<option value=""';
2328
+
if($edit_assistant_id == '')
2329
+
{
2330
+
echo ' selected';
2331
+
}
2332
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
2333
+
foreach($all_assistants as $myassistant)
2334
+
{
2335
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
2336
+
if($edit_assistant_id == $myassistant->ID)
2337
+
{
2338
+
echo ' selected';
2339
+
}
2340
+
echo '>' . esc_html($myassistant->post_title);
2341
+
echo '</option>';
2342
+
}
2343
+
}
2344
+
}
2345
+
?>
2346
+
</select>
2347
+
</td>
2348
+
</tr>
2349
+
<tr class="hideMain">
2350
+
<td class="cr_min_width_200">
2351
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2352
+
<div class="bws_hidden_help_text cr_min_260px">
2353
+
<?php
2354
+
echo esc_html__("Select the AI model to use for post content editing.", 'aiomatic-automatic-ai-content-writer');
2355
+
?>
2356
+
</div>
2357
+
</div>
2358
+
<b><?php echo esc_html__("AI Model To Use For Post Content Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2359
+
</td>
2360
+
<td>
2361
+
<select id="edit_model" name="aiomatic_Spinner_Settings[edit_model]" <?php if($edit_assistant_id != ''){echo ' disabled';}?> class="disableEdit" onchange="visionSelectedAI();">
2362
+
<?php
2363
+
foreach($all_edit_models as $modelx)
2364
+
{
2365
+
echo '<option value="' . esc_html($modelx) .'"';
2366
+
if ($edit_model == $modelx)
2367
+
{
2368
+
echo " selected";
2369
+
}
2370
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
2371
+
}
2372
+
?>
2373
+
</select>
2374
+
</td>
2375
+
</tr>
2376
+
<tr class="hideMain hideVision">
2377
+
<td class="cr_min_width_200">
2378
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2379
+
<div class="bws_hidden_help_text cr_min_260px">
2380
+
<?php
2381
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
2382
+
?>
2383
+
</div>
2384
+
</div>
2385
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
2386
+
</td>
2387
+
<td>
2388
+
<input type="checkbox" id="ai_vision" name="aiomatic_Spinner_Settings[ai_vision]"<?php
2389
+
if ($ai_vision == 'on')
2390
+
echo ' checked ';
2391
+
?>>
2392
+
</td>
2393
+
</tr>
2394
+
<tr class="hideMain">
2395
+
<td class="cr_min_width_200">
2396
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2397
+
<div class="bws_hidden_help_text cr_min_260px">
2398
+
<?php
2399
+
echo esc_html__("Select the AI model to use for post title editing.", 'aiomatic-automatic-ai-content-writer');
2400
+
?>
2401
+
</div>
2402
+
</div>
2403
+
<b><?php echo esc_html__("AI Model To Use For Post Title Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2404
+
</td>
2405
+
<td>
2406
+
<select id="title_model" name="aiomatic_Spinner_Settings[title_model]" <?php if($edit_assistant_id != ''){echo ' disabled';}?> class="disableEdit" onchange="visionTitleSelectedAI();">
2407
+
<?php
2408
+
foreach($all_edit_models as $modelx)
2409
+
{
2410
+
echo '<option value="' . esc_html($modelx) .'"';
2411
+
if ($title_model == $modelx)
2412
+
{
2413
+
echo " selected";
2414
+
}
2415
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
2416
+
}
2417
+
?>
2418
+
</select>
2419
+
</td>
2420
+
</tr>
2421
+
<tr class="hideMain hideTitleVision">
2422
+
<td class="cr_min_width_200">
2423
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2424
+
<div class="bws_hidden_help_text cr_min_260px">
2425
+
<?php
2426
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
2427
+
?>
2428
+
</div>
2429
+
</div>
2430
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
2431
+
</td>
2432
+
<td>
2433
+
<input type="checkbox" id="ai_title_vision" name="aiomatic_Spinner_Settings[ai_title_vision]"<?php
2434
+
if ($ai_title_vision == 'on')
2435
+
echo ' checked ';
2436
+
?>>
2437
+
</td>
2438
+
</tr>
2439
+
<tr class="hideMain">
2440
+
<td class="cr_min_width_200">
2441
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2442
+
<div class="bws_hidden_help_text cr_min_260px">
2443
+
<?php
2444
+
echo esc_html__("Select the AI model to use for post excerpt editing.", 'aiomatic-automatic-ai-content-writer');
2445
+
?>
2446
+
</div>
2447
+
</div>
2448
+
<b><?php echo esc_html__("AI Model To Use For Post Excerpt Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2449
+
</td>
2450
+
<td>
2451
+
<select id="excerpt_model" name="aiomatic_Spinner_Settings[excerpt_model]" <?php if($edit_assistant_id != ''){echo ' disabled';}?> class="disableEdit" onchange="visionExcerptSelectedAI();">
2452
+
<?php
2453
+
foreach($all_edit_models as $modelx)
2454
+
{
2455
+
echo '<option value="' . esc_html($modelx) .'"';
2456
+
if ($excerpt_model == $modelx)
2457
+
{
2458
+
echo " selected";
2459
+
}
2460
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
2461
+
}
2462
+
?>
2463
+
</select>
2464
+
</td>
2465
+
</tr>
2466
+
<tr class="hideMain hideExcerptVision">
2467
+
<td class="cr_min_width_200">
2468
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2469
+
<div class="bws_hidden_help_text cr_min_260px">
2470
+
<?php
2471
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
2472
+
?>
2473
+
</div>
2474
+
</div>
2475
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
2476
+
</td>
2477
+
<td>
2478
+
<input type="checkbox" id="ai_excerpt_vision" name="aiomatic_Spinner_Settings[ai_excerpt_vision]"<?php
2479
+
if ($ai_excerpt_vision == 'on')
2480
+
echo ' checked ';
2481
+
?>>
2482
+
</td>
2483
+
</tr>
2484
+
<tr class="hideMain">
2485
+
<td class="cr_min_width_200">
2486
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2487
+
<div class="bws_hidden_help_text cr_min_260px">
2488
+
<?php
2489
+
echo esc_html__("Select the AI model to use for post slug editing.", 'aiomatic-automatic-ai-content-writer');
2490
+
?>
2491
+
</div>
2492
+
</div>
2493
+
<b><?php echo esc_html__("AI Model To Use For Post Slug Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2494
+
</td>
2495
+
<td>
2496
+
<select id="slug_model" name="aiomatic_Spinner_Settings[slug_model]" <?php if($edit_assistant_id != ''){echo ' disabled';}?> class="disableEdit" onchange="visionSlugSelectedAI();">
2497
+
<?php
2498
+
foreach($all_edit_models as $modelx)
2499
+
{
2500
+
echo '<option value="' . esc_html($modelx) .'"';
2501
+
if ($slug_model == $modelx)
2502
+
{
2503
+
echo " selected";
2504
+
}
2505
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
2506
+
}
2507
+
?>
2508
+
</select>
2509
+
</td>
2510
+
</tr>
2511
+
<tr class="hideMain hideSlugVision">
2512
+
<td class="cr_min_width_200">
2513
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2514
+
<div class="bws_hidden_help_text cr_min_260px">
2515
+
<?php
2516
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
2517
+
?>
2518
+
</div>
2519
+
</div>
2520
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
2521
+
</td>
2522
+
<td>
2523
+
<input type="checkbox" id="ai_slug_vision" name="aiomatic_Spinner_Settings[ai_slug_vision]"<?php
2524
+
if ($ai_slug_vision == 'on')
2525
+
echo ' checked ';
2526
+
?>>
2527
+
</td>
2528
+
</tr>
2529
+
<tr class="hideMain"><td>
2530
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2531
+
<div class="bws_hidden_help_text cr_min_260px">
2532
+
<?php
2533
+
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');
2534
+
?>
2535
+
</div>
2536
+
</div>
2537
+
<b><?php echo esc_html__("AI Content Editor Temperature:", 'aiomatic-automatic-ai-content-writer');?></b>
2538
+
2539
+
</td><td>
2540
+
<input type="number" min="0" step="0.01" max="2" id="edit_temperature" name="aiomatic_Spinner_Settings[edit_temperature]" class="cr_450" value="<?php echo esc_html($edit_temperature);?>" placeholder="0">
2541
+
</td></tr><tr class="hideMain"><td>
2542
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2543
+
<div class="bws_hidden_help_text cr_min_260px">
2544
+
<?php
2545
+
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');
2546
+
?>
2547
+
</div>
2548
+
</div>
2549
+
<b><?php echo esc_html__("AI Content Editor Top_p:", 'aiomatic-automatic-ai-content-writer');?></b>
2550
+
2551
+
</td><td>
2552
+
<input type="number" min="0" step="0.01" max="1" id="edit_top_p" name="aiomatic_Spinner_Settings[edit_top_p]" class="cr_450" value="<?php echo esc_html($edit_top_p);?>" placeholder="1">
2553
+
</td></tr><tr class="hideMain"><td>
2554
+
<div>
2555
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2556
+
<div class="bws_hidden_help_text cr_min_260px">
2557
+
<?php
2558
+
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');
2559
+
?>
2560
+
</div>
2561
+
</div>
2562
+
<b><?php echo esc_html__("AI Content Editor Presence Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
2563
+
2564
+
</td><td>
2565
+
<input type="number" min="-2" step="0.01" max="2" id="edit_presence_penalty" name="aiomatic_Spinner_Settings[edit_presence_penalty]" class="cr_450" value="<?php echo esc_html($edit_presence_penalty);?>" placeholder="0">
2566
+
</td></tr><tr class="hideMain"><td>
2567
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2568
+
<div class="bws_hidden_help_text cr_min_260px">
2569
+
<?php
2570
+
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');
2571
+
?>
2572
+
</div>
2573
+
</div>
2574
+
<b><?php echo esc_html__("AI Content Editor Frequency Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
2575
+
2576
+
</td><td>
2577
+
<input type="number" min="-2" step="0.01" max="2" id="edit_frequency_penalty" name="aiomatic_Spinner_Settings[edit_frequency_penalty]" class="cr_450" value="<?php echo esc_html($edit_frequency_penalty);?>" placeholder="0">
2578
+
</td></tr><tr class="hideMain"><td>
2579
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2580
+
<div class="bws_hidden_help_text cr_min_260px">
2581
+
<?php
2582
+
echo esc_html__("Do you want to disable automatically editing of content longer than this character count?", 'aiomatic-automatic-ai-content-writer');
2583
+
?>
2584
+
</div>
2585
+
</div>
2586
+
<b><?php echo esc_html__("Disable Editing of Content Longer Than This Character Count:", 'aiomatic-automatic-ai-content-writer');?></b>
2587
+
2588
+
</td><td>
2589
+
<input type="number" min="0" step="1" id="max_char" name="aiomatic_Spinner_Settings[max_char]" class="cr_450" value="<?php echo esc_html($max_char);?>" placeholder="Max editing character count">
2590
+
</td></tr><tr class="hideMain"><td>
2591
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2592
+
<div class="bws_hidden_help_text cr_min_260px">
2593
+
<?php
2594
+
echo esc_html__("Currently, as the AI editor is in beta, it might have difficulties editing longer texts. If you encounter this issue, you can limit the chunk size which is sent to the AI editor (in characters). Leave this blank if editing works well in your case.", 'aiomatic-automatic-ai-content-writer');
2595
+
?>
2596
+
</div>
2597
+
</div>
2598
+
<b><?php echo esc_html__("Maximum Character Chunk Size To Send To The AI Editor (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
2599
+
2600
+
</td><td>
2601
+
<input type="number" min="100" step="1" id="max_char_chunks" name="aiomatic_Spinner_Settings[max_char_chunks]" class="cr_450" value="<?php echo esc_html($max_char_chunks);?>" placeholder="Max character count">
2602
+
</td></tr>
2603
+
<tr class="hideMain">
2604
+
<td class="cr_min_width_200">
2605
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2606
+
<div class="bws_hidden_help_text cr_min_260px">
2607
+
<?php
2608
+
echo esc_html__("Currently, because of an issue with the AI editor, sometimes it might remove parts of the HTML content you send to it for editing. The Aimogen plugin can check if this happens and not change the post in these cases. If you check this checkbox, the edited content will be published, even if it misses some HTML tags. Do you want to publish edited content even if the AI editor removed some or all HTML content from the text?", 'aiomatic-automatic-ai-content-writer');
2609
+
?>
2610
+
</div>
2611
+
</div>
2612
+
<b><?php echo esc_html__("Publish Edited Content Even if the AI Removed Parts of the HTML Text:", 'aiomatic-automatic-ai-content-writer');?></b>
2613
+
</td>
2614
+
<td>
2615
+
<input type="checkbox" id="no_html_check" name="aiomatic_Spinner_Settings[no_html_check]"<?php
2616
+
if ($no_html_check == 'on')
2617
+
echo ' checked ';
2618
+
?>>
2619
+
</td>
2620
+
</tr><tr class="hideMain">
2621
+
<td class="cr_min_width_200">
2622
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2623
+
<div class="bws_hidden_help_text cr_min_260px">
2624
+
<?php
2625
+
echo esc_html__("Do you want to protect HTML tags in edited text? This will add to the prompt you enter, a phrase which specifies to protect HTML tags from the edited text.", 'aiomatic-automatic-ai-content-writer');
2626
+
?>
2627
+
</div>
2628
+
</div>
2629
+
<b><?php echo esc_html__("Protect HTML Tags in Edited Text:", 'aiomatic-automatic-ai-content-writer');?></b>
2630
+
</td>
2631
+
<td>
2632
+
<input type="checkbox" id="protect_html" name="aiomatic_Spinner_Settings[protect_html]"<?php
2633
+
if ($protect_html == 'on')
2634
+
echo ' checked ';
2635
+
?>>
2636
+
</td>
2637
+
</tr>
2638
+
<tr><td colspan="2"><hr/></td></tr>
2639
+
<tr><td>
2640
+
<div>
2641
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2642
+
<div class="bws_hidden_help_text cr_min_260px">
2643
+
<?php
2644
+
echo esc_html__("The plugin will automatically edit the images found in the post content, using AI, based on the prompt you define in the settings.", 'aiomatic-automatic-ai-content-writer');
2645
+
?>
2646
+
</div>
2647
+
</div>
2648
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Enable Post Content Image Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2649
+
</div>
2650
+
</td><td>
2651
+
<div>
2652
+
<select id="ai_featured_image_edit_content" name="aiomatic_Spinner_Settings[ai_featured_image_edit_content]" onchange="mainChanged2c();" >
2653
+
<option value="enabled"<?php
2654
+
if ($ai_featured_image_edit_content == "enabled") {
2655
+
echo " selected";
2656
+
}
2657
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
2658
+
<option value="disabled"<?php
2659
+
if ($ai_featured_image_edit_content == "disabled") {
2660
+
echo " selected";
2661
+
}
2662
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
2663
+
</select>
2664
+
</div>
2665
+
</td></tr><tr class="hideMain2c"><td>
2666
+
<div>
2667
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2668
+
<div class="bws_hidden_help_text cr_min_260px">
2669
+
<?php
2670
+
echo esc_html__("Select the engine which will be used for content image editing.", 'aiomatic-automatic-ai-content-writer');
2671
+
?>
2672
+
</div>
2673
+
</div>
2674
+
<b><?php echo esc_html__("Content Image Editing Engine:", 'aiomatic-automatic-ai-content-writer');?></b>
2675
+
</div>
2676
+
</td><td>
2677
+
<div>
2678
+
<select id="ai_featured_image_engine_content" name="aiomatic_Spinner_Settings[ai_featured_image_engine_content]" onchange="mainChangedImg();">
2679
+
<option value="2"<?php
2680
+
if ($ai_featured_image_engine_content == "2") {
2681
+
echo " selected";
2682
+
}
2683
+
if (!isset($aiomatic_Main_Settings['stability_app_id']) || trim($aiomatic_Main_Settings['stability_app_id']) == '')
2684
+
{
2685
+
echo ' disabled title="You need to add a Stability.ai API key for this feature to work"';
2686
+
}
2687
+
?>><?php echo esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer');?></option>
2688
+
</select>
2689
+
</div>
2690
+
</td></tr><tr class="hideMain2c"><td>
2691
+
<div>
2692
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2693
+
<div class="bws_hidden_help_text cr_min_260px">
2694
+
<?php
2695
+
echo esc_html__("Set an prompt command you want to send to the AI content image editor. This command can be any given task or order, based on which, it will edit the featured image of the post. You can use the following shortcodes here: %%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). If you use Royalty Free Images as a source, you can also set their keywords here, if no keywords set, they will be automatically generated.", 'aiomatic-automatic-ai-content-writer');
2696
+
?>
2697
+
</div>
2698
+
</div>
2699
+
<b><?php echo esc_html__("Prompt To Send To The AI Content Image Editor:", 'aiomatic-automatic-ai-content-writer');?></b>
2700
+
</div>
2701
+
</td><td>
2702
+
<div>
2703
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_image_command_edit_content]" placeholder="Please insert a command for the AI content image editor"><?php
2704
+
echo esc_textarea($ai_image_command_edit_content);
2705
+
?></textarea>
2706
+
</div>
2707
+
</td></tr><tr class="hideMain2c"><td>
2708
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2709
+
<div class="bws_hidden_help_text cr_min_260px">
2710
+
<?php
2711
+
echo esc_html__("How much influence the init_image has on the diffusion process. Values close to 1 will yield images very similar to the init_image while values close to 0 will yield images wildly different than the init_image. The behavior of this is meant to mirror DreamStudio's \"Image Strength\" slider. This parameter is just an alternate way to set step_schedule_start, which is done via the calculation 1 - image_strength. For example, passing in an Image Strength of 35% (0.35) would result in a step_schedule_start of 0.65.", 'aiomatic-automatic-ai-content-writer');
2712
+
?>
2713
+
</div>
2714
+
</div>
2715
+
<b><?php echo esc_html__("Original Content Image Strength:", 'aiomatic-automatic-ai-content-writer');?></b>
2716
+
2717
+
</td><td>
2718
+
<input type="number" min="0" max="1" step="0.01" id="image_strength_content" name="aiomatic_Spinner_Settings[image_strength_content]" class="cr_450" value="<?php echo esc_html($image_strength_content);?>" placeholder="Original content image strength">
2719
+
</td></tr>
2720
+
<tr class="hideMain2c"><td>
2721
+
<div>
2722
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2723
+
<div class="bws_hidden_help_text cr_min_260px">
2724
+
<?php
2725
+
echo esc_html__("Maximum number of images that should be edited from the post content. This is a protection mechanism, to not allow the plugin to edit too many images from a single post's content. To disable this feature, leave it blank.", 'aiomatic-automatic-ai-content-writer');
2726
+
?>
2727
+
</div>
2728
+
</div>
2729
+
<b><?php echo esc_html__("Maximum Number Of Images To Edit From A Single Post Content:", 'aiomatic-automatic-ai-content-writer');?></b>
2730
+
2731
+
</td><td>
2732
+
<input type="number" min="1" step="1" id="max_edit_content" name="aiomatic_Spinner_Settings[max_edit_content]" class="cr_450" value="<?php echo esc_html($max_edit_content);?>" placeholder="Maximum number of images to edit in a single post">
2733
+
</td></tr>
2734
+
<tr><td colspan="2">
2735
+
<h2><?php echo esc_html__("AI Generated Featured Image Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
2736
+
</td></tr><tr><td>
2737
+
<div>
2738
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2739
+
<div class="bws_hidden_help_text cr_min_260px">
2740
+
<?php
2741
+
echo esc_html__("The plugin will generate AI generated or royalty free images, that will be assigned as featured images for posts.", 'aiomatic-automatic-ai-content-writer');
2742
+
?>
2743
+
</div>
2744
+
</div>
2745
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Enable Featured Image Creation:", 'aiomatic-automatic-ai-content-writer');?></b>
2746
+
</div>
2747
+
</td><td>
2748
+
<div>
2749
+
<select id="ai_featured_image" name="aiomatic_Spinner_Settings[ai_featured_image]" onchange="mainChanged2();" >
2750
+
<option value="enabled"<?php
2751
+
if ($ai_featured_image == "enabled") {
2752
+
echo " selected";
2753
+
}
2754
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
2755
+
<option value="disabled"<?php
2756
+
if ($ai_featured_image == "disabled") {
2757
+
echo " selected";
2758
+
}
2759
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
2760
+
</select>
2761
+
</div>
2762
+
</td></tr><tr class="hideMain2"><td>
2763
+
<div>
2764
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2765
+
<div class="bws_hidden_help_text cr_min_260px">
2766
+
<?php
2767
+
echo esc_html__("Select the source of the created featured images.", 'aiomatic-automatic-ai-content-writer');
2768
+
?>
2769
+
</div>
2770
+
</div>
2771
+
<b><?php echo esc_html__("Featured Image Source:", 'aiomatic-automatic-ai-content-writer');?></b>
2772
+
</div>
2773
+
</td><td>
2774
+
<div>
2775
+
<select id="ai_featured_image_source" name="aiomatic_Spinner_Settings[ai_featured_image_source]" onchange="mainChangedImg();">
2776
+
<option value="1"<?php
2777
+
if ($ai_featured_image_source == "1") {
2778
+
echo " selected";
2779
+
}
2780
+
?>><?php echo esc_html__("OpenAI/AiomaticAPI", 'aiomatic-automatic-ai-content-writer');?></option>
2781
+
<?php
2782
+
if (isset($aiomatic_Main_Settings['stability_app_id']) && trim($aiomatic_Main_Settings['stability_app_id']) != '')
2783
+
{
2784
+
?>
2785
+
<option value="2"<?php
2786
+
if ($ai_featured_image_source == "2") {
2787
+
echo " selected";
2788
+
}
2789
+
?>><?php echo esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer');?></option>
2790
+
<?php
2791
+
}
2792
+
if (isset($aiomatic_Main_Settings['midjourney_app_id']) && trim($aiomatic_Main_Settings['midjourney_app_id']) != '')
2793
+
{
2794
+
?>
2795
+
<option value="4"<?php
2796
+
if ($ai_featured_image_source == "4") {
2797
+
echo " selected";
2798
+
}
2799
+
?>><?php echo esc_html__("Midjourney", 'aiomatic-automatic-ai-content-writer');?></option>
2800
+
<?php
2801
+
}
2802
+
if (isset($aiomatic_Main_Settings['replicate_app_id']) && trim($aiomatic_Main_Settings['replicate_app_id']) != '')
2803
+
{
2804
+
?>
2805
+
<option value="5"<?php
2806
+
if ($ai_featured_image_source == "5") {
2807
+
echo " selected";
2808
+
}
2809
+
?>><?php echo esc_html__("Replicate", 'aiomatic-automatic-ai-content-writer');?></option>
2810
+
<?php
2811
+
}
2812
+
if (isset($aiomatic_Main_Settings['ideogram_app_id']) && trim($aiomatic_Main_Settings['ideogram_app_id']) != '')
2813
+
{
2814
+
?>
2815
+
<option value="6"<?php
2816
+
if ($ai_featured_image_source == "6") {
2817
+
echo " selected";
2818
+
}
2819
+
?>><?php echo esc_html__("Ideogram", 'aiomatic-automatic-ai-content-writer');?></option>
2820
+
<?php
2821
+
}
2822
+
if (isset($aiomatic_Main_Settings['app_id_google']) && trim($aiomatic_Main_Settings['app_id_google']) != '')
2823
+
{
2824
+
?>
2825
+
<option value="7"<?php
2826
+
if ($ai_featured_image_source == "7") {
2827
+
echo " selected";
2828
+
}
2829
+
?>><?php echo esc_html__("Google", 'aiomatic-automatic-ai-content-writer');?></option>
2830
+
<?php
2831
+
}
2832
+
?>
2833
+
<option value="0"<?php
2834
+
if ($ai_featured_image_source == "0") {
2835
+
echo " selected";
2836
+
}
2837
+
?>><?php echo esc_html__("Royalty Free", 'aiomatic-automatic-ai-content-writer');?></option>
2838
+
<option value="3"<?php
2839
+
if ($ai_featured_image_source == "3") {
2840
+
echo " selected";
2841
+
}
2842
+
?>><?php echo esc_html__("Manual URL List", 'aiomatic-automatic-ai-content-writer');?></option>
2843
+
</select>
2844
+
</div>
2845
+
</td></tr><tr class="hideMain2 hideMainAgain2"><td>
2846
+
<div>
2847
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2848
+
<div class="bws_hidden_help_text cr_min_260px">
2849
+
<?php
2850
+
echo esc_html__("Set an prompt command you want to send to the AI image generator. This command can be any given task or order, based on which, it will generate content for posts. You can use the following shortcodes here: %%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). If you use Royalty Free Images as a source, you can also set their keywords here, if no keywords set, they will be automatically generated.", 'aiomatic-automatic-ai-content-writer');
2851
+
?>
2852
+
</div>
2853
+
</div>
2854
+
<b><?php echo esc_html__("Prompt To Send To The AI Image Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
2855
+
</div>
2856
+
</td><td>
2857
+
<div>
2858
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_image_command]" placeholder="Please insert a command for the AI image generator"><?php
2859
+
echo esc_textarea($ai_image_command);
2860
+
?></textarea>
2861
+
</div>
2862
+
</td></tr><tr class="hideMain2 hideMainAgain2"><td>
2863
+
<div>
2864
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2865
+
<div class="bws_hidden_help_text cr_min_260px">
2866
+
<?php
2867
+
echo esc_html__("Set the size of the generated featured image.", 'aiomatic-automatic-ai-content-writer');
2868
+
?>
2869
+
</div>
2870
+
</div>
2871
+
<b><?php echo esc_html__("Generated Featured Image Size:", 'aiomatic-automatic-ai-content-writer');?></b>
2872
+
</div>
2873
+
</td><td>
2874
+
<div>
2875
+
<select id="image_size" name="aiomatic_Spinner_Settings[image_size]" >
2876
+
<option value="256x256"<?php
2877
+
if ($image_size == "256x256") {
2878
+
echo " selected";
2879
+
}
2880
+
?>><?php echo esc_html__("256x256 (only for Dall-E 2)", 'aiomatic-automatic-ai-content-writer');?></option>
2881
+
<option value="512x512"<?php
2882
+
if ($image_size == "512x512") {
2883
+
echo " selected";
2884
+
}
2885
+
?>><?php echo esc_html__("512x512 (only for Dall-E 2 & Stable Diffusion)", 'aiomatic-automatic-ai-content-writer');?></option>
2886
+
<option value="1024x1024"<?php
2887
+
if ($image_size == "1024x1024") {
2888
+
echo " selected";
2889
+
}
2890
+
?>><?php echo esc_html__("1024x1024", 'aiomatic-automatic-ai-content-writer');?></option>
2891
+
<option value="1024x1792"<?php
2892
+
if ($image_size == "1024x1792") {
2893
+
echo " selected";
2894
+
}
2895
+
?>><?php echo esc_html__("1024x1792 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer');?></option>
2896
+
<option value="1792x1024"<?php
2897
+
if ($image_size == "1792x1024") {
2898
+
echo " selected";
2899
+
}
2900
+
?>><?php echo esc_html__("1792x1024 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer');?></option>
2901
+
<option value="1024x1536"<?php
2902
+
if ($image_size == "1024x1536") {
2903
+
echo " selected";
2904
+
}
2905
+
?>><?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>
2906
+
<option value="1536x1024"<?php
2907
+
if ($image_size == "1536x1024") {
2908
+
echo " selected";
2909
+
}
2910
+
?>><?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>
2911
+
</select>
2912
+
</div>
2913
+
</td></tr>
2914
+
<tr class="hideImg hideMainAgain2"><td>
2915
+
<div>
2916
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2917
+
<div class="bws_hidden_help_text cr_min_260px">
2918
+
<?php
2919
+
echo esc_html__("Set the size of the generated featured image.", 'aiomatic-automatic-ai-content-writer');
2920
+
?>
2921
+
</div>
2922
+
</div>
2923
+
<b><?php echo esc_html__("AI Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
2924
+
</div>
2925
+
</td><td>
2926
+
<div>
2927
+
<select id="image_model" name="aiomatic_Spinner_Settings[image_model]">
2928
+
<?php
2929
+
foreach(AIMOGEN_DALLE_IMAGE_MODELS as $modelx)
2930
+
{
2931
+
echo '<option value="' . esc_html($modelx) .'"';
2932
+
if ($modelx == $image_model) { echo ' selected'; }
2933
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
2934
+
}
2935
+
?>
2936
+
</select>
2937
+
</div>
2938
+
</td></tr><tr class="hideMain2 hideMainSecond2"><td>
2939
+
<div>
2940
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2941
+
<div class="bws_hidden_help_text cr_min_260px">
2942
+
<?php
2943
+
echo esc_html__("Set a comma sepatated list of images to assign to posts. You can also use the AI to select the best matching image (basd on keywords from image name and URL).", 'aiomatic-automatic-ai-content-writer');
2944
+
?>
2945
+
</div>
2946
+
</div>
2947
+
<b><?php echo esc_html__("Default Featured Image List:", 'aiomatic-automatic-ai-content-writer');?></b>
2948
+
</div>
2949
+
</td><td>
2950
+
<div>
2951
+
<textarea rows="1" name="aiomatic_Spinner_Settings[url_image_list]" placeholder="Image URL List"><?php
2952
+
echo esc_textarea($url_image_list);
2953
+
?></textarea>
2954
+
</div>
2955
+
</td></tr>
2956
+
<tr><td colspan="2"><hr/></td></tr>
2957
+
<tr><td>
2958
+
<div>
2959
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2960
+
<div class="bws_hidden_help_text cr_min_260px">
2961
+
<?php
2962
+
echo esc_html__("The plugin will automatically edit the featured image of the post, using AI, based on the prompt you define in the settings.", 'aiomatic-automatic-ai-content-writer');
2963
+
?>
2964
+
</div>
2965
+
</div>
2966
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Enable Featured Image Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
2967
+
</div>
2968
+
</td><td>
2969
+
<div>
2970
+
<select id="ai_featured_image_edit" name="aiomatic_Spinner_Settings[ai_featured_image_edit]" onchange="mainChanged2e();" >
2971
+
<option value="enabled"<?php
2972
+
if ($ai_featured_image_edit == "enabled") {
2973
+
echo " selected";
2974
+
}
2975
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
2976
+
<option value="disabled"<?php
2977
+
if ($ai_featured_image_edit == "disabled") {
2978
+
echo " selected";
2979
+
}
2980
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
2981
+
</select>
2982
+
</div>
2983
+
</td></tr><tr class="hideMain2e"><td>
2984
+
<div>
2985
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2986
+
<div class="bws_hidden_help_text cr_min_260px">
2987
+
<?php
2988
+
echo esc_html__("Select the engine which will be used for image editing.", 'aiomatic-automatic-ai-content-writer');
2989
+
?>
2990
+
</div>
2991
+
</div>
2992
+
<b><?php echo esc_html__("Featured Image Editing Engine:", 'aiomatic-automatic-ai-content-writer');?></b>
2993
+
</div>
2994
+
</td><td>
2995
+
<div>
2996
+
<select id="ai_featured_image_engine" name="aiomatic_Spinner_Settings[ai_featured_image_engine]" onchange="mainChangedImg();">
2997
+
<option value="2"<?php
2998
+
if ($ai_featured_image_engine == "2") {
2999
+
echo " selected";
3000
+
}
3001
+
if (!isset($aiomatic_Main_Settings['stability_app_id']) || trim($aiomatic_Main_Settings['stability_app_id']) == '')
3002
+
{
3003
+
echo ' disabled title="You need to add a Stability.ai API key for this feature to work"';
3004
+
}
3005
+
?>><?php echo esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer');?></option>
3006
+
</select>
3007
+
</div>
3008
+
</td></tr><tr class="hideMain2e"><td>
3009
+
<div>
3010
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3011
+
<div class="bws_hidden_help_text cr_min_260px">
3012
+
<?php
3013
+
echo esc_html__("Set an prompt command you want to send to the AI image editor. This command can be any given task or order, based on which, it will edit the featured image of the post. You can use the following shortcodes here: %%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). If you use Royalty Free Images as a source, you can also set their keywords here, if no keywords set, they will be automatically generated.", 'aiomatic-automatic-ai-content-writer');
3014
+
?>
3015
+
</div>
3016
+
</div>
3017
+
<b><?php echo esc_html__("Prompt To Send To The AI Image Editor:", 'aiomatic-automatic-ai-content-writer');?></b>
3018
+
</div>
3019
+
</td><td>
3020
+
<div>
3021
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_image_command_edit]" placeholder="Please insert a command for the AI image editor"><?php
3022
+
echo esc_textarea($ai_image_command_edit);
3023
+
?></textarea>
3024
+
</div>
3025
+
</td></tr><tr class="hideMain2e"><td>
3026
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3027
+
<div class="bws_hidden_help_text cr_min_260px">
3028
+
<?php
3029
+
echo esc_html__("How much influence the init_image has on the diffusion process. Values close to 1 will yield images very similar to the init_image while values close to 0 will yield images wildly different than the init_image. The behavior of this is meant to mirror DreamStudio's \"Image Strength\" slider. This parameter is just an alternate way to set step_schedule_start, which is done via the calculation 1 - image_strength. For example, passing in an Image Strength of 35% (0.35) would result in a step_schedule_start of 0.65.", 'aiomatic-automatic-ai-content-writer');
3030
+
?>
3031
+
</div>
3032
+
</div>
3033
+
<b><?php echo esc_html__("Original Image Strength:", 'aiomatic-automatic-ai-content-writer');?></b>
3034
+
3035
+
</td><td>
3036
+
<input type="number" min="0" max="1" step="0.01" id="image_strength" name="aiomatic_Spinner_Settings[image_strength]" class="cr_450" value="<?php echo esc_html($image_strength);?>" placeholder="Original image strength">
3037
+
</td></tr>
3038
+
<tr><td>
3039
+
<h2><?php echo esc_html__("AI Content Completion Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
3040
+
</td></tr><tr><td>
3041
+
<div>
3042
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3043
+
<div class="bws_hidden_help_text cr_min_260px">
3044
+
<?php
3045
+
echo esc_html__("The plugin will generate AI content, that will be prepended or appended to each post's content.", 'aiomatic-automatic-ai-content-writer');
3046
+
?>
3047
+
</div>
3048
+
</div>
3049
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Add AI Generated Content:", 'aiomatic-automatic-ai-content-writer');?></b>
3050
+
</div>
3051
+
</td><td>
3052
+
<div>
3053
+
<select id="append_spintax" name="aiomatic_Spinner_Settings[append_spintax]" onchange="mainChanged3();" >
3054
+
<option value="append"<?php
3055
+
if ($append_spintax == "append") {
3056
+
echo " selected";
3057
+
}
3058
+
?>><?php echo esc_html__("Append To The End", 'aiomatic-automatic-ai-content-writer');?></option>
3059
+
<option value="preppend"<?php
3060
+
if ($append_spintax == "preppend") {
3061
+
echo " selected";
3062
+
}
3063
+
?>><?php echo esc_html__("Prepend To The Beginning", 'aiomatic-automatic-ai-content-writer');?></option>
3064
+
<option value="inside"<?php
3065
+
if ($append_spintax == "inside") {
3066
+
echo " selected";
3067
+
}
3068
+
?>><?php echo esc_html__("Inject Into Existing Content", 'aiomatic-automatic-ai-content-writer');?></option>
3069
+
<option value="disabled"<?php
3070
+
if ($append_spintax == "disabled") {
3071
+
echo " selected";
3072
+
}
3073
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
3074
+
</select>
3075
+
</div>
3076
+
</td></tr><tr class="hideMain3"><td>
3077
+
<div>
3078
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3079
+
<div class="bws_hidden_help_text cr_min_260px">
3080
+
<?php
3081
+
echo esc_html__("Select where to add the AI generated content.", 'aiomatic-automatic-ai-content-writer');
3082
+
?>
3083
+
</div>
3084
+
</div>
3085
+
<b><?php echo esc_html__("Where To Add The AI Generated Content:", 'aiomatic-automatic-ai-content-writer');?></b>
3086
+
</div>
3087
+
</td><td>
3088
+
<div>
3089
+
<select id="append_location" name="aiomatic_Spinner_Settings[append_location]" >
3090
+
<option value="content"<?php
3091
+
if ($append_location == "content") {
3092
+
echo " selected";
3093
+
}
3094
+
?>><?php echo esc_html__("Post Content", 'aiomatic-automatic-ai-content-writer');?></option>
3095
+
<option value="title"<?php
3096
+
if ($append_location == "title") {
3097
+
echo " selected";
3098
+
}
3099
+
?>><?php echo esc_html__("Post Title", 'aiomatic-automatic-ai-content-writer');?></option>
3100
+
<option value="excerpt"<?php
3101
+
if ($append_location == "excerpt") {
3102
+
echo " selected";
3103
+
}
3104
+
?>><?php echo esc_html__("Post Excerpt", 'aiomatic-automatic-ai-content-writer');?></option>
3105
+
</select>
3106
+
</div>
3107
+
</td></tr>
3108
+
<tr class="hideMain3"><td>
3109
+
<div>
3110
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3111
+
<div class="bws_hidden_help_text cr_min_260px">
3112
+
<?php
3113
+
echo esc_html__("Set an prompt command you want to send to the AI text generator. This command can be any given task or order, based on which, it will generate content for posts. You can use the following shortcodes here: %%post_title%%, %%post_content%%, %%first_content_paragraph_plain_text%%, %%last_content_paragraph_plain_text%%, %%first_content_paragraph%%, %%last_content_paragraph%%, %%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');
3114
+
?>
3115
+
</div>
3116
+
</div>
3117
+
<b><?php echo esc_html__("Prompt For The AI Text Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
3118
+
</div>
3119
+
</td><td>
3120
+
<div>
3121
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_command]" placeholder="Please insert a command for the AI"><?php
3122
+
echo esc_textarea($ai_command);
3123
+
?></textarea>
3124
+
</div>
3125
+
</td></tr>
3126
+
<tr class="hideMain3">
3127
+
<td class="cr_min_width_200">
3128
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3129
+
<div class="bws_hidden_help_text cr_min_260px">
3130
+
<?php
3131
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
3132
+
?>
3133
+
</div>
3134
+
</div>
3135
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
3136
+
</td>
3137
+
<td><select id="append_assistant_id" name="aiomatic_Spinner_Settings[append_assistant_id]" class="cr_width_full" onchange="assistantSelected('append_assistant_id', 'disableAppend');">
3138
+
<?php
3139
+
if($all_assistants === false)
3140
+
{
3141
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
3142
+
}
3143
+
else
3144
+
{
3145
+
if(count($all_assistants) == 0)
3146
+
{
3147
+
echo '<option val="" 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>';
3148
+
}
3149
+
else
3150
+
{
3151
+
echo '<option value=""';
3152
+
if($append_assistant_id == '')
3153
+
{
3154
+
echo ' selected';
3155
+
}
3156
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
3157
+
foreach($all_assistants as $myassistant)
3158
+
{
3159
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
3160
+
if($append_assistant_id == $myassistant->ID)
3161
+
{
3162
+
echo ' selected';
3163
+
}
3164
+
echo '>' . esc_html($myassistant->post_title);
3165
+
echo '</option>';
3166
+
}
3167
+
}
3168
+
}
3169
+
?>
3170
+
</select>
3171
+
</td>
3172
+
</tr>
3173
+
<tr class="hideMain3"><td>
3174
+
<div>
3175
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3176
+
<div class="bws_hidden_help_text cr_min_260px">
3177
+
<?php
3178
+
echo esc_html__("Select the AI Model you want to use.", 'aiomatic-automatic-ai-content-writer');
3179
+
?>
3180
+
</div>
3181
+
</div>
3182
+
<b><?php echo esc_html__("AI Model To Use:", 'aiomatic-automatic-ai-content-writer');?></b>
3183
+
</div>
3184
+
</td><td>
3185
+
<div>
3186
+
<select id="model" name="aiomatic_Spinner_Settings[model]" <?php if($append_assistant_id != ''){echo ' disabled';}?> class="disableAppend" onchange="visionSelectedAI3();">
3187
+
<?php
3188
+
foreach($all_models as $modelx)
3189
+
{
3190
+
echo '<option value="' . esc_html($modelx) .'"';
3191
+
if ($model == $modelx)
3192
+
{
3193
+
echo " selected";
3194
+
}
3195
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3196
+
}
3197
+
?>
3198
+
</select>
3199
+
</div>
3200
+
</td></tr><tr class="hideMain3 hideVision3">
3201
+
<td class="cr_min_width_200">
3202
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3203
+
<div class="bws_hidden_help_text cr_min_260px">
3204
+
<?php
3205
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
3206
+
?>
3207
+
</div>
3208
+
</div>
3209
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
3210
+
</td>
3211
+
<td>
3212
+
<input type="checkbox" id="ai_vision_add" name="aiomatic_Spinner_Settings[ai_vision_add]"<?php
3213
+
if ($ai_vision_add == 'on')
3214
+
echo ' checked ';
3215
+
?>>
3216
+
</td>
3217
+
</tr><tr class="hideMain3"><td>
3218
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3219
+
<div class="bws_hidden_help_text cr_min_260px">
3220
+
<?php
3221
+
echo esc_html__("Add your additional static content to prepend the AI generated content. You can use the following shortcodes here: %%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');
3222
+
?>
3223
+
</div>
3224
+
</div>
3225
+
<b><?php echo esc_html__("Additional Text To Prepend To The AI Generated Content:", 'aiomatic-automatic-ai-content-writer');?></b>
3226
+
3227
+
</td><td>
3228
+
3229
+
<textarea rows="1" cols="70" name="aiomatic_Spinner_Settings[preppend_add]" placeholder="<?php echo esc_html__("Your optional text to prepend", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full"><?php echo esc_textarea($preppend_add);?></textarea>
3230
+
</td></tr><tr class="hideMain3"><td>
3231
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3232
+
<div class="bws_hidden_help_text cr_min_260px">
3233
+
<?php
3234
+
echo esc_html__("Add your additional static content to append the AI generated content. You can use the following shortcodes here: %%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');
3235
+
?>
3236
+
</div>
3237
+
</div>
3238
+
<b><?php echo esc_html__("Additional Text To Append To The AI Generated Content:", 'aiomatic-automatic-ai-content-writer');?></b>
3239
+
3240
+
</td><td>
3241
+
3242
+
<textarea rows="1" cols="70" name="aiomatic_Spinner_Settings[append_add]" placeholder="<?php echo esc_html__("Your optional text to append", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full"><?php echo esc_textarea($append_add);?></textarea>
3243
+
</td></tr><tr class="hideMain3"><td>
3244
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3245
+
<div class="bws_hidden_help_text cr_min_260px">
3246
+
<?php
3247
+
echo esc_html__("Set the maximum number of API tokens to use with each request. This will define the length of the resulting API response. Each token usually consists of approximately 4 characters. Note that in this value the number of tokens sent to the API as an article prompt will also be counted. The maximum amount which can be set it 4000.", 'aiomatic-automatic-ai-content-writer');
3248
+
?>
3249
+
</div>
3250
+
</div>
3251
+
<b><?php echo esc_html__("Maximum Total Token Count To Use Per API Request:", 'aiomatic-automatic-ai-content-writer');?></b>
3252
+
3253
+
</td><td>
3254
+
<input type="number" min="1" step="1" id="max_tokens" name="aiomatic_Spinner_Settings[max_tokens]" class="cr_450" value="<?php echo esc_html($max_tokens);?>" placeholder="Maximum Token Count To Spend on Each Request">
3255
+
</td></tr><tr class="hideMain3"><td>
3256
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3257
+
<div class="bws_hidden_help_text cr_min_260px">
3258
+
<?php
3259
+
echo esc_html__("Set the maximum number of prompt API tokens to use with each request. This will define the length of the resulting API response. Each token usually consists of approximately 4 characters. This defines how much content does the API receive each time you call it. If the API gets more initial data, better quality results will be expected. The maximum amount which can be set it 1000.", 'aiomatic-automatic-ai-content-writer');
3260
+
?>
3261
+
</div>
3262
+
</div>
3263
+
<b><?php echo esc_html__("Maximum Prompt Token Count To Use Per API Request:", 'aiomatic-automatic-ai-content-writer');?></b>
3264
+
3265
+
</td><td>
3266
+
<input type="number" min="1" step="1" id="max_seed_tokens" name="aiomatic_Spinner_Settings[max_seed_tokens]" class="cr_450" value="<?php echo esc_html($max_seed_tokens);?>" placeholder="Maximum Prompt Token Count To Spend on Each Request">
3267
+
</td></tr><tr class="hideMain3"><td>
3268
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3269
+
<div class="bws_hidden_help_text cr_min_260px">
3270
+
<?php
3271
+
echo esc_html__("Set the maximum number of result API tokens to use with each request. This will define the length of the resulting API response. Each token usually consists of approximately 4 characters. This defines how much content does the API receive each time you call it. If the API gets more initial data, better quality results will be expected. The maximum amount which can be set it 2048.", 'aiomatic-automatic-ai-content-writer');
3272
+
?>
3273
+
</div>
3274
+
</div>
3275
+
<b><?php echo esc_html__("Maximum Result Token Count To Use Per API Request:", 'aiomatic-automatic-ai-content-writer');?></b>
3276
+
3277
+
</td><td>
3278
+
<input type="number" min="1" step="1" max="2048" id="max_result_tokens" name="aiomatic_Spinner_Settings[max_result_tokens]" class="cr_450" value="<?php echo esc_html($max_result_tokens);?>" placeholder="Maximum Result Token Count To Spend on Each Request">
3279
+
</td></tr><tr class="hideMain3"><td>
3280
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3281
+
<div class="bws_hidden_help_text cr_min_260px">
3282
+
<?php
3283
+
echo esc_html__("Set the maximum number of continue API tokens to use with each request. This will define the length of the resulting API response. Each token usually consists of approximately 4 characters. This defines how much content does the API receive each time you call it. If the API gets more initial data, better quality results will be expected. The maximum amount which can be set it 2048.", 'aiomatic-automatic-ai-content-writer');
3284
+
?>
3285
+
</div>
3286
+
</div>
3287
+
<b><?php echo esc_html__("Maximum Continue Token Count To Use Per API Request:", 'aiomatic-automatic-ai-content-writer');?></b>
3288
+
3289
+
</td><td>
3290
+
<input type="number" min="1" step="1" max="2048" id="max_continue_tokens" name="aiomatic_Spinner_Settings[max_continue_tokens]" class="cr_450" value="<?php echo esc_html($max_continue_tokens);?>" placeholder="Maximum Result Continue Count To Spend on Each Request">
3291
+
</td></tr><tr class="hideMain3"><td colspan="2">
3292
+
<h2><?php echo esc_html__("Advanced API Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
3293
+
3294
+
</td></tr><tr class="hideMain3"><td>
3295
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3296
+
<div class="bws_hidden_help_text cr_min_260px">
3297
+
<?php
3298
+
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');
3299
+
?>
3300
+
</div>
3301
+
</div>
3302
+
<b><?php echo esc_html__("AI Content Writer Temperature:", 'aiomatic-automatic-ai-content-writer');?></b>
3303
+
3304
+
</td><td>
3305
+
<input type="number" min="0" step="0.01" max="2" id="temperature" name="aiomatic_Spinner_Settings[temperature]" class="cr_450" value="<?php echo esc_html($temperature);?>" placeholder="1">
3306
+
</td></tr><tr class="hideMain3"><td>
3307
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3308
+
<div class="bws_hidden_help_text cr_min_260px">
3309
+
<?php
3310
+
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');
3311
+
?>
3312
+
</div>
3313
+
</div>
3314
+
<b><?php echo esc_html__("AI Content Writer Top_p:", 'aiomatic-automatic-ai-content-writer');?></b>
3315
+
3316
+
</td><td>
3317
+
<input type="number" min="0" step="0.01" max="1" id="top_p" name="aiomatic_Spinner_Settings[top_p]" class="cr_450" value="<?php echo esc_html($top_p);?>" placeholder="1">
3318
+
</td></tr><tr class="hideMain3"><td>
3319
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3320
+
<div class="bws_hidden_help_text cr_min_260px">
3321
+
<?php
3322
+
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');
3323
+
?>
3324
+
</div>
3325
+
</div>
3326
+
<b><?php echo esc_html__("AI Presence Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
3327
+
3328
+
</td><td>
3329
+
<input type="number" min="-2" step="0.01" max="2" id="presence_penalty" name="aiomatic_Spinner_Settings[presence_penalty]" class="cr_450" value="<?php echo esc_html($presence_penalty);?>" placeholder="0">
3330
+
</td></tr><tr class="hideMain3"><td>
3331
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3332
+
<div class="bws_hidden_help_text cr_min_260px">
3333
+
<?php
3334
+
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');
3335
+
?>
3336
+
</div>
3337
+
</div>
3338
+
<b><?php echo esc_html__("AI Frequency Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
3339
+
3340
+
</td><td>
3341
+
<input type="number" min="-2" step="0.01" max="2" id="frequency_penalty" name="aiomatic_Spinner_Settings[frequency_penalty]" class="cr_450" value="<?php echo esc_html($frequency_penalty);?>" placeholder="0">
3342
+
</td></tr><tr class="hideMain3"><td>
3343
+
<div>
3344
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3345
+
<div class="bws_hidden_help_text cr_min_260px">
3346
+
<?php
3347
+
echo sprintf( wp_kses( __( "Select the minimum number of characters that the content additional content should have. If the API returns content which has fewer characters than this number, another API call will be made, until this character limit is met. Please check about API rate limiting <a href='%s'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://beta.openai.com/docs/api-reference/introduction' );
3348
+
?>
3349
+
</div>
3350
+
</div>
3351
+
<b><?php echo esc_html__("Created Content Minimum Character Count:", 'aiomatic-automatic-ai-content-writer');?></b>
3352
+
</div>
3353
+
</td><td>
3354
+
<div>
3355
+
<input type="number" min="1" step="1" name="aiomatic_Spinner_Settings[min_char]" value="<?php echo esc_html($min_char);?>" placeholder="Please insert a minimum number of characters for posts" class="cr_width_full">
3356
+
</div>
3357
+
</td></tr><tr class="hideMain3"><td colspan="2">
3358
+
<h2><?php echo esc_html__("Rich Content Creation Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
3359
+
</td></tr>
3360
+
<tr class="hideMain3">
3361
+
<td class="cr_min_width_200">
3362
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3363
+
<div class="bws_hidden_help_text cr_min_260px">
3364
+
<?php
3365
+
echo esc_html__("Set the maximum number of related headings to add to the created post content. This feature will use the 'People Also Ask' feature from Google and Bing. By default, the Bing engine is scraped, if you want to enable also Google scraping, add a SerpAPI key in the plugin's 'Settings' menu -> 'SerpAPI API Key' settings field.", 'aiomatic-automatic-ai-content-writer');
3366
+
?>
3367
+
</div>
3368
+
</div>
3369
+
<b><?php echo esc_html__("Maximum Number Of Related Headings to Add To The Content:", 'aiomatic-automatic-ai-content-writer');?></b>
3370
+
</td>
3371
+
<td>
3372
+
<input type="number" min="0" name="aiomatic_Spinner_Settings[headings]" value="<?php echo esc_html($headings);?>" placeholder="Max heading count" class="cr_width_full">
3373
+
</td>
3374
+
</tr>
3375
+
<tr class="hideMain3">
3376
+
<td class="cr_min_width_200">
3377
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3378
+
<div class="bws_hidden_help_text cr_min_260px">
3379
+
<?php
3380
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
3381
+
?>
3382
+
</div>
3383
+
</div>
3384
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
3385
+
</td>
3386
+
<td><select id="headings_assistant_id" name="aiomatic_Spinner_Settings[headings_assistant_id]" class="cr_width_full" onchange="assistantSelected('headings_assistant_id', 'disableHeadings');">
3387
+
<?php
3388
+
if($all_assistants === false)
3389
+
{
3390
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
3391
+
}
3392
+
else
3393
+
{
3394
+
if(count($all_assistants) == 0)
3395
+
{
3396
+
echo '<option val="" 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>';
3397
+
}
3398
+
else
3399
+
{
3400
+
echo '<option value=""';
3401
+
if($headings_assistant_id == '')
3402
+
{
3403
+
echo ' selected';
3404
+
}
3405
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
3406
+
foreach($all_assistants as $myassistant)
3407
+
{
3408
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
3409
+
if($headings_assistant_id == $myassistant->ID)
3410
+
{
3411
+
echo ' selected';
3412
+
}
3413
+
echo '>' . esc_html($myassistant->post_title);
3414
+
echo '</option>';
3415
+
}
3416
+
}
3417
+
}
3418
+
?>
3419
+
</select>
3420
+
</td>
3421
+
</tr>
3422
+
<tr class="hideMain3">
3423
+
<td>
3424
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3425
+
<div class="bws_hidden_help_text cr_min_260px">
3426
+
<?php
3427
+
echo esc_html__("Select the AI Model to be used for headings generator.", 'aiomatic-automatic-ai-content-writer');
3428
+
?>
3429
+
</div>
3430
+
</div>
3431
+
<b><?php echo esc_html__("AI Model For The Headings Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
3432
+
</td>
3433
+
<td class="cr_min_width_200">
3434
+
<select id="headings_model" name="aiomatic_Spinner_Settings[headings_model]" <?php if($headings_assistant_id != ''){echo ' disabled';}?> class="cr_width_full disableHeadings">
3435
+
<?php
3436
+
foreach($all_models as $modelx)
3437
+
{
3438
+
echo '<option value="' . esc_html($modelx) .'"';
3439
+
if ($headings_model == $modelx)
3440
+
{
3441
+
echo " selected";
3442
+
}
3443
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3444
+
}
3445
+
?>
3446
+
</select>
3447
+
</td>
3448
+
</tr>
3449
+
<tr class="hideMain3">
3450
+
<td class="cr_min_width_200">
3451
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3452
+
<div class="bws_hidden_help_text cr_min_260px">
3453
+
<?php
3454
+
echo esc_html__("Set the prompt you will use when searching for related headings. You can use the following shortcodes: %%post_title%%, %%needed_heading_count%%. The same model will be used, as the one selected for content creation. If you leave this field blank, the default prompt will be used: 'Write %%needed_heading_count%% PAA related questions, each on a new line, for the title: %%post_title%%'", 'aiomatic-automatic-ai-content-writer');
3455
+
?>
3456
+
</div>
3457
+
</div>
3458
+
<b><?php echo esc_html__("Prompt For The AI Related Headings Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
3459
+
</td>
3460
+
<td>
3461
+
<textarea rows="2" cols="70" name="aiomatic_Spinner_Settings[headings_ai_command]" placeholder="Write %%needed_heading_count%% PAA related questions, each on a new line, for the title: %%post_title%%" class="cr_width_full"><?php echo esc_textarea($headings_ai_command);?></textarea>
3462
+
</td>
3463
+
</tr>
3464
+
<tr class="hideMain3">
3465
+
<td class="cr_min_width_200">
3466
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3467
+
<div class="bws_hidden_help_text cr_min_260px">
3468
+
<?php
3469
+
echo esc_html__("Set the maximum number of related images to add to the created post content. This feature will use the 'Royalty Free Image' settings from the plugin's 'Settings' menu.'", 'aiomatic-automatic-ai-content-writer');
3470
+
?>
3471
+
</div>
3472
+
</div>
3473
+
<b><?php echo esc_html__("Maximum Number Of Related Images to Add To The Content:", 'aiomatic-automatic-ai-content-writer');?></b>
3474
+
</td>
3475
+
<td>
3476
+
<input type="number" min="0" name="aiomatic_Spinner_Settings[images]" value="<?php echo esc_html($images);?>" placeholder="Max image count" class="cr_width_full">
3477
+
</td>
3478
+
</tr>
3479
+
<tr class="hideMain3">
3480
+
<td class="cr_min_width_200">
3481
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3482
+
<div class="bws_hidden_help_text cr_min_260px">
3483
+
<?php
3484
+
echo esc_html__("Do you want to replace the royalty free image with an AI generated image?", 'aiomatic-automatic-ai-content-writer');
3485
+
?>
3486
+
</div>
3487
+
</div>
3488
+
<b><?php echo esc_html__("AI Image Source:", 'aiomatic-automatic-ai-content-writer');?></b>
3489
+
</td>
3490
+
<td>
3491
+
<select id="enable_ai_images" name="aiomatic_Spinner_Settings[enable_ai_images]" class="cr_width_full">
3492
+
<option value="1"<?php
3493
+
if ($enable_ai_images == '1' || $enable_ai_images == 'on')
3494
+
echo ' selected ';
3495
+
?>><?php echo esc_html__("OpenAI/AiomaticAPI", 'aiomatic-automatic-ai-content-writer');?></option>
3496
+
<?php
3497
+
if (isset($aiomatic_Main_Settings['stability_app_id']) && trim($aiomatic_Main_Settings['stability_app_id']) != '')
3498
+
{
3499
+
?>
3500
+
<option value="2"<?php
3501
+
if ($enable_ai_images == '2')
3502
+
echo ' selected ';
3503
+
?>><?php echo esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer');?></option>
3504
+
<?php
3505
+
}
3506
+
if (isset($aiomatic_Main_Settings['midjourney_app_id']) && trim($aiomatic_Main_Settings['midjourney_app_id']) != '')
3507
+
{
3508
+
?>
3509
+
<option value="3"<?php
3510
+
if ($enable_ai_images == '3')
3511
+
echo ' selected ';
3512
+
?>><?php echo esc_html__("Midjourney", 'aiomatic-automatic-ai-content-writer');?></option>
3513
+
<?php
3514
+
}
3515
+
if (isset($aiomatic_Main_Settings['replicate_app_id']) && trim($aiomatic_Main_Settings['replicate_app_id']) != '')
3516
+
{
3517
+
?>
3518
+
<option value="4"<?php
3519
+
if ($enable_ai_images == '4')
3520
+
echo ' selected ';
3521
+
?>><?php echo esc_html__("Replicate", 'aiomatic-automatic-ai-content-writer');?></option>
3522
+
<?php
3523
+
}
3524
+
if (isset($aiomatic_Main_Settings['ideogram_app_id']) && trim($aiomatic_Main_Settings['ideogram_app_id']) != '')
3525
+
{
3526
+
?>
3527
+
<option value="5"<?php
3528
+
if ($enable_ai_images == '5')
3529
+
echo ' selected ';
3530
+
?>><?php echo esc_html__("Ideogram", 'aiomatic-automatic-ai-content-writer');?></option>
3531
+
<?php
3532
+
}
3533
+
if (isset($aiomatic_Main_Settings['app_id_google']) && trim($aiomatic_Main_Settings['app_id_google']) != '')
3534
+
{
3535
+
?>
3536
+
<option value="6"<?php
3537
+
if ($enable_ai_images == '6')
3538
+
echo ' selected ';
3539
+
?>><?php echo esc_html__("Google", 'aiomatic-automatic-ai-content-writer');?></option>
3540
+
<?php
3541
+
}
3542
+
?>
3543
+
<option value="0"<?php
3544
+
if ($enable_ai_images == '0' || $enable_ai_images == '')
3545
+
echo ' selected ';
3546
+
?>><?php echo esc_html__("Royalty Free", 'aiomatic-automatic-ai-content-writer');?></option>
3547
+
</select>
3548
+
</td>
3549
+
</tr>
3550
+
<tr class="hideMain3">
3551
+
<td class="cr_min_width_200">
3552
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3553
+
<div class="bws_hidden_help_text cr_min_260px">
3554
+
<?php
3555
+
echo esc_html__("Add related social embeds to the created post content. This feature will require you to add at least one YouTube API key in the plugin's 'Settings' -> 'YouTube API Key List' settings field.", 'aiomatic-automatic-ai-content-writer');
3556
+
?>
3557
+
</div>
3558
+
</div>
3559
+
<b><?php echo esc_html__("Add Related Rich Embeds To The Post:", 'aiomatic-automatic-ai-content-writer');?></b>
3560
+
</td>
3561
+
<td>
3562
+
<input type="checkbox" id="videos" name="aiomatic_Spinner_Settings[videos]"<?php
3563
+
if ($videos == 'on')
3564
+
echo ' checked ';
3565
+
?>>
3566
+
</td>
3567
+
</tr>
3568
+
<tr class="hideMain3">
3569
+
<td class="cr_min_width_200">
3570
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3571
+
<div class="bws_hidden_help_text cr_min_260px">
3572
+
<?php
3573
+
echo esc_html__("Select the location where you want to add the rich embed in the edited content.", 'aiomatic-automatic-ai-content-writer');
3574
+
?>
3575
+
</div>
3576
+
</div>
3577
+
<b><?php echo esc_html__("Rich Embed Location:", 'aiomatic-automatic-ai-content-writer');?></b>
3578
+
</td>
3579
+
<td>
3580
+
<select id="rich_embed_location" name="aiomatic_Spinner_Settings[rich_embed_location]" class="cr_width_full">
3581
+
<option value="bottom"<?php
3582
+
if ($rich_embed_location == '' || $rich_embed_location == 'bottom')
3583
+
echo ' selected ';
3584
+
?>><?php echo esc_html__("Bottom", 'aiomatic-automatic-ai-content-writer');?></option>
3585
+
<option value="top"<?php
3586
+
if ($rich_embed_location == 'top')
3587
+
echo ' selected ';
3588
+
?>><?php echo esc_html__("Top", 'aiomatic-automatic-ai-content-writer');?></option>
3589
+
<option value="inside"<?php
3590
+
if ($rich_embed_location == 'inside')
3591
+
echo ' selected ';
3592
+
?>><?php echo esc_html__("Randomly replace images", 'aiomatic-automatic-ai-content-writer');?></option>
3593
+
</select>
3594
+
</td>
3595
+
</tr>
3596
+
<tr class="hideMain3">
3597
+
<th>
3598
+
<div>
3599
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3600
+
<div class="bws_hidden_help_text cr_min_260px">
3601
+
<?php
3602
+
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');
3603
+
?>
3604
+
</div>
3605
+
</div>
3606
+
<b><?php echo esc_html__("Get Rich Embeds In Articles From These Social Networks:", 'aiomatic-automatic-ai-content-writer');?></b>
3607
+
</div>
3608
+
</th>
3609
+
<td>
3610
+
<div>
3611
+
<select autocomplete="off" id="social_list" multiple name="aiomatic_Spinner_Settings[social_list][]" class="cr_width_full">
3612
+
<option value="youtube" <?php
3613
+
if (empty($social_list) || in_array('youtube', $social_list))
3614
+
{
3615
+
echo ' selected';
3616
+
}
3617
+
?>
3618
+
><?php echo esc_html__("YouTube", 'aiomatic-automatic-ai-content-writer');?></option>
3619
+
<option value="twitter" <?php
3620
+
if (!is_plugin_active('twitomatic-twitter-post-generator/twitomatic-twitter-post-generator.php'))
3621
+
{
3622
+
echo ' disabled title="' . esc_html__("Please install and activate the X-omatic plugin for this feature to be activated.", 'aiomatic-automatic-ai-content-writer'). '"';
3623
+
}
3624
+
else
3625
+
{
3626
+
if (in_array('twitter', $social_list))
3627
+
{
3628
+
echo ' selected';
3629
+
}
3630
+
}
3631
+
?>
3632
+
><?php echo esc_html__("X (Twitter)", 'aiomatic-automatic-ai-content-writer');?></option>
3633
+
<option value="instagram"
3634
+
<?php
3635
+
if (!is_plugin_active('instamatic-instagram-post-generator/instamatic-instagram-post-generator.php'))
3636
+
{
3637
+
echo ' disabled title="' . esc_html__("Please install and activate the iMediamatic plugin for this feature to be activated.", 'aiomatic-automatic-ai-content-writer'). '"';
3638
+
}
3639
+
else
3640
+
{
3641
+
if (in_array('instagram', $social_list))
3642
+
{
3643
+
echo ' selected';
3644
+
}
3645
+
}
3646
+
?>
3647
+
><?php echo esc_html__("Instagram", 'aiomatic-automatic-ai-content-writer');?></option>
3648
+
<option value="pinterest"
3649
+
<?php
3650
+
if (!is_plugin_active('pinterestomatic-pinterest-post-generator/pinterestomatic-pinterest-post-generator.php'))
3651
+
{
3652
+
echo ' disabled title="' . esc_html__("Please install and activate the Pinterestomatic plugin for this feature to be activated.", 'aiomatic-automatic-ai-content-writer'). '"';
3653
+
}
3654
+
else
3655
+
{
3656
+
if (in_array('pinterest', $social_list))
3657
+
{
3658
+
echo ' selected';
3659
+
}
3660
+
}
3661
+
?>
3662
+
><?php echo esc_html__("Pinterest", 'aiomatic-automatic-ai-content-writer');?></option>
3663
+
</select>
3664
+
</div>
3665
+
</td>
3666
+
</tr>
3667
+
<tr><td colspan="2"><hr/></td></tr>
3668
+
<tr><td>
3669
+
<div>
3670
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3671
+
<div class="bws_hidden_help_text cr_min_260px">
3672
+
<?php
3673
+
echo esc_html__("The plugin will generate a table of contents for edited posts.", 'aiomatic-automatic-ai-content-writer');
3674
+
?>
3675
+
</div>
3676
+
</div>
3677
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Add Table Of Contents To Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
3678
+
</div>
3679
+
</td><td>
3680
+
<div>
3681
+
<select id="append_toc" name="aiomatic_Spinner_Settings[append_toc]" onchange="mainChanged9();" >
3682
+
<option value="preppend"<?php
3683
+
if ($append_toc == "preppend") {
3684
+
echo " selected";
3685
+
}
3686
+
?>><?php echo esc_html__("Prepend To The Beginning", 'aiomatic-automatic-ai-content-writer');?></option>
3687
+
<option value="append"<?php
3688
+
if ($append_toc == "append") {
3689
+
echo " selected";
3690
+
}
3691
+
?>><?php echo esc_html__("Append To The End", 'aiomatic-automatic-ai-content-writer');?></option>
3692
+
<option value="heading"<?php
3693
+
if ($append_toc == "heading") {
3694
+
echo " selected";
3695
+
}
3696
+
?>><?php echo esc_html__("Before First Heading", 'aiomatic-automatic-ai-content-writer');?></option>
3697
+
<option value="heading2"<?php
3698
+
if ($append_toc == "heading2") {
3699
+
echo " selected";
3700
+
}
3701
+
?>><?php echo esc_html__("After First Heading", 'aiomatic-automatic-ai-content-writer');?></option>
3702
+
<option value="disabled"<?php
3703
+
if (empty($append_toc) || $append_toc == "disabled") {
3704
+
echo " selected";
3705
+
}
3706
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
3707
+
</select>
3708
+
</div>
3709
+
</td></tr>
3710
+
<tr class="hideMain9"><td>
3711
+
<div>
3712
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3713
+
<div class="bws_hidden_help_text cr_min_260px">
3714
+
<?php
3715
+
echo esc_html__("Select when do you want to show the ToC in edited posts.", 'aiomatic-automatic-ai-content-writer');
3716
+
?>
3717
+
</div>
3718
+
</div>
3719
+
<b><?php echo esc_html__("When To Show The Table Of Contents:", 'aiomatic-automatic-ai-content-writer');?></b>
3720
+
</div>
3721
+
</td><td>
3722
+
<div>
3723
+
<select id="when_toc" name="aiomatic_Spinner_Settings[when_toc]" >
3724
+
<option value="2"<?php
3725
+
if ($when_toc == "2") {
3726
+
echo " selected";
3727
+
}
3728
+
?>><?php echo esc_html__("2 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3729
+
<option value="3"<?php
3730
+
if ($when_toc == "3") {
3731
+
echo " selected";
3732
+
}
3733
+
?>><?php echo esc_html__("3 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3734
+
<option value="4"<?php
3735
+
if (empty($when_toc) || $when_toc == "4") {
3736
+
echo " selected";
3737
+
}
3738
+
?>><?php echo esc_html__("4 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3739
+
<option value="5"<?php
3740
+
if ($when_toc == "5") {
3741
+
echo " selected";
3742
+
}
3743
+
?>><?php echo esc_html__("5 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3744
+
<option value="6"<?php
3745
+
if ($when_toc == "6") {
3746
+
echo " selected";
3747
+
}
3748
+
?>><?php echo esc_html__("6 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3749
+
<option value="7"<?php
3750
+
if ($when_toc == "7") {
3751
+
echo " selected";
3752
+
}
3753
+
?>><?php echo esc_html__("7 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3754
+
<option value="8"<?php
3755
+
if ($when_toc == "8") {
3756
+
echo " selected";
3757
+
}
3758
+
?>><?php echo esc_html__("8 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3759
+
<option value="9"<?php
3760
+
if ($when_toc == "9") {
3761
+
echo " selected";
3762
+
}
3763
+
?>><?php echo esc_html__("9 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3764
+
<option value="10"<?php
3765
+
if ($when_toc == "10") {
3766
+
echo " selected";
3767
+
}
3768
+
?>><?php echo esc_html__("10 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3769
+
<option value="11"<?php
3770
+
if ($when_toc == "11") {
3771
+
echo " selected";
3772
+
}
3773
+
?>><?php echo esc_html__("11 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3774
+
<option value="12"<?php
3775
+
if ($when_toc == "12") {
3776
+
echo " selected";
3777
+
}
3778
+
?>><?php echo esc_html__("12 Or More Headings", 'aiomatic-automatic-ai-content-writer');?></option>
3779
+
</select>
3780
+
</div>
3781
+
</td></tr>
3782
+
<tr class="hideMain9"><td>
3783
+
<div>
3784
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3785
+
<div class="bws_hidden_help_text cr_min_260px">
3786
+
<?php
3787
+
echo esc_html__("Select the title to show on top of the table of contents.", 'aiomatic-automatic-ai-content-writer');
3788
+
?>
3789
+
</div>
3790
+
</div>
3791
+
<b><?php echo esc_html__("Table Of Contents Title:", 'aiomatic-automatic-ai-content-writer');?></b>
3792
+
</div>
3793
+
</td><td>
3794
+
<div>
3795
+
<input type="text" id="title_toc" name="aiomatic_Spinner_Settings[title_toc]" placeholder="Table of Contents" class="cr_width_full" value="<?php echo esc_attr($title_toc);?>">
3796
+
</div>
3797
+
</td></tr>
3798
+
<tr class="hideMain9"><td>
3799
+
<div>
3800
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3801
+
<div class="bws_hidden_help_text cr_min_260px">
3802
+
<?php
3803
+
echo esc_html__("Select if you want to show headings hierarchically.", 'aiomatic-automatic-ai-content-writer');
3804
+
?>
3805
+
</div>
3806
+
</div>
3807
+
<b><?php echo esc_html__("Show Hierarchical Table of Contents:", 'aiomatic-automatic-ai-content-writer');?></b>
3808
+
</div>
3809
+
</td><td>
3810
+
<div>
3811
+
<input type="checkbox" id="hierarchy_toc" name="aiomatic_Spinner_Settings[hierarchy_toc]"<?php
3812
+
if ($hierarchy_toc == 'on')
3813
+
echo ' checked ';
3814
+
?>>
3815
+
</div>
3816
+
</td></tr>
3817
+
<tr class="hideMain9"><td>
3818
+
<div>
3819
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3820
+
<div class="bws_hidden_help_text cr_min_260px">
3821
+
<?php
3822
+
echo esc_html__("Select if you want to add numbers to list items from the Table of Contents.", 'aiomatic-automatic-ai-content-writer');
3823
+
?>
3824
+
</div>
3825
+
</div>
3826
+
<b><?php echo esc_html__("Add Numbers To List Items:", 'aiomatic-automatic-ai-content-writer');?></b>
3827
+
</div>
3828
+
</td><td>
3829
+
<div>
3830
+
<input type="checkbox" id="add_numbers_toc" name="aiomatic_Spinner_Settings[add_numbers_toc]"<?php
3831
+
if ($add_numbers_toc == 'on')
3832
+
echo ' checked ';
3833
+
?>>
3834
+
</div>
3835
+
</td></tr>
3836
+
<tr class="hideMain9"><td>
3837
+
<div>
3838
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3839
+
<div class="bws_hidden_help_text cr_min_260px">
3840
+
<?php
3841
+
echo esc_html__("Include the following heading levels. Deselecting a heading will exclude it.", 'aiomatic-automatic-ai-content-writer');
3842
+
?>
3843
+
</div>
3844
+
</div>
3845
+
<b><?php echo esc_html__("Content Heading Levels To Include:", 'aiomatic-automatic-ai-content-writer');?></b>
3846
+
</div>
3847
+
</td><td>
3848
+
<div>
3849
+
<input type="checkbox" id="heading_levels1" name="aiomatic_Spinner_Settings[heading_levels1]"<?php
3850
+
if ($heading_levels1 == 'on')
3851
+
echo ' checked ';
3852
+
?>><label for="heading_levels1"><?php echo esc_html__('Heading 1 - h1', 'aiomatic-automatic-ai-content-writer');?></label><br/>
3853
+
<input type="checkbox" id="heading_levels2" name="aiomatic_Spinner_Settings[heading_levels2]"<?php
3854
+
if ($heading_levels2 == 'on')
3855
+
echo ' checked ';
3856
+
?>><label for="heading_levels2"><?php echo esc_html__('Heading 2 - h2', 'aiomatic-automatic-ai-content-writer');?></label><br/>
3857
+
<input type="checkbox" id="heading_levels3" name="aiomatic_Spinner_Settings[heading_levels3]"<?php
3858
+
if ($heading_levels3 == 'on')
3859
+
echo ' checked ';
3860
+
?>><label for="heading_levels3"><?php echo esc_html__('Heading 3 - h3', 'aiomatic-automatic-ai-content-writer');?></label><br/>
3861
+
<input type="checkbox" id="heading_levels4" name="aiomatic_Spinner_Settings[heading_levels4]"<?php
3862
+
if ($heading_levels4 == 'on')
3863
+
echo ' checked ';
3864
+
?>><label for="heading_levels4"><?php echo esc_html__('Heading 4 - h4', 'aiomatic-automatic-ai-content-writer');?></label><br/>
3865
+
<input type="checkbox" id="heading_levels5" name="aiomatic_Spinner_Settings[heading_levels5]"<?php
3866
+
if ($heading_levels5 == 'on')
3867
+
echo ' checked ';
3868
+
?>><label for="heading_levels5"><?php echo esc_html__('Heading 5 - h5', 'aiomatic-automatic-ai-content-writer');?></label><br/>
3869
+
<input type="checkbox" id="heading_levels6" name="aiomatic_Spinner_Settings[heading_levels6]"<?php
3870
+
if ($heading_levels6 == 'on')
3871
+
echo ' checked ';
3872
+
?>><label for="heading_levels6"><?php echo esc_html__('Heading 6 - h6', 'aiomatic-automatic-ai-content-writer');?></label><br/>
3873
+
</div>
3874
+
</td></tr>
3875
+
<tr class="hideMain9"><td>
3876
+
<div>
3877
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3878
+
<div class="bws_hidden_help_text cr_min_260px">
3879
+
<?php
3880
+
echo esc_html__("Specify headings to be excluded from appearing in the table of contents. Separate multiple headings with a pipe |. Use an asterisk * as a wildcard to match other text. Note that this is not case sensitive. Some examples: Fruit* ignore headings starting with \"Fruit\" *Fruit Diet* ignore headings with \"Fruit Diet\" somewhere in the heading Apple Tree|Oranges|Yellow Bananas ignore headings that are exactly \"Apple Tree\", \"Oranges\" or \"Yellow Bananas\"", 'aiomatic-automatic-ai-content-writer');
3881
+
?>
3882
+
</div>
3883
+
</div>
3884
+
<b><?php echo esc_html__("Excluded Headings Patterns:", 'aiomatic-automatic-ai-content-writer');?></b>
3885
+
</div>
3886
+
</td><td>
3887
+
<div>
3888
+
<textarea rows="1" cols="70" name="aiomatic_Spinner_Settings[exclude_toc]" placeholder="Headings to exclude" class="cr_width_full"><?php echo esc_textarea($exclude_toc);?></textarea>
3889
+
</div>
3890
+
</td></tr>
3891
+
<tr class="hideMain9"><td>
3892
+
<div>
3893
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3894
+
<div class="bws_hidden_help_text cr_min_260px">
3895
+
<?php
3896
+
echo esc_html__("Select the direction in which you want to float the Table of Contents.", 'aiomatic-automatic-ai-content-writer');
3897
+
?>
3898
+
</div>
3899
+
</div>
3900
+
<b><?php echo esc_html__("Table Of Contents Position:", 'aiomatic-automatic-ai-content-writer');?></b>
3901
+
</div>
3902
+
</td><td>
3903
+
<div>
3904
+
<select id="float_toc" name="aiomatic_Spinner_Settings[float_toc]" >
3905
+
<option value="none"<?php
3906
+
if (empty($float_toc) || $float_toc == "none") {
3907
+
echo " selected";
3908
+
}
3909
+
?>><?php echo esc_html__("None", 'aiomatic-automatic-ai-content-writer');?></option>
3910
+
<option value="left"<?php
3911
+
if ($float_toc == "left") {
3912
+
echo " selected";
3913
+
}
3914
+
?>><?php echo esc_html__("Left", 'aiomatic-automatic-ai-content-writer');?></option>
3915
+
<option value="right"<?php
3916
+
if ($float_toc == "right") {
3917
+
echo " selected";
3918
+
}
3919
+
?>><?php echo esc_html__("Right", 'aiomatic-automatic-ai-content-writer');?></option>
3920
+
</select>
3921
+
</div>
3922
+
</td></tr>
3923
+
<tr class="hideMain9"><td>
3924
+
<div>
3925
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3926
+
<div class="bws_hidden_help_text cr_min_260px">
3927
+
<?php
3928
+
echo esc_html__("Select the color theme for the Table of Contents.", 'aiomatic-automatic-ai-content-writer');
3929
+
?>
3930
+
</div>
3931
+
</div>
3932
+
<b><?php echo esc_html__("Table Of Contents Color Theme:", 'aiomatic-automatic-ai-content-writer');?></b>
3933
+
</div>
3934
+
</td><td>
3935
+
<div>
3936
+
<select id="color_toc" name="aiomatic_Spinner_Settings[color_toc]" >
3937
+
<option value="transparent"<?php
3938
+
if ($color_toc == "transparent") {
3939
+
echo " selected";
3940
+
}
3941
+
?>><?php echo esc_html__("Transparent", 'aiomatic-automatic-ai-content-writer');?></option>
3942
+
<option value="gray"<?php
3943
+
if (empty($color_toc) || $color_toc == "gray") {
3944
+
echo " selected";
3945
+
}
3946
+
?>><?php echo esc_html__("Gray", 'aiomatic-automatic-ai-content-writer');?></option>
3947
+
<option value="blue"<?php
3948
+
if ($color_toc == "blue") {
3949
+
echo " selected";
3950
+
}
3951
+
?>><?php echo esc_html__("Light Blue", 'aiomatic-automatic-ai-content-writer');?></option>
3952
+
<option value="white"<?php
3953
+
if ($color_toc == "white") {
3954
+
echo " selected";
3955
+
}
3956
+
?>><?php echo esc_html__("White", 'aiomatic-automatic-ai-content-writer');?></option>
3957
+
<option value="black"<?php
3958
+
if ($color_toc == "black") {
3959
+
echo " selected";
3960
+
}
3961
+
?>><?php echo esc_html__("Black", 'aiomatic-automatic-ai-content-writer');?></option>
3962
+
</select>
3963
+
</div>
3964
+
</td></tr>
3965
+
<tr><td>
3966
+
<h2><?php echo esc_html__("Post Content Automatic Linking Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
3967
+
</td></tr><tr><td>
3968
+
<div>
3969
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3970
+
<div class="bws_hidden_help_text cr_min_260px">
3971
+
<?php
3972
+
echo esc_html__("The plugin will automatically add automatic links to other posts from your site, to keywords from each post.", 'aiomatic-automatic-ai-content-writer');
3973
+
?>
3974
+
</div>
3975
+
</div>
3976
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Automatically Add Links To Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
3977
+
</div>
3978
+
</td><td>
3979
+
<div>
3980
+
<select id="add_links" name="aiomatic_Spinner_Settings[add_links]" onchange="mainChanged4();" >
3981
+
<option value="disabled"<?php
3982
+
if ($add_links == "disabled") {
3983
+
echo " selected";
3984
+
}
3985
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
3986
+
<option value="enabled"<?php
3987
+
if ($add_links == "enabled") {
3988
+
echo " selected";
3989
+
}
3990
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
3991
+
</select>
3992
+
</div>
3993
+
</td></tr>
3994
+
<tr class="hideMain4">
3995
+
<td class="cr_min_width_200">
3996
+
<div>
3997
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3998
+
<div class="bws_hidden_help_text cr_min_260px">
3999
+
<?php
4000
+
echo esc_html__("Select the automatic linking method you want to use in the edited content. You can choose between Aimogen's built-in method and using the Internal Link Juicer plugin (in which case, Aimogen will create keywords which will be able to be used by Internal Link Juicer, for internal linking).", 'aiomatic-automatic-ai-content-writer');
4001
+
?>
4002
+
</div>
4003
+
</div>
4004
+
<b><?php echo esc_html__("Internal Linking Method To Use:", 'aiomatic-automatic-ai-content-writer');?></b>
4005
+
</td>
4006
+
<td>
4007
+
<select id="link_method" name="aiomatic_Spinner_Settings[link_method]" onchange="mainChanged4();">
4008
+
<option value="aiomatic"<?php
4009
+
if(!function_exists('is_plugin_active'))
4010
+
{
4011
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
4012
+
}
4013
+
$linkjuicer_active = true;
4014
+
if (!is_plugin_active('internal-links/wp-internal-linkjuicer.php') && !is_plugin_active('internal-links-premium/wp-internal-linkjuicer.php'))
4015
+
{
4016
+
$linkjuicer_active = false;
4017
+
}
4018
+
if (empty($link_method) || $link_method == "aiomatic" || $linkjuicer_active == false) {
4019
+
echo " selected";
4020
+
}
4021
+
?>><?php echo esc_html__("Aimogen's Built-in Method", 'aiomatic-automatic-ai-content-writer');?></option>
4022
+
<option value="linkjuicer"<?php
4023
+
if ($link_method == "linkjuicer" && $linkjuicer_active != false) {
4024
+
echo " selected";
4025
+
}
4026
+
4027
+
if($linkjuicer_active === false)
4028
+
{
4029
+
echo ' disabled title="You need to install the Internal Link Juicer plugin for this option to be active!"';
4030
+
}
4031
+
?>><?php echo esc_html__("Internal Link Juicer plugin", 'aiomatic-automatic-ai-content-writer');?></option>
4032
+
</select>
4033
+
</td>
4034
+
</tr>
4035
+
<tr class="hideMain4l"><td>
4036
+
<div>
4037
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4038
+
<div class="bws_hidden_help_text cr_min_260px">
4039
+
<?php
4040
+
echo esc_html__("Set an prompt command you want to send to the Internal Link Juicer Keyword Extractor. You can use the following shortcodes here: %%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');
4041
+
?>
4042
+
</div>
4043
+
</div>
4044
+
<b><?php echo esc_html__("Prompt For The Internal Link Juicer Keyword Extractor:", 'aiomatic-automatic-ai-content-writer');?></b>
4045
+
</div>
4046
+
</td><td>
4047
+
<div>
4048
+
<textarea rows="1" name="aiomatic_Spinner_Settings[link_juicer_prompt]" placeholder="Generate a comma-separated list of relevant keywords for the post title: '%%post_title%%'."><?php
4049
+
echo esc_textarea($link_juicer_prompt);
4050
+
?></textarea>
4051
+
</div>
4052
+
</td></tr>
4053
+
<tr class="hideMain4l">
4054
+
<td class="cr_min_width_200">
4055
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4056
+
<div class="bws_hidden_help_text cr_min_260px">
4057
+
<?php
4058
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
4059
+
?>
4060
+
</div>
4061
+
</div>
4062
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
4063
+
</td>
4064
+
<td><select id="link_juicer_assistant_id" name="aiomatic_Spinner_Settings[link_juicer_assistant_id]" class="cr_width_full" onchange="assistantSelected('link_juicer_assistant_id', 'disableLinkJuicer');">
4065
+
<?php
4066
+
if($all_assistants === false)
4067
+
{
4068
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
4069
+
}
4070
+
else
4071
+
{
4072
+
if(count($all_assistants) == 0)
4073
+
{
4074
+
echo '<option val="" 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>';
4075
+
}
4076
+
else
4077
+
{
4078
+
echo '<option value=""';
4079
+
if($link_juicer_assistant_id == '')
4080
+
{
4081
+
echo ' selected';
4082
+
}
4083
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
4084
+
foreach($all_assistants as $myassistant)
4085
+
{
4086
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
4087
+
if($link_juicer_assistant_id == $myassistant->ID)
4088
+
{
4089
+
echo ' selected';
4090
+
}
4091
+
echo '>' . esc_html($myassistant->post_title);
4092
+
echo '</option>';
4093
+
}
4094
+
}
4095
+
}
4096
+
?>
4097
+
</select>
4098
+
</td>
4099
+
</tr>
4100
+
<tr class="hideMain4l">
4101
+
<td>
4102
+
<div>
4103
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4104
+
<div class="bws_hidden_help_text cr_min_260px">
4105
+
<?php
4106
+
echo esc_html__("Select the AI Model to be used for categories generator.", 'aiomatic-automatic-ai-content-writer');
4107
+
?>
4108
+
</div>
4109
+
</div>
4110
+
<b><?php echo esc_html__("AI Model For The Categories Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4111
+
</td>
4112
+
<td class="cr_min_width_200">
4113
+
<select id="link_juicer_model" name="aiomatic_Spinner_Settings[link_juicer_model]" <?php if($link_juicer_assistant_id != ''){echo ' disabled';}?> class="disableLinkJuicer cr_width_full" onchange="visionSelectedAI9();">
4114
+
<?php
4115
+
foreach($all_models as $modelx)
4116
+
{
4117
+
echo '<option value="' . esc_html($modelx) .'"';
4118
+
if ($link_juicer_model == $modelx)
4119
+
{
4120
+
echo " selected";
4121
+
}
4122
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
4123
+
}
4124
+
?>
4125
+
</select>
4126
+
</td>
4127
+
</tr>
4128
+
<tr class="hideMain4l hideVision9">
4129
+
<td class="cr_min_width_200">
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__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
4134
+
?>
4135
+
</div>
4136
+
</div>
4137
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
4138
+
</td>
4139
+
<td>
4140
+
<input type="checkbox" id="ai_vision_link_juicer" name="aiomatic_Spinner_Settings[ai_vision_link_juicer]"<?php
4141
+
if ($ai_vision_link_juicer == 'on')
4142
+
echo ' checked ';
4143
+
?>>
4144
+
</td>
4145
+
</tr>
4146
+
<tr class="hideMain4a">
4147
+
<td class="cr_min_width_200">
4148
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4149
+
<div class="bws_hidden_help_text cr_min_260px">
4150
+
<?php
4151
+
echo esc_html__("Set the maximum number of automatic links to add to created posts. You can also define custom ranges, like: 3-5. Please note that this feature will work best if you already have a considerable number of posts published on your site, which will be used for internal linking. The default value for this settings field is 3-5", 'aiomatic-automatic-ai-content-writer');
4152
+
?>
4153
+
</div>
4154
+
</div>
4155
+
<b><?php echo esc_html__("Maximum Number Of Automatic Links To Add To The Post Content:", 'aiomatic-automatic-ai-content-writer');?></b>
4156
+
</td>
4157
+
<td>
4158
+
<input type="text" id="max_links" name="aiomatic_Spinner_Settings[max_links]" placeholder="3-5" class="cr_width_full" value="<?php echo esc_attr($max_links);?>">
4159
+
</td>
4160
+
</tr>
4161
+
<tr class="hideMain4a">
4162
+
<td>
4163
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4164
+
<div class="bws_hidden_help_text cr_min_260px">
4165
+
<?php
4166
+
echo esc_html__("Select the linking method to use in posts.", 'aiomatic-automatic-ai-content-writer');
4167
+
?>
4168
+
</div>
4169
+
</div>
4170
+
<b><?php echo esc_html__("Automatic Linking Type:", 'aiomatic-automatic-ai-content-writer');?></b>
4171
+
</td>
4172
+
<td>
4173
+
<select autocomplete="off" class="cr_width_full" id="link_type" onchange="hideLinks();" name="aiomatic_Spinner_Settings[link_type]">
4174
+
<option value="internal"<?php
4175
+
if ($link_type == "internal") {
4176
+
echo " selected";
4177
+
}
4178
+
?>><?php echo esc_html__("Internal Links", 'aiomatic-automatic-ai-content-writer');?></option>
4179
+
<option value="manual"<?php
4180
+
if ($link_type == "manual") {
4181
+
echo " selected";
4182
+
}
4183
+
?>><?php echo esc_html__("Manual Links", 'aiomatic-automatic-ai-content-writer');?></option>
4184
+
<option value="serp"<?php
4185
+
if ($link_type == "serp") {
4186
+
echo " selected";
4187
+
}
4188
+
?>><?php echo esc_html__("Related SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
4189
+
<option value="mixed"<?php
4190
+
if ($link_type == "mixed") {
4191
+
echo " selected";
4192
+
}
4193
+
?>><?php echo esc_html__("Internal & Manual Links", 'aiomatic-automatic-ai-content-writer');?></option>
4194
+
<option value="intserp"<?php
4195
+
if ($link_type == "intserp") {
4196
+
echo " selected";
4197
+
}
4198
+
?>><?php echo esc_html__("Internal & SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
4199
+
<option value="manserp"<?php
4200
+
if ($link_type == "manserp") {
4201
+
echo " selected";
4202
+
}
4203
+
?>><?php echo esc_html__("Manual & SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
4204
+
<option value="intmanserp"<?php
4205
+
if ($link_type == "intmanserp") {
4206
+
echo " selected";
4207
+
}
4208
+
?>><?php echo esc_html__("Internal & Manual & SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
4209
+
<option value="amazon"<?php
4210
+
if ($link_type == "amazon") {
4211
+
echo " selected";
4212
+
}
4213
+
?>><?php echo esc_html__("Amazon Related Products", 'aiomatic-automatic-ai-content-writer');?></option>
4214
+
</select>
4215
+
</td>
4216
+
</tr>
4217
+
<tr class="hideMain4a hidelinksamazon hidelinks">
4218
+
<td class="cr_min_width_200">
4219
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4220
+
<div class="bws_hidden_help_text cr_min_260px">
4221
+
<?php
4222
+
echo esc_html__("Enter your Amazon Affiliate ID.", 'aiomatic-automatic-ai-content-writer');
4223
+
?>
4224
+
</div>
4225
+
</div>
4226
+
<b><?php echo esc_html__("Amazon Affiliate ID:", 'aiomatic-automatic-ai-content-writer');?></b>
4227
+
</td>
4228
+
<td>
4229
+
<input type="text" name="aiomatic_Spinner_Settings[affiliate_id]" value="<?php echo esc_attr($affiliate_id);?>" placeholder="Please insert your Amazon Affiliate ID" class="cr_width_full">
4230
+
</td>
4231
+
</tr>
4232
+
<tr class="hideMain4a hidelinksamazon hidelinks">
4233
+
<td class="cr_min_width_200">
4234
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4235
+
<div class="bws_hidden_help_text cr_min_260px">
4236
+
<?php
4237
+
echo esc_html__("Enter your Amazon target country.", 'aiomatic-automatic-ai-content-writer');
4238
+
?>
4239
+
</div>
4240
+
</div>
4241
+
<b><?php echo esc_html__("Amazon Target Country:", 'aiomatic-automatic-ai-content-writer');?></b>
4242
+
</td>
4243
+
<td>
4244
+
<select name="aiomatic_Spinner_Settings[target_country]" class="cr_width_full">
4245
+
<?php
4246
+
$amaz_countries = aiomatic_get_amazon_codes();
4247
+
foreach ($amaz_countries as $key => $value) {
4248
+
echo '<option value="' . esc_html($key) . '"';
4249
+
if($target_country == $key)
4250
+
{
4251
+
echo ' selected';
4252
+
}
4253
+
echo '>' . esc_html($value) . '</option>';
4254
+
}
4255
+
?>
4256
+
</select>
4257
+
</td>
4258
+
</tr>
4259
+
<tr class="hideMain4a hidelinksmanual hidelinks">
4260
+
<td class="cr_min_width_200">
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__("Enter a manual list of links, where the plugin will create links.", 'aiomatic-automatic-ai-content-writer');
4265
+
?>
4266
+
</div>
4267
+
</div>
4268
+
<b><?php echo esc_html__("Manual List Of URLs (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></b>
4269
+
</td>
4270
+
<td>
4271
+
<textarea rows="1" cols="70" name="aiomatic_Spinner_Settings[link_list]" placeholder="URL list (one per line)" class="cr_width_full"><?php echo esc_textarea($link_list);?></textarea>
4272
+
</td>
4273
+
</tr>
4274
+
<tr class="hideMain4 hidelinksexternal hidelinks">
4275
+
<td class="cr_min_width_200">
4276
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4277
+
<div class="bws_hidden_help_text cr_min_260px">
4278
+
<?php
4279
+
echo esc_html__("Do you want to add nofollow attribute to manually entered, external links?", 'aiomatic-automatic-ai-content-writer');
4280
+
?>
4281
+
</div>
4282
+
</div>
4283
+
<b><?php echo esc_html__("Add Nofollow Attribute To External Links:", 'aiomatic-automatic-ai-content-writer');?></b>
4284
+
</td>
4285
+
<td>
4286
+
<input type="checkbox" id="link_nofollow" name="aiomatic_Spinner_Settings[link_nofollow]"<?php
4287
+
if ($link_nofollow == 'on')
4288
+
echo ' checked ';
4289
+
?>>
4290
+
</td>
4291
+
</tr>
4292
+
<tr class="hideMain4a hidelinksinternal hidelinks">
4293
+
<td class="cr_min_width_200">
4294
+
<div>
4295
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4296
+
<div class="bws_hidden_help_text cr_min_260px">
4297
+
<?php
4298
+
echo esc_html__("Set the post types where to create automatic links in posts. You can also add a comma separated list of multiple post types.", 'aiomatic-automatic-ai-content-writer');
4299
+
?>
4300
+
</div>
4301
+
</div>
4302
+
<b><?php echo esc_html__("Post Types Where To Generate Inboud Links:", 'aiomatic-automatic-ai-content-writer');?></b>
4303
+
</td>
4304
+
<td>
4305
+
<input type="text" id="link_post_types" name="aiomatic_Spinner_Settings[link_post_types]" placeholder="post" class="cr_width_full" value="<?php echo esc_attr($link_post_types);?>">
4306
+
</td>
4307
+
</tr>
4308
+
<tr class="hideMain4a hidelinksinternal hidelinks">
4309
+
<td class="cr_min_width_200">
4310
+
<div>
4311
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4312
+
<div class="bws_hidden_help_text cr_min_260px">
4313
+
<?php
4314
+
echo esc_html__("Allow creating internal links only to this list of post IDs. Add a comma separated list of post ids.", 'aiomatic-automatic-ai-content-writer');
4315
+
?>
4316
+
</div>
4317
+
</div>
4318
+
<b><?php echo esc_html__("Allow Inbound Links Only To These Post IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
4319
+
</td>
4320
+
<td>
4321
+
<input type="text" id="link_post_ids" name="aiomatic_Spinner_Settings[link_post_ids]" placeholder="postID1,postID2,postID3" class="cr_width_full" value="<?php echo esc_attr($link_post_ids);?>">
4322
+
</td>
4323
+
</tr>
4324
+
<tr class="hideMain4a hidelinksinternal hidelinks">
4325
+
<td class="cr_min_width_200">
4326
+
<div>
4327
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4328
+
<div class="bws_hidden_help_text cr_min_260px">
4329
+
<?php
4330
+
echo esc_html__("Do not allow creating internal links to this list of post IDs. Add a comma separated list of post ids.", 'aiomatic-automatic-ai-content-writer');
4331
+
?>
4332
+
</div>
4333
+
</div>
4334
+
<b><?php echo esc_html__("Do Not Allow Inbound Links To These Post IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
4335
+
</td>
4336
+
<td>
4337
+
<input type="text" id="link_post_not_ids" name="aiomatic_Spinner_Settings[link_post_not_ids]" placeholder="postID1,postID2,postID3" class="cr_width_full" value="<?php echo esc_attr($link_post_not_ids);?>">
4338
+
</td>
4339
+
</tr>
4340
+
<tr class="hideMain4a">
4341
+
<td class="cr_min_width_200">
4342
+
<div>
4343
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4344
+
<div class="bws_hidden_help_text cr_min_260px">
4345
+
<?php
4346
+
echo esc_html__("Set a comma separated list of keywords which will be forced to be used in keyword creation. You can use the following shortcodes here: %%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');
4347
+
?>
4348
+
</div>
4349
+
</div>
4350
+
<b><?php echo esc_html__("Keyword List To Force To Be Used:", 'aiomatic-automatic-ai-content-writer');?></b>
4351
+
</td>
4352
+
<td>
4353
+
<input type="text" id="force_keywords" name="aiomatic_Spinner_Settings[force_keywords]" placeholder="keyword1,keyword2,keyword3" class="cr_width_full" value="<?php echo esc_attr($force_keywords);?>">
4354
+
</td>
4355
+
</tr>
4356
+
<tr><td>
4357
+
<h2><?php echo esc_html__("Post Automatic Categories Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
4358
+
</td></tr>
4359
+
<tr><td>
4360
+
<div>
4361
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4362
+
<div class="bws_hidden_help_text cr_min_260px">
4363
+
<?php
4364
+
echo esc_html__("The plugin will automatically add categories to posts from your site.", 'aiomatic-automatic-ai-content-writer');
4365
+
?>
4366
+
</div>
4367
+
</div>
4368
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Automatically Add Categories To Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
4369
+
</div>
4370
+
</td><td>
4371
+
<div>
4372
+
<select id="add_cats" name="aiomatic_Spinner_Settings[add_cats]" onchange="mainChanged7();" >
4373
+
<option value="disabled"<?php
4374
+
if ($add_cats == "disabled") {
4375
+
echo " selected";
4376
+
}
4377
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
4378
+
<option value="enabled"<?php
4379
+
if ($add_cats == "enabled") {
4380
+
echo " selected";
4381
+
}
4382
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
4383
+
</select>
4384
+
</div>
4385
+
</td></tr>
4386
+
<tr class="hideMain7">
4387
+
<td class="cr_min_width_200">
4388
+
<div>
4389
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4390
+
<div class="bws_hidden_help_text cr_min_260px">
4391
+
<?php
4392
+
echo esc_html__("Maximum number of categories to add. You can also use value ranges, like: 3-5. The default value is 1-2", 'aiomatic-automatic-ai-content-writer');
4393
+
?>
4394
+
</div>
4395
+
</div>
4396
+
<b><?php echo esc_html__("Maximum Number Of Categories To Add To The Post:", 'aiomatic-automatic-ai-content-writer');?></b>
4397
+
</td>
4398
+
<td>
4399
+
<input type="text" id="max_cats" name="aiomatic_Spinner_Settings[max_cats]" placeholder="1-2" class="cr_width_full" value="<?php echo esc_attr($max_cats);?>">
4400
+
</td>
4401
+
</tr>
4402
+
<tr class="hideMain7"><td>
4403
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4404
+
<div class="bws_hidden_help_text cr_min_260px">
4405
+
<?php
4406
+
echo esc_html__("This option will make the plugin not create categories which are not already existing on your site. For best results in this case, be sure to add to the prompt the list of categories from where the AI should select.", 'aiomatic-automatic-ai-content-writer');
4407
+
?>
4408
+
</div>
4409
+
</div>
4410
+
<b><?php echo esc_html__("Do Not Add Inexistent Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
4411
+
4412
+
</td><td>
4413
+
<input type="checkbox" id="skip_inexist" name="aiomatic_Spinner_Settings[skip_inexist]"<?php
4414
+
if ($skip_inexist == 'on')
4415
+
echo ' checked ';
4416
+
?>>
4417
+
</td></tr>
4418
+
<tr class="hideMain7"><td>
4419
+
<div>
4420
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4421
+
<div class="bws_hidden_help_text cr_min_260px">
4422
+
<?php
4423
+
echo esc_html__("Set an prompt command you want to send to the AI category generator. This command can be any given task or order, based on which, it will generate categories for posts. You can use the following shortcodes here: %%all_categories%%, %%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');
4424
+
?>
4425
+
</div>
4426
+
</div>
4427
+
<b><?php echo esc_html__("Prompt For The AI Category Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4428
+
</div>
4429
+
</td><td>
4430
+
<div>
4431
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_cats]" placeholder="Write a comma separated list of 5 categories for post title: %%post_title%%"><?php
4432
+
echo esc_textarea($ai_cats);
4433
+
?></textarea>
4434
+
</div>
4435
+
</td></tr>
4436
+
<tr class="hideMain7">
4437
+
<td class="cr_min_width_200">
4438
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4439
+
<div class="bws_hidden_help_text cr_min_260px">
4440
+
<?php
4441
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
4442
+
?>
4443
+
</div>
4444
+
</div>
4445
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
4446
+
</td>
4447
+
<td><select id="categories_assistant_id" name="aiomatic_Spinner_Settings[categories_assistant_id]" class="cr_width_full" onchange="assistantSelected('categories_assistant_id', 'disableCategories');">
4448
+
<?php
4449
+
if($all_assistants === false)
4450
+
{
4451
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
4452
+
}
4453
+
else
4454
+
{
4455
+
if(count($all_assistants) == 0)
4456
+
{
4457
+
echo '<option val="" 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>';
4458
+
}
4459
+
else
4460
+
{
4461
+
echo '<option value=""';
4462
+
if($categories_assistant_id == '')
4463
+
{
4464
+
echo ' selected';
4465
+
}
4466
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
4467
+
foreach($all_assistants as $myassistant)
4468
+
{
4469
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
4470
+
if($categories_assistant_id == $myassistant->ID)
4471
+
{
4472
+
echo ' selected';
4473
+
}
4474
+
echo '>' . esc_html($myassistant->post_title);
4475
+
echo '</option>';
4476
+
}
4477
+
}
4478
+
}
4479
+
?>
4480
+
</select>
4481
+
</td>
4482
+
</tr>
4483
+
<tr class="hideMain7">
4484
+
<td>
4485
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4486
+
<div class="bws_hidden_help_text cr_min_260px">
4487
+
<?php
4488
+
echo esc_html__("Select the AI Model to be used for categories generator.", 'aiomatic-automatic-ai-content-writer');
4489
+
?>
4490
+
</div>
4491
+
</div>
4492
+
<b><?php echo esc_html__("AI Model For The Categories Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4493
+
</td>
4494
+
<td class="cr_min_width_200">
4495
+
<select id="cats_model" name="aiomatic_Spinner_Settings[cats_model]" <?php if($categories_assistant_id != ''){echo ' disabled';}?> class="disableCategories cr_width_full" onchange="visionSelectedAI7();">
4496
+
<?php
4497
+
foreach($all_models as $modelx)
4498
+
{
4499
+
echo '<option value="' . esc_html($modelx) .'"';
4500
+
if ($cats_model == $modelx)
4501
+
{
4502
+
echo " selected";
4503
+
}
4504
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
4505
+
}
4506
+
?>
4507
+
</select>
4508
+
</td>
4509
+
</tr>
4510
+
<tr class="hideMain7 hideVision7">
4511
+
<td class="cr_min_width_200">
4512
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4513
+
<div class="bws_hidden_help_text cr_min_260px">
4514
+
<?php
4515
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
4516
+
?>
4517
+
</div>
4518
+
</div>
4519
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
4520
+
</td>
4521
+
<td>
4522
+
<input type="checkbox" id="ai_vision_cat" name="aiomatic_Spinner_Settings[ai_vision_cat]"<?php
4523
+
if ($ai_vision_cat == 'on')
4524
+
echo ' checked ';
4525
+
?>>
4526
+
</td>
4527
+
</tr>
4528
+
<tr class="hideMain7"><td>
4529
+
<div>
4530
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4531
+
<div class="bws_hidden_help_text cr_min_260px">
4532
+
<?php
4533
+
echo esc_html__("If you want to assign categories to custom taxonomies of custom post types, you can set the taxonomy name here.", 'aiomatic-automatic-ai-content-writer');
4534
+
?>
4535
+
</div>
4536
+
</div>
4537
+
<b><?php echo esc_html__("Custom Taxonomy Name For Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
4538
+
</div>
4539
+
</td><td>
4540
+
<div>
4541
+
<input type="text" id="cats_tax" name="aiomatic_Spinner_Settings[cats_tax]" placeholder="category" class="cr_width_full" value="<?php echo esc_attr($cats_tax);?>">
4542
+
</div>
4543
+
</td></tr>
4544
+
<tr><td>
4545
+
<h2><?php echo esc_html__("Post Automatic Tags Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
4546
+
</td></tr>
4547
+
<tr><td>
4548
+
<div>
4549
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4550
+
<div class="bws_hidden_help_text cr_min_260px">
4551
+
<?php
4552
+
echo esc_html__("The plugin will automatically add tags to posts from your site.", 'aiomatic-automatic-ai-content-writer');
4553
+
?>
4554
+
</div>
4555
+
</div>
4556
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Automatically Add Tags To Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
4557
+
</div>
4558
+
</td><td>
4559
+
<div>
4560
+
<select id="add_tags" name="aiomatic_Spinner_Settings[add_tags]" onchange="mainChanged8();" >
4561
+
<option value="disabled"<?php
4562
+
if ($add_tags == "disabled") {
4563
+
echo " selected";
4564
+
}
4565
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
4566
+
<option value="enabled"<?php
4567
+
if ($add_tags == "enabled") {
4568
+
echo " selected";
4569
+
}
4570
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
4571
+
</select>
4572
+
</div>
4573
+
</td></tr>
4574
+
<tr class="hideMain8">
4575
+
<td class="cr_min_width_200">
4576
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4577
+
<div class="bws_hidden_help_text cr_min_260px">
4578
+
<?php
4579
+
echo esc_html__("Maximum number of tags to add. You can also use value ranges, like: 3-5. The default value is 1-2", 'aiomatic-automatic-ai-content-writer');
4580
+
?>
4581
+
</div>
4582
+
</div>
4583
+
<b><?php echo esc_html__("Maximum Number Of Tags To Add To The Post:", 'aiomatic-automatic-ai-content-writer');?></b>
4584
+
</td>
4585
+
<td>
4586
+
<input type="text" id="max_tags" name="aiomatic_Spinner_Settings[max_tags]" placeholder="1-2" class="cr_width_full" value="<?php echo esc_attr($max_tags);?>">
4587
+
</td>
4588
+
</tr>
4589
+
<tr class="hideMain8"><td>
4590
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4591
+
<div class="bws_hidden_help_text cr_min_260px">
4592
+
<?php
4593
+
echo esc_html__("This option will make the plugin not create tags which are not already existing on your site. For best results in this case, be sure to add to the prompt the list of tags from where the AI should select.", 'aiomatic-automatic-ai-content-writer');
4594
+
?>
4595
+
</div>
4596
+
</div>
4597
+
<b><?php echo esc_html__("Do Not Add Inexistent Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
4598
+
4599
+
</td><td>
4600
+
<input type="checkbox" id="skip_inexist_tags" name="aiomatic_Spinner_Settings[skip_inexist_tags]"<?php
4601
+
if ($skip_inexist_tags == 'on')
4602
+
echo ' checked ';
4603
+
?>>
4604
+
</td></tr>
4605
+
<tr class="hideMain8"><td>
4606
+
<div>
4607
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4608
+
<div class="bws_hidden_help_text cr_min_260px">
4609
+
<?php
4610
+
echo esc_html__("Set an prompt command you want to send to the AI tag generator. This command can be any given task or order, based on which, it will generate tags for posts. You can use the following shortcodes here: %%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');
4611
+
?>
4612
+
</div>
4613
+
</div>
4614
+
<b><?php echo esc_html__("Prompt For The AI Tags Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4615
+
</div>
4616
+
</td><td>
4617
+
<div>
4618
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_tags]" placeholder="Write a comma separated list of 5 tags for post title: %%post_title%%"><?php
4619
+
echo esc_textarea($ai_tags);
4620
+
?></textarea>
4621
+
</div>
4622
+
</td></tr>
4623
+
<tr class="hideMain8">
4624
+
<td class="cr_min_width_200">
4625
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4626
+
<div class="bws_hidden_help_text cr_min_260px">
4627
+
<?php
4628
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
4629
+
?>
4630
+
</div>
4631
+
</div>
4632
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
4633
+
</td>
4634
+
<td><select id="tags_assistant_id" name="aiomatic_Spinner_Settings[tags_assistant_id]" class="cr_width_full" onchange="assistantSelected('tags_assistant_id', 'disableTags');">
4635
+
<?php
4636
+
if($all_assistants === false)
4637
+
{
4638
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
4639
+
}
4640
+
else
4641
+
{
4642
+
if(count($all_assistants) == 0)
4643
+
{
4644
+
echo '<option val="" 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>';
4645
+
}
4646
+
else
4647
+
{
4648
+
echo '<option value=""';
4649
+
if($tags_assistant_id == '')
4650
+
{
4651
+
echo ' selected';
4652
+
}
4653
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
4654
+
foreach($all_assistants as $myassistant)
4655
+
{
4656
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
4657
+
if($tags_assistant_id == $myassistant->ID)
4658
+
{
4659
+
echo ' selected';
4660
+
}
4661
+
echo '>' . esc_html($myassistant->post_title);
4662
+
echo '</option>';
4663
+
}
4664
+
}
4665
+
}
4666
+
?>
4667
+
</select>
4668
+
</td>
4669
+
</tr>
4670
+
<tr class="hideMain8">
4671
+
<td>
4672
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4673
+
<div class="bws_hidden_help_text cr_min_260px">
4674
+
<?php
4675
+
echo esc_html__("Select the AI Model to be used for tags generator.", 'aiomatic-automatic-ai-content-writer');
4676
+
?>
4677
+
</div>
4678
+
</div>
4679
+
<b><?php echo esc_html__("AI Model For The Tags Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4680
+
</td>
4681
+
<td class="cr_min_width_200">
4682
+
<select id="tags_model" name="aiomatic_Spinner_Settings[tags_model]" <?php if($tags_assistant_id != ''){echo ' disabled';}?> class="disableTags cr_width_full" onchange="visionSelectedAI8();">
4683
+
<?php
4684
+
foreach($all_models as $modelx)
4685
+
{
4686
+
echo '<option value="' . esc_html($modelx) .'"';
4687
+
if ($tags_model == $modelx)
4688
+
{
4689
+
echo " selected";
4690
+
}
4691
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
4692
+
}
4693
+
?>
4694
+
</select>
4695
+
</td>
4696
+
</tr>
4697
+
<tr class="hideMain8 hideVision8">
4698
+
<td class="cr_min_width_200">
4699
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4700
+
<div class="bws_hidden_help_text cr_min_260px">
4701
+
<?php
4702
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
4703
+
?>
4704
+
</div>
4705
+
</div>
4706
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
4707
+
</td>
4708
+
<td>
4709
+
<input type="checkbox" id="ai_vision_tag" name="aiomatic_Spinner_Settings[ai_vision_tag]"<?php
4710
+
if ($ai_vision_tag == 'on')
4711
+
echo ' checked ';
4712
+
?>>
4713
+
</td>
4714
+
</tr>
4715
+
<tr class="hideMain8"><td>
4716
+
<div>
4717
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4718
+
<div class="bws_hidden_help_text cr_min_260px">
4719
+
<?php
4720
+
echo esc_html__("If you want to assign tags to custom taxonomies of custom post types, you can set the taxonomy name here.", 'aiomatic-automatic-ai-content-writer');
4721
+
?>
4722
+
</div>
4723
+
</div>
4724
+
<b><?php echo esc_html__("Custom Taxonomy Name For Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
4725
+
</div>
4726
+
</td><td>
4727
+
<div>
4728
+
<input type="text" id="tags_tax" name="aiomatic_Spinner_Settings[tags_tax]" placeholder="post_tag" class="cr_width_full" value="<?php echo esc_attr($tags_tax);?>">
4729
+
</div>
4730
+
</td></tr><tr><td>
4731
+
<h2><?php echo esc_html__("Post Automatic Custom Fields/Custom Taxonomies Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
4732
+
</td></tr>
4733
+
<tr><td>
4734
+
<div>
4735
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4736
+
<div class="bws_hidden_help_text cr_min_260px">
4737
+
<?php
4738
+
echo esc_html__("The plugin will automatically add custom fields or custom taxonomies to posts from your site.", 'aiomatic-automatic-ai-content-writer');
4739
+
?>
4740
+
</div>
4741
+
</div>
4742
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Automatically Add Custom Fields/Custom Taxonomies To Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
4743
+
</div>
4744
+
</td><td>
4745
+
<div>
4746
+
<select id="add_custom" name="aiomatic_Spinner_Settings[add_custom]" onchange="mainChanged10();" >
4747
+
<option value="disabled"<?php
4748
+
if ($add_custom == "disabled") {
4749
+
echo " selected";
4750
+
}
4751
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
4752
+
<option value="enabled"<?php
4753
+
if ($add_custom == "enabled") {
4754
+
echo " selected";
4755
+
}
4756
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
4757
+
</select>
4758
+
</div>
4759
+
</td></tr>
4760
+
<tr class="hideMain10"><td>
4761
+
<div>
4762
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4763
+
<div class="bws_hidden_help_text cr_min_260px">
4764
+
<?php
4765
+
echo esc_html__("Set a list of custom field slugs and prompts which will generate values for them (each on a new line). This command can be any given task or order, based on which, it will generate custom taxonomies for posts. You can use the following shortcodes here: %%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). To disable this functionality, leave this settings field blank.", 'aiomatic-automatic-ai-content-writer');
4766
+
?>
4767
+
</div>
4768
+
</div>
4769
+
<b><?php echo esc_html__("Prompt For The AI Custom Fields Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4770
+
</div>
4771
+
</td><td>
4772
+
<div>
4773
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_custom_field]" placeholder="custom_field_slug => What is the distance of from the Earth to the Sun? Write only the numeric answer, nothing else."><?php
4774
+
echo esc_textarea($ai_custom_field);
4775
+
?></textarea>
4776
+
</div>
4777
+
</td></tr>
4778
+
<tr class="hideMain10"><td>
4779
+
<div>
4780
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4781
+
<div class="bws_hidden_help_text cr_min_260px">
4782
+
<?php
4783
+
echo esc_html__("Set if you want to assign custom fields as you entered them above and not process them as AI prompts.", 'aiomatic-automatic-ai-content-writer');
4784
+
?>
4785
+
</div>
4786
+
</div>
4787
+
<b><?php echo esc_html__("Do Not Process Custom Field Input As AI Prompts:", 'aiomatic-automatic-ai-content-writer');?></b>
4788
+
4789
+
</td><td>
4790
+
<input type="checkbox" id="no_custom_field_prompt" name="aiomatic_Spinner_Settings[no_custom_field_prompt]"<?php
4791
+
if ($no_custom_field_prompt == 'on')
4792
+
echo ' checked ';
4793
+
?>>
4794
+
</td></tr>
4795
+
<tr class="hideMain10"><td colspan="2"><hr/></td></tr>
4796
+
<tr class="hideMain10"><td>
4797
+
<div>
4798
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4799
+
<div class="bws_hidden_help_text cr_min_260px">
4800
+
<?php
4801
+
echo esc_html__("Set a list of custom taxonomy slugs and prompts which will generate values for them (each on a new line). This command can be any given task or order, based on which, it will generate custom taxonomies for posts. You can use the following shortcodes here: %%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). To disable this functionality, leave this settings field blank.", 'aiomatic-automatic-ai-content-writer');
4802
+
?>
4803
+
</div>
4804
+
</div>
4805
+
<b><?php echo esc_html__("Prompt For The AI Custom Taxonomy Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4806
+
</div>
4807
+
</td><td>
4808
+
<div>
4809
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_custom_tax]" placeholder="taxonomy_slug => Write a comma separated list of 5 categories for post title: %%post_title%%"><?php
4810
+
echo esc_textarea($ai_custom_tax);
4811
+
?></textarea>
4812
+
</div>
4813
+
</td></tr>
4814
+
<tr class="hideMain10"><td>
4815
+
<div>
4816
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4817
+
<div class="bws_hidden_help_text cr_min_260px">
4818
+
<?php
4819
+
echo esc_html__("Set if you want to assign custom fields as you entered them above and not process them as AI prompts.", 'aiomatic-automatic-ai-content-writer');
4820
+
?>
4821
+
</div>
4822
+
</div>
4823
+
<b><?php echo esc_html__("Do Not Process Custom Taxonomy Input As AI Prompts:", 'aiomatic-automatic-ai-content-writer');?></b>
4824
+
4825
+
</td><td>
4826
+
<input type="checkbox" id="no_custom_tax_prompt" name="aiomatic_Spinner_Settings[no_custom_tax_prompt]"<?php
4827
+
if ($no_custom_tax_prompt == 'on')
4828
+
echo ' checked ';
4829
+
?>>
4830
+
</td></tr>
4831
+
<tr class="hideMain10">
4832
+
<td class="cr_min_width_200">
4833
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4834
+
<div class="bws_hidden_help_text cr_min_260px">
4835
+
<?php
4836
+
echo esc_html__("Maximum number of custom taxonomies to add. You can also use value ranges, like: 3-5. The default value is 1-2", 'aiomatic-automatic-ai-content-writer');
4837
+
?>
4838
+
</div>
4839
+
</div>
4840
+
<b><?php echo esc_html__("Maximum Number Of Custom Taxonomies To Add To The Post:", 'aiomatic-automatic-ai-content-writer');?></b>
4841
+
</td>
4842
+
<td>
4843
+
<input type="text" id="max_custom" name="aiomatic_Spinner_Settings[max_custom]" placeholder="1-2" class="cr_width_full" value="<?php echo esc_attr($max_custom);?>">
4844
+
</td>
4845
+
</tr>
4846
+
<tr class="hideMain10"><td>
4847
+
<div>
4848
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4849
+
<div class="bws_hidden_help_text cr_min_260px">
4850
+
<?php
4851
+
echo esc_html__("This option will make the plugin not create custom taxonomies which are not already existing on your site. For best results in this case, be sure to add to the prompt the list of custom taxonomies from where the AI should select.", 'aiomatic-automatic-ai-content-writer');
4852
+
?>
4853
+
</div>
4854
+
</div>
4855
+
<b><?php echo esc_html__("Do Not Add Inexistent Custom Taxonomies:", 'aiomatic-automatic-ai-content-writer');?></b>
4856
+
4857
+
</td><td>
4858
+
<input type="checkbox" id="skip_inexist_custom" name="aiomatic_Spinner_Settings[skip_inexist_custom]"<?php
4859
+
if ($skip_inexist_custom == 'on')
4860
+
echo ' checked ';
4861
+
?>>
4862
+
</td></tr>
4863
+
<tr class="hideMain10"><td colspan="2"><hr/></td></tr>
4864
+
<tr class="hideMain10">
4865
+
<td class="cr_min_width_200">
4866
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4867
+
<div class="bws_hidden_help_text cr_min_260px">
4868
+
<?php
4869
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
4870
+
?>
4871
+
</div>
4872
+
</div>
4873
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
4874
+
</td>
4875
+
<td><select id="custom_assistant_id" name="aiomatic_Spinner_Settings[custom_assistant_id]" class="cr_width_full" onchange="assistantSelected('custom_assistant_id', 'disableCustom');">
4876
+
<?php
4877
+
if($all_assistants === false)
4878
+
{
4879
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
4880
+
}
4881
+
else
4882
+
{
4883
+
if(count($all_assistants) == 0)
4884
+
{
4885
+
echo '<option val="" 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>';
4886
+
}
4887
+
else
4888
+
{
4889
+
echo '<option value=""';
4890
+
if($custom_assistant_id == '')
4891
+
{
4892
+
echo ' selected';
4893
+
}
4894
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
4895
+
foreach($all_assistants as $myassistant)
4896
+
{
4897
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
4898
+
if($custom_assistant_id == $myassistant->ID)
4899
+
{
4900
+
echo ' selected';
4901
+
}
4902
+
echo '>' . esc_html($myassistant->post_title);
4903
+
echo '</option>';
4904
+
}
4905
+
}
4906
+
}
4907
+
?>
4908
+
</select>
4909
+
</td>
4910
+
</tr>
4911
+
<tr class="hideMain10">
4912
+
<td>
4913
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4914
+
<div class="bws_hidden_help_text cr_min_260px">
4915
+
<?php
4916
+
echo esc_html__("Select the AI Model to be used for custom taxonomies/custom fields generator.", 'aiomatic-automatic-ai-content-writer');
4917
+
?>
4918
+
</div>
4919
+
</div>
4920
+
<b><?php echo esc_html__("AI Model For The Custom Taxonomies/Custom Fields Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
4921
+
</td>
4922
+
<td class="cr_min_width_200">
4923
+
<select id="custom_model" name="aiomatic_Spinner_Settings[custom_model]" <?php if($custom_assistant_id != ''){echo ' disabled';}?> class="disableCustom cr_width_full" onchange="visionSelectedAI10();">
4924
+
<?php
4925
+
foreach($all_models as $modelx)
4926
+
{
4927
+
echo '<option value="' . esc_html($modelx) .'"';
4928
+
if ($custom_model == $modelx)
4929
+
{
4930
+
echo " selected";
4931
+
}
4932
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
4933
+
}
4934
+
?>
4935
+
</select>
4936
+
</td>
4937
+
</tr>
4938
+
<tr class="hideMain10 hideVision10">
4939
+
<td class="cr_min_width_200">
4940
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4941
+
<div class="bws_hidden_help_text cr_min_260px">
4942
+
<?php
4943
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
4944
+
?>
4945
+
</div>
4946
+
</div>
4947
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
4948
+
</td>
4949
+
<td>
4950
+
<input type="checkbox" id="ai_vision_custom" name="aiomatic_Spinner_Settings[ai_vision_custom]"<?php
4951
+
if ($ai_vision_custom == 'on')
4952
+
echo ' checked ';
4953
+
?>>
4954
+
</td>
4955
+
</tr>
4956
+
<tr><td>
4957
+
<h2><?php echo esc_html__("Automatic Post Comments/Product Reviews Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
4958
+
</td></tr><tr><td>
4959
+
<div>
4960
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4961
+
<div class="bws_hidden_help_text cr_min_260px">
4962
+
<?php
4963
+
echo esc_html__("The plugin will automatically add post comments/product reviews from your site.", 'aiomatic-automatic-ai-content-writer');
4964
+
?>
4965
+
</div>
4966
+
</div>
4967
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Automatically Add Post Comments/Product Reviews:", 'aiomatic-automatic-ai-content-writer');?></b>
4968
+
</div>
4969
+
</td><td>
4970
+
<div>
4971
+
<select id="add_comments" name="aiomatic_Spinner_Settings[add_comments]" onchange="mainChanged5();" >
4972
+
<option value="disabled"<?php
4973
+
if ($add_comments == "disabled") {
4974
+
echo " selected";
4975
+
}
4976
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
4977
+
<option value="enabled"<?php
4978
+
if ($add_comments == "enabled") {
4979
+
echo " selected";
4980
+
}
4981
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
4982
+
</select>
4983
+
</div>
4984
+
</td></tr>
4985
+
<tr class="hideMain5">
4986
+
<td class="cr_min_width_200">
4987
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4988
+
<div class="bws_hidden_help_text cr_min_260px">
4989
+
<?php
4990
+
echo esc_html__("Maximum number of comments/reviews to add. You can also use value ranges, like: 3-5. The default value is 1-2", 'aiomatic-automatic-ai-content-writer');
4991
+
?>
4992
+
</div>
4993
+
</div>
4994
+
<b><?php echo esc_html__("Maximum Number Of Comments/Reviews To Add To The Post:", 'aiomatic-automatic-ai-content-writer');?></b>
4995
+
</td>
4996
+
<td>
4997
+
<input type="text" id="max_comments" name="aiomatic_Spinner_Settings[max_comments]" placeholder="1-2" class="cr_width_full" value="<?php echo esc_attr($max_comments);?>">
4998
+
</td>
4999
+
</tr>
5000
+
<tr class="hideMain5"><td>
5001
+
<div>
5002
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5003
+
<div class="bws_hidden_help_text cr_min_260px">
5004
+
<?php
5005
+
echo esc_html__("Set an prompt command you want to send to the AI comment/review generator. This command can be any given task or order, based on which, it will generate comments for posts. You can use the following shortcodes here: %%previous_comments%%, %%post_title%%, %%comment_author_name%%, %%comment_author_email%%, %%comment_author_url%%, %%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%%, %%product_star_rating%%. For the %%product_star_rating%% shortcode, a random value will be selected, defined by the 'WooCommerce Product Review Minimum-Maximum Star Count' settings field from below. 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');
5006
+
?>
5007
+
</div>
5008
+
</div>
5009
+
<b><?php echo esc_html__("Prompt For The AI Comment/Review Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
5010
+
</div>
5011
+
</td><td>
5012
+
<div>
5013
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_comments]" placeholder="Please insert a command for the AI"><?php
5014
+
echo esc_textarea($ai_comments);
5015
+
?></textarea>
5016
+
</div>
5017
+
</td></tr>
5018
+
<tr class="hideMain5">
5019
+
<td class="cr_min_width_200">
5020
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5021
+
<div class="bws_hidden_help_text cr_min_260px">
5022
+
<?php
5023
+
echo esc_html__("Set the range of product reviews which the plugin will create for WooCommerce products. If you set this value, you can use the %%product_star_rating%% shortcode in the 'Prompt For The AI Comment Generator' settings field from above. You can also use value ranges, like: 3-5. The default is 5", 'aiomatic-automatic-ai-content-writer');
5024
+
?>
5025
+
</div>
5026
+
</div>
5027
+
<b><?php echo esc_html__("WooCommerce Product Review Minimum-Maximum Star Count:", 'aiomatic-automatic-ai-content-writer');?></b>
5028
+
</td>
5029
+
<td>
5030
+
<input type="text" id="star_count" name="aiomatic_Spinner_Settings[star_count]" placeholder="4-5" class="cr_width_full" value="<?php echo esc_attr($star_count);?>">
5031
+
</td>
5032
+
</tr>
5033
+
<tr class="hideMain5">
5034
+
<td class="cr_min_width_200">
5035
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5036
+
<div class="bws_hidden_help_text cr_min_260px">
5037
+
<?php
5038
+
echo esc_html__("Maximum number of comments/reviews to add to the %%previous_comments%% shortcode, The default value is 5", 'aiomatic-automatic-ai-content-writer');
5039
+
?>
5040
+
</div>
5041
+
</div>
5042
+
<b><?php echo esc_html__("%%previous_comments%% Shortcode Comment/Reviews Count:", 'aiomatic-automatic-ai-content-writer');?></b>
5043
+
</td>
5044
+
<td>
5045
+
<input type="number" min="0" step="1" id="prev_comms" name="aiomatic_Spinner_Settings[prev_comms]" placeholder="5" class="cr_width_full" value="<?php echo esc_attr($prev_comms);?>">
5046
+
</td>
5047
+
</tr>
5048
+
<tr class="hideMain5">
5049
+
<td class="cr_min_width_200">
5050
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5051
+
<div class="bws_hidden_help_text cr_min_260px">
5052
+
<?php
5053
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
5054
+
?>
5055
+
</div>
5056
+
</div>
5057
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
5058
+
</td>
5059
+
<td><select id="comments_assistant_id" name="aiomatic_Spinner_Settings[comments_assistant_id]" class="cr_width_full" onchange="assistantSelected('comments_assistant_id', 'disableComments');">
5060
+
<?php
5061
+
if($all_assistants === false)
5062
+
{
5063
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
5064
+
}
5065
+
else
5066
+
{
5067
+
if(count($all_assistants) == 0)
5068
+
{
5069
+
echo '<option val="" 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>';
5070
+
}
5071
+
else
5072
+
{
5073
+
echo '<option value=""';
5074
+
if($comments_assistant_id == '')
5075
+
{
5076
+
echo ' selected';
5077
+
}
5078
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
5079
+
foreach($all_assistants as $myassistant)
5080
+
{
5081
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
5082
+
if($comments_assistant_id == $myassistant->ID)
5083
+
{
5084
+
echo ' selected';
5085
+
}
5086
+
echo '>' . esc_html($myassistant->post_title);
5087
+
echo '</option>';
5088
+
}
5089
+
}
5090
+
}
5091
+
?>
5092
+
</select>
5093
+
</td>
5094
+
</tr>
5095
+
<tr class="hideMain5">
5096
+
<td>
5097
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5098
+
<div class="bws_hidden_help_text cr_min_260px">
5099
+
<?php
5100
+
echo esc_html__("Select the AI Model to be used for comments/reviews generator.", 'aiomatic-automatic-ai-content-writer');
5101
+
?>
5102
+
</div>
5103
+
</div>
5104
+
<b><?php echo esc_html__("AI Model For The Comments/Reviews Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
5105
+
</td>
5106
+
<td class="cr_min_width_200">
5107
+
<select id="comments_model" name="aiomatic_Spinner_Settings[comments_model]" <?php if($comments_assistant_id != ''){echo ' disabled';}?> class="disableComments cr_width_full" onchange="visionSelectedAI5();">
5108
+
<?php
5109
+
foreach($all_models as $modelx)
5110
+
{
5111
+
echo '<option value="' . esc_html($modelx) .'"';
5112
+
if ($comments_model == $modelx)
5113
+
{
5114
+
echo " selected";
5115
+
}
5116
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
5117
+
}
5118
+
?>
5119
+
</select>
5120
+
</td>
5121
+
</tr>
5122
+
<tr class="hideMain5 hideVision5">
5123
+
<td class="cr_min_width_200">
5124
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5125
+
<div class="bws_hidden_help_text cr_min_260px">
5126
+
<?php
5127
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
5128
+
?>
5129
+
</div>
5130
+
</div>
5131
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
5132
+
</td>
5133
+
<td>
5134
+
<input type="checkbox" id="ai_vision_com" name="aiomatic_Spinner_Settings[ai_vision_com]"<?php
5135
+
if ($ai_vision_com == 'on')
5136
+
echo ' checked ';
5137
+
?>>
5138
+
</td>
5139
+
</tr>
5140
+
<tr class="hideMain5">
5141
+
<td>
5142
+
<div>
5143
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5144
+
<div class="bws_hidden_help_text cr_min_260px">
5145
+
<?php
5146
+
echo esc_html__("Do you want to keep created comments/reviews for manual approval?", 'aiomatic-automatic-ai-content-writer');
5147
+
?>
5148
+
</div>
5149
+
</div>
5150
+
<b><?php echo esc_html__("Keep Created Comments For Review (Don't Auto Approve Them):", 'aiomatic-automatic-ai-content-writer');?></b>
5151
+
</div>
5152
+
</td>
5153
+
<td>
5154
+
<div>
5155
+
<input type="checkbox" id="no_approve" name="aiomatic_Spinner_Settings[no_approve]"<?php
5156
+
if ($no_approve == 'on')
5157
+
echo ' checked ';
5158
+
?>>
5159
+
</div>
5160
+
</td>
5161
+
</tr>
5162
+
<tr class="hideMain5">
5163
+
<td>
5164
+
<div>
5165
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5166
+
<div class="bws_hidden_help_text cr_min_260px">
5167
+
<?php
5168
+
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');
5169
+
?>
5170
+
</div>
5171
+
</div>
5172
+
<b><?php echo esc_html__("Comment/Review User Name List:", 'aiomatic-automatic-ai-content-writer');?></b>
5173
+
</div>
5174
+
</td>
5175
+
<td>
5176
+
<div>
5177
+
<textarea rows="4" name="aiomatic_Spinner_Settings[user_list]" placeholder="Insert a list of user names to use when submitting comments (one per line)" class="cr_width_full"><?php
5178
+
echo esc_textarea($user_list);
5179
+
?></textarea>
5180
+
</div>
5181
+
</td>
5182
+
</tr>
5183
+
<tr class="hideMain5">
5184
+
<td>
5185
+
<div>
5186
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5187
+
<div class="bws_hidden_help_text cr_min_260px">
5188
+
<?php
5189
+
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');
5190
+
?>
5191
+
</div>
5192
+
</div>
5193
+
<b><?php echo esc_html__("Comment/Review E-mail List:", 'aiomatic-automatic-ai-content-writer');?></b>
5194
+
</div>
5195
+
</td>
5196
+
<td>
5197
+
<div>
5198
+
<textarea rows="4" name="aiomatic_Spinner_Settings[email_list]" placeholder="Insert a list of e-mails to use when submitting comments (one per line)" class="cr_width_full"><?php
5199
+
echo esc_textarea($email_list);
5200
+
?></textarea>
5201
+
</div>
5202
+
</td>
5203
+
</tr>
5204
+
<tr class="hideMain5">
5205
+
<td>
5206
+
<div>
5207
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5208
+
<div class="bws_hidden_help_text cr_min_260px">
5209
+
<?php
5210
+
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');
5211
+
?>
5212
+
</div>
5213
+
</div>
5214
+
<b><?php echo esc_html__("Comment/Review URL List:", 'aiomatic-automatic-ai-content-writer');?></b>
5215
+
</div>
5216
+
</td>
5217
+
<td>
5218
+
<div>
5219
+
<textarea rows="4" name="aiomatic_Spinner_Settings[url_list]" placeholder="Insert a list of URLs to use when submitting comments (one per line)" class="cr_width_full"><?php
5220
+
echo esc_textarea($url_list);
5221
+
?></textarea>
5222
+
</div>
5223
+
</td>
5224
+
</tr>
5225
+
<tr class="hideMain5">
5226
+
<td>
5227
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5228
+
<div class="bws_hidden_help_text cr_min_260px">
5229
+
<?php
5230
+
echo sprintf( wp_kses( __( "Do you want to set a custom comment/review publish date? You can input 2 dates, minimum and maximum date - the plugin will select a random date from the specified interval, for each new comment created. Set the range in the below field. Set the range in the below field Accepted values for this field are listed: <a href='%s' target='_blank'>here</a>. To disable this feature, leave this field blank. This format is suggested for dates: mm/dd/yyyy", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://www.php.net/manual/en/datetime.formats.php' ) );
5231
+
?>
5232
+
</div>
5233
+
</div>
5234
+
<b><?php echo esc_html__("Set a Custom Comment/Review Date Range:", 'aiomatic-automatic-ai-content-writer');?></b>
5235
+
</td>
5236
+
<td>
5237
+
<input type="text" id="min_time" name="aiomatic_Spinner_Settings[min_time]" value="<?php echo esc_attr($min_time);?>" placeholder="Start time" class="cr_half"> - <input type="text" id="max_time" name="aiomatic_Spinner_Settings[max_time]" value="<?php echo esc_attr($max_time);?>" placeholder="End time" class="cr_half">
5238
+
</td>
5239
+
</tr><tr><td>
5240
+
<h2><?php echo esc_html__("SEO Meta Title Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
5241
+
</td></tr><tr><td>
5242
+
<div>
5243
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5244
+
<div class="bws_hidden_help_text cr_min_260px">
5245
+
<?php
5246
+
echo esc_html__("The plugin will automatically add AI generated SEO meta titles to posts from your site.", 'aiomatic-automatic-ai-content-writer');
5247
+
?>
5248
+
</div>
5249
+
</div>
5250
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Automatically Add AI Generated SEO Title To Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
5251
+
</div>
5252
+
</td><td>
5253
+
<div>
5254
+
<select id="add_seo_title" name="aiomatic_Spinner_Settings[add_seo_title]" onchange="mainChanged66();" >
5255
+
<option value="disabled"<?php
5256
+
if ($add_seo_title == "disabled") {
5257
+
echo " selected";
5258
+
}
5259
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
5260
+
<option value="enabled"<?php
5261
+
if ($add_seo_title == "enabled") {
5262
+
echo " selected";
5263
+
}
5264
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
5265
+
</select>
5266
+
</div>
5267
+
</td></tr>
5268
+
<tr class="hideMain66"><td>
5269
+
<div>
5270
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5271
+
<div class="bws_hidden_help_text cr_min_260px">
5272
+
<?php
5273
+
echo esc_html__("Set an prompt command you want to send to the AI SEO meta title generator. This command can be any given task or order, based on which, it will generate meta title for posts. You can use the following shortcodes here: %%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). The default value is: Write a SEO meta description for the post title: %%post_title%%", 'aiomatic-automatic-ai-content-writer');
5274
+
?>
5275
+
</div>
5276
+
</div>
5277
+
<b><?php echo esc_html__("Prompt For The AI SEO Meta Title Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
5278
+
</div>
5279
+
</td><td>
5280
+
<div>
5281
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_seo_title]" placeholder="Please insert a command for the AI"><?php
5282
+
echo esc_textarea($ai_seo_title);
5283
+
?></textarea>
5284
+
</div>
5285
+
</td></tr>
5286
+
<tr class="hideMain66">
5287
+
<td class="cr_min_width_200">
5288
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5289
+
<div class="bws_hidden_help_text cr_min_260px">
5290
+
<?php
5291
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
5292
+
?>
5293
+
</div>
5294
+
</div>
5295
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
5296
+
</td>
5297
+
<td><select id="meta_assistant_id_title" name="aiomatic_Spinner_Settings[meta_assistant_id_title]" class="cr_width_full" onchange="assistantSelected('meta_assistant_id_title', 'disableMeta');">
5298
+
<?php
5299
+
if($all_assistants === false)
5300
+
{
5301
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
5302
+
}
5303
+
else
5304
+
{
5305
+
if(count($all_assistants) == 0)
5306
+
{
5307
+
echo '<option val="" 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>';
5308
+
}
5309
+
else
5310
+
{
5311
+
echo '<option value=""';
5312
+
if($meta_assistant_id_title == '')
5313
+
{
5314
+
echo ' selected';
5315
+
}
5316
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
5317
+
foreach($all_assistants as $myassistant)
5318
+
{
5319
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
5320
+
if($meta_assistant_id_title == $myassistant->ID)
5321
+
{
5322
+
echo ' selected';
5323
+
}
5324
+
echo '>' . esc_html($myassistant->post_title);
5325
+
echo '</option>';
5326
+
}
5327
+
}
5328
+
}
5329
+
?>
5330
+
</select>
5331
+
</td>
5332
+
</tr><tr class="hideMain66">
5333
+
<td>
5334
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5335
+
<div class="bws_hidden_help_text cr_min_260px">
5336
+
<?php
5337
+
echo esc_html__("Select the AI Model to be used for AI SEO Meta Title Generator.", 'aiomatic-automatic-ai-content-writer');
5338
+
?>
5339
+
</div>
5340
+
</div>
5341
+
<b><?php echo esc_html__("AI Model For The AI SEO Meta Title Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
5342
+
</td>
5343
+
<td class="cr_min_width_200">
5344
+
<select id="seo_model_title" name="aiomatic_Spinner_Settings[seo_model_title]" <?php if($meta_assistant_id_title != ''){echo ' disabled';}?> class="disableMeta cr_width_full" onchange="visionSelectedAI6();">
5345
+
<?php
5346
+
foreach($all_models as $modelx)
5347
+
{
5348
+
echo '<option value="' . esc_html($modelx) .'"';
5349
+
if ($seo_model_title == $modelx)
5350
+
{
5351
+
echo " selected";
5352
+
}
5353
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
5354
+
}
5355
+
?>
5356
+
</select>
5357
+
</td>
5358
+
</tr>
5359
+
<tr class="hideMain66 hideVision6">
5360
+
<td class="cr_min_width_200">
5361
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5362
+
<div class="bws_hidden_help_text cr_min_260px">
5363
+
<?php
5364
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
5365
+
?>
5366
+
</div>
5367
+
</div>
5368
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
5369
+
</td>
5370
+
<td>
5371
+
<input type="checkbox" id="ai_vision_seo_title" name="aiomatic_Spinner_Settings[ai_vision_seo_title]"<?php
5372
+
if ($ai_vision_seo_title == 'on')
5373
+
echo ' checked ';
5374
+
?>>
5375
+
</td>
5376
+
</tr><tr class="hideMain66">
5377
+
<td>
5378
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5379
+
<div class="bws_hidden_help_text cr_min_260px">
5380
+
<?php
5381
+
echo esc_html__("Set if you want to limit the AI generated meta title length.", 'aiomatic-automatic-ai-content-writer');
5382
+
?>
5383
+
</div>
5384
+
</div>
5385
+
<b><?php echo esc_html__("Limit AI Generated Meta Title Character Count:", 'aiomatic-automatic-ai-content-writer');?></b>
5386
+
</td>
5387
+
<td class="cr_min_width_200">
5388
+
<input type="number" min="0" step="1" id="seo_max_char_title" name="aiomatic_Spinner_Settings[seo_max_char_title]" class="cr_450" value="<?php echo esc_html($seo_max_char_title);?>" placeholder="Maximum character length">
5389
+
</td>
5390
+
</tr>
5391
+
<tr><td>
5392
+
<h2><?php echo esc_html__("SEO Meta Description Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
5393
+
</td></tr><tr><td>
5394
+
<div>
5395
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5396
+
<div class="bws_hidden_help_text cr_min_260px">
5397
+
<?php
5398
+
echo esc_html__("The plugin will automatically add AI generated SEO meta descriptions to posts from your site.", 'aiomatic-automatic-ai-content-writer');
5399
+
?>
5400
+
</div>
5401
+
</div>
5402
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Automatically Add AI Generated SEO Description To Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
5403
+
</div>
5404
+
</td><td>
5405
+
<div>
5406
+
<select id="add_seo" name="aiomatic_Spinner_Settings[add_seo]" onchange="mainChanged6();" >
5407
+
<option value="disabled"<?php
5408
+
if ($add_seo == "disabled") {
5409
+
echo " selected";
5410
+
}
5411
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
5412
+
<option value="enabled"<?php
5413
+
if ($add_seo == "enabled") {
5414
+
echo " selected";
5415
+
}
5416
+
?>><?php echo esc_html__("Enabled", 'aiomatic-automatic-ai-content-writer');?></option>
5417
+
</select>
5418
+
</div>
5419
+
</td></tr>
5420
+
<tr class="hideMain6"><td>
5421
+
<div>
5422
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5423
+
<div class="bws_hidden_help_text cr_min_260px">
5424
+
<?php
5425
+
echo esc_html__("Set an prompt command you want to send to the AI SEO meta description generator. This command can be any given task or order, based on which, it will generate meta descriptions for posts. You can use the following shortcodes here: %%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). The default value is: Write a SEO meta description for the post title: %%post_title%%", 'aiomatic-automatic-ai-content-writer');
5426
+
?>
5427
+
</div>
5428
+
</div>
5429
+
<b><?php echo esc_html__("Prompt For The AI SEO Meta Description Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
5430
+
</div>
5431
+
</td><td>
5432
+
<div>
5433
+
<textarea rows="1" name="aiomatic_Spinner_Settings[ai_seo]" placeholder="Please insert a command for the AI"><?php
5434
+
echo esc_textarea($ai_seo);
5435
+
?></textarea>
5436
+
</div>
5437
+
</td></tr>
5438
+
<tr class="hideMain6">
5439
+
<td class="cr_min_width_200">
5440
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5441
+
<div class="bws_hidden_help_text cr_min_260px">
5442
+
<?php
5443
+
echo esc_html__("Select the AI Assistant to be used. This will disable the ability to select AI models, as the models assigned to the assistant will be used for content creation.", 'aiomatic-automatic-ai-content-writer');
5444
+
?>
5445
+
</div>
5446
+
</div>
5447
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
5448
+
</td>
5449
+
<td><select id="meta_assistant_id" name="aiomatic_Spinner_Settings[meta_assistant_id]" class="cr_width_full" onchange="assistantSelected('meta_assistant_id', 'disableMeta');">
5450
+
<?php
5451
+
if($all_assistants === false)
5452
+
{
5453
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
5454
+
}
5455
+
else
5456
+
{
5457
+
if(count($all_assistants) == 0)
5458
+
{
5459
+
echo '<option val="" 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>';
5460
+
}
5461
+
else
5462
+
{
5463
+
echo '<option value=""';
5464
+
if($meta_assistant_id == '')
5465
+
{
5466
+
echo ' selected';
5467
+
}
5468
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
5469
+
foreach($all_assistants as $myassistant)
5470
+
{
5471
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
5472
+
if($meta_assistant_id == $myassistant->ID)
5473
+
{
5474
+
echo ' selected';
5475
+
}
5476
+
echo '>' . esc_html($myassistant->post_title);
5477
+
echo '</option>';
5478
+
}
5479
+
}
5480
+
}
5481
+
?>
5482
+
</select>
5483
+
</td>
5484
+
</tr><tr class="hideMain6">
5485
+
<td>
5486
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5487
+
<div class="bws_hidden_help_text cr_min_260px">
5488
+
<?php
5489
+
echo esc_html__("Select the AI Model to be used for AI SEO Meta Description Generator.", 'aiomatic-automatic-ai-content-writer');
5490
+
?>
5491
+
</div>
5492
+
</div>
5493
+
<b><?php echo esc_html__("AI Model For The AI SEO Meta Description Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
5494
+
</td>
5495
+
<td class="cr_min_width_200">
5496
+
<select id="seo_model" name="aiomatic_Spinner_Settings[seo_model]" <?php if($meta_assistant_id != ''){echo ' disabled';}?> class="disableMeta cr_width_full" onchange="visionSelectedAI6();">
5497
+
<?php
5498
+
foreach($all_models as $modelx)
5499
+
{
5500
+
echo '<option value="' . esc_html($modelx) .'"';
5501
+
if ($seo_model == $modelx)
5502
+
{
5503
+
echo " selected";
5504
+
}
5505
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
5506
+
}
5507
+
?>
5508
+
</select>
5509
+
</td>
5510
+
</tr>
5511
+
<tr class="hideMain6 hideVision6">
5512
+
<td class="cr_min_width_200">
5513
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5514
+
<div class="bws_hidden_help_text cr_min_260px">
5515
+
<?php
5516
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
5517
+
?>
5518
+
</div>
5519
+
</div>
5520
+
<b><?php echo esc_html__("Enable AI Vision:", 'aiomatic-automatic-ai-content-writer');?></b>
5521
+
</td>
5522
+
<td>
5523
+
<input type="checkbox" id="ai_vision_seo" name="aiomatic_Spinner_Settings[ai_vision_seo]"<?php
5524
+
if ($ai_vision_seo == 'on')
5525
+
echo ' checked ';
5526
+
?>>
5527
+
</td>
5528
+
</tr><tr class="hideMain6">
5529
+
<td>
5530
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5531
+
<div class="bws_hidden_help_text cr_min_260px">
5532
+
<?php
5533
+
echo esc_html__("Set if you want to limit the AI generated meta description length.", 'aiomatic-automatic-ai-content-writer');
5534
+
?>
5535
+
</div>
5536
+
</div>
5537
+
<b><?php echo esc_html__("Limit AI Generated Meta Description Character Count:", 'aiomatic-automatic-ai-content-writer');?></b>
5538
+
</td>
5539
+
<td class="cr_min_width_200">
5540
+
<input type="number" min="0" step="1" id="seo_max_char" name="aiomatic_Spinner_Settings[seo_max_char]" class="cr_450" value="<?php echo esc_html($seo_max_char);?>" placeholder="Maximum character length">
5541
+
</td>
5542
+
</tr><tr class="hideMain6">
5543
+
<td>
5544
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5545
+
<div class="bws_hidden_help_text cr_min_260px">
5546
+
<?php
5547
+
echo esc_html__("Set if you want to copy meta description from post excerpt, instead of creating it. Note that this will disable the AI generator of the SEO meta.", 'aiomatic-automatic-ai-content-writer');
5548
+
?>
5549
+
</div>
5550
+
</div>
5551
+
<b><?php echo esc_html__("Copy Meta Description From Post Excerpt Instead Of Generating It:", 'aiomatic-automatic-ai-content-writer');?></b>
5552
+
</td>
5553
+
<td class="cr_min_width_200">
5554
+
<input type="checkbox" id="seo_copy_excerpt" name="aiomatic_Spinner_Settings[seo_copy_excerpt]"<?php
5555
+
if ($seo_copy_excerpt == 'on')
5556
+
echo ' checked ';
5557
+
?>>
5558
+
</td>
5559
+
</tr>
5560
+
<tr><td>
5561
+
<h2><?php echo esc_html__("Text to Audio/Video Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
5562
+
</td></tr>
5563
+
5564
+
<tr><td>
5565
+
<div>
5566
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5567
+
<div class="bws_hidden_help_text cr_min_260px">
5568
+
<?php
5569
+
echo esc_html__("Select if you want to enable text to speech/video feature of the plugin.", 'aiomatic-automatic-ai-content-writer');
5570
+
?>
5571
+
</div>
5572
+
</div>
5573
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Enable Content Text-to-Speech/Video:", 'aiomatic-automatic-ai-content-writer');?></b>
5574
+
</div>
5575
+
</td><td>
5576
+
<div>
5577
+
<select id="content_text_speech" onchange="aiomatic_audio_changed()" name="aiomatic_Spinner_Settings[content_text_speech]" >
5578
+
<?php
5579
+
echo '<option' . ($content_text_speech == 'off' ? ' selected': '') . ' value="off">Disabled</option>';
5580
+
if (!isset($aiomatic_Main_Settings['app_id']))
5581
+
{
5582
+
$aiomatic_Main_Settings['app_id'] = '';
5583
+
}
5584
+
$appids = preg_split('/\r\n|\r|\n/', trim($aiomatic_Main_Settings['app_id']));
5585
+
$appids = array_filter($appids);
5586
+
if(empty($appids))
5587
+
{
5588
+
$token = '';
5589
+
}
5590
+
else
5591
+
{
5592
+
$token = $appids[array_rand($appids)];
5593
+
$token = apply_filters('aimogen_openai_api_key', $token);$token = apply_filters('aiomatic_openai_api_key', $token);
5594
+
}
5595
+
if(!aiomatic_is_aiomaticapi_key($token) && (!isset($aiomatic_Main_Settings['api_selector']) || (trim($aiomatic_Main_Settings['api_selector']) != 'azure')))
5596
+
{
5597
+
echo '<option' . ($content_text_speech == 'openai' ? ' selected': '') . ' value="openai">OpenAI Text-to-Speech</option>';
5598
+
}
5599
+
else
5600
+
{
5601
+
echo '<option' . ($content_text_speech == 'openai' ? ' selected': '') . ' disabled value="openai">OpenAI Text-to-Speech (' . esc_html__("Currently Only OpenAI API is supported for TTS", 'aiomatic-automatic-ai-content-writer') . ')</option>';
5602
+
}
5603
+
if (isset($aiomatic_Main_Settings['elevenlabs_app_id']) && trim($aiomatic_Main_Settings['elevenlabs_app_id']) != '')
5604
+
{
5605
+
echo '<option' . ($content_text_speech == 'elevenlabs' ? ' selected': '') . ' value="elevenlabs">ElevenLabs.io Text-to-Speech</option>';
5606
+
}
5607
+
else
5608
+
{
5609
+
echo '<option' . ($content_text_speech == 'elevenlabs' ? ' selected': '') . ' disabled value="elevenlabs">ElevenLabs.io Text-to-Speech (' . esc_html__("Enter API key in Settings to enable", 'aiomatic-automatic-ai-content-writer') . ')</option>';
5610
+
}
5611
+
if (isset($aiomatic_Main_Settings['google_app_id']) && trim($aiomatic_Main_Settings['google_app_id']) != '')
5612
+
{
5613
+
echo '<option' . ($content_text_speech == 'google' ? ' selected': '') . ' value="google">Google Text-to-Speech</option>';
5614
+
}
5615
+
else
5616
+
{
5617
+
echo '<option' . ($content_text_speech == 'google' ? ' selected': '') . ' disabled value="google">Google Text-to-Speech (' . esc_html__("Enter API key in Settings to enable", 'aiomatic-automatic-ai-content-writer') . ')</option>';
5618
+
}
5619
+
if (isset($aiomatic_Main_Settings['did_app_id']) && trim($aiomatic_Main_Settings['did_app_id']) != '')
5620
+
{
5621
+
echo '<option' . ($content_text_speech == 'did' ? ' selected': '') . ' value="did">D-ID Text-to-Video</option>';
5622
+
}
5623
+
else
5624
+
{
5625
+
echo '<option' . ($content_text_speech == 'did' ? ' selected': '') . ' disabled value="did">D-ID Text-to-Video (' . esc_html__("Enter API key in Settings to enable", 'aiomatic-automatic-ai-content-writer') . ')</option>';
5626
+
}
5627
+
?>
5628
+
</select>
5629
+
</div>
5630
+
</td></tr>
5631
+
<tr class="hidedid"><td>
5632
+
<div>
5633
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5634
+
<div class="bws_hidden_help_text cr_min_260px">
5635
+
<?php
5636
+
echo esc_html__("The URL of the source image to be animated by the driver video, or a selection from the list of provided studio actors.", 'aiomatic-automatic-ai-content-writer');
5637
+
?>
5638
+
</div>
5639
+
</div>
5640
+
<b><?php echo esc_html__("Actor Source Image URL:", 'aiomatic-automatic-ai-content-writer');?></b>
5641
+
</div>
5642
+
</td><td>
5643
+
<div>
5644
+
<input id="did_image" name="aiomatic_Spinner_Settings[did_image]" list="did_image_list" type="text" list="did_image" class="coderevolution_gutenberg_input" value="<?php echo esc_attr($did_image);?>" placeholder="Actor URL"/>
5645
+
<datalist id="did_image_list">
5646
+
<option>https://create-images-results.d-id.com/api_docs/assets/noelle.jpeg</option>
5647
+
<option>https://create-images-results.d-id.com/api_docs/assets/amy.png</option>
5648
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Zivva_f/image.png</option>
5649
+
<option>https://create-images-results.d-id.com/DefaultPresenters/William_m/image.jpeg</option>
5650
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Sara_f/image.png</option>
5651
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Magen_f/image.jpeg</option>
5652
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Luna_f/image.jpeg</option>
5653
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Joaquin_m/image.png</option>
5654
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Jenna_f/image.jpeg</option>
5655
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Ibrahim_m/image.png</option>
5656
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Hassan_m/image.jpeg</option>
5657
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Gordon_m/image.jpeg</option>
5658
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Fatha_f/image.png</option>
5659
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Fanna_f/image.png</option>
5660
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Eric_m/image.jpeg</option>
5661
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Emma_f/image.jpeg</option>
5662
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Emily_f/image.jpeg</option>
5663
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Bull_m/image.jpeg</option>
5664
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Brandon_m/image.png</option>
5665
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Billy_m/image.jpeg</option>
5666
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Aria_f/image.png</option>
5667
+
<option>https://create-images-results.d-id.com/DefaultPresenters/Amber_f/image.jpeg</option>
5668
+
</datalist>
5669
+
</div>
5670
+
</td></tr>
5671
+
<tr class="hidedid"><td>
5672
+
<div>
5673
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5674
+
<div class="bws_hidden_help_text cr_min_260px">
5675
+
<?php
5676
+
echo esc_html__("Select a voice you want to use for your video content. You can add voices in the following format: voice_provider:voice_name:voice_config - available voices lists:", 'aiomatic-automatic-ai-content-writer');
5677
+
echo ' <a href="https://speech.microsoft.com/portal/voicegallery" target="_blank">https://speech.microsoft.com/portal/voicegallery</a> - <a href="https://docs.aws.amazon.com/polly/latest/dg/voicelist.html" target="_blank">https://docs.aws.amazon.com/polly/latest/dg/voicelist.html</a>';
5678
+
?>
5679
+
</div>
5680
+
</div>
5681
+
<b><?php echo esc_html__("Select a Voice:", 'aiomatic-automatic-ai-content-writer');?></b>
5682
+
</div>
5683
+
</td><td>
5684
+
<div>
5685
+
<input id="did_voice" name="aiomatic_Spinner_Settings[did_voice]" type="text" list="did_voice_list" class="coderevolution_gutenberg_input" value="<?php echo esc_attr($did_voice);?>" placeholder="Voice config"/>
5686
+
<datalist id="did_voice_list">
5687
+
<option>microsoft:en-US-JennyNeural:Neutral</option>
5688
+
<option>microsoft:en-US-JennyNeural:Cheerful</option>
5689
+
<option>microsoft:en-US-JennyNeural:Sad</option>
5690
+
<option>microsoft:en-US-JennyNeural:Assistant</option>
5691
+
<option>microsoft:en-US-JennyNeural:Chat</option>
5692
+
<option>microsoft:en-US-JennyNeural:Newscast</option>
5693
+
<option>microsoft:en-US-JennyNeural:Angry</option>
5694
+
<option>microsoft:en-US-JennyNeural:Excited</option>
5695
+
<option>microsoft:en-US-JennyNeural:Friendly</option>
5696
+
<option>microsoft:en-US-JennyNeural:Terrified</option>
5697
+
<option>microsoft:en-US-JennyNeural:Shouting</option>
5698
+
<option>microsoft:en-US-JennyNeural:Unfriendly</option>
5699
+
<option>microsoft:en-US-JennyNeural:Whispering</option>
5700
+
<option>microsoft:en-US-JennyNeural:Hopeful</option>
5701
+
<option>microsoft:en-US-JennyNeural:Default</option>
5702
+
<option>microsoft:en-US-GuyNeural:Default</option>
5703
+
<option>microsoft:en-US-GuyNeural:Newscast</option>
5704
+
<option>microsoft:en-US-GuyNeural:Angry</option>
5705
+
<option>microsoft:en-US-GuyNeural:Cheerful</option>
5706
+
<option>microsoft:en-US-GuyNeural:Sad</option>
5707
+
<option>microsoft:en-US-GuyNeural:Excited</option>
5708
+
<option>microsoft:en-US-GuyNeural:Friendly</option>
5709
+
<option>microsoft:en-US-GuyNeural:Terrified</option>
5710
+
<option>microsoft:en-US-GuyNeural:Shouting</option>
5711
+
<option>microsoft:en-US-GuyNeural:Unfriendly</option>
5712
+
<option>microsoft:en-US-GuyNeural:Whispering</option>
5713
+
<option>microsoft:en-US-GuyNeural:Hopeful</option>
5714
+
<option>microsoft:en-US-AmberNeural</option>
5715
+
<option>microsoft:en-US-AnaNeural</option>
5716
+
<option>microsoft:en-US-AriaNeural:Default</option>
5717
+
<option>microsoft:en-US-AriaNeural:Chat</option>
5718
+
<option>microsoft:en-US-AriaNeural:Cheerful</option>
5719
+
<option>microsoft:en-US-AriaNeural:Empathetic</option>
5720
+
<option>microsoft:en-US-AriaNeural:Angry</option>
5721
+
<option>microsoft:en-US-AriaNeural:Sad</option>
5722
+
<option>microsoft:en-US-AriaNeural:Excited</option>
5723
+
<option>microsoft:en-US-AriaNeural:Friendly</option>
5724
+
<option>microsoft:en-US-AriaNeural:Terrified</option>
5725
+
<option>microsoft:en-US-AriaNeural:Shouting</option>
5726
+
<option>microsoft:en-US-AriaNeural:Unfriendly</option>
5727
+
<option>microsoft:en-US-AriaNeural:Whispering</option>
5728
+
<option>microsoft:en-US-AriaNeural:Hopeful</option>
5729
+
<option>microsoft:en-US-AshleyNeural</option>
5730
+
<option>microsoft:en-US-BrandonNeural</option>
5731
+
<option>microsoft:en-US-ChristopherNeural</option>
5732
+
<option>microsoft:en-US-CoraNeural</option>
5733
+
<option>microsoft:en-US-DavisNeural:Default</option>
5734
+
<option>microsoft:en-US-DavisNeural:Chat</option>
5735
+
<option>microsoft:en-US-DavisNeural:Angry</option>
5736
+
<option>microsoft:en-US-DavisNeural:Cheerful</option>
5737
+
<option>microsoft:en-US-DavisNeural:Excited</option>
5738
+
<option>microsoft:en-US-DavisNeural:Friendly</option>
5739
+
<option>microsoft:en-US-DavisNeural:Hopeful</option>
5740
+
<option>microsoft:en-US-DavisNeural:Sad</option>
5741
+
<option>microsoft:en-US-DavisNeural:Shouting</option>
5742
+
<option>microsoft:en-US-DavisNeural:Terrified</option>
5743
+
<option>microsoft:en-US-DavisNeural:Unfriendly</option>
5744
+
<option>microsoft:en-US-DavisNeural:Whispering</option>
5745
+
<option>microsoft:en-US-ElizabethNeural</option>
5746
+
<option>microsoft:en-US-EricNeural</option>
5747
+
<option>microsoft:en-US-JacobNeural</option>
5748
+
<option>microsoft:en-US-JaneNeural:Default</option>
5749
+
<option>microsoft:en-US-JaneNeural:Cheerful</option>
5750
+
<option>microsoft:en-US-JaneNeural:Angry</option>
5751
+
<option>microsoft:en-US-JaneNeural:Excited</option>
5752
+
<option>microsoft:en-US-JaneNeural:Friendly</option>
5753
+
<option>microsoft:en-US-JaneNeural:Hopeful</option>
5754
+
<option>microsoft:en-US-JaneNeural:Sad</option>
5755
+
<option>microsoft:en-US-JaneNeural:Shouting</option>
5756
+
<option>microsoft:en-US-JaneNeural:Terrified</option>
5757
+
<option>microsoft:en-US-JaneNeural:Unfriendly</option>
5758
+
<option>microsoft:en-US-JaneNeural:Whispering</option>
5759
+
<option>microsoft:en-US-JaneNeural:Default</option>
5760
+
<option>microsoft:en-US-JasonNeural:Default</option>
5761
+
<option>microsoft:en-US-JasonNeural:Angry</option>
5762
+
<option>microsoft:en-US-JasonNeural:Cheerful</option>
5763
+
<option>microsoft:en-US-JasonNeural:Excited</option>
5764
+
<option>microsoft:en-US-JasonNeural:Friendly</option>
5765
+
<option>microsoft:en-US-JasonNeural:Hopeful</option>
5766
+
<option>microsoft:en-US-JasonNeural:Sad</option>
5767
+
<option>microsoft:en-US-JasonNeural:Shouting</option>
5768
+
<option>microsoft:en-US-JasonNeural:Terrified</option>
5769
+
<option>microsoft:en-US-JasonNeural:Unfriendly</option>
5770
+
<option>microsoft:en-US-JasonNeural:Whispering</option>
5771
+
<option>microsoft:en-US-MichelleNeural</option>
5772
+
<option>microsoft:en-US-MonicaNeural</option>
5773
+
<option>microsoft:en-US-NancyNeural:Default</option>
5774
+
<option>microsoft:en-US-NancyNeural:Angry</option>
5775
+
<option>microsoft:en-US-NancyNeural:Cheerful</option>
5776
+
<option>microsoft:en-US-NancyNeural:Excited</option>
5777
+
<option>microsoft:en-US-NancyNeural:Friendly</option>
5778
+
<option>microsoft:en-US-NancyNeural:Hopeful</option>
5779
+
<option>microsoft:en-US-NancyNeural:Sad</option>
5780
+
<option>microsoft:en-US-NancyNeural:Shouting</option>
5781
+
<option>microsoft:en-US-NancyNeural:Terrified</option>
5782
+
<option>microsoft:en-US-NancyNeural:Unfriendly</option>
5783
+
<option>microsoft:en-US-NancyNeural:Whispering</option>
5784
+
<option>microsoft:en-US-RogerNeural</option>
5785
+
<option>microsoft:en-US-SaraNeural:Default</option>
5786
+
<option>microsoft:en-US-SaraNeural:Angry</option>
5787
+
<option>microsoft:en-US-SaraNeural:Cheerful</option>
5788
+
<option>microsoft:en-US-SaraNeural:Excited</option>
5789
+
<option>microsoft:en-US-SaraNeural:Friendly</option>
5790
+
<option>microsoft:en-US-SaraNeural:Hopeful</option>
5791
+
<option>microsoft:en-US-SaraNeural:Sad</option>
5792
+
<option>microsoft:en-US-SaraNeural:Shouting</option>
5793
+
<option>microsoft:en-US-SaraNeural:Terrified</option>
5794
+
<option>microsoft:en-US-SaraNeural:Unfriendly</option>
5795
+
<option>microsoft:en-US-SaraNeural:Whispering</option>
5796
+
<option>microsoft:en-US-SteffanNeural</option>
5797
+
<option>microsoft:en-US-TonyNeural:Default</option>
5798
+
<option>microsoft:en-US-TonyNeural:Angry</option>
5799
+
<option>microsoft:en-US-TonyNeural:Cheerful</option>
5800
+
<option>microsoft:en-US-TonyNeural:Excited</option>
5801
+
<option>microsoft:en-US-TonyNeural:Friendly</option>
5802
+
<option>microsoft:en-US-TonyNeural:Hopeful</option>
5803
+
<option>microsoft:en-US-TonyNeural:Sad</option>
5804
+
<option>microsoft:en-US-TonyNeural:Shouting</option>
5805
+
<option>microsoft:en-US-TonyNeural:Terrified</option>
5806
+
<option>microsoft:en-US-TonyNeural:Unfriendly</option>
5807
+
<option>microsoft:en-US-TonyNeural:Whispering</option>
5808
+
<option>microsoft:en-US-AIGenerate1Neural</option>
5809
+
<option>microsoft:en-US-AIGenerate2Neural</option>
5810
+
<option>amazon:Amy</option>
5811
+
<option>amazon:Emma</option>
5812
+
<option>amazon:Brian</option>
5813
+
<option>amazon:Arthur</option>
5814
+
<option>amazon:Nicole</option>
5815
+
<option>amazon:Olivia</option>
5816
+
<option>amazon:Russell</option>
5817
+
<option>amazon:Ivy</option>
5818
+
<option>amazon:Joanna</option>
5819
+
<option>amazon:Kendra</option>
5820
+
<option>amazon:Kimberly</option>
5821
+
<option>amazon:Salli</option>
5822
+
<option>amazon:Joey</option>
5823
+
<option>amazon:Justin</option>
5824
+
<option>amazon:Kevin</option>
5825
+
<option>amazon:Matthew</option>
5826
+
<option>amazon:Ruth</option>
5827
+
<option>amazon:Stephen</option>
5828
+
<option>amazon:Geraint</option>
5829
+
<option>amazon:Ayanda</option>
5830
+
<option>amazon:Aria</option>
5831
+
<option>amazon:Aditi</option>
5832
+
<option>amazon:Raveena</option>
5833
+
<option>amazon:Kajal</option>
5834
+
<option>amazon:Zeina</option>
5835
+
<option>amazon:Hala</option>
5836
+
<option>amazon:Arlet</option>
5837
+
<option>amazon:Hiujin</option>
5838
+
<option>amazon:Zhiyu</option>
5839
+
<option>amazon:Naja</option>
5840
+
<option>amazon:Mads</option>
5841
+
<option>amazon:Laura</option>
5842
+
<option>amazon:Lotte</option>
5843
+
<option>amazon:Ruben</option>
5844
+
<option>amazon:Suvi</option>
5845
+
<option>amazon:Celine</option>
5846
+
<option>amazon:L??a</option>
5847
+
<option>amazon:Mathieu</option>
5848
+
<option>amazon:R??mi</option>
5849
+
<option>amazon:Chantal</option>
5850
+
<option>amazon:Gabrielle</option>
5851
+
<option>amazon:Liam</option>
5852
+
<option>amazon:Marlene</option>
5853
+
<option>amazon:Vicki</option>
5854
+
<option>amazon:Hans</option>
5855
+
<option>amazon:Daniel</option>
5856
+
<option>amazon:Hannah</option>
5857
+
<option>amazon:Dora</option>
5858
+
<option>amazon:Karl</option>
5859
+
<option>amazon:Carla</option>
5860
+
<option>amazon:Bianca</option>
5861
+
<option>amazon:Giorgio</option>
5862
+
<option>amazon:Adriano</option>
5863
+
<option>amazon:Mizuki</option>
5864
+
<option>amazon:Takumi</option>
5865
+
<option>amazon:Kazuha</option>
5866
+
<option>amazon:Tomoko</option>
5867
+
<option>amazon:Seoyeon</option>
5868
+
<option>amazon:Liv</option>
5869
+
<option>amazon:Ida</option>
5870
+
<option>amazon:Ewa</option>
5871
+
<option>amazon:Maja</option>
5872
+
<option>amazon:Jacek</option>
5873
+
<option>amazon:Jan</option>
5874
+
<option>amazon:Ola</option>
5875
+
<option>amazon:Camila</option>
5876
+
<option>amazon:Vitoria</option>
5877
+
<option>amazon:Ricardo</option>
5878
+
<option>amazon:Thiago</option>
5879
+
<option>amazon:Ines</option>
5880
+
<option>amazon:Cristiano</option>
5881
+
<option>amazon:Carmen</option>
5882
+
<option>amazon:Tatyana</option>
5883
+
<option>amazon:Maxim</option>
5884
+
<option>amazon:Conchita</option>
5885
+
<option>amazon:Lucia</option>
5886
+
<option>amazon:Enrique</option>
5887
+
<option>amazon:Sergio</option>
5888
+
<option>amazon:Mia</option>
5889
+
<option>amazon:Andr??s</option>
5890
+
<option>amazon:Lupe</option>
5891
+
<option>amazon:Penelope</option>
5892
+
<option>amazon:Miguel</option>
5893
+
<option>amazon:Pedro</option>
5894
+
<option>amazon:Astrid</option>
5895
+
<option>amazon:Elin</option>
5896
+
<option>amazon:Filiz</option>
5897
+
<option>amazon:Gwyneth</option>
5898
+
<option>afflorithmics:en-US-JennyNeural</option>
5899
+
<option>elevenlabs:en-US-JennyNeural</option>
5900
+
</datalist>
5901
+
</div>
5902
+
</td></tr>
5903
+
<tr class="hideeleven"><td>
5904
+
<div>
5905
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5906
+
<div class="bws_hidden_help_text cr_min_260px">
5907
+
<?php
5908
+
echo esc_html__("Select a voice you want to use for your content.", 'aiomatic-automatic-ai-content-writer');
5909
+
?>
5910
+
</div>
5911
+
</div>
5912
+
<b><?php echo esc_html__("Select a Voice:", 'aiomatic-automatic-ai-content-writer');?></b>
5913
+
</div>
5914
+
</td><td>
5915
+
<div>
5916
+
<select id="eleven_voice" name="aiomatic_Spinner_Settings[eleven_voice]" >
5917
+
<?php
5918
+
$eleven_voices = aiomatic_get_eleven_voices();
5919
+
if($eleven_voices === false)
5920
+
{
5921
+
echo '<option value="" disabled>'.esc_html__("Failed to list voices!", 'aiomatic-automatic-ai-content-writer').'</option>';
5922
+
}
5923
+
else
5924
+
{
5925
+
foreach($eleven_voices as $key => $voice)
5926
+
{
5927
+
echo '<option' . ($eleven_voice == esc_attr($key) ? ' selected': '') . ' value="'.esc_attr($key).'">'.esc_html($voice).'</option>';
5928
+
}
5929
+
}
5930
+
?>
5931
+
</select>
5932
+
</div>
5933
+
</td></tr>
5934
+
<tr class="hideeleven"><td>
5935
+
<div>
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 a voice you want to use for your content.", 'aiomatic-automatic-ai-content-writer');
5940
+
?>
5941
+
</div>
5942
+
</div>
5943
+
<b><?php echo esc_html__("Select a Voice:", 'aiomatic-automatic-ai-content-writer');?></b>
5944
+
</div>
5945
+
</td><td>
5946
+
<div>
5947
+
<input type="text" id="width" name="aiomatic_Spinner_Settings[eleven_voice_custom]" value="<?php echo esc_html($eleven_voice_custom);?>" placeholder="Custom voice ID">
5948
+
</div>
5949
+
</td></tr>
5950
+
<tr class="hideeleven"><td>
5951
+
<div>
5952
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5953
+
<div class="bws_hidden_help_text cr_min_260px">
5954
+
<?php
5955
+
echo esc_html__("Select the model to be used when generating the voices.", 'aiomatic-automatic-ai-content-writer');
5956
+
?>
5957
+
</div>
5958
+
</div>
5959
+
<b><?php echo esc_html__("Voice AI Model:", 'aiomatic-automatic-ai-content-writer');?></b>
5960
+
</div>
5961
+
</td><td>
5962
+
<div>
5963
+
<select id="eleven_model_id" name="aiomatic_Spinner_Settings[eleven_model_id]" >
5964
+
<?php
5965
+
echo '<option' . ($eleven_model_id == 'eleven_monolingual_v1' ? ' selected': '') . ' value="eleven_monolingual_v1">eleven_monolingual_v1</option>';
5966
+
echo '<option' . ($eleven_model_id == 'eleven_multilingual_v1' ? ' selected': '') . ' value="eleven_multilingual_v1">eleven_multilingual_v1</option>';
5967
+
echo '<option' . ($eleven_model_id == 'eleven_multilingual_v2' ? ' selected': '') . ' value="eleven_multilingual_v2">eleven_multilingual_v2</option>';
5968
+
?>
5969
+
</select>
5970
+
</div>
5971
+
</td></tr>
5972
+
<tr class="hideeleven"><td>
5973
+
<div>
5974
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
5975
+
<div class="bws_hidden_help_text cr_min_260px">
5976
+
<?php
5977
+
echo esc_html__("Select a the Voice stability of the chosen voice. Higher stability ensures consistency but may result in monotony, therefore for longer text, it is recommended to decrease stability. The default value is 0.75", 'aiomatic-automatic-ai-content-writer');
5978
+
?>
5979
+
</div>
5980
+
</div>
5981
+
<b><?php echo esc_html__("Voice Stability:", 'aiomatic-automatic-ai-content-writer');?></b>
5982
+
</div>
5983
+
</td><td>
5984
+
<div>
5985
+
<input type="number" min="0" step="0.01" id="voice_stability" name="aiomatic_Spinner_Settings[voice_stability]" class="cr_width_full" value="<?php echo esc_html($voice_stability);?>" placeholder="0.75">
5986
+
</div>
5987
+
</td></tr>
5988
+
<tr class="hideeleven"><td>
5989
+
<div>
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__("Boosting voice clarity and target speaker similarity is achieved by high enhancement; however, very high values can produce artifacts, so it's essential to find the optimal setting. The default value is 0.75", 'aiomatic-automatic-ai-content-writer');
5994
+
?>
5995
+
</div>
5996
+
</div>
5997
+
<b><?php echo esc_html__("Voice Similarity Boost:", 'aiomatic-automatic-ai-content-writer');?></b>
5998
+
</div>
5999
+
</td><td>
6000
+
<div>
6001
+
<input type="number" min="0" step="0.01" id="voice_similarity_boost" name="aiomatic_Spinner_Settings[voice_similarity_boost]" class="cr_width_full" value="<?php echo esc_html($voice_similarity_boost);?>" placeholder="0.75">
6002
+
</div>
6003
+
</td></tr>
6004
+
<tr class="hideeleven"><td>
6005
+
<div>
6006
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6007
+
<div class="bws_hidden_help_text cr_min_260px">
6008
+
<?php
6009
+
echo esc_html__("Boost the characteristics of the voice. Default is disabled.", 'aiomatic-automatic-ai-content-writer');
6010
+
?>
6011
+
</div>
6012
+
</div>
6013
+
<b><?php echo esc_html__("Style Exaggeration:", 'aiomatic-automatic-ai-content-writer');?></b>
6014
+
</div>
6015
+
</td><td>
6016
+
<div>
6017
+
<input type="number" min="0" step="0.01" id="voice_style" name="aiomatic_Spinner_Settings[voice_style]" class="cr_width_full" value="<?php echo esc_html($voice_style);?>" placeholder="Style exaggeration">
6018
+
</div>
6019
+
</td></tr>
6020
+
<tr class="hideeleven"><td>
6021
+
<div>
6022
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6023
+
<div class="bws_hidden_help_text cr_min_260px">
6024
+
<?php
6025
+
echo esc_html__("Boost the similarity of the synthesized speech and the voice at the cost of some generation speed.", 'aiomatic-automatic-ai-content-writer');
6026
+
?>
6027
+
</div>
6028
+
</div>
6029
+
<b><?php echo esc_html__("Speaker Boost:", 'aiomatic-automatic-ai-content-writer');?></b>
6030
+
</div>
6031
+
</td><td>
6032
+
<div>
6033
+
<input type="checkbox" id="speaker_boost" name="aiomatic_Spinner_Settings[speaker_boost]"<?php
6034
+
if ($speaker_boost == 'on')
6035
+
echo ' checked ';
6036
+
?>>
6037
+
</div>
6038
+
</td></tr>
6039
+
<tr class="hideopen"><td>
6040
+
<div>
6041
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6042
+
<div class="bws_hidden_help_text cr_min_260px">
6043
+
<?php
6044
+
echo esc_html__("Select the model to be used when generating the voices.", 'aiomatic-automatic-ai-content-writer');
6045
+
?>
6046
+
</div>
6047
+
</div>
6048
+
<b><?php echo esc_html__("Voice AI Model:", 'aiomatic-automatic-ai-content-writer');?></b>
6049
+
</div>
6050
+
</td><td>
6051
+
<div>
6052
+
<select id="open_model_id" name="aiomatic_Spinner_Settings[open_model_id]" >
6053
+
<?php
6054
+
echo '<option' . ($open_model_id == 'tts-1' ? ' selected': '') . ' value="tts-1">tts-1</option>';
6055
+
echo '<option' . ($open_model_id == 'tts-1-hd' ? ' selected': '') . ' value="tts-1-hd">tts-1-hd</option>';
6056
+
?>
6057
+
</select>
6058
+
</div>
6059
+
</td></tr>
6060
+
<tr class="hideopen"><td>
6061
+
<div>
6062
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6063
+
<div class="bws_hidden_help_text cr_min_260px">
6064
+
<?php
6065
+
echo esc_html__("Select the voice to be used when generating the text to speech.", 'aiomatic-automatic-ai-content-writer');
6066
+
?>
6067
+
</div>
6068
+
</div>
6069
+
<b><?php echo esc_html__("AI Voice Selector:", 'aiomatic-automatic-ai-content-writer');?></b>
6070
+
</div>
6071
+
</td><td>
6072
+
<div>
6073
+
<select id="open_voice" name="aiomatic_Spinner_Settings[open_voice]" >
6074
+
<?php
6075
+
echo '<option' . ($open_voice == 'alloy' ? ' selected': '') . ' value="alloy">alloy</option>';
6076
+
echo '<option' . ($open_voice == 'echo' ? ' selected': '') . ' value="echo">echo</option>';
6077
+
echo '<option' . ($open_voice == 'fable' ? ' selected': '') . ' value="fable">fable</option>';
6078
+
echo '<option' . ($open_voice == 'nova' ? ' selected': '') . ' value="nova">nova</option>';
6079
+
echo '<option' . ($open_voice == 'onyx' ? ' selected': '') . ' value="onyx">onyx</option>';
6080
+
echo '<option' . ($open_voice == 'shimmer' ? ' selected': '') . ' value="shimmer">shimmer</option>';
6081
+
?>
6082
+
</select>
6083
+
</div>
6084
+
</td></tr>
6085
+
<tr class="hideopen"><td>
6086
+
<div>
6087
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6088
+
<div class="bws_hidden_help_text cr_min_260px">
6089
+
<?php
6090
+
echo esc_html__("Select the output format to be used when generating the text to speech.", 'aiomatic-automatic-ai-content-writer');
6091
+
?>
6092
+
</div>
6093
+
</div>
6094
+
<b><?php echo esc_html__("AI Voice Output Format:", 'aiomatic-automatic-ai-content-writer');?></b>
6095
+
</div>
6096
+
</td><td>
6097
+
<div>
6098
+
<select id="open_format" name="aiomatic_Spinner_Settings[open_format]" >
6099
+
<?php
6100
+
echo '<option' . ($open_format == 'mp3' ? ' selected': '') . ' value="mp3">mp3</option>';
6101
+
echo '<option' . ($open_format == 'opus' ? ' selected': '') . ' value="opus">opus</option>';
6102
+
echo '<option' . ($open_format == 'aac' ? ' selected': '') . ' value="aac">aac</option>';
6103
+
echo '<option' . ($open_format == 'flac' ? ' selected': '') . ' value="flac">flac</option>';
6104
+
?>
6105
+
</select>
6106
+
</div>
6107
+
</td></tr>
6108
+
<tr class="hideopen"><td>
6109
+
<div>
6110
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6111
+
<div class="bws_hidden_help_text cr_min_260px">
6112
+
<?php
6113
+
echo esc_html__("Select a the Voice speed of the chosen voice. The default value is 1. Min: 0.25, max: 4.", 'aiomatic-automatic-ai-content-writer');
6114
+
?>
6115
+
</div>
6116
+
</div>
6117
+
<b><?php echo esc_html__("Voice Stability:", 'aiomatic-automatic-ai-content-writer');?></b>
6118
+
</div>
6119
+
</td><td>
6120
+
<div>
6121
+
<input type="number" min="0.25" step="0.01" max="4" id="open_speed" name="aiomatic_Spinner_Settings[open_speed]" class="cr_width_full" value="<?php echo esc_html($open_speed);?>" placeholder="1">
6122
+
</div>
6123
+
</td></tr>
6124
+
<tr class="hidegoogle"><td>
6125
+
<div>
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 a the language of the chosen voice.", 'aiomatic-automatic-ai-content-writer');
6130
+
?>
6131
+
</div>
6132
+
</div>
6133
+
<b><?php echo esc_html__("Voice Language:", 'aiomatic-automatic-ai-content-writer');?></b>
6134
+
</div>
6135
+
</td><td>
6136
+
<div>
6137
+
<select id="voice_language" name="aiomatic_Spinner_Settings[voice_language]" >
6138
+
<?php
6139
+
$gvlanguages = array(
6140
+
'af-ZA' => 'Afrikaans (South Africa)',
6141
+
'ar-XA' => 'Arabic, multi-region',
6142
+
'id-ID' => 'Indonesian (Indonesia)',
6143
+
'ms-MY' => 'Malay (Malaysia)',
6144
+
'ca-ES' => 'Catalan (Spain)',
6145
+
'da-DK' => 'Danish (Denmark)',
6146
+
'de-DE' => 'German (Germany)',
6147
+
'en-AU' => 'English (Australia)',
6148
+
'en-GB' => 'English (Great Britain)',
6149
+
'en-IN' => 'English (India)',
6150
+
'en-US' => 'English (United States)',
6151
+
'es-ES' => 'Spanish (Spain)',
6152
+
'es-US' => 'Spanish (United States)',
6153
+
'eu-ES' => 'Basque (Spain)',
6154
+
'fil-PH' => 'Filipino (Philippines)',
6155
+
'fr-CA' => 'French (Canada)',
6156
+
'fr-FR' => 'French (France)',
6157
+
'gl-ES' => 'Galician (Spain)',
6158
+
'it-IT' => 'Italian (Italy)',
6159
+
'lv-LV' => 'Latvian (Latvia)',
6160
+
'lt-LT' => 'Lithuanian (Lithuania)',
6161
+
'hu-HU' => 'Hungarian (Hungary)',
6162
+
'nl-NL' => 'Dutch (Netherlands)',
6163
+
'nb-NO' => 'Norwegian Bokm??l (Norway)',
6164
+
'pl-PL' => 'Polish (Poland)',
6165
+
'pt-BR' => 'Portuguese (Brazil)',
6166
+
'pt-PT' => 'Portuguese (Portugal)',
6167
+
'ro-RO' => 'Romanian (Romania)',
6168
+
'sk-SK' => 'Slovak (Slovakia)',
6169
+
'fi-FI' => 'Finnish (Finland)',
6170
+
'sv-SE' => 'Swedish (Sweden)',
6171
+
'vi-VN' => 'Vietnamese (Vietnam)',
6172
+
'tr-TR' => 'Turkish (Turkey)',
6173
+
'is-IS' => 'Icelandic (Iceland)',
6174
+
'cs-CZ' => 'Czech (Czech Republic)',
6175
+
'el-GR' => 'Greek (Greece)',
6176
+
'bg-BG' => 'Bulgarian (Bulgaria)',
6177
+
'ru-RU' => 'Russian (Russia)',
6178
+
'sr-RS' => 'Serbian (Serbia)',
6179
+
'uk-UA' => 'Ukrainian (Ukraine)',
6180
+
'he-IL' => 'Hebrew (Israel)',
6181
+
'mr-IN' => 'Marathi (India)',
6182
+
'hi-IN' => 'Hindi (India)',
6183
+
'bn-IN' => 'Bengali (India)',
6184
+
'gu-IN' => 'Gujarati (India)',
6185
+
'ta-IN' => 'Tamil (India)',
6186
+
'te-IN' => 'Telugu (India)',
6187
+
'kn-IN' => 'Kannada (India)',
6188
+
'ml-IN' => 'Malayalam (India)',
6189
+
'th-TH' => 'Thai (Thailand)',
6190
+
'cmn-TW' => 'Mandarin (Taiwan)',
6191
+
'yue-HK' => 'Cantonese (Hong Kong)',
6192
+
'ja-JP' => 'Japanese (Japan)',
6193
+
'cmn-CN' => 'Mandarin (Mainland China)',
6194
+
'ko-KR' => 'Korean (South Korea)'
6195
+
);
6196
+
foreach($gvlanguages as $key => $lang)
6197
+
{
6198
+
echo '<option' . ($voice_language == esc_attr($key) ? ' selected': '') . ' value="'.esc_attr($key).'">'.esc_html($lang).'</option>';
6199
+
}
6200
+
?>
6201
+
</select>
6202
+
</div>
6203
+
</td></tr>
6204
+
<tr class="hidegoogle"><td>
6205
+
<div>
6206
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6207
+
<div class="bws_hidden_help_text cr_min_260px">
6208
+
<?php
6209
+
echo esc_html__("Select a the name of the chosen voice.", 'aiomatic-automatic-ai-content-writer');
6210
+
?>
6211
+
</div>
6212
+
</div>
6213
+
<b><?php echo esc_html__("Voice Name:", 'aiomatic-automatic-ai-content-writer');?></b>
6214
+
</div>
6215
+
</td><td>
6216
+
<div>
6217
+
<select id="google_voice" name="aiomatic_Spinner_Settings[google_voice]" >
6218
+
<?php
6219
+
if (!isset($aiomatic_Main_Settings['google_app_id']) || trim($aiomatic_Main_Settings['google_app_id']) == '')
6220
+
{
6221
+
$google_voices = false;
6222
+
}
6223
+
else
6224
+
{
6225
+
$google_voices = aiomatic_get_google_voices($voice_language);
6226
+
}
6227
+
if($google_voices === false)
6228
+
{
6229
+
echo '<option value="" disabled>'.esc_html__("Failed to list voices!", 'aiomatic-automatic-ai-content-writer').'</option>';
6230
+
}
6231
+
else
6232
+
{
6233
+
foreach($google_voices as $key => $voice)
6234
+
{
6235
+
echo '<option' . (($google_voice == esc_attr($voice['name']) || ($google_voice === '' && esc_attr($voice['name']) == 'en-US-Standard-A')) ? ' selected': '') . ' value="'.esc_attr($voice['name']).'">'.esc_html($voice['name']).'</option>';
6236
+
}
6237
+
}
6238
+
?>
6239
+
</select>
6240
+
</div>
6241
+
</td></tr>
6242
+
<tr class="hidegoogle"><td>
6243
+
<div>
6244
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6245
+
<div class="bws_hidden_help_text cr_min_260px">
6246
+
<?php
6247
+
echo esc_html__("Select a the model of the chosen voice. Note that not all voices support all models. You need to find the right combination which works for you.", 'aiomatic-automatic-ai-content-writer');
6248
+
?>
6249
+
</div>
6250
+
</div>
6251
+
<b><?php echo esc_html__("Voice Model:", 'aiomatic-automatic-ai-content-writer');?></b>
6252
+
</div>
6253
+
</td><td>
6254
+
<div>
6255
+
<select id="google_voice_model" name="aiomatic_Spinner_Settings[google_voice_model]" >
6256
+
<option value="default"<?php if($google_voice_model == 'default') echo ' selected';?>>default</option>
6257
+
<option value="latest_long"<?php if($google_voice_model == '' || $google_voice_model == 'latest_long') echo ' selected';?>>latest_long</option>
6258
+
<option value="latest_short"<?php if($google_voice_model == 'latest_short') echo ' selected';?>>latest_short</option>
6259
+
<option value="phone_call"<?php if($google_voice_model == 'phone_call') echo ' selected';?>>phone_call</option>
6260
+
<option value="video"<?php if($google_voice_model == 'video') echo ' selected';?>>video</option>
6261
+
<option value="command_and_search"<?php if($google_voice_model == 'command_and_search') echo ' selected';?>>command_and_search</option>
6262
+
<option value="chirp"<?php if($google_voice_model == 'chirp') echo ' selected';?>>chirp</option>
6263
+
<option value="medical_conversation"<?php if($google_voice_model == 'medical_conversation') echo ' selected';?>>medical_conversation</option>
6264
+
<option value="medical_dictation"<?php if($google_voice_model == 'medical_dictation') echo ' selected';?>>medical_dictation</option>
6265
+
</select>
6266
+
</div>
6267
+
</td></tr>
6268
+
<tr class="hidegoogle"><td>
6269
+
<div>
6270
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6271
+
<div class="bws_hidden_help_text cr_min_260px">
6272
+
<?php
6273
+
echo esc_html__("Select a the Audio Device Profile of the chosen voice.", 'aiomatic-automatic-ai-content-writer');
6274
+
?>
6275
+
</div>
6276
+
</div>
6277
+
<b><?php echo esc_html__("Audio Device Profile:", 'aiomatic-automatic-ai-content-writer');?></b>
6278
+
</div>
6279
+
</td><td>
6280
+
<div>
6281
+
<select id="audio_profile" name="aiomatic_Spinner_Settings[audio_profile]" >
6282
+
<?php
6283
+
$gvprofiles = array(
6284
+
'' => esc_html__('Default','aiomatic-automatic-ai-content-writer'),
6285
+
'wearable-class-device' => esc_html__('Smart watch or wearable','aiomatic-automatic-ai-content-writer'),
6286
+
'handset-class-device' => esc_html__('Smartphone','aiomatic-automatic-ai-content-writer'),
6287
+
'headphone-class-device' => esc_html__('Headphones or earbuds','aiomatic-automatic-ai-content-writer'),
6288
+
'small-bluetooth-speaker-class-device' => esc_html__('Small home speaker','aiomatic-automatic-ai-content-writer'),
6289
+
'medium-bluetooth-speaker-class-device' => esc_html__('Smart home speaker','aiomatic-automatic-ai-content-writer'),
6290
+
'large-home-entertainment-class-device' => esc_html__('Home entertainment system or smart TV','aiomatic-automatic-ai-content-writer'),
6291
+
'large-automotive-class-device' => esc_html__('Car speaker','aiomatic-automatic-ai-content-writer'),
6292
+
'telephony-class-application' => esc_html__('Interactive Voice Response (IVR) system','aiomatic-automatic-ai-content-writer')
6293
+
);
6294
+
foreach($gvprofiles as $key => $val)
6295
+
{
6296
+
echo '<option' . ($audio_profile == esc_attr($key) ? ' selected': '') . ' value="'.esc_attr($key).'">'.esc_html($val).'</option>';
6297
+
}
6298
+
?>
6299
+
</select>
6300
+
</div>
6301
+
</td></tr>
6302
+
<tr class="hidegoogle"><td>
6303
+
<div>
6304
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6305
+
<div class="bws_hidden_help_text cr_min_260px">
6306
+
<?php
6307
+
echo esc_html__("Select a the Voice Speed of the chosen voice. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 will return an error.", 'aiomatic-automatic-ai-content-writer');
6308
+
?>
6309
+
</div>
6310
+
</div>
6311
+
<b><?php echo esc_html__("Voice Speed:", 'aiomatic-automatic-ai-content-writer');?></b>
6312
+
</div>
6313
+
</td><td>
6314
+
<div>
6315
+
<input type="number" min="0.25" max="4" step="0.01" id="voice_speed" name="aiomatic_Spinner_Settings[voice_speed]" class="cr_width_full" value="<?php echo esc_html($voice_speed);?>" placeholder="Voice speed">
6316
+
</div>
6317
+
</td></tr>
6318
+
<tr class="hidegoogle"><td>
6319
+
<div>
6320
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6321
+
<div class="bws_hidden_help_text cr_min_260px">
6322
+
<?php
6323
+
echo esc_html__("Select a the Voice Pitch of the chosen voice. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.", 'aiomatic-automatic-ai-content-writer');
6324
+
?>
6325
+
</div>
6326
+
</div>
6327
+
<b><?php echo esc_html__("Voice Pitch:", 'aiomatic-automatic-ai-content-writer');?></b>
6328
+
</div>
6329
+
</td><td>
6330
+
<div>
6331
+
<input type="number" min="-20" step="0.1" max="20" id="voice_pitch" name="aiomatic_Spinner_Settings[voice_pitch]" class="cr_width_full" value="<?php echo esc_html($voice_pitch);?>" placeholder="Voice pitch">
6332
+
</div>
6333
+
</td></tr>
6334
+
<tr class="hideWideAudio"><td>
6335
+
<div>
6336
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6337
+
<div class="bws_hidden_help_text cr_min_260px">
6338
+
<?php
6339
+
echo esc_html__("Select a textual template you want to send to the AI audio/video converter.You can use the following shortcodes here: %%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). If you use Royalty Free Images as a source, you can also set their keywords here, if no keywords set, they will be automatically generated.", 'aiomatic-automatic-ai-content-writer');
6340
+
?>
6341
+
</div>
6342
+
</div>
6343
+
<b><?php echo esc_html__("Text To Audio/Video Template:", 'aiomatic-automatic-ai-content-writer');?></b>
6344
+
</div>
6345
+
</td><td>
6346
+
<div>
6347
+
<textarea rows="1" name="aiomatic_Spinner_Settings[text_to_audio]" placeholder="Please insert a template"><?php
6348
+
echo esc_textarea($text_to_audio);
6349
+
?></textarea>
6350
+
</div>
6351
+
</td></tr>
6352
+
<tr class="hideWideAudio"><td>
6353
+
<div>
6354
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6355
+
<div class="bws_hidden_help_text cr_min_260px">
6356
+
<?php
6357
+
echo esc_html__("The plugin will generate AI content, that will be prepended or appended to each post's content.", 'aiomatic-automatic-ai-content-writer');
6358
+
?>
6359
+
</div>
6360
+
</div>
6361
+
<b><?php echo esc_html__("AI Generated Audio/Video Location:", 'aiomatic-automatic-ai-content-writer');?></b>
6362
+
</div>
6363
+
</td><td>
6364
+
<div>
6365
+
<select name="aiomatic_Spinner_Settings[audio_location]">
6366
+
<option value="append"<?php
6367
+
if ($audio_location == "append") {
6368
+
echo " selected";
6369
+
}
6370
+
?>><?php echo esc_html__("Append To The End", 'aiomatic-automatic-ai-content-writer');?></option>
6371
+
<option value="preppend"<?php
6372
+
if ($audio_location == "preppend") {
6373
+
echo " selected";
6374
+
}
6375
+
?>><?php echo esc_html__("Prepend To The Beginning", 'aiomatic-automatic-ai-content-writer');?></option>
6376
+
</select>
6377
+
</div>
6378
+
</td></tr>
6379
+
<tr class="hideWideAudio"><td>
6380
+
<div>
6381
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6382
+
<div class="bws_hidden_help_text cr_min_260px">
6383
+
<?php
6384
+
echo esc_html__("Select a textual template you want to prepend the audio/video embed. You can use the following shortcodes here: %%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). If you use Royalty Free Images as a source, you can also set their keywords here, if no keywords set, they will be automatically generated.", 'aiomatic-automatic-ai-content-writer');
6385
+
?>
6386
+
</div>
6387
+
</div>
6388
+
<b><?php echo esc_html__("HTML Text To Prepend Audio/Video:", 'aiomatic-automatic-ai-content-writer');?></b>
6389
+
</div>
6390
+
</td><td>
6391
+
<div>
6392
+
<textarea rows="1" name="aiomatic_Spinner_Settings[prep_audio]" placeholder="HTML to prepend audio/video"><?php
6393
+
echo esc_textarea($prep_audio);
6394
+
?></textarea>
6395
+
</div>
6396
+
</td></tr>
6397
+
<tr class="hideWideAudio"><td>
6398
+
<div>
6399
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6400
+
<div class="bws_hidden_help_text cr_min_260px">
6401
+
<?php
6402
+
echo esc_html__('Select where you want to copy audio/video files. You can copy the files also to a cloud storage, using this extension: ', 'aiomatic-automatic-ai-content-writer') . '<a href="https://wpbay.com/product/aiomatic-extension-amazon-s3-storage/" target="_blank">https://wpbay.com/product/aiomatic-extension-amazon-s3-storage/</a>';
6403
+
?>
6404
+
</div>
6405
+
</div>
6406
+
<b><?php echo esc_html__("Copy Audio/Video Files:", 'aiomatic-automatic-ai-content-writer');?></b>
6407
+
</div>
6408
+
</td><td>
6409
+
<div>
6410
+
<select name="aiomatic_Spinner_Settings[copy_location]">
6411
+
<option value="local"<?php
6412
+
if ($copy_location == "local") {
6413
+
echo " selected";
6414
+
}
6415
+
?>><?php echo esc_html__("Locally To Server", 'aiomatic-automatic-ai-content-writer');?></option>
6416
+
<?php
6417
+
$amazon_s3_active = true;
6418
+
if (!is_plugin_active('aiomatic-extension-amazon-s3-images/aiomatic-extension-amazon-s3-images.php'))
6419
+
{
6420
+
$amazon_s3_active = false;
6421
+
}
6422
+
?>
6423
+
<option value="amazon"<?php
6424
+
if ($copy_location == "amazon") {
6425
+
echo " selected";
6426
+
}
6427
+
if($amazon_s3_active == false)
6428
+
{
6429
+
echo ' disabled';
6430
+
}
6431
+
?> >Amazon S3</option>
6432
+
<option value="cloudflare"<?php
6433
+
if ($copy_location == "cloudflare") {
6434
+
echo " selected";
6435
+
}
6436
+
if($amazon_s3_active == false)
6437
+
{
6438
+
echo ' disabled';
6439
+
}
6440
+
?> >CloudFlare R2</option>
6441
+
<option value="digital"<?php
6442
+
if ($copy_location == "digital") {
6443
+
echo " selected";
6444
+
}
6445
+
if($amazon_s3_active == false)
6446
+
{
6447
+
echo ' disabled';
6448
+
}
6449
+
?> >Digital Ocean Spaces</option>
6450
+
<option value="wasabi"<?php
6451
+
if ($copy_location == "wasabi") {
6452
+
echo " selected";
6453
+
}
6454
+
if($amazon_s3_active == false)
6455
+
{
6456
+
echo ' disabled';
6457
+
}
6458
+
?> >Wasabi</option>
6459
+
<option value="generics3"<?php
6460
+
if ($copy_location == "generics3") {
6461
+
echo " selected";
6462
+
}
6463
+
if($amazon_s3_active == false)
6464
+
{
6465
+
echo ' disabled';
6466
+
}
6467
+
?> >Generic Amazon S3 Compatible Storage</option>
6468
+
</select>
6469
+
</div>
6470
+
</td></tr>
6471
+
<tr><td colspan="2">
6472
+
<h2><?php echo esc_html__("Audio to Text Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
6473
+
</td></tr>
6474
+
<tr><td>
6475
+
<div>
6476
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6477
+
<div class="bws_hidden_help_text cr_min_260px">
6478
+
<?php
6479
+
echo esc_html__("Select if you want to enable text to speech/video feature of the plugin. The following input file types are supported: mp3, mp4, mpeg, mpga, m4a, wav, and webm.", 'aiomatic-automatic-ai-content-writer');
6480
+
?>
6481
+
</div>
6482
+
</div>
6483
+
<b class="wpaiomatic-delete"><?php echo esc_html__("Enable Content Audio To Text:", 'aiomatic-automatic-ai-content-writer');?></b>
6484
+
</div>
6485
+
</td><td>
6486
+
<div>
6487
+
<select id="content_speech_text" onchange="aiomatic_speech_changed()" name="aiomatic_Spinner_Settings[content_speech_text]" >
6488
+
<?php
6489
+
echo '<option' . ($content_speech_text == 'off' ? ' selected': '') . ' value="off">Disabled</option>';
6490
+
if (!isset($aiomatic_Main_Settings['app_id']))
6491
+
{
6492
+
$aiomatic_Main_Settings['app_id'] = '';
6493
+
}
6494
+
$appids = preg_split('/\r\n|\r|\n/', trim($aiomatic_Main_Settings['app_id']));
6495
+
$appids = array_filter($appids);
6496
+
if(empty($appids))
6497
+
{
6498
+
$token = '';
6499
+
}
6500
+
else
6501
+
{
6502
+
$token = $appids[array_rand($appids)];
6503
+
$token = apply_filters('aimogen_openai_api_key', $token);$token = apply_filters('aiomatic_openai_api_key', $token);
6504
+
}
6505
+
if(!aiomatic_is_aiomaticapi_key($token) && (!isset($aiomatic_Main_Settings['api_selector']) || (trim($aiomatic_Main_Settings['api_selector']) != 'azure') && trim($aiomatic_Main_Settings['api_selector']) != 'custom'))
6506
+
{
6507
+
echo '<option' . ($content_speech_text == 'openai' ? ' selected': '') . ' value="openai">OpenAI</option>';
6508
+
}
6509
+
else
6510
+
{
6511
+
echo '<option' . ($content_text_speech == 'openai' ? ' selected': '') . ' disabled value="openai">OpenAI (' . esc_html__("Currently Only OpenAI API is supported for this feature", 'aiomatic-automatic-ai-content-writer') . ')</option>';
6512
+
}
6513
+
?>
6514
+
</select>
6515
+
</div>
6516
+
</td></tr>
6517
+
<tr class="hideSpeechText">
6518
+
<td class="cr_min_width_200">
6519
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6520
+
<div class="bws_hidden_help_text cr_min_260px">
6521
+
<?php
6522
+
echo esc_html__("Select the maximum number of audio files to process from the post content.", 'aiomatic-automatic-ai-content-writer');
6523
+
?>
6524
+
</div>
6525
+
</div>
6526
+
<b><?php echo esc_html__("Maximum Number Of Audio Files To Process:", 'aiomatic-automatic-ai-content-writer');?></b>
6527
+
</td>
6528
+
<td>
6529
+
<input type="number" min="1" step="1" id="max_speech" name="aiomatic_Spinner_Settings[max_speech]" value="<?php echo esc_html($max_speech);?>" placeholder="Maximum number of audio files to process">
6530
+
</td>
6531
+
</tr>
6532
+
<tr class="hideSpeechText">
6533
+
<td class="cr_min_width_200">
6534
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6535
+
<div class="bws_hidden_help_text cr_min_260px">
6536
+
<?php
6537
+
echo esc_html__("Select the AI model to use for speech to text.", 'aiomatic-automatic-ai-content-writer');
6538
+
?>
6539
+
</div>
6540
+
</div>
6541
+
<b><?php echo esc_html__("AI Model To Use For Speech-to-Text:", 'aiomatic-automatic-ai-content-writer');?></b>
6542
+
</td>
6543
+
<td>
6544
+
<select id="speech_model" name="aiomatic_Spinner_Settings[speech_model]">
6545
+
<?php
6546
+
foreach($all_speech_models as $modelx)
6547
+
{
6548
+
echo '<option value="' . esc_html($modelx) .'"';
6549
+
if ($speech_model == $modelx)
6550
+
{
6551
+
echo " selected";
6552
+
}
6553
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
6554
+
}
6555
+
?>
6556
+
</select>
6557
+
</td>
6558
+
</tr>
6559
+
<tr class="hideSpeechText"><td>
6560
+
<div>
6561
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6562
+
<div class="bws_hidden_help_text cr_min_260px">
6563
+
<?php
6564
+
echo esc_html__("Set the AI prompt to be used. This will define the formatting of the resulting text. You can use a prompt to improve the quality of the transcripts generated by the Whisper API. The model will try to match the style of the prompt, so it will be more likely to use capitalization and punctuation if the prompt does too. However, the current prompting system is much more limited than our other language models and only provides limited control over the generated audio. Here are some examples of how prompting can help in different scenarios: Prompts can be very helpful for correcting specific words or acronyms that the model may misrecognize in the audio. For example, the following prompt improves the transcription of the words DALL-E and GPT-3, which were previously written as \"GDP 3\" and \"DALI\": \"The transcript is about OpenAI which makes technology like DALL-E, GPT-3, and ChatGPT with the hope of one day building an AGI system that benefits all of humanity\" To preserve the context of a file that was split into segments, you can prompt the model with the transcript of the preceding segment. This will make the transcript more accurate, as the model will use the relevant information from the previous audio. The model will only consider the final 224 tokens of the prompt and ignore anything earlier. For multilingual inputs, Whisper uses a custom tokenizer. For English only inputs, it uses the standard GPT-2 tokenizer which are both accessible through the open source Whisper Python package. Sometimes the model might skip punctuation in the transcript. You can avoid this by using a simple prompt that includes punctuation: \"Hello, welcome to my lecture.\" The model may also leave out common filler words in the audio. If you want to keep the filler words in your transcript, you can use a prompt that contains them: \"Umm, let me think like, hmm... Okay, here's what I'm, like, thinking.\" Some languages can be written in different ways, such as simplified or traditional Chinese. The model might not always use the writing style that you want for your transcript by default. You can improve this by using a prompt in your preferred writing style.", 'aiomatic-automatic-ai-content-writer');
6565
+
?>
6566
+
</div>
6567
+
</div>
6568
+
<b><?php echo esc_html__("Prompt To Send To The AI:", 'aiomatic-automatic-ai-content-writer');?></b>
6569
+
</div>
6570
+
</td><td>
6571
+
<div>
6572
+
<textarea rows="1" name="aiomatic_Spinner_Settings[audio_to_text_prompt]" placeholder="AI prompt"><?php
6573
+
echo esc_textarea($audio_to_text_prompt);
6574
+
?></textarea>
6575
+
</div>
6576
+
</td></tr>
6577
+
<tr class="hideSpeechText"><td>
6578
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6579
+
<div class="bws_hidden_help_text cr_min_260px">
6580
+
<?php
6581
+
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');
6582
+
?>
6583
+
</div>
6584
+
</div>
6585
+
<b><?php echo esc_html__("AI Temperature:", 'aiomatic-automatic-ai-content-writer');?></b>
6586
+
6587
+
</td><td>
6588
+
<input type="number" min="0" step="0.01" max="2" id="speech_temperature" name="aiomatic_Spinner_Settings[speech_temperature]" value="<?php echo esc_html($speech_temperature);?>" placeholder="0">
6589
+
</td></tr>
6590
+
<tr class="hideSpeechText"><td>
6591
+
<div>
6592
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6593
+
<div class="bws_hidden_help_text cr_min_260px">
6594
+
<?php
6595
+
echo esc_html__("Select a textual template which will be attached to posts, based on the generated text from the audio file. You can use the following shortcode here: %%audio_to_text%%", 'aiomatic-automatic-ai-content-writer');
6596
+
?>
6597
+
</div>
6598
+
</div>
6599
+
<b><?php echo esc_html__("Textual Template To Be Added To The Post:", 'aiomatic-automatic-ai-content-writer');?></b>
6600
+
</div>
6601
+
</td><td>
6602
+
<div>
6603
+
<textarea rows="1" name="aiomatic_Spinner_Settings[audio_to_text]" placeholder="%%audio_to_text%%"><?php
6604
+
echo esc_textarea($audio_to_text);
6605
+
?></textarea>
6606
+
</div>
6607
+
</td></tr>
6608
+
<tr class="hideSpeechText"><td>
6609
+
<div>
6610
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6611
+
<div class="bws_hidden_help_text cr_min_260px">
6612
+
<?php
6613
+
echo esc_html__("The plugin will generate AI content, that will be prepended or appended to each post's content.", 'aiomatic-automatic-ai-content-writer');
6614
+
?>
6615
+
</div>
6616
+
</div>
6617
+
<b><?php echo esc_html__("AI Generated Text Location:", 'aiomatic-automatic-ai-content-writer');?></b>
6618
+
</div>
6619
+
</td><td>
6620
+
<div>
6621
+
<select name="aiomatic_Spinner_Settings[audio_text_location]">
6622
+
<option value="append"<?php
6623
+
if ($audio_text_location == "append") {
6624
+
echo " selected";
6625
+
}
6626
+
?>><?php echo esc_html__("Append To The End", 'aiomatic-automatic-ai-content-writer');?></option>
6627
+
<option value="preppend"<?php
6628
+
if ($audio_text_location == "preppend") {
6629
+
echo " selected";
6630
+
}
6631
+
?>><?php echo esc_html__("Prepend To The Beginning", 'aiomatic-automatic-ai-content-writer');?></option>
6632
+
</select>
6633
+
</div>
6634
+
</td></tr>
6635
+
<tr><td colspan="2">
6636
+
<h2><?php echo esc_html__("Extra Features:", 'aiomatic-automatic-ai-content-writer');?></h2>
6637
+
6638
+
</td></tr>
6639
+
<tr><td>
6640
+
<div>
6641
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6642
+
<div class="bws_hidden_help_text cr_min_260px">
6643
+
<?php
6644
+
echo esc_html__("Select if you want the edited content to be published as a new post instead of updating the existing one. This allows you to create template posts that can be reused - edit a template and publish multiple unique posts based on it. If unchecked, the original post will be updated with the edited content.", 'aiomatic-automatic-ai-content-writer');
6645
+
?>
6646
+
</div>
6647
+
</div>
6648
+
<b><?php echo esc_html__("Publish as New Post After Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
6649
+
</div>
6650
+
</td><td>
6651
+
<div>
6652
+
<select id="publish_new" name="aiomatic_Spinner_Settings[publish_new]" class="cr_width_full">
6653
+
<option value="no"
6654
+
<?php
6655
+
if ($publish_new == 'no' || $publish_new == '')
6656
+
{
6657
+
echo " selected";
6658
+
}
6659
+
?>
6660
+
><?php echo esc_html__("Edit Existing Post", 'aiomatic-automatic-ai-content-writer');?></option>
6661
+
<option value="yes"<?php
6662
+
if ($publish_new == 'yes')
6663
+
{
6664
+
echo " selected";
6665
+
}
6666
+
?>><?php echo esc_html__("Publish New Post And Keep Edited Post Unchanged", 'aiomatic-automatic-ai-content-writer');?></option>
6667
+
</select>
6668
+
</div>
6669
+
</td></tr>
6670
+
<tr><td>
6671
+
<div>
6672
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6673
+
<div class="bws_hidden_help_text cr_min_260px">
6674
+
<?php
6675
+
echo esc_html__("Select if you want to change post status after editing posts.", 'aiomatic-automatic-ai-content-writer');
6676
+
?>
6677
+
</div>
6678
+
</div>
6679
+
<b><?php echo esc_html__("Change Post Status After Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
6680
+
</div>
6681
+
</td><td>
6682
+
<div>
6683
+
<select id="change_status" name="aiomatic_Spinner_Settings[change_status]" class="cr_width_full">
6684
+
<option value="no"
6685
+
<?php
6686
+
if ($change_status == 'no' || $change_status == '')
6687
+
{
6688
+
echo " selected";
6689
+
}
6690
+
?>
6691
+
><?php echo esc_html__("No Change", 'aiomatic-automatic-ai-content-writer');?></option>
6692
+
<option value="pending"<?php
6693
+
if ($change_status == 'pending')
6694
+
{
6695
+
echo " selected";
6696
+
}
6697
+
?>><?php echo esc_html__("Pending", 'aiomatic-automatic-ai-content-writer');?></option>
6698
+
<option value="draft"<?php
6699
+
if ($change_status == 'draft')
6700
+
{
6701
+
echo " selected";
6702
+
}
6703
+
?>><?php echo esc_html__("Draft", 'aiomatic-automatic-ai-content-writer');?></option>
6704
+
<option value="publish"<?php
6705
+
if ($change_status == 'publish')
6706
+
{
6707
+
echo " selected";
6708
+
}
6709
+
?>><?php echo esc_html__("Published", 'aiomatic-automatic-ai-content-writer');?></option>
6710
+
<option value="private"<?php
6711
+
if ($change_status == 'private')
6712
+
{
6713
+
echo " selected";
6714
+
}
6715
+
?>><?php echo esc_html__("Private", 'aiomatic-automatic-ai-content-writer');?></option>
6716
+
<option value="trash"<?php
6717
+
if ($change_status == 'trash')
6718
+
{
6719
+
echo " selected";
6720
+
}
6721
+
?>><?php echo esc_html__("Trash", 'aiomatic-automatic-ai-content-writer');?></option>
6722
+
</select>
6723
+
</div>
6724
+
</td></tr><tr><td>
6725
+
<div>
6726
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6727
+
<div class="bws_hidden_help_text cr_min_260px">
6728
+
<?php
6729
+
echo esc_html__("Select if you want to change post date after editing posts. You can enter static dates like: 31-01-2025 or dynamic dates like: now, 2 days ago, 2 minutes ago, -2 years, last week, last Sunday. If you leave this field blank, it will be disabled. You can also use the %%post_date%% shortcode to get the original date of the post, which can be combined with expressions, like: %%post_date%% +1 day", 'aiomatic-automatic-ai-content-writer');
6730
+
?>
6731
+
</div>
6732
+
</div>
6733
+
<b><?php echo esc_html__("Change Post Date After Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
6734
+
</div>
6735
+
</td><td>
6736
+
<div>
6737
+
<input type="text" class="cr_width_full" name="aiomatic_Spinner_Settings[change_date]" value="<?php echo esc_attr($change_date);?>" placeholder="<?php echo esc_html__("No Change", 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full">
6738
+
</div>
6739
+
</td></tr>
6740
+
<tr><td colspan="2">
6741
+
<h2><?php echo esc_html__("Advanced AI Features:", 'aiomatic-automatic-ai-content-writer');?></h2>
6742
+
6743
+
</td></tr>
6744
+
<tr><td>
6745
+
<div>
6746
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6747
+
<div class="bws_hidden_help_text cr_min_260px">
6748
+
<?php
6749
+
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');
6750
+
?>
6751
+
</div>
6752
+
</div>
6753
+
<b><?php echo esc_html__("Store AI Prompts On OpenAI's Part:", 'aiomatic-automatic-ai-content-writer');?></b>
6754
+
</div>
6755
+
</td><td>
6756
+
<div>
6757
+
<select id="store_data" name="aiomatic_Spinner_Settings[store_data]" class="cr_width_full">
6758
+
<option value="off"
6759
+
<?php
6760
+
if ($store_data == 'off')
6761
+
{
6762
+
echo " selected";
6763
+
}
6764
+
?>
6765
+
><?php echo esc_html__("Off", 'aiomatic-automatic-ai-content-writer');?></option>
6766
+
<option value="on"<?php
6767
+
if ($store_data == 'on')
6768
+
{
6769
+
echo " selected";
6770
+
}
6771
+
?>><?php echo esc_html__("On", 'aiomatic-automatic-ai-content-writer');?></option>
6772
+
</select>
6773
+
</div>
6774
+
</td></tr>
6775
+
<tr><td colspan="2"><hr/></td></tr>
6776
+
<tr><td colspan="2">
6777
+
<h2><?php echo esc_html__("Manage AI Content Editor Templates:", 'aiomatic-automatic-ai-content-writer');?></h2>
6778
+
</td></tr>
6779
+
<tr>
6780
+
<td class="ai-flex">
6781
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6782
+
<div class="bws_hidden_help_text cr_min_260px disable_drag">
6783
+
<?php
6784
+
echo esc_html__("Select a AI Content Editor template to be loaded.", 'aiomatic-automatic-ai-content-writer');
6785
+
?>
6786
+
</div>
6787
+
</div>
6788
+
<b><?php echo esc_html__("Saved AI Content Editor Templates:", 'aiomatic-automatic-ai-content-writer');?></b>
6789
+
</td>
6790
+
<td>
6791
+
<select title="<?php echo esc_html__('Select an AI Content Editor Template to be loaded.', 'aiomatic-automatic-ai-content-writer');?>" class="cr_width_full editor_select_template" id="editor_select_template" onchange="unsaved = false;">
6792
+
<?php
6793
+
if(!empty($temp_list))
6794
+
{
6795
+
$loaded_template = get_option('aiomatic_loaded_template', false);
6796
+
echo '<option value="" disabled selected>' . esc_html__("Select a template to load", 'aiomatic-automatic-ai-content-writer') . '</option>';
6797
+
foreach($temp_list as $templid => $templ)
6798
+
{
6799
+
echo '<option value="' . esc_attr($templid) . '"';
6800
+
if($loaded_template == $templid)
6801
+
{
6802
+
echo 'selected';
6803
+
}
6804
+
echo '>' . esc_html($templ) . ' (' . esc_attr($templid) . ')</option>';
6805
+
}
6806
+
}
6807
+
else
6808
+
{
6809
+
echo '<option value="" disabled selected>' . esc_html__("No templates found (use currently saved configuration)", 'aiomatic-automatic-ai-content-writer') . '</option>';
6810
+
}
6811
+
?>
6812
+
</select>
6813
+
</td>
6814
+
</tr>
6815
+
<tr>
6816
+
<td class="ai-flex">
6817
+
</td>
6818
+
<td>
6819
+
<input type="button" class="aisaveedittemplate button page-title-action" title="<?php echo esc_html__('Saves the AI Content Editor settings, as a new template', 'aiomatic-automatic-ai-content-writer');?>" value="<?php echo esc_html__("Save New Template", 'aiomatic-automatic-ai-content-writer');?>">
6820
+
<input type="button" class="aideleteedittemplate button page-title-action" title="<?php echo esc_html__('Deletes the currently selected template', 'aiomatic-automatic-ai-content-writer');?>" value="<?php echo esc_html__("Delete Selected Template", 'aiomatic-automatic-ai-content-writer');?>">
6821
+
<input type="button" class="ailoadedittemplate button page-title-action" title="<?php echo esc_html__('Loads the currently selected template', 'aiomatic-automatic-ai-content-writer');?>" value="<?php echo esc_html__("Load Selected Template", 'aiomatic-automatic-ai-content-writer');?>">
6822
+
<input type="button" class="airenametemplate button page-title-action" title="<?php echo esc_html__('Renames the currently selected template', 'aiomatic-automatic-ai-content-writer');?>" value="<?php echo esc_html__("Rename Selected Template", 'aiomatic-automatic-ai-content-writer');?>">
6823
+
<input type="button" class="aioverwritetemplate button page-title-action" title="<?php echo esc_html__('Overwrite the currently selected template', 'aiomatic-automatic-ai-content-writer');?>" value="<?php echo esc_html__("Overwrite Selected Template", 'aiomatic-automatic-ai-content-writer');?>">
6824
+
</td>
6825
+
</tr>
6826
+
</table>
6827
+
</div>
6828
+
<div id="tab-3" class="tab-content">
6829
+
<table class="widefat">
6830
+
<tr>
6831
+
<td>
6832
+
<h1><span class="gs-sub-heading"><b><?php echo esc_html__("Automatic Post Editing:", 'aiomatic-automatic-ai-content-writer');?></b> </span>
6833
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6834
+
<div class="bws_hidden_help_text cr_min_260px">
6835
+
<?php
6836
+
echo esc_html__("Enable or disable automatic post modifications every time you publish a new post (manually or automatically).", 'aiomatic-automatic-ai-content-writer');
6837
+
?>
6838
+
</div>
6839
+
</div></h1>
6840
+
</td>
6841
+
<td>
6842
+
<label class="aiomatic-switch"><input type="checkbox" id="aiomatic_spinning" onchange="toggleMain();" name="aiomatic_Spinner_Settings[aiomatic_spinning]"<?php
6843
+
if ($aiomatic_spinning == 'on')
6844
+
echo ' checked ';
6845
+
?>><span class="aiomatic-slider round"></span></label>
6846
+
6847
+
</td>
6848
+
</tr>
6849
+
</table>
6850
+
<hr/>
6851
+
<table class="hideAuto widefat">
6852
+
<tr><td colspan="2">
6853
+
<?php
6854
+
echo esc_html__("INFO: You can change the way the posts are edited by changing settings in the 'Editing Template Manager' tab from above!", 'aiomatic-automatic-ai-content-writer');
6855
+
?>
6856
+
</td></tr>
6857
+
<tr><td colspan="2">
6858
+
<h2><?php echo esc_html__("Posts Automatic Editing Options:", 'aiomatic-automatic-ai-content-writer');?></h2>
6859
+
</td></tr><tr><td>
6860
+
<div>
6861
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6862
+
<div class="bws_hidden_help_text cr_min_260px">
6863
+
<?php
6864
+
echo esc_html__("Select when do you want to automatically process posts.", 'aiomatic-automatic-ai-content-writer');
6865
+
?>
6866
+
</div>
6867
+
</div>
6868
+
<b><?php echo esc_html__("Automatically Process Posts When They Are:", 'aiomatic-automatic-ai-content-writer');?></b>
6869
+
6870
+
</td><td>
6871
+
<select id="process_event" name="aiomatic_Spinner_Settings[process_event]" class="skip-from-processing">
6872
+
<option value="publish"<?php
6873
+
if ($process_event == "publish") {
6874
+
echo " selected";
6875
+
}
6876
+
?>><?php echo esc_html__("Published", 'aiomatic-automatic-ai-content-writer');?></option>
6877
+
<option value="draft"<?php
6878
+
if ($process_event == "draft") {
6879
+
echo " selected";
6880
+
}
6881
+
?>><?php echo esc_html__("Drafted", 'aiomatic-automatic-ai-content-writer');?></option>
6882
+
<option value="pending"<?php
6883
+
if ($process_event == "pending") {
6884
+
echo " selected";
6885
+
}
6886
+
?>><?php echo esc_html__("Pending", 'aiomatic-automatic-ai-content-writer');?></option>
6887
+
</select>
6888
+
</td></tr><tr><td>
6889
+
<div>
6890
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6891
+
<div class="bws_hidden_help_text cr_min_260px">
6892
+
<?php
6893
+
echo esc_html__("Do you want delay automatic editing of the posted article with this amount of seconds from post publish? This will create a single cron job for each post (cron is a requirement for this to function). If you leave this field blank, posts will be automatically spun on post publish.", 'aiomatic-automatic-ai-content-writer');
6894
+
?>
6895
+
</div>
6896
+
</div>
6897
+
<b><?php echo esc_html__("Delay Article Editing By (Seconds):", 'aiomatic-automatic-ai-content-writer');?></b>
6898
+
6899
+
</td><td>
6900
+
<input type="number" min="0" step="1" id="delay_post" name="aiomatic_Spinner_Settings[delay_post]" class="cr_450 skip-from-processing" value="<?php echo esc_html($delay_post);?>" placeholder="Delay editing by X seconds">
6901
+
</td></tr><tr class="hidethis"><td>
6902
+
<div>
6903
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6904
+
<div class="bws_hidden_help_text cr_min_260px">
6905
+
<?php
6906
+
echo esc_html__("This option will allow you to select if you want to run posting in async mode. This means that each time you publish a post, the plugin will try to execute it's task in the background - it will no longer block new post posting, while it finishes it's job.", 'aiomatic-automatic-ai-content-writer');
6907
+
?>
6908
+
</div>
6909
+
</div>
6910
+
<b><?php echo esc_html__("Use Async Posting Method:", 'aiomatic-automatic-ai-content-writer');?></b>
6911
+
6912
+
</td><td>
6913
+
<input type="checkbox" id="run_background" name="aiomatic_Spinner_Settings[run_background]" class="skip-from-processing"<?php
6914
+
if ($run_background == 'on')
6915
+
echo ' checked ';
6916
+
?>>
6917
+
</td></tr>
6918
+
<tr><td colspan="3"><hr/></td></tr>
6919
+
<tr><td colspan="2">
6920
+
<h2><?php echo esc_html__("Legacy Automatic Content Editor Settings:", 'aiomatic-automatic-ai-content-writer');?></h2>
6921
+
</td>
6922
+
</tr>
6923
+
<tr><td>
6924
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6925
+
<div class="bws_hidden_help_text cr_min_260px">
6926
+
<?php
6927
+
echo esc_html__("Do you want to enable the legacy automatic content editor of the plugin? This feature is kept for backwards compatibility with older versions of the plugin. Instead of this, it is recommended to use the moder content editor feature.", 'aiomatic-automatic-ai-content-writer');
6928
+
?>
6929
+
</div>
6930
+
</div>
6931
+
<b><?php echo esc_html__("Enable The Legacy AI Content Editor:", 'aiomatic-automatic-ai-content-writer');?></b>
6932
+
</td><td>
6933
+
<select name="aiomatic_Spinner_Settings[enable_default]" id="enable_default" class="skip-from-processing cr_width_full" onchange="defaultChanged();">
6934
+
<option value="yes"<?php
6935
+
if ($enable_default == 'yes' || empty($enable_default))
6936
+
echo ' selected ';
6937
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
6938
+
<option value="on"<?php
6939
+
if ($enable_default == 'on')
6940
+
echo ' selected ';
6941
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
6942
+
</select>
6943
+
</td></tr>
6944
+
<tr class="hideDefault">
6945
+
<td class="ai-flex">
6946
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6947
+
<div class="bws_hidden_help_text cr_min_260px disable_drag">
6948
+
<?php
6949
+
echo esc_html__("Select a AI Content Editor template to be used for automatic bulk content editing.", 'aiomatic-automatic-ai-content-writer');
6950
+
?>
6951
+
</div>
6952
+
</div>
6953
+
<b><?php echo esc_html__("Use This AI Content Editor Template For Automatic Post Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
6954
+
</td>
6955
+
<td>
6956
+
<select title="<?php echo esc_html__('Select an AI Content Editor Template to be used', 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Spinner_Settings[use_template_auto]" class="skip-from-processing cr_width_full" id="use_template_auto">
6957
+
<?php
6958
+
if(!empty($temp_list))
6959
+
{
6960
+
?>
6961
+
<option value="" <?php if($use_template_auto == ''){ echo ' selected';}?> ><?php echo esc_html__("Use currently saved configuration", 'aiomatic-automatic-ai-content-writer');?></option>
6962
+
<?php
6963
+
foreach($temp_list as $templid => $templ)
6964
+
{
6965
+
echo '<option value="' . esc_attr($templid) . '"';
6966
+
if($use_template_auto == $templid)
6967
+
{
6968
+
echo ' selected';
6969
+
}
6970
+
echo '>' . esc_html($templ) . ' (' . esc_attr($templid) . ')</option>';
6971
+
}
6972
+
}
6973
+
else
6974
+
{
6975
+
echo '<option value="" disabled selected>' . esc_html__("No templates found (use currently saved configuration)", 'aiomatic-automatic-ai-content-writer') . '</option>';
6976
+
}
6977
+
?>
6978
+
</select>
6979
+
</td>
6980
+
</tr>
6981
+
<tr class="hideDefault"><td>
6982
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
6983
+
<div class="bws_hidden_help_text cr_min_260px">
6984
+
<?php
6985
+
echo esc_html__("Do you want to enable automatically editing of WordPress 'posts'?", 'aiomatic-automatic-ai-content-writer');
6986
+
?>
6987
+
</div>
6988
+
</div>
6989
+
<b><?php echo esc_html__("Enable Editing of 'Posts':", 'aiomatic-automatic-ai-content-writer');?></b>
6990
+
</td><td>
6991
+
<select name="aiomatic_Spinner_Settings[post_posts]" id="post_posts" class="skip-from-processing cr_width_full">
6992
+
<option value="yes"<?php
6993
+
if ($post_posts == 'yes')
6994
+
echo ' selected ';
6995
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
6996
+
<option value="on"<?php
6997
+
if ($post_posts == 'on')
6998
+
echo ' selected ';
6999
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
7000
+
</select>
7001
+
</td></tr><tr class="hideDefault"><td>
7002
+
<div>
7003
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7004
+
<div class="bws_hidden_help_text cr_min_260px">
7005
+
<?php
7006
+
echo esc_html__("Do you want to enable automatically editing of WordPress 'pages'?", 'aiomatic-automatic-ai-content-writer');
7007
+
?>
7008
+
</div>
7009
+
</div>
7010
+
<b><?php echo esc_html__("Enable Editing of 'Pages':", 'aiomatic-automatic-ai-content-writer');?></b>
7011
+
7012
+
</td><td>
7013
+
<select name="aiomatic_Spinner_Settings[post_pages]" id="post_pages" class="skip-from-processing cr_width_full">
7014
+
<option value="yes"<?php
7015
+
if ($post_pages == 'yes')
7016
+
echo ' selected ';
7017
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
7018
+
<option value="on"<?php
7019
+
if ($post_pages == 'on')
7020
+
echo ' selected ';
7021
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
7022
+
</select>
7023
+
</td></tr><tr class="hideDefault"><td>
7024
+
<div>
7025
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7026
+
<div class="bws_hidden_help_text cr_min_260px">
7027
+
<?php
7028
+
echo esc_html__("Do you want to enable automatically editing of WordPress 'custom post types'?", 'aiomatic-automatic-ai-content-writer');
7029
+
?>
7030
+
</div>
7031
+
</div>
7032
+
<b><?php echo esc_html__("Enable Editing of 'Custom Post Types':", 'aiomatic-automatic-ai-content-writer');?></b>
7033
+
7034
+
</td><td>
7035
+
<select name="aiomatic_Spinner_Settings[post_custom]" onchange="toggleCustom();" id="post_custom" class="skip-from-processing cr_width_full">
7036
+
<option value="yes"<?php
7037
+
if ($post_custom == 'yes')
7038
+
echo ' selected ';
7039
+
?>><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
7040
+
<option value="on"<?php
7041
+
if ($post_custom == 'on')
7042
+
echo ' selected ';
7043
+
?>><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
7044
+
</select>
7045
+
</td></tr><tr class="hideDefault hideCustom"><td>
7046
+
<div>
7047
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7048
+
<div class="bws_hidden_help_text cr_min_260px">
7049
+
<?php
7050
+
echo esc_html__("If you checked the above checkbox to disable processing of custom post types, you can define here a comma separated list of posts types which should still be process (excepted from skipping).", 'aiomatic-automatic-ai-content-writer');
7051
+
?>
7052
+
</div>
7053
+
</div>
7054
+
<b><?php echo esc_html__("Excepting This Comma Separated List Of Custom Post Types:", 'aiomatic-automatic-ai-content-writer');?></b>
7055
+
7056
+
</td><td>
7057
+
<input type="text" id="except_type" name="aiomatic_Spinner_Settings[except_type]" class="skip-from-processing" value="<?php echo esc_html($except_type);?>" placeholder="Excepted custom post types">
7058
+
</td></tr><tr class="hideDefault hideCustomAlt"><td>
7059
+
<div>
7060
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7061
+
<div class="bws_hidden_help_text cr_min_260px">
7062
+
<?php
7063
+
echo esc_html__("If you enabled custom post type processing and want to set a comma separated list of custom post types which should be processed, you can do it here.", 'aiomatic-automatic-ai-content-writer');
7064
+
?>
7065
+
</div>
7066
+
</div>
7067
+
<b><?php echo esc_html__("Process Only This Comma Separated List Of Custom Post Types:", 'aiomatic-automatic-ai-content-writer');?></b>
7068
+
7069
+
</td><td>
7070
+
<input type="text" id="only_type" name="aiomatic_Spinner_Settings[only_type]" class="skip-from-processing" value="<?php echo esc_html($only_type);?>" placeholder="Process only these custom post types">
7071
+
</td></tr><tr class="hideDefault"><td>
7072
+
<div>
7073
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7074
+
<div class="bws_hidden_help_text cr_min_260px">
7075
+
<?php
7076
+
echo esc_html__("Do you want to disable automatically editing of WordPress categories?", 'aiomatic-automatic-ai-content-writer');
7077
+
?>
7078
+
</div>
7079
+
</div>
7080
+
<b><?php echo esc_html__("Disable Editing of Selected Post Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
7081
+
</td><td>
7082
+
<div id="hideCats" class="hideCats">
7083
+
<?php
7084
+
$cat_args = array(
7085
+
'orderby' => 'name',
7086
+
'hide_empty' => 0,
7087
+
'order' => 'ASC'
7088
+
);
7089
+
?>
7090
+
<select name="aiomatic_Spinner_Settings[disabled_categories][]" multiple class="ai_resize_vertical skip-from-processing">
7091
+
<?php
7092
+
$categories = get_categories($cat_args);
7093
+
foreach ($categories as $category) {
7094
+
$selected = '';
7095
+
if (isset($aiomatic_Spinner_Settings['disabled_categories']) && !empty($aiomatic_Spinner_Settings['disabled_categories'])) {
7096
+
$selected = in_array($category->term_id, $aiomatic_Spinner_Settings['disabled_categories']) ? 'selected' : '';
7097
+
}
7098
+
?>
7099
+
<option value="<?php echo esc_html($category->term_id); ?>" <?php echo $selected; ?>>
7100
+
<?php echo esc_html(sanitize_text_field($category->name)); ?>
7101
+
</option>
7102
+
<?php
7103
+
}
7104
+
?>
7105
+
</select>
7106
+
</div>
7107
+
</td></tr><tr class="hideDefault"><td>
7108
+
<div>
7109
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7110
+
<div class="bws_hidden_help_text cr_min_260px">
7111
+
<?php
7112
+
echo esc_html__("Input the tags for which you want to disable editing. You can enter more tags, separated by comma. Ex: cars, vehicles, red, luxury. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7113
+
?>
7114
+
</div>
7115
+
</div>
7116
+
<b><?php echo esc_html__("Disable Editing of Selected Post Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
7117
+
</div>
7118
+
</td><td>
7119
+
<div>
7120
+
<textarea rows="1" name="aiomatic_Spinner_Settings[disable_tags]" class="skip-from-processing" placeholder="Please insert the tags for which you want to disable editing"><?php
7121
+
echo esc_textarea($disable_tags);
7122
+
?></textarea>
7123
+
</div>
7124
+
</td></tr><tr class="hideDefault"><td>
7125
+
<div>
7126
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7127
+
<div class="bws_hidden_help_text cr_min_260px">
7128
+
<?php
7129
+
echo esc_html__("Input the tags for which you want to enable editing. You can enter more tags, separated by comma. Ex: cars, vehicles, red, luxury. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7130
+
?>
7131
+
</div>
7132
+
</div>
7133
+
<b><?php echo esc_html__("Enable Editing of Selected Post Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
7134
+
</div>
7135
+
</td><td>
7136
+
<div>
7137
+
<textarea rows="1" name="aiomatic_Spinner_Settings[enable_tags]" class="skip-from-processing" placeholder="Please insert the tags for which you want to enable editing"><?php
7138
+
echo esc_textarea($enable_tags);
7139
+
?></textarea>
7140
+
</div>
7141
+
</td></tr><tr class="hideDefault"><td>
7142
+
<div>
7143
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7144
+
<div class="bws_hidden_help_text cr_min_260px">
7145
+
<?php
7146
+
echo esc_html__("Input the author user IDs for which you want to disable editing. You can enter more user IDs, separated by comma. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7147
+
?>
7148
+
</div>
7149
+
</div>
7150
+
<b><?php echo esc_html__("Disable Editing Of Posts By Author User IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
7151
+
</div>
7152
+
</td><td>
7153
+
<div>
7154
+
<textarea rows="1" name="aiomatic_Spinner_Settings[disable_users]" class="skip-from-processing" placeholder="Please insert the user IDs for which you want to disable editing"><?php
7155
+
echo esc_textarea($disable_users);
7156
+
?></textarea>
7157
+
</div>
7158
+
</td></tr><tr class="hideDefault"><td>
7159
+
<div>
7160
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7161
+
<div class="bws_hidden_help_text cr_min_260px">
7162
+
<?php
7163
+
echo esc_html__("Input the author user IDs for which you want to enable editing. You can enter more user IDs, separated by comma. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7164
+
?>
7165
+
</div>
7166
+
</div>
7167
+
<b><?php echo esc_html__("Enable Editing Of Posts By Author User IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
7168
+
</div>
7169
+
</td><td>
7170
+
<div>
7171
+
<textarea rows="1" name="aiomatic_Spinner_Settings[enable_users]" class="skip-from-processing" placeholder="Please insert the user IDs for which you want to enable editing"><?php
7172
+
echo esc_textarea($enable_users);
7173
+
?></textarea>
7174
+
</div>
7175
+
</td></tr><tr class="hideDefault"><td>
7176
+
<div>
7177
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7178
+
<div class="bws_hidden_help_text cr_min_260px">
7179
+
<?php
7180
+
echo esc_html__("Edit only posts with this custom field value. Syntax: custom_field_name => custom_field_value. To accept any value, add a * in the value field. You can add more custom fields, each on a new line. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7181
+
?>
7182
+
</div>
7183
+
</div>
7184
+
<b><?php echo esc_html__("Enable Editing If Custom Field Has Value:", 'aiomatic-automatic-ai-content-writer');?></b>
7185
+
</div>
7186
+
</td><td>
7187
+
<div>
7188
+
<textarea rows="1" name="aiomatic_Spinner_Settings[enable_field]" class="skip-from-processing" placeholder="custom_field_name => custom_field_value"><?php
7189
+
echo esc_textarea($enable_field);
7190
+
?></textarea>
7191
+
</div>
7192
+
</td></tr><tr class="hideDefault"><td>
7193
+
<div>
7194
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7195
+
<div class="bws_hidden_help_text cr_min_260px">
7196
+
<?php
7197
+
echo esc_html__("Do not edit posts with this custom field value. Syntax: custom_field_name => custom_field_value. To accept any value, add a * in the value field. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7198
+
?>
7199
+
</div>
7200
+
</div>
7201
+
<b><?php echo esc_html__("Disable Editing If Custom Field Has Value:", 'aiomatic-automatic-ai-content-writer');?></b>
7202
+
</div>
7203
+
</td><td>
7204
+
<div>
7205
+
<textarea rows="1" name="aiomatic_Spinner_Settings[disable_field]" class="skip-from-processing" placeholder="custom_field_name => custom_field_value"><?php
7206
+
echo esc_textarea($disable_field);
7207
+
?></textarea>
7208
+
</div>
7209
+
</td></tr><tr class="hideDefault"><td>
7210
+
<div>
7211
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7212
+
<div class="bws_hidden_help_text cr_min_260px">
7213
+
<?php
7214
+
echo esc_html__("Select the featured image status of edited posts.", 'aiomatic-automatic-ai-content-writer');
7215
+
?>
7216
+
</div>
7217
+
</div>
7218
+
<b><?php echo esc_html__("Featured Image Status:", 'aiomatic-automatic-ai-content-writer');?></b>
7219
+
7220
+
</td><td>
7221
+
<select name="aiomatic_Spinner_Settings[featured_status]" id="featured_status" class="skip-from-processing cr_width_full">
7222
+
<option value="any"<?php
7223
+
if (empty($featured_status) || $featured_status == 'any')
7224
+
echo ' selected ';
7225
+
?>><?php echo esc_html__("Don't Check", 'aiomatic-automatic-ai-content-writer');?></option>
7226
+
<option value="yes"<?php
7227
+
if ($featured_status == 'yes')
7228
+
echo ' selected ';
7229
+
?>><?php echo esc_html__("Has Featured Image", 'aiomatic-automatic-ai-content-writer');?></option>
7230
+
<option value="no"<?php
7231
+
if ($featured_status == 'no')
7232
+
echo ' selected ';
7233
+
?>><?php echo esc_html__("Does Not Have Featured Image", 'aiomatic-automatic-ai-content-writer');?></option>
7234
+
</select>
7235
+
</td></tr><tr class="hideDefault"><td>
7236
+
<div>
7237
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7238
+
<div class="bws_hidden_help_text cr_min_260px">
7239
+
<?php
7240
+
echo esc_html__("Select the SEO Meta Description status of edited posts.", 'aiomatic-automatic-ai-content-writer');
7241
+
?>
7242
+
</div>
7243
+
</div>
7244
+
<b><?php echo esc_html__("SEO Meta Description Status:", 'aiomatic-automatic-ai-content-writer');?></b>
7245
+
7246
+
</td><td>
7247
+
<select name="aiomatic_Spinner_Settings[seo_status]" id="seo_status" class="skip-from-processing cr_width_full">
7248
+
<option value="any"<?php
7249
+
if (empty($seo_status) || $seo_status == 'any')
7250
+
echo ' selected ';
7251
+
?>><?php echo esc_html__("Don't Check", 'aiomatic-automatic-ai-content-writer');?></option>
7252
+
<option value="yes"<?php
7253
+
if ($seo_status == 'yes')
7254
+
echo ' selected ';
7255
+
?>><?php echo esc_html__("Has SEO Description", 'aiomatic-automatic-ai-content-writer');?></option>
7256
+
<option value="no"<?php
7257
+
if ($seo_status == 'no')
7258
+
echo ' selected ';
7259
+
?>><?php echo esc_html__("Does Not Have SEO Description", 'aiomatic-automatic-ai-content-writer');?></option>
7260
+
</select>
7261
+
</td></tr>
7262
+
<tr><td colspan="2"><hr/></td></tr>
7263
+
<tr><td colspan="2">
7264
+
<h3><?php echo esc_html__("Automatic Content Editing Rules (Define Multiple Editors):", 'aiomatic-automatic-ai-content-writer');?></h3>
7265
+
<?php
7266
+
wp_nonce_field( 'aiomatic_save_edits', '_aiomaticr_nonce_edits' );
7267
+
?>
7268
+
<table class="responsive table cr_main_table wrapspace">
7269
+
<thead>
7270
+
<tr>
7271
+
<th class="cr_center">
7272
+
<?php echo esc_html__("ID", 'aiomatic-automatic-ai-content-writer');?>
7273
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7274
+
<div class="bws_hidden_help_text cr_min_260px">
7275
+
<?php
7276
+
echo esc_html__("This is the ID of the rule. ", 'aiomatic-automatic-ai-content-writer');
7277
+
?>
7278
+
</div>
7279
+
</div>
7280
+
</th>
7281
+
<th class="cr_center">
7282
+
<?php echo esc_html__("AI Content Editing Template", 'aiomatic-automatic-ai-content-writer');?>
7283
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7284
+
<div class="bws_hidden_help_text cr_min_260px">
7285
+
<?php
7286
+
echo esc_html__("Select the AI Content Editing template to use for post editing, when this rule is running. To create a template, go to the 'Editing Template Manager' tab.", 'aiomatic-automatic-ai-content-writer');
7287
+
?>
7288
+
</div>
7289
+
</div>
7290
+
</th>
7291
+
<th class="cr_30 cr_center">
7292
+
<?php echo esc_html__("Options", 'aiomatic-automatic-ai-content-writer');?>
7293
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7294
+
<div class="bws_hidden_help_text cr_min_260px">
7295
+
<?php
7296
+
echo esc_html__("Shows advanced settings for this rule.", 'aiomatic-automatic-ai-content-writer');
7297
+
?>
7298
+
</div>
7299
+
</div>
7300
+
</th>
7301
+
<th class="cr_30 cr_center">
7302
+
<?php echo esc_html__("Del", 'aiomatic-automatic-ai-content-writer');?>
7303
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7304
+
<div class="bws_hidden_help_text cr_min_260px">
7305
+
<?php
7306
+
echo esc_html__("Do you want to delete this rule?", 'aiomatic-automatic-ai-content-writer');
7307
+
?>
7308
+
</div>
7309
+
</div>
7310
+
</th>
7311
+
<th class="cr_32 cr_center" >
7312
+
<?php echo esc_html__("Active", 'aiomatic-automatic-ai-content-writer');?>
7313
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7314
+
<div class="bws_hidden_help_text cr_min_260px">
7315
+
<?php
7316
+
echo esc_html__("Do you want to enable this rule? You can deactivate any rule (you don't have to delete them to deactivate them).", 'aiomatic-automatic-ai-content-writer');
7317
+
?>
7318
+
</div>
7319
+
</div>
7320
+
</th>
7321
+
</tr>
7322
+
</thead>
7323
+
<tbody>
7324
+
<?php
7325
+
echo aiomatic_expand_editors($temp_list); ?>
7326
+
<tr>
7327
+
<td class="cr_td_xo"><input type="text" name="aiomatic_Editor_Rules[rule_description][]" id="rule_description" class="cr_center" placeholder="Rule ID" value="" class="cr_width_full"/></td>
7328
+
<td class="cr_sxss"><select title="<?php echo esc_html__('Select an AI Content Editor Template to be used', 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Editor_Rules[use_template_manual][]" class="skip-from-processing cr_width_full" id="use_template_manual">
7329
+
<?php
7330
+
?>
7331
+
<option value="" selected><?php echo esc_html__("Select a template", 'aiomatic-automatic-ai-content-writer');?></option>
7332
+
<option value="default"><?php echo esc_html__("Use currently saved configuration", 'aiomatic-automatic-ai-content-writer');?></option>
7333
+
<?php
7334
+
foreach($temp_list as $templid => $templ)
7335
+
{
7336
+
echo '<option value="' . esc_attr($templid) . '">' . esc_html($templ) . ' (' . esc_attr($templid) . ')</option>';
7337
+
}
7338
+
?>
7339
+
</select></td>
7340
+
<td class="cr_width_30">
7341
+
<center><input type="button" id="mybtnfzr" value="<?php echo esc_html__("Settings", 'aiomatic-automatic-ai-content-writer');?>"></center>
7342
+
<div id="mymodalfzr" class="codemodalfzr">
7343
+
<div class="codemodalfzr-content">
7344
+
<div class="codemodalfzr-header">
7345
+
<span id="aiomatic_close" class="codeclosefzr">×</span>
7346
+
<h2><span class="cr_color_white"><?php echo esc_html__("New Rule", 'aiomatic-automatic-ai-content-writer');?></span> <?php echo esc_html__("Advanced Settings", 'aiomatic-automatic-ai-content-writer');?></h2>
7347
+
</div>
7348
+
<div class="codemodalfzr-body">
7349
+
<div class="table-responsive">
7350
+
<table class="responsive table cr_main_table_nowr">
7351
+
<tr>
7352
+
<td class="cr_min_width_200">
7353
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7354
+
<div class="bws_hidden_help_text cr_min_260px">
7355
+
<?php
7356
+
echo esc_html__("Do you want to enable automatically editing of WordPress 'posts'?", 'aiomatic-automatic-ai-content-writer');
7357
+
?>
7358
+
</div>
7359
+
</div>
7360
+
<b><?php echo esc_html__("Enable Editing of 'Posts':", 'aiomatic-automatic-ai-content-writer');?></b>
7361
+
</td>
7362
+
<td>
7363
+
<select name="aiomatic_Editor_Rules[post_posts][]" class="skip-from-processing cr_width_full">
7364
+
<option value="yes" selected><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
7365
+
<option value="on"><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
7366
+
</select>
7367
+
</td>
7368
+
</tr>
7369
+
<tr>
7370
+
<td class="cr_min_width_200">
7371
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7372
+
<div class="bws_hidden_help_text cr_min_260px">
7373
+
<?php
7374
+
echo esc_html__("Do you want to enable automatically editing of WordPress 'pages'?", 'aiomatic-automatic-ai-content-writer');
7375
+
?>
7376
+
</div>
7377
+
</div>
7378
+
<b><?php echo esc_html__("Enable Editing of 'Pages':", 'aiomatic-automatic-ai-content-writer');?></b>
7379
+
</td>
7380
+
<td>
7381
+
<select name="aiomatic_Editor_Rules[post_pages][]" class="skip-from-processing cr_width_full">
7382
+
<option value="yes"><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
7383
+
<option value="on" selected><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
7384
+
</select>
7385
+
</td>
7386
+
</tr>
7387
+
<tr>
7388
+
<td class="cr_min_width_200">
7389
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7390
+
<div class="bws_hidden_help_text cr_min_260px">
7391
+
<?php
7392
+
echo esc_html__("Do you want to enable automatically editing of WordPress 'custom post types'?", 'aiomatic-automatic-ai-content-writer');
7393
+
?>
7394
+
</div>
7395
+
</div>
7396
+
<b><?php echo esc_html__("Enable Editing of 'Custom Post Types':", 'aiomatic-automatic-ai-content-writer');?></b>
7397
+
</td>
7398
+
<td>
7399
+
<select name="aiomatic_Editor_Rules[post_custom][]" class="skip-from-processing cr_width_full">
7400
+
<option value="yes"><?php echo esc_html__("Enable", 'aiomatic-automatic-ai-content-writer');?></option>
7401
+
<option value="on" selected><?php echo esc_html__("Disable", 'aiomatic-automatic-ai-content-writer');?></option>
7402
+
</select>
7403
+
</td>
7404
+
</tr>
7405
+
<tr>
7406
+
<td class="cr_min_width_200">
7407
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7408
+
<div class="bws_hidden_help_text cr_min_260px">
7409
+
<?php
7410
+
echo esc_html__("If you checked the above checkbox to disable processing of custom post types, you can define here a comma separated list of posts types which should still be process (excepted from skipping).", 'aiomatic-automatic-ai-content-writer');
7411
+
?>
7412
+
</div>
7413
+
</div>
7414
+
<b><?php echo esc_html__("Excepting This Comma Separated List Of Custom Post Types:", 'aiomatic-automatic-ai-content-writer');?></b>
7415
+
</td>
7416
+
<td>
7417
+
<input type="text" id="except_type_spin" name="aiomatic_Editor_Rules[except_type][]" class="skip-from-processing" value="" placeholder="Excepted custom post types">
7418
+
</td>
7419
+
</tr>
7420
+
<tr>
7421
+
<td class="cr_min_width_200">
7422
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7423
+
<div class="bws_hidden_help_text cr_min_260px">
7424
+
<?php
7425
+
echo esc_html__("If you enabled custom post type processing and want to set a comma separated list of custom post types which should be processed, you can do it here.", 'aiomatic-automatic-ai-content-writer');
7426
+
?>
7427
+
</div>
7428
+
</div>
7429
+
<b><?php echo esc_html__("Process Only This Comma Separated List Of Custom Post Types:", 'aiomatic-automatic-ai-content-writer');?></b>
7430
+
</td>
7431
+
<td>
7432
+
<input type="text" id="only_type_spin" name="aiomatic_Editor_Rules[only_type][]" class="skip-from-processing" value="" placeholder="Process only these custom post types">
7433
+
</td>
7434
+
</tr>
7435
+
<tr>
7436
+
<td class="cr_min_width_200">
7437
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7438
+
<div class="bws_hidden_help_text cr_min_260px">
7439
+
<?php
7440
+
echo esc_html__("Do you want to disable automatically editing of WordPress categories?", 'aiomatic-automatic-ai-content-writer');
7441
+
?>
7442
+
</div>
7443
+
</div>
7444
+
<b><?php echo esc_html__("Disable Editing of Selected Post Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
7445
+
</td>
7446
+
<td>
7447
+
<div id="hideCats" class="hideCats">
7448
+
<?php
7449
+
$cat_args = array(
7450
+
'orderby' => 'name',
7451
+
'hide_empty' => 0,
7452
+
'order' => 'ASC'
7453
+
);
7454
+
?>
7455
+
<select name="aiomatic_Editor_Rules[disabled_categories][]" multiple class="ai_resize_vertical skip-from-processing">
7456
+
<option value="aiomatic_no_category_12345678" selected><?php echo esc_html__("Do Not Check Categories", 'aiomatic-automatic-ai-content-writer');?></option>
7457
+
<?php
7458
+
$categories = get_categories($cat_args);
7459
+
foreach ($categories as $category) {
7460
+
?>
7461
+
<option value="<?php echo esc_html($category->term_id); ?>">
7462
+
<?php echo esc_html(sanitize_text_field($category->name)); ?>
7463
+
</option>
7464
+
<?php
7465
+
}
7466
+
?>
7467
+
</select>
7468
+
</div>
7469
+
</td>
7470
+
</tr>
7471
+
<tr>
7472
+
<td class="cr_min_width_200">
7473
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7474
+
<div class="bws_hidden_help_text cr_min_260px">
7475
+
<?php
7476
+
echo esc_html__("Input the tags for which you want to disable editing. You can enter more tags, separated by comma. Ex: cars, vehicles, red, luxury. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7477
+
?>
7478
+
</div>
7479
+
</div>
7480
+
<b><?php echo esc_html__("Disable Editing of Selected Post Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
7481
+
</td>
7482
+
<td>
7483
+
<textarea rows="1" name="aiomatic_Editor_Rules[disable_tags][]" class="skip-from-processing" placeholder="Please insert the tags for which you want to disable editing"></textarea>
7484
+
</td>
7485
+
</tr>
7486
+
<tr>
7487
+
<td class="cr_min_width_200">
7488
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7489
+
<div class="bws_hidden_help_text cr_min_260px">
7490
+
<?php
7491
+
echo esc_html__("Input the tags for which you want to enable editing. You can enter more tags, separated by comma. Ex: cars, vehicles, red, luxury. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7492
+
?>
7493
+
</div>
7494
+
</div>
7495
+
<b><?php echo esc_html__("Enable Editing of Selected Post Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
7496
+
</td>
7497
+
<td>
7498
+
<textarea rows="1" name="aiomatic_Editor_Rules[enable_tags][]" class="skip-from-processing" placeholder="Please insert the tags for which you want to enable editing"></textarea>
7499
+
</td>
7500
+
</tr>
7501
+
<tr>
7502
+
<td class="cr_min_width_200">
7503
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7504
+
<div class="bws_hidden_help_text cr_min_260px">
7505
+
<?php
7506
+
echo esc_html__("Input the author user IDs for which you want to disable editing. You can enter more user IDs, separated by comma. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7507
+
?>
7508
+
</div>
7509
+
</div>
7510
+
<b><?php echo esc_html__("Disable Editing of Author User IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
7511
+
</td>
7512
+
<td>
7513
+
<textarea rows="1" name="aiomatic_Editor_Rules[disable_users][]" class="skip-from-processing" placeholder="Please insert the user IDs for which you want to disable editing"></textarea>
7514
+
</td>
7515
+
</tr>
7516
+
<tr>
7517
+
<td class="cr_min_width_200">
7518
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7519
+
<div class="bws_hidden_help_text cr_min_260px">
7520
+
<?php
7521
+
echo esc_html__("Input the author user IDs for which you want to enable editing. You can enter more user IDs, separated by comma. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7522
+
?>
7523
+
</div>
7524
+
</div>
7525
+
<b><?php echo esc_html__("Enable Editing Of Posts By Author User IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
7526
+
</td>
7527
+
<td>
7528
+
<textarea rows="1" name="aiomatic_Editor_Rules[enable_users][]" class="skip-from-processing" placeholder="Please insert the user IDs for which you want to enable editing"></textarea>
7529
+
</td>
7530
+
</tr>
7531
+
<tr>
7532
+
<td class="cr_min_width_200">
7533
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7534
+
<div class="bws_hidden_help_text cr_min_260px">
7535
+
<?php
7536
+
echo esc_html__("Edit only posts with this custom field value. Syntax: custom_field_name => custom_field_value. To accept any value, add a * in the value field. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7537
+
?>
7538
+
</div>
7539
+
</div>
7540
+
<b><?php echo esc_html__("Enable Editing If Custom Field Has Value:", 'aiomatic-automatic-ai-content-writer');?></b>
7541
+
</td>
7542
+
<td>
7543
+
<textarea rows="1" name="aiomatic_Editor_Rules[enable_field][]" class="skip-from-processing" placeholder="custom_field_name => custom_field_value"></textarea>
7544
+
</td>
7545
+
</tr>
7546
+
<tr>
7547
+
<td class="cr_min_width_200">
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__("Do not edit only posts with this custom field value. Syntax: custom_field_name => custom_field_value. To accept any value, add a * in the value field. To disable this feature, leave this field blank.", 'aiomatic-automatic-ai-content-writer');
7552
+
?>
7553
+
</div>
7554
+
</div>
7555
+
<b><?php echo esc_html__("Disable Editing If Custom Field Has Value:", 'aiomatic-automatic-ai-content-writer');?></b>
7556
+
</td>
7557
+
<td>
7558
+
<textarea rows="1" name="aiomatic_Editor_Rules[disable_field][]" class="skip-from-processing" placeholder="custom_field_name => custom_field_value"></textarea>
7559
+
</td>
7560
+
</tr>
7561
+
<tr>
7562
+
<td class="cr_min_width_200">
7563
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7564
+
<div class="bws_hidden_help_text cr_min_260px">
7565
+
<?php
7566
+
echo esc_html__("Select the featured image status of edited posts.", 'aiomatic-automatic-ai-content-writer');
7567
+
?>
7568
+
</div>
7569
+
</div>
7570
+
<b><?php echo esc_html__("Featured Image Status:", 'aiomatic-automatic-ai-content-writer');?></b>
7571
+
</td>
7572
+
<td>
7573
+
<select name="aiomatic_Editor_Rules[featured_status][]" class="skip-from-processing cr_width_full">
7574
+
<option value="any" selected><?php echo esc_html__("Don't Check", 'aiomatic-automatic-ai-content-writer');?></option>
7575
+
<option value="yes"><?php echo esc_html__("Has Featured Image", 'aiomatic-automatic-ai-content-writer');?></option>
7576
+
<option value="no"><?php echo esc_html__("Does Not Have Featured Image", 'aiomatic-automatic-ai-content-writer');?></option>
7577
+
</select>
7578
+
</td>
7579
+
</tr>
7580
+
<tr>
7581
+
<td class="cr_min_width_200">
7582
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7583
+
<div class="bws_hidden_help_text cr_min_260px">
7584
+
<?php
7585
+
echo esc_html__("Select the SEO Description status of edited posts.", 'aiomatic-automatic-ai-content-writer');
7586
+
?>
7587
+
</div>
7588
+
</div>
7589
+
<b><?php echo esc_html__("SEO Description Status:", 'aiomatic-automatic-ai-content-writer');?></b>
7590
+
</td>
7591
+
<td>
7592
+
<select name="aiomatic_Editor_Rules[seo_status][]" class="skip-from-processing cr_width_full">
7593
+
<option value="any" selected><?php echo esc_html__("Don't Check", 'aiomatic-automatic-ai-content-writer');?></option>
7594
+
<option value="yes"><?php echo esc_html__("Has SEO Description", 'aiomatic-automatic-ai-content-writer');?></option>
7595
+
<option value="no"><?php echo esc_html__("Does Not Have SEO Description", 'aiomatic-automatic-ai-content-writer');?></option>
7596
+
</select>
7597
+
</td>
7598
+
</tr>
7599
+
</table>
7600
+
<div class="codemodalfzr-footer">
7601
+
<br/>
7602
+
<h3 class="cr_inline"><?php echo esc_html__("Aimogen Content Editor Rules", 'aiomatic-automatic-ai-content-writer');?></h3>
7603
+
<span id="aiomatic_ok" class="codeokfzr cr_inline">OK </span>
7604
+
<br/><br/>
7605
+
</div>
7606
+
</div>
7607
+
</div>
7608
+
</div>
7609
+
</div>
7610
+
</td>
7611
+
<td class="cr_30 cr_center" ><span class="cr_30">X</span></td>
7612
+
<td class="cr_short_td">
7613
+
<select name="aiomatic_Editor_Rules[active][]" class="cr_width_full">
7614
+
<option value="1" selected><?php echo esc_html__("Yes", 'aiomatic-automatic-ai-content-writer');?></option>
7615
+
<option value="0"><?php echo esc_html__("No", 'aiomatic-automatic-ai-content-writer');?></option>
7616
+
</select></td>
7617
+
</tr>
7618
+
</tbody>
7619
+
</table>
7620
+
</td></tr>
7621
+
</table>
7622
+
</div>
7623
+
<div id="tab-2" class="tab-content">
7624
+
<table class="widefat">
7625
+
<tr class="aiomatic-title-holder"><td colspan="2">
7626
+
<h2><?php echo esc_html__('AI Taxonomy SEO Tools', 'aiomatic-automatic-ai-content-writer');?></h2>
7627
+
<p class="aiomatic-settings-desc"><?php
7628
+
echo esc_html__("The 'AI Taxonomy SEO Tools' offers automated tools to create and refine descriptive content for categories and tags, enhancing the organization and SEO of your WordPress site.", 'aiomatic-automatic-ai-content-writer');
7629
+
?></p>
7630
+
<hr/>
7631
+
</td></tr>
7632
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Taxonomy Description Writer Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7633
+
<tr>
7634
+
<th class="cr_min_width_200">
7635
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7636
+
<div class="bws_hidden_help_text cr_min_260px">
7637
+
<?php
7638
+
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');
7639
+
?>
7640
+
</div>
7641
+
</div>
7642
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
7643
+
</th>
7644
+
<td><select id="tax_assistant_id" name="aiomatic_Spinner_Settings[tax_assistant_id]" class="cr_width_full" onchange="assistantSelected('tax_assistant_id', 'disableTax');">
7645
+
<?php
7646
+
if($all_assistants === false)
7647
+
{
7648
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
7649
+
}
7650
+
else
7651
+
{
7652
+
if(count($all_assistants) == 0)
7653
+
{
7654
+
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>';
7655
+
}
7656
+
else
7657
+
{
7658
+
echo '<option value=""';
7659
+
if($tax_assistant_id == '')
7660
+
{
7661
+
echo ' selected';
7662
+
}
7663
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
7664
+
foreach($all_assistants as $myassistant)
7665
+
{
7666
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
7667
+
if($tax_assistant_id == $myassistant->ID)
7668
+
{
7669
+
echo ' selected';
7670
+
}
7671
+
echo '>' . esc_html($myassistant->post_title);
7672
+
echo '</option>';
7673
+
}
7674
+
}
7675
+
}
7676
+
?>
7677
+
</select>
7678
+
</td>
7679
+
</tr>
7680
+
<tr>
7681
+
<th>
7682
+
<div>
7683
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7684
+
<div class="bws_hidden_help_text cr_min_260px">
7685
+
<?php
7686
+
echo esc_html__("Select the default model you want to use for the AI Taxonomy Description Writer.", 'aiomatic-automatic-ai-content-writer');
7687
+
?>
7688
+
</div>
7689
+
</div>
7690
+
<b><?php echo esc_html__("AI Taxonomy Description Writer Model:", 'aiomatic-automatic-ai-content-writer');?></b>
7691
+
</div>
7692
+
</th>
7693
+
<td>
7694
+
<div>
7695
+
<select id="tax_description_model" name="aiomatic_Spinner_Settings[tax_description_model]" <?php if($tax_assistant_id != ''){echo ' disabled';}?> class="disableTax cr_width_full">
7696
+
<?php
7697
+
foreach($all_models as $modelx)
7698
+
{
7699
+
echo '<option value="' . esc_html($modelx) .'"';
7700
+
if ($tax_description_model == $modelx)
7701
+
{
7702
+
echo " selected";
7703
+
}
7704
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
7705
+
}
7706
+
?>
7707
+
</select>
7708
+
</div>
7709
+
</td>
7710
+
</tr>
7711
+
<tr>
7712
+
<th class="cr_min_width_200">
7713
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7714
+
<div class="bws_hidden_help_text cr_min_260px">
7715
+
<?php
7716
+
echo esc_html__("Set the prompt to be used for the AI Taxonomy Description Writer feature. You can use the following shortcodes here: %%term_name%%, %%term_id%%, %%term_slug%%, %%term_description%%, %%term_taxonomy_name%%, %%term_taxonomy_id%% - default is: Write a description for a WordPress %%term_taxonomy_name%% with the following title: \"%%term_name%%\"", 'aiomatic-automatic-ai-content-writer');
7717
+
?>
7718
+
</div>
7719
+
</div>
7720
+
<b><?php echo esc_html__("AI Taxonomy Description Writer Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7721
+
</th>
7722
+
<td>
7723
+
<textarea name="aiomatic_Spinner_Settings[tax_description_prompt]" placeholder="AI Taxonomy Description Writer Prompt" class="cr_width_full"><?php echo esc_textarea($tax_description_prompt);?></textarea>
7724
+
</td>
7725
+
</tr>
7726
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Taxonomy SEO Meta Writer Settings:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7727
+
<tr>
7728
+
<th>
7729
+
<div>
7730
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7731
+
<div class="bws_hidden_help_text cr_min_260px">
7732
+
<?php
7733
+
echo esc_html__("Select if you want to enable also SEO meta description writing for the taxonomies. Note that this will work only for taxonomies automatically processed using the 'Enable Automatic Processing Of All Newly Added Taxonomies For' settings field from above. Also, note that you will need to have a SEO plugin installed on your site, from the following list: Yoast SEO, All In One SEO, Rank Math, Squirrly SEO.", 'aiomatic-automatic-ai-content-writer');
7734
+
?>
7735
+
</div>
7736
+
</div>
7737
+
<b><?php echo esc_html__("Enable SEO Meta Description Writing:", 'aiomatic-automatic-ai-content-writer');?></b>
7738
+
</div>
7739
+
</th>
7740
+
<td>
7741
+
<div>
7742
+
<select id="tax_seo_auto" onchange="taxSeoChanged();" name="aiomatic_Spinner_Settings[tax_seo_auto]" class="cr_width_full">
7743
+
<option value="off"<?php
7744
+
if ($tax_seo_auto == "off") {
7745
+
echo " selected";
7746
+
}
7747
+
?> ><?php echo esc_html__("Off", 'aiomatic-automatic-ai-content-writer');?></option>
7748
+
<option value="copy"<?php
7749
+
if ($tax_seo_auto == "copy") {
7750
+
echo " selected";
7751
+
}
7752
+
?> ><?php echo esc_html__("Copy The Taxonomy Description", 'aiomatic-automatic-ai-content-writer');?></option>
7753
+
<option value="write"<?php
7754
+
if ($tax_seo_auto == "write") {
7755
+
echo " selected";
7756
+
}
7757
+
?> ><?php echo esc_html__("Write Separate SEO Description", 'aiomatic-automatic-ai-content-writer');?></option>
7758
+
</select>
7759
+
</div>
7760
+
</td>
7761
+
</tr><tr class="TaxSEO">
7762
+
<th class="cr_min_width_200">
7763
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7764
+
<div class="bws_hidden_help_text cr_min_260px">
7765
+
<?php
7766
+
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');
7767
+
?>
7768
+
</div>
7769
+
</div>
7770
+
<b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
7771
+
</th>
7772
+
<td><select id="tax_seo_assistant_id" name="aiomatic_Spinner_Settings[tax_seo_assistant_id]" class="cr_width_full" onchange="assistantSelected('tax_seo_assistant_id', 'disableTaxSEO');">
7773
+
<?php
7774
+
if($all_assistants === false)
7775
+
{
7776
+
echo '<option value="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
7777
+
}
7778
+
else
7779
+
{
7780
+
if(count($all_assistants) == 0)
7781
+
{
7782
+
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>';
7783
+
}
7784
+
else
7785
+
{
7786
+
echo '<option value=""';
7787
+
if($tax_seo_assistant_id == '')
7788
+
{
7789
+
echo ' selected';
7790
+
}
7791
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
7792
+
foreach($all_assistants as $myassistant)
7793
+
{
7794
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
7795
+
if($tax_seo_assistant_id == $myassistant->ID)
7796
+
{
7797
+
echo ' selected';
7798
+
}
7799
+
echo '>' . esc_html($myassistant->post_title);
7800
+
echo '</option>';
7801
+
}
7802
+
}
7803
+
}
7804
+
?>
7805
+
</select>
7806
+
</td>
7807
+
</tr>
7808
+
<tr class="TaxSEO">
7809
+
<th>
7810
+
<div>
7811
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7812
+
<div class="bws_hidden_help_text cr_min_260px">
7813
+
<?php
7814
+
echo esc_html__("Select the default model you want to use for the AI Taxonomy SEO Description Writer. This will set the SEO description for the following SEO plugins: Yoast SEO, All In One SEO, Rank Math, Squirrly SEO.", 'aiomatic-automatic-ai-content-writer');
7815
+
?>
7816
+
</div>
7817
+
</div>
7818
+
<b><?php echo esc_html__("AI Taxonomy SEO Description Writer Model:", 'aiomatic-automatic-ai-content-writer');?></b>
7819
+
</div>
7820
+
</th>
7821
+
<td>
7822
+
<div>
7823
+
<select id="tax_seo_description_model" name="aiomatic_Spinner_Settings[tax_seo_description_model]" <?php if($tax_seo_assistant_id != ''){echo ' disabled';}?> class="disableTaxSEO cr_width_full">
7824
+
<?php
7825
+
foreach($all_models as $modelx)
7826
+
{
7827
+
echo '<option value="' . esc_html($modelx) .'"';
7828
+
if ($tax_seo_description_model == $modelx)
7829
+
{
7830
+
echo " selected";
7831
+
}
7832
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
7833
+
}
7834
+
?>
7835
+
</select>
7836
+
</div>
7837
+
</td>
7838
+
</tr>
7839
+
<tr class="TaxSEO">
7840
+
<th class="cr_min_width_200">
7841
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7842
+
<div class="bws_hidden_help_text cr_min_260px">
7843
+
<?php
7844
+
echo esc_html__("Set the prompt to be used for the AI Taxonomy SEO Description Writer feature. You can use the following shortcodes here: %%term_name%%, %%term_id%%, %%term_slug%%, %%term_description%%, %%term_taxonomy_name%%, %%term_taxonomy_id%% - default is: Write a description for a WordPress %%term_taxonomy_name%% with the following title: \"%%term_name%%\". This will set the SEO description for the following SEO plugins: Yoast SEO, All In One SEO, Rank Math, Squirrly SEO.", 'aiomatic-automatic-ai-content-writer');
7845
+
?>
7846
+
</div>
7847
+
</div>
7848
+
<b><?php echo esc_html__("AI Taxonomy SEO Description Writer Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
7849
+
</th>
7850
+
<td>
7851
+
<textarea name="aiomatic_Spinner_Settings[tax_seo_description_prompt]" placeholder="AI Taxonomy Description Writer Prompt" class="cr_width_full"><?php echo esc_textarea($tax_seo_description_prompt);?></textarea>
7852
+
</td>
7853
+
</tr>
7854
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Automatic Taxonomy Processing At Creation:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7855
+
<tr>
7856
+
<th>
7857
+
<div>
7858
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7859
+
<div class="bws_hidden_help_text cr_min_260px">
7860
+
<?php
7861
+
echo esc_html__("Select if you want to enable automatic processing and description creation using AI of all newly added taxonomies for the taxonomy names you select (which don't already have a description set when they are created).", 'aiomatic-automatic-ai-content-writer');
7862
+
?>
7863
+
</div>
7864
+
</div>
7865
+
<b><?php echo esc_html__("Enable Automatic Processing Of All Newly Added Taxonomies For:", 'aiomatic-automatic-ai-content-writer');?></b>
7866
+
</div>
7867
+
</th>
7868
+
<td>
7869
+
<div>
7870
+
<select id="tax_description_auto" multiple name="aiomatic_Spinner_Settings[tax_description_auto][]" class="cr_width_full ai_resize_vertical">
7871
+
<?php
7872
+
$taxonomies = get_taxonomies();
7873
+
7874
+
foreach ($taxonomies as $tx)
7875
+
{
7876
+
echo '<option value="' . esc_html($tx) . '"';
7877
+
if (in_array($tx, $tax_description_auto)) {
7878
+
echo " selected";
7879
+
}
7880
+
echo '>' . esc_html($tx) . '</option>';
7881
+
}
7882
+
?>
7883
+
</select>
7884
+
</div>
7885
+
</td>
7886
+
</tr>
7887
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Existing Taxonomy AI Description Writer:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7888
+
<tr>
7889
+
<th>
7890
+
<div>
7891
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7892
+
<div class="bws_hidden_help_text cr_min_260px">
7893
+
<?php
7894
+
echo esc_html__("Select the taxonomies which you want to be affected by the manual taxonomy writing process.", 'aiomatic-automatic-ai-content-writer');
7895
+
?>
7896
+
</div>
7897
+
</div>
7898
+
<b><?php echo esc_html__("Manually Run Taxonomy Description Writing On:", 'aiomatic-automatic-ai-content-writer');?></b>
7899
+
</div>
7900
+
</th>
7901
+
<td>
7902
+
<div>
7903
+
<select id="tax_description_manual" name="aiomatic_Spinner_Settings[tax_description_manual]" class="cr_width_full">
7904
+
<?php
7905
+
foreach ($taxonomies as $tx)
7906
+
{
7907
+
echo '<option value="' . esc_html($tx) . '"';
7908
+
if ($tx == $tax_description_manual) {
7909
+
echo " selected";
7910
+
}
7911
+
echo '>' . esc_html($tx) . '</option>';
7912
+
}
7913
+
?>
7914
+
</select>
7915
+
</div>
7916
+
</td>
7917
+
</tr>
7918
+
<tr>
7919
+
<th>
7920
+
<div>
7921
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7922
+
<div class="bws_hidden_help_text cr_min_260px">
7923
+
<?php
7924
+
echo esc_html__("Set the maximum number of taxonomies to be processed at each run.", 'aiomatic-automatic-ai-content-writer');
7925
+
?>
7926
+
</div>
7927
+
</div>
7928
+
<b><?php echo esc_html__("Maximum Number Of Taxonomies To Process:", 'aiomatic-automatic-ai-content-writer');?></b>
7929
+
</div>
7930
+
</th>
7931
+
<td>
7932
+
<div>
7933
+
<input type="number" id="max_tax_nr" step="1" min="1" placeholder="Maximum Taxonomy Count" name="aiomatic_Spinner_Settings[max_tax_nr]" value="<?php echo esc_html($max_tax_nr);?>" class="cr_width_full"/>
7934
+
</div>
7935
+
</td>
7936
+
</tr>
7937
+
<tr>
7938
+
<th>
7939
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7940
+
<div class="bws_hidden_help_text cr_min_260px">
7941
+
<?php
7942
+
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');
7943
+
?>
7944
+
</div>
7945
+
</div>
7946
+
<b><?php echo esc_html__("Process Also Taxonomies Which Already Have A Description:", 'aiomatic-automatic-ai-content-writer');?></b>
7947
+
</th>
7948
+
<td>
7949
+
<label class="aiomatic-switch"><input type="checkbox" id="overwite_tax" name="aiomatic_Spinner_Settings[overwite_tax]"<?php
7950
+
if ($overwite_tax == 'on')
7951
+
echo ' checked ';
7952
+
?>><span class="aiomatic-slider round"></span></label>
7953
+
</td>
7954
+
</tr>
7955
+
<tr>
7956
+
<th>
7957
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
7958
+
<div class="bws_hidden_help_text cr_min_260px">
7959
+
<?php
7960
+
echo esc_html__("Do you want to run manual writing of description for existing taxonomies, now? Please check configuration from below before clicking 'Run Taxonomy Desciption Writing'.", 'aiomatic-automatic-ai-content-writer');
7961
+
?>
7962
+
</div>
7963
+
</div>
7964
+
<b><?php echo esc_html__("Manually Run Taxonomy Description Writing Now:", 'aiomatic-automatic-ai-content-writer');?></b>
7965
+
</th>
7966
+
<td>
7967
+
<img id="run_imgx" src="<?php echo esc_url_raw(plugin_dir_url(dirname(__FILE__)) . 'images/running.gif');?>" alt="Running" class="cr_hidden cr_align_middle" title="status">
7968
+
<div class="codemainfzr">
7969
+
<select id="taxactions" class="actions" name="aiomatic_tax_actions" onchange="actionsChangedTax(this.value);" onfocus="this.selectedIndex = 0;">
7970
+
<option value="select" disabled selected><?php echo esc_html__("Select an Action", 'aiomatic-automatic-ai-content-writer');?></option>
7971
+
<option value="run"><?php echo esc_html__("Run Taxonomy Desciption Writing", 'aiomatic-automatic-ai-content-writer');?></option>
7972
+
</select>
7973
+
</div>
7974
+
</td>
7975
+
</tr>
7976
+
<?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
7977
+
?>
7978
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("AI Taxonomy Description Writer Tutorial Video:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7979
+
<tr>
7980
+
<td class="coderevolution_block_input" colspan="2">
7981
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/k5BFo9jcmcs" allowfullscreen></iframe>
7982
+
</td></tr>
7983
+
<tr class="aiomatic-title-holder"><td colspan="2"><h2 class="aiomatic-inner-title"><?php echo esc_html__("Automate the AI Taxonomy Description Writing Process:", 'aiomatic-automatic-ai-content-writer');?></h2></td></tr>
7984
+
<tr>
7985
+
<td class="coderevolution_block_input" colspan="2">
7986
+
<iframe class="youtube-responsive" src="https://www.youtube.com/embed/1OibwD73JIA" allowfullscreen></iframe>
7987
+
</td>
7988
+
</tr>
7989
+
<?php
7990
+
}
7991
+
?>
7992
+
</table>
7993
+
</div>
7994
+
<div id="tab-4" class="tab-content">
7995
+
<table class="widefat">
7996
+
<tr>
7997
+
<td colspan="2">
7998
+
<h2>
7999
+
<?php echo esc_html__("Existing Content Editing:", 'aiomatic-automatic-ai-content-writer');?></h3>
8000
+
<div class="crf_bord cr_color_red cr_width_full"><?php echo esc_html__('Bulk post editing might consume a large number of AI model tokens to complete! Be sure you check', 'aiomatic-automatic-ai-content-writer') . ' <a href="https://openai.com/pricing" target="_blank">' . esc_html__('token pricing', 'aiomatic-automatic-ai-content-writer') . '</a> ' . esc_html__('before you continue. You can filter which posts you need edited. Doing a general site backup is also recommended before doing bulk content editing.', 'aiomatic-automatic-ai-content-writer');?></div>
8001
+
</td>
8002
+
</tr>
8003
+
<tr><td colspan="2">
8004
+
<?php
8005
+
echo esc_html__("INFO: You can change the way the posts are edited by changing settings in the 'Editing Template Manager' tab from above! Also, be sure to save settings before running bulk post editing!", 'aiomatic-automatic-ai-content-writer');
8006
+
?>
8007
+
</td></tr>
8008
+
<tr>
8009
+
<td>
8010
+
<div>
8011
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8012
+
<div class="bws_hidden_help_text cr_min_260px">
8013
+
<?php
8014
+
echo esc_html__("Do you want to run manual post editing, now? Please check configuration from below before clicking 'Run Post Editing'.", 'aiomatic-automatic-ai-content-writer');
8015
+
?>
8016
+
</div>
8017
+
</div>
8018
+
<b><?php echo esc_html__("Manually Run Post Editing Now:", 'aiomatic-automatic-ai-content-writer');?></b>
8019
+
</td>
8020
+
<td class="cr_min_100 cr_center">
8021
+
<img id="run_img" src="<?php echo esc_url_raw(plugin_dir_url(dirname(__FILE__)) . 'images/running.gif');?>" alt="Running" class="cr_hidden cr_align_middle" title="status">
8022
+
</td>
8023
+
<td>
8024
+
<div class="codemainfzr">
8025
+
<select id="actions" class="actions" name="aiomatic_bulk_actions" onchange="actionsChangedManual(this.value);" onfocus="this.selectedIndex = 0;">
8026
+
<option value="select" disabled selected><?php echo esc_html__("Select an Action", 'aiomatic-automatic-ai-content-writer');?></option>
8027
+
<option value="run"><?php echo esc_html__("Run Post Editing", 'aiomatic-automatic-ai-content-writer');?></option>
8028
+
<option value="test"><?php echo esc_html__("Simulate Post Editing", 'aiomatic-automatic-ai-content-writer');?></option>
8029
+
</select>
8030
+
</div>
8031
+
</td>
8032
+
</tr>
8033
+
<tr>
8034
+
<td colspan="2">
8035
+
<div id="results_shower">
8036
+
</div>
8037
+
</td>
8038
+
</tr>
8039
+
<tr>
8040
+
<td>
8041
+
<div>
8042
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8043
+
<div class="bws_hidden_help_text cr_min_260px">
8044
+
<?php
8045
+
echo esc_html__("Select the way you want to schedule automatic editing of existing posts from your site, using the below settings.", 'aiomatic-automatic-ai-content-writer');
8046
+
?>
8047
+
</div>
8048
+
</div>
8049
+
<b><?php echo esc_html__("Automatic Editing Of Existing Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
8050
+
</td>
8051
+
<td colspan="2">
8052
+
<select id="auto_edit" class="cr_width_full skip-from-processing" onchange="aiomatic_edit_changed();" name="aiomatic_Spinner_Settings[auto_edit]" >
8053
+
<option value="disabled"<?php
8054
+
if ($auto_edit == "disabled") {
8055
+
echo " selected";
8056
+
}
8057
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
8058
+
<option value="wp"<?php
8059
+
if ($auto_edit == "wp") {
8060
+
echo " selected";
8061
+
}
8062
+
?>><?php echo esc_html__("WordPress Cron Job", 'aiomatic-automatic-ai-content-writer');?></option>
8063
+
<option value="external"<?php
8064
+
if ($auto_edit == "external") {
8065
+
echo " selected";
8066
+
}
8067
+
?>><?php echo esc_html__("External Cron Job", 'aiomatic-automatic-ai-content-writer');?></option>
8068
+
</select>
8069
+
</td>
8070
+
</tr>
8071
+
<tr class="hidewp">
8072
+
<td>
8073
+
<div>
8074
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8075
+
<div class="bws_hidden_help_text cr_min_260px">
8076
+
<?php
8077
+
echo esc_html__("Choose how often you want to automatically check for old posts. This will change the cron scheduling time.", 'aiomatic-automatic-ai-content-writer');
8078
+
?>
8079
+
</div>
8080
+
</div>
8081
+
<b><?php echo esc_html__("Plugin Autorun Interval:", 'aiomatic-automatic-ai-content-writer');?></b>
8082
+
</div>
8083
+
</td>
8084
+
<td colspan="2">
8085
+
<div >
8086
+
<select class="cr_width_full skip-from-processing" id="auto_run_interval" name="aiomatic_Spinner_Settings[auto_run_interval]" >
8087
+
<option value="No"<?php
8088
+
if ($auto_run_interval == "No") {
8089
+
echo " selected";
8090
+
}
8091
+
?>><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
8092
+
<option value="monthly"<?php
8093
+
if ($auto_run_interval == "monthly") {
8094
+
echo " selected";
8095
+
}
8096
+
?>><?php echo esc_html__("Once a month", 'aiomatic-automatic-ai-content-writer');?></option>
8097
+
<option value="weekly"<?php
8098
+
if ($auto_run_interval == "weekly") {
8099
+
echo " selected";
8100
+
}
8101
+
?>><?php echo esc_html__("Once a week", 'aiomatic-automatic-ai-content-writer');?></option>
8102
+
<option value="daily"<?php
8103
+
if ($auto_run_interval == "daily") {
8104
+
echo " selected";
8105
+
}
8106
+
?>><?php echo esc_html__("Once a day", 'aiomatic-automatic-ai-content-writer');?></option>
8107
+
<option value="twicedaily"<?php
8108
+
if ($auto_run_interval == "twicedaily") {
8109
+
echo " selected";
8110
+
}
8111
+
?>><?php echo esc_html__("Twice a day", 'aiomatic-automatic-ai-content-writer');?></option>
8112
+
<option value="hourly"<?php
8113
+
if ($auto_run_interval == "hourly") {
8114
+
echo " selected";
8115
+
}
8116
+
?>><?php echo esc_html__("Once an hour", 'aiomatic-automatic-ai-content-writer');?></option>
8117
+
<option value="aiomatic_cron_half"<?php
8118
+
if ($auto_run_interval == "aiomatic_cron_half") {
8119
+
echo " selected";
8120
+
}
8121
+
?>><?php echo esc_html__("Once 30 minutes", 'aiomatic-automatic-ai-content-writer');?></option>
8122
+
<option value="aiomatic_cron_sfert"<?php
8123
+
if ($auto_run_interval == "aiomatic_cron_sfert") {
8124
+
echo " selected";
8125
+
}
8126
+
?>><?php echo esc_html__("Once 15 minutes", 'aiomatic-automatic-ai-content-writer');?></option>
8127
+
<option value="aiomatic_cron_ten"<?php
8128
+
if ($auto_run_interval == "aiomatic_cron_ten") {
8129
+
echo " selected";
8130
+
}
8131
+
?>><?php echo esc_html__("Once 10 minutes", 'aiomatic-automatic-ai-content-writer');?></option>
8132
+
</select>
8133
+
</div>
8134
+
</td>
8135
+
</tr>
8136
+
<tr class="hideexternal">
8137
+
<td>
8138
+
<div>
8139
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8140
+
<div class="bws_hidden_help_text cr_min_260px">
8141
+
<?php
8142
+
echo esc_html__("Select a secret word that will be used when you run the post editing part of the plugin manually by URL/by cron. See details about this below.", 'aiomatic-automatic-ai-content-writer');
8143
+
?>
8144
+
</div>
8145
+
</div>
8146
+
<b><?php echo esc_html__("Secret Word Used For Cron Running (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
8147
+
</td>
8148
+
<td colspan="2">
8149
+
<input type="text" id="secret_word" name="aiomatic_Spinner_Settings[secret_word]" class="skip-from-processing" value="<?php echo esc_html($secret_word);?>" placeholder="<?php echo esc_html__("Input a secret word", 'aiomatic-automatic-ai-content-writer');?>">
8150
+
</td>
8151
+
</tr>
8152
+
<tr class="hideexternal">
8153
+
<td colspan="3">
8154
+
<div>
8155
+
<br/><b><?php echo esc_html__("If you want to schedule the cron event manually in your server, to allow recurring editing of existing posts on your site, you should schedule this address:", 'aiomatic-automatic-ai-content-writer');?> <span class="cr_red"><?php if($secret_word != '') { echo esc_url(get_site_url() . '/?run_aiomatic_edit=' . urlencode($secret_word));} else { echo esc_html__('You must enter a secret word above, to use this feature.', 'aiomatic-automatic-ai-content-writer'); }?></span><br/><?php if($secret_word != '') { echo esc_html__("Example:", 'aiomatic-automatic-ai-content-writer') . ' <span class="cr_red">15,45****wget -q -O /dev/null ' . esc_url(get_site_url() . '/?run_aiomatic_edit=' . urlencode($secret_word)) . '</span>';}?></b>
8156
+
</div>
8157
+
<br/><br/>
8158
+
</td>
8159
+
</tr>
8160
+
</table>
8161
+
<br/>
8162
+
<table class="widefat">
8163
+
<tr>
8164
+
<td colspan="2">
8165
+
<h2>
8166
+
<?php echo esc_html__("Bulk AI Editing Settings:", 'aiomatic-automatic-ai-content-writer');?></h3>
8167
+
</td>
8168
+
</tr>
8169
+
<tr>
8170
+
<td class="ai-flex">
8171
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8172
+
<div class="bws_hidden_help_text cr_min_260px disable_drag">
8173
+
<?php
8174
+
echo esc_html__("Select a AI Content Editor template to be used for bulk content editing.", 'aiomatic-automatic-ai-content-writer');
8175
+
?>
8176
+
</div>
8177
+
</div>
8178
+
<b><?php echo esc_html__("Use This AI Content Editor Template For Manual Post Editing:", 'aiomatic-automatic-ai-content-writer');?></b>
8179
+
</td>
8180
+
<td>
8181
+
<select title="<?php echo esc_html__('Select an AI Content Editor Template to be used', 'aiomatic-automatic-ai-content-writer');?>" name="aiomatic_Spinner_Settings[use_template_manual]" class="skip-from-processing cr_width_full" id="bulk_use_select_template">
8182
+
<?php
8183
+
if(!empty($temp_list))
8184
+
{
8185
+
?>
8186
+
<option value="" <?php if($use_template_manual == ''){ echo ' selected';}?> ><?php echo esc_html__("Use currently saved configuration", 'aiomatic-automatic-ai-content-writer');?></option>
8187
+
<?php
8188
+
foreach($temp_list as $templid => $templ)
8189
+
{
8190
+
echo '<option value="' . esc_attr($templid) . '"';
8191
+
if($use_template_manual == $templid)
8192
+
{
8193
+
echo ' selected';
8194
+
}
8195
+
echo '>' . esc_html($templ) . ' (' . esc_attr($templid) . ')</option>';
8196
+
}
8197
+
}
8198
+
else
8199
+
{
8200
+
echo '<option value="" disabled selected>' . esc_html__("No templates found (use currently saved configuration)", 'aiomatic-automatic-ai-content-writer') . '</option>';
8201
+
}
8202
+
?>
8203
+
</select>
8204
+
</td>
8205
+
</tr>
8206
+
<tr>
8207
+
<td>
8208
+
<div>
8209
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8210
+
<div class="bws_hidden_help_text cr_min_260px">
8211
+
<?php
8212
+
echo esc_html__("Set the maximum number of posts to be processed at each run.", 'aiomatic-automatic-ai-content-writer');
8213
+
?>
8214
+
</div>
8215
+
</div>
8216
+
<b><?php echo esc_html__("Maximum Number Of Posts To Process:", 'aiomatic-automatic-ai-content-writer');?></b>
8217
+
</div>
8218
+
</td>
8219
+
<td>
8220
+
<div>
8221
+
<input type="number" id="max_nr" step="1" min="1" placeholder="Maximum Post Count" name="aiomatic_Spinner_Settings[max_nr]" class="skip-from-processing" value="<?php echo esc_html($max_nr);?>"/>
8222
+
</div>
8223
+
</td>
8224
+
</tr>
8225
+
<tr>
8226
+
<td>
8227
+
<div>
8228
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8229
+
<div class="bws_hidden_help_text cr_min_260px">
8230
+
<?php
8231
+
echo esc_html__("Set a delay to wait after each request. This is useful for rate limiting purposes. This is optional. To disable this feature, leave it blank.", 'aiomatic-automatic-ai-content-writer');
8232
+
?>
8233
+
</div>
8234
+
</div>
8235
+
<b><?php echo esc_html__("Delay Between Requests (Milliseconds):", 'aiomatic-automatic-ai-content-writer');?></b>
8236
+
</div>
8237
+
</td>
8238
+
<td>
8239
+
<div>
8240
+
<input type="number" id="delay_request" step="1" min="1" placeholder="Delay (ms)" name="aiomatic_Spinner_Settings[delay_request]" class="skip-from-processing" value="<?php echo esc_html($delay_request);?>"/>
8241
+
</div>
8242
+
</td>
8243
+
</tr>
8244
+
<tr>
8245
+
<td>
8246
+
<div>
8247
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8248
+
<div class="bws_hidden_help_text cr_min_260px">
8249
+
<?php
8250
+
echo esc_html__("Select if you don't want to process the same post twice using bulk post editing.", 'aiomatic-automatic-ai-content-writer');
8251
+
?>
8252
+
</div>
8253
+
</div>
8254
+
<b><?php echo esc_html__("Don't Process Same Post Twice:", 'aiomatic-automatic-ai-content-writer');?></b>
8255
+
</div>
8256
+
</td>
8257
+
<td>
8258
+
<div>
8259
+
<input type="checkbox" onchange="sameChanged();" id="no_twice" name="aiomatic_Spinner_Settings[no_twice]" class="skip-from-processing"<?php
8260
+
if ($no_twice == 'on')
8261
+
echo ' checked ';
8262
+
?>>
8263
+
</div>
8264
+
</td>
8265
+
</tr>
8266
+
<tr class="hideField">
8267
+
<td>
8268
+
<div>
8269
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8270
+
<div class="bws_hidden_help_text cr_min_260px">
8271
+
<?php
8272
+
echo esc_html__("Set the name of the custom field which will be set to posts which were already edited. Changing this can be useful if you want to reedit already edited posts. The default is: aiomatic_published - You can also use this shortcode here: %%current_date%%", 'aiomatic-automatic-ai-content-writer');
8273
+
?>
8274
+
</div>
8275
+
</div>
8276
+
<b><?php echo esc_html__("Duplicate Checking Custom Field Name (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
8277
+
</div>
8278
+
</td>
8279
+
<td>
8280
+
<div>
8281
+
<input type="text" id="custom_name" name="aiomatic_Spinner_Settings[custom_name]" class="skip-from-processing" value="<?php echo esc_html($custom_name);?>" placeholder="Optional">
8282
+
</div>
8283
+
</td>
8284
+
</tr>
8285
+
<tr>
8286
+
<td>
8287
+
<hr/>
8288
+
</td>
8289
+
<td>
8290
+
<hr/>
8291
+
</td>
8292
+
</tr>
8293
+
<tr>
8294
+
<td colspan="2">
8295
+
<h3><?php echo esc_html__("Which Posts Should Bulk AI Editing Affect:", 'aiomatic-automatic-ai-content-writer');?></h3>
8296
+
</td>
8297
+
</tr>
8298
+
<tr>
8299
+
<td>
8300
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8301
+
<div class="bws_hidden_help_text cr_min_260px">
8302
+
<?php
8303
+
echo esc_html__("(int,int,int) - use author id [use minus (-) to exclude authors by ID ex. -1,-2,-3]", 'aiomatic-automatic-ai-content-writer');
8304
+
?>
8305
+
</div>
8306
+
</div>
8307
+
<b><?php echo esc_html__("Author IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
8308
+
</td>
8309
+
<td>
8310
+
<input type="text" id="author_id" name="aiomatic_Spinner_Settings[author_id]" class="skip-from-processing" value="<?php echo esc_html($author_id);?>" placeholder="Author IDs">
8311
+
</td>
8312
+
</tr>
8313
+
<tr>
8314
+
<td>
8315
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8316
+
<div class="bws_hidden_help_text cr_min_260px">
8317
+
<?php
8318
+
echo esc_html__("(string) - use 'user_nicename' (NOT name)", 'aiomatic-automatic-ai-content-writer');
8319
+
?>
8320
+
</div>
8321
+
</div>
8322
+
<b><?php echo esc_html__("Author Names:", 'aiomatic-automatic-ai-content-writer');?></b>
8323
+
</td>
8324
+
<td>
8325
+
<input type="text" id="author_name" list="author_name_suggestions" name="aiomatic_Spinner_Settings[author_name]" class="skip-from-processing" value="<?php echo esc_html($author_name);?>" placeholder="Author names">
8326
+
<?php
8327
+
$xusers = get_users([
8328
+
'number' => 1000,
8329
+
'fields' => ['display_name'],
8330
+
]);
8331
+
?>
8332
+
<datalist id="author_name_suggestions">
8333
+
<?php foreach ($xusers as $user) : ?>
8334
+
<option value="<?php echo esc_attr($user->display_name); ?>">
8335
+
<?php endforeach; ?>
8336
+
</datalist>
8337
+
</td>
8338
+
</tr>
8339
+
<tr>
8340
+
<td>
8341
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8342
+
<div class="bws_hidden_help_text cr_min_260px">
8343
+
<?php
8344
+
echo esc_html__("(string,string) - use category slugs instead of names. ", 'aiomatic-automatic-ai-content-writer');
8345
+
?>
8346
+
</div>
8347
+
</div>
8348
+
<b><?php echo esc_html__("Category Slugs:", 'aiomatic-automatic-ai-content-writer');?></b>
8349
+
</td>
8350
+
<td>
8351
+
<?php
8352
+
$categories = get_terms([
8353
+
'taxonomy' => 'category',
8354
+
'hide_empty' => false,
8355
+
'number' => 1000,
8356
+
'fields' => 'names',
8357
+
]);
8358
+
?>
8359
+
<input type="text" id="category_name" list="category_name_suggestions" name="aiomatic_Spinner_Settings[category_name]" class="skip-from-processing" value="<?php echo esc_html($category_name);?>" placeholder="Category names">
8360
+
<datalist id="category_name_suggestions">
8361
+
<?php foreach ($categories as $category) : ?>
8362
+
<option value="<?php echo esc_attr($category); ?>">
8363
+
<?php endforeach; ?>
8364
+
</datalist>
8365
+
</td>
8366
+
</tr>
8367
+
<tr>
8368
+
<td>
8369
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8370
+
<div class="bws_hidden_help_text cr_min_260px">
8371
+
<?php
8372
+
echo esc_html__("(string,string) - use tag slugs instead of names. ", 'aiomatic-automatic-ai-content-writer');
8373
+
?>
8374
+
</div>
8375
+
</div>
8376
+
<b><?php echo esc_html__("Tag Slugs:", 'aiomatic-automatic-ai-content-writer');?></b>
8377
+
</td>
8378
+
<td>
8379
+
<input type="text" id="tag_name" name="aiomatic_Spinner_Settings[tag_name]" class="skip-from-processing" value="<?php echo esc_html($tag_name);?>" placeholder="Tag names">
8380
+
</td>
8381
+
</tr>
8382
+
<tr>
8383
+
<td>
8384
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8385
+
<div class="bws_hidden_help_text cr_min_260px">
8386
+
<?php
8387
+
echo esc_html__("Comma separated list of post IDs to edit.", 'aiomatic-automatic-ai-content-writer');
8388
+
?>
8389
+
</div>
8390
+
</div>
8391
+
<b><?php echo esc_html__("Post IDs:", 'aiomatic-automatic-ai-content-writer');?></b>
8392
+
</td>
8393
+
<td>
8394
+
<input type="text" id="post_id" name="aiomatic_Spinner_Settings[post_id]" class="skip-from-processing" value="<?php echo esc_html($post_id);?>" placeholder="Post ID">
8395
+
</td>
8396
+
</tr>
8397
+
<tr>
8398
+
<td>
8399
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8400
+
<div class="bws_hidden_help_text cr_min_260px">
8401
+
<?php
8402
+
echo esc_html__("(string) - use post slug.", 'aiomatic-automatic-ai-content-writer');
8403
+
?>
8404
+
</div>
8405
+
</div>
8406
+
<b><?php echo esc_html__("Post Name:", 'aiomatic-automatic-ai-content-writer');?></b>
8407
+
</td>
8408
+
<td>
8409
+
<input type="text" id="post_name" name="aiomatic_Spinner_Settings[post_name]" class="skip-from-processing" value="<?php echo esc_html($post_name);?>" placeholder="Post name">
8410
+
</td>
8411
+
</tr>
8412
+
<tr>
8413
+
<td>
8414
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8415
+
<div class="bws_hidden_help_text cr_min_260px">
8416
+
<?php
8417
+
echo esc_html__("(int) - use page id.", 'aiomatic-automatic-ai-content-writer');
8418
+
?>
8419
+
</div>
8420
+
</div>
8421
+
<b><?php echo esc_html__("Page ID:", 'aiomatic-automatic-ai-content-writer');?></b>
8422
+
</td>
8423
+
<td>
8424
+
<input type="text" id="page_id" name="aiomatic_Spinner_Settings[page_id]" class="skip-from-processing" value="<?php echo esc_html($page_id);?>" placeholder="Page ID">
8425
+
</td>
8426
+
</tr>
8427
+
<tr>
8428
+
<td>
8429
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8430
+
<div class="bws_hidden_help_text cr_min_260px">
8431
+
<?php
8432
+
echo esc_html__("(string) - use page slug.", 'aiomatic-automatic-ai-content-writer');
8433
+
?>
8434
+
</div>
8435
+
</div>
8436
+
<b><?php echo esc_html__("Page Name:", 'aiomatic-automatic-ai-content-writer');?></b>
8437
+
</td>
8438
+
<td>
8439
+
<input type="text" id="pagename" name="aiomatic_Spinner_Settings[pagename]" class="skip-from-processing" value="<?php echo esc_html($pagename);?>" placeholder="Page name">
8440
+
</td>
8441
+
</tr>
8442
+
<tr>
8443
+
<td>
8444
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8445
+
<div class="bws_hidden_help_text cr_min_260px">
8446
+
<?php
8447
+
echo esc_html__("(int) - use page id. Return just the child Pages.", 'aiomatic-automatic-ai-content-writer');
8448
+
?>
8449
+
</div>
8450
+
</div>
8451
+
<b><?php echo esc_html__("Post Parent:", 'aiomatic-automatic-ai-content-writer');?></b>
8452
+
</td>
8453
+
<td>
8454
+
<input type="text" id="post_parent" name="aiomatic_Spinner_Settings[post_parent]" class="skip-from-processing" value="<?php echo esc_html($post_parent);?>" placeholder="Post parent ID">
8455
+
</td>
8456
+
</tr>
8457
+
<tr>
8458
+
<td>
8459
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8460
+
<div class="bws_hidden_help_text cr_min_260px">
8461
+
<?php
8462
+
echo esc_html__("(string,string) - The post types to return. Valid values are: post, page, revision, attachment, other-custom-post-types. To match any post type enter the keyword: any. The default is post (if left empty).", 'aiomatic-automatic-ai-content-writer');
8463
+
?>
8464
+
</div>
8465
+
</div>
8466
+
<b><?php echo esc_html__("Post Type:", 'aiomatic-automatic-ai-content-writer');?></b>
8467
+
</td>
8468
+
<td>
8469
+
<?php
8470
+
$post_types = get_post_types(
8471
+
[
8472
+
'public' => true,
8473
+
],
8474
+
'names'
8475
+
);
8476
+
?>
8477
+
<input type="text" id="type_post" list="post_type_suggestions" name="aiomatic_Spinner_Settings[type_post]" class="skip-from-processing" value="<?php echo esc_html($type_post);?>" placeholder="Post type">
8478
+
<datalist id="post_type_suggestions">
8479
+
<?php foreach ($post_types as $post_type) : ?>
8480
+
<option value="<?php echo esc_attr($post_type); ?>">
8481
+
<?php endforeach; ?>
8482
+
</datalist>
8483
+
</td>
8484
+
</tr>
8485
+
<tr>
8486
+
<td>
8487
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8488
+
<div class="bws_hidden_help_text cr_min_260px">
8489
+
<?php
8490
+
echo esc_html__("(string) - The post status to return. Valid values are: publish, pending, draft, auto-draft, future, private, inherit, trash, other-custom-post-statuses", 'aiomatic-automatic-ai-content-writer');
8491
+
?>
8492
+
</div>
8493
+
</div>
8494
+
<b><?php echo esc_html__("Post Status:", 'aiomatic-automatic-ai-content-writer');?></b>
8495
+
</td>
8496
+
<td>
8497
+
<?php
8498
+
$post_statuses = get_post_statuses();
8499
+
?>
8500
+
<input type="text" list="post_status_suggestions" id="post_status" name="aiomatic_Spinner_Settings[post_status]" class="skip-from-processing" value="<?php echo esc_html($post_status);?>" placeholder="Post status">
8501
+
<datalist id="post_status_suggestions">
8502
+
<?php foreach ($post_statuses as $status_key => $status_label) : ?>
8503
+
<option value="<?php echo esc_attr($status_key); ?>"><?php echo esc_html($status_label); ?></option>
8504
+
<?php endforeach; ?>
8505
+
</datalist>
8506
+
</td>
8507
+
</tr>
8508
+
<tr>
8509
+
<td>
8510
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8511
+
<div class="bws_hidden_help_text cr_min_260px">
8512
+
<?php
8513
+
echo esc_html__("(int) - number of post to alter. Use 'posts_per_page'=-1 to alter all posts.", 'aiomatic-automatic-ai-content-writer');
8514
+
?>
8515
+
</div>
8516
+
</div>
8517
+
<b><?php echo esc_html__("Maximum Posts To Query For Processing:", 'aiomatic-automatic-ai-content-writer');?></b>
8518
+
</td>
8519
+
<td>
8520
+
<input type="number" min="-1" step="1" id="max_posts" name="aiomatic_Spinner_Settings[max_posts]" class="skip-from-processing" value="<?php echo esc_html($max_posts);?>" placeholder="Max posts">
8521
+
</td>
8522
+
</tr>
8523
+
<tr>
8524
+
<td>
8525
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8526
+
<div class="bws_hidden_help_text cr_min_260px">
8527
+
<?php
8528
+
echo esc_html__("(int) - number of post to displace or pass over.", 'aiomatic-automatic-ai-content-writer');
8529
+
?>
8530
+
</div>
8531
+
</div>
8532
+
<b><?php echo esc_html__("Search Offset:", 'aiomatic-automatic-ai-content-writer');?></b>
8533
+
</td>
8534
+
<td>
8535
+
<input type="number" min="-1" step="1" id="search_offset" name="aiomatic_Spinner_Settings[search_offset]" class="skip-from-processing" value="<?php echo esc_html($search_offset);?>" placeholder="Post offset">
8536
+
</td>
8537
+
</tr>
8538
+
<tr>
8539
+
<td>
8540
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8541
+
<div class="bws_hidden_help_text cr_min_260px">
8542
+
<?php
8543
+
echo esc_html__("(string) - Custom field key.", 'aiomatic-automatic-ai-content-writer');
8544
+
?>
8545
+
</div>
8546
+
</div>
8547
+
<b><?php echo esc_html__("Meta Key Name:", 'aiomatic-automatic-ai-content-writer');?></b>
8548
+
</td>
8549
+
<td>
8550
+
<input type="text" id="meta_name" name="aiomatic_Spinner_Settings[meta_name]" class="skip-from-processing" value="<?php echo esc_html($meta_name);?>" placeholder="Meta Key Name">
8551
+
</td>
8552
+
</tr>
8553
+
<tr>
8554
+
<td>
8555
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8556
+
<div class="bws_hidden_help_text cr_min_260px">
8557
+
<?php
8558
+
echo esc_html__("(string) - Custom field value.", 'aiomatic-automatic-ai-content-writer');
8559
+
?>
8560
+
</div>
8561
+
</div>
8562
+
<b><?php echo esc_html__("Meta Key Value:", 'aiomatic-automatic-ai-content-writer');?></b>
8563
+
</td>
8564
+
<td>
8565
+
<input type="text" id="meta_value" name="aiomatic_Spinner_Settings[meta_value]" class="skip-from-processing" value="<?php echo esc_html($meta_value);?>" placeholder="Meta Key Value">
8566
+
</td>
8567
+
</tr>
8568
+
<tr>
8569
+
<td>
8570
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8571
+
<div class="bws_hidden_help_text cr_min_260px">
8572
+
<?php
8573
+
echo sprintf( wp_kses( __( "(string) - Passes along the query string variable from a search.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ) );
8574
+
?>
8575
+
</div>
8576
+
</div>
8577
+
<b><?php echo esc_html__("Search Query:", 'aiomatic-automatic-ai-content-writer');?></b>
8578
+
</td>
8579
+
<td>
8580
+
<input type="text" id="search_query" name="aiomatic_Spinner_Settings[search_query]" class="skip-from-processing" value="<?php echo esc_html($search_query);?>" placeholder="Search query">
8581
+
</td>
8582
+
</tr>
8583
+
<tr>
8584
+
<td>
8585
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8586
+
<div class="bws_hidden_help_text cr_min_260px">
8587
+
<?php
8588
+
echo esc_html__("(int) - 4 digit year (e.g. 2011).", 'aiomatic-automatic-ai-content-writer');
8589
+
?>
8590
+
</div>
8591
+
</div>
8592
+
<b><?php echo esc_html__("Year Query:", 'aiomatic-automatic-ai-content-writer');?></b>
8593
+
</td>
8594
+
<td>
8595
+
<input type="number" min="0" step="1" id="year" name="aiomatic_Spinner_Settings[year]" class="skip-from-processing" value="<?php echo esc_html($year);?>" placeholder="Year">
8596
+
</td>
8597
+
</tr>
8598
+
<tr>
8599
+
<td>
8600
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8601
+
<div class="bws_hidden_help_text cr_min_260px">
8602
+
<?php
8603
+
echo esc_html__("(int) - Month number (from 1 to 12).", 'aiomatic-automatic-ai-content-writer');
8604
+
?>
8605
+
</div>
8606
+
</div>
8607
+
<b><?php echo esc_html__("Month Query:", 'aiomatic-automatic-ai-content-writer');?></b>
8608
+
</td>
8609
+
<td>
8610
+
<input type="number" min="1" max="12" step="1" id="month" name="aiomatic_Spinner_Settings[month]" class="skip-from-processing" value="<?php echo esc_html($month);?>" placeholder="Month">
8611
+
</td>
8612
+
</tr>
8613
+
<tr>
8614
+
<td>
8615
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8616
+
<div class="bws_hidden_help_text cr_min_260px">
8617
+
<?php
8618
+
echo esc_html__("(int) - Day of the month (from 1 to 31).", 'aiomatic-automatic-ai-content-writer');
8619
+
?>
8620
+
</div>
8621
+
</div>
8622
+
<b><?php echo esc_html__("Day Query:", 'aiomatic-automatic-ai-content-writer');?></b>
8623
+
</td>
8624
+
<td>
8625
+
<input type="number" min="1" max="31" step="1" id="day" name="aiomatic_Spinner_Settings[day]" class="skip-from-processing" value="<?php echo esc_html($day);?>" placeholder="Day">
8626
+
</td>
8627
+
</tr>
8628
+
<tr>
8629
+
<td>
8630
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8631
+
<div class="bws_hidden_help_text cr_min_260px">
8632
+
<?php
8633
+
echo esc_html__("Select which posts should be processed - posts with or without featured images.", 'aiomatic-automatic-ai-content-writer');
8634
+
?>
8635
+
</div>
8636
+
</div>
8637
+
<b><?php echo esc_html__("Featured Image Status:", 'aiomatic-automatic-ai-content-writer');?></b>
8638
+
</td>
8639
+
<td>
8640
+
<select id="featured_image" name="aiomatic_Spinner_Settings[featured_image]" class="skip-from-processing">
8641
+
<option value="any"<?php
8642
+
if ($featured_image == "any") {
8643
+
echo " selected";
8644
+
}
8645
+
?>><?php echo esc_html__("Any", 'aiomatic-automatic-ai-content-writer');?></option>
8646
+
<option value="with"<?php
8647
+
if ($featured_image == "with") {
8648
+
echo " selected";
8649
+
}
8650
+
?>><?php echo esc_html__("With Featured Images", 'aiomatic-automatic-ai-content-writer');?></option>
8651
+
<option value="without"<?php
8652
+
if ($featured_image == "without") {
8653
+
echo " selected";
8654
+
}
8655
+
?>><?php echo esc_html__("Without Featured Images", 'aiomatic-automatic-ai-content-writer');?></option>
8656
+
</select>
8657
+
</td>
8658
+
</tr>
8659
+
<tr>
8660
+
<td>
8661
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8662
+
<div class="bws_hidden_help_text cr_min_260px">
8663
+
<?php
8664
+
echo esc_html__("(string) - Designates the ascending or descending order of the 'orderby' parameter. Defaultto 'DESC'.", 'aiomatic-automatic-ai-content-writer');
8665
+
?>
8666
+
</div>
8667
+
</div>
8668
+
<b><?php echo esc_html__("Order Results:", 'aiomatic-automatic-ai-content-writer');?></b>
8669
+
</td>
8670
+
<td>
8671
+
<select id="order" name="aiomatic_Spinner_Settings[order]" class="skip-from-processing">
8672
+
<option value="default"<?php
8673
+
if ($order == "default") {
8674
+
echo " selected";
8675
+
}
8676
+
?>><?php echo esc_html__("Default", 'aiomatic-automatic-ai-content-writer');?></option>
8677
+
<option value="DESC"<?php
8678
+
if ($order == "DESC") {
8679
+
echo " selected";
8680
+
}
8681
+
?>><?php echo esc_html__("Descendent", 'aiomatic-automatic-ai-content-writer');?></option>
8682
+
<option value="ASC"<?php
8683
+
if ($order == "ASC") {
8684
+
echo " selected";
8685
+
}
8686
+
?>><?php echo esc_html__("Ascendent", 'aiomatic-automatic-ai-content-writer');?></option>
8687
+
</select>
8688
+
</td>
8689
+
</tr>
8690
+
<tr>
8691
+
<td>
8692
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8693
+
<div class="bws_hidden_help_text cr_min_260px">
8694
+
<?php
8695
+
echo esc_html__("(string) - Sort retrieved posts by parameter. Defaults to 'date'.", 'aiomatic-automatic-ai-content-writer');
8696
+
?>
8697
+
</div>
8698
+
</div>
8699
+
<b><?php echo esc_html__("Order Results By:", 'aiomatic-automatic-ai-content-writer');?></b>
8700
+
</td>
8701
+
<td>
8702
+
<select id="orderby" name="aiomatic_Spinner_Settings[orderby]" class="skip-from-processing">
8703
+
<option value="default"<?php
8704
+
if ($orderby == "default") {
8705
+
echo " selected";
8706
+
}
8707
+
?>><?php echo esc_html__("Default", 'aiomatic-automatic-ai-content-writer');?></option>
8708
+
<option value="date"<?php
8709
+
if ($orderby == "date") {
8710
+
echo " selected";
8711
+
}
8712
+
?>><?php echo esc_html__("Date", 'aiomatic-automatic-ai-content-writer');?></option>
8713
+
<option value="none"<?php
8714
+
if ($orderby == "none") {
8715
+
echo " selected";
8716
+
}
8717
+
?>><?php echo esc_html__("None", 'aiomatic-automatic-ai-content-writer');?></option>
8718
+
<option value="ID"<?php
8719
+
if ($orderby == "ID") {
8720
+
echo " selected";
8721
+
}
8722
+
?>><?php echo esc_html__("ID", 'aiomatic-automatic-ai-content-writer');?></option>
8723
+
<option value="author"<?php
8724
+
if ($orderby == "author") {
8725
+
echo " selected";
8726
+
}
8727
+
?>><?php echo esc_html__("Author", 'aiomatic-automatic-ai-content-writer');?></option>
8728
+
<option value="title"<?php
8729
+
if ($orderby == "title") {
8730
+
echo " selected";
8731
+
}
8732
+
?>><?php echo esc_html__("Title", 'aiomatic-automatic-ai-content-writer');?></option>
8733
+
<option value="date"<?php
8734
+
if ($orderby == "date") {
8735
+
echo " selected";
8736
+
}
8737
+
?>><?php echo esc_html__("Date", 'aiomatic-automatic-ai-content-writer');?></option>
8738
+
<option value="modified"<?php
8739
+
if ($orderby == "modified") {
8740
+
echo " selected";
8741
+
}
8742
+
?>><?php echo esc_html__("Modified", 'aiomatic-automatic-ai-content-writer');?></option>
8743
+
<option value="parent"<?php
8744
+
if ($orderby == "parent") {
8745
+
echo " selected";
8746
+
}
8747
+
?>><?php echo esc_html__("Parent", 'aiomatic-automatic-ai-content-writer');?></option>
8748
+
<option value="rand"<?php
8749
+
if ($orderby == "rand") {
8750
+
echo " selected";
8751
+
}
8752
+
?>><?php echo esc_html__("Random", 'aiomatic-automatic-ai-content-writer');?></option>
8753
+
<option value="comment_count"<?php
8754
+
if ($orderby == "comment_count") {
8755
+
echo " selected";
8756
+
}
8757
+
?>><?php echo esc_html__("Comment Count", 'aiomatic-automatic-ai-content-writer');?></option>
8758
+
<option value="menu_order"<?php
8759
+
if ($orderby == "menu_order") {
8760
+
echo " selected";
8761
+
}
8762
+
?>><?php echo esc_html__("Menu Order", 'aiomatic-automatic-ai-content-writer');?></option>
8763
+
<option value="meta_value"<?php
8764
+
if ($orderby == "meta_value") {
8765
+
echo " selected";
8766
+
}
8767
+
?>><?php echo esc_html__("Meta Value", 'aiomatic-automatic-ai-content-writer');?></option>
8768
+
<option value="meta_value_num"<?php
8769
+
if ($orderby == "meta_value_num") {
8770
+
echo " selected";
8771
+
}
8772
+
?>><?php echo esc_html__("Meta Value Number", 'aiomatic-automatic-ai-content-writer');?></option>
8773
+
</select>
8774
+
</td>
8775
+
</tr>
8776
+
</table>
8777
+
</div>
8778
+
<div><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></div><div>
8779
+
<?php echo esc_html__("New! You can use the [aicontent]Your Prompt[/aicontent] shortcode in this or other", 'aiomatic-automatic-ai-content-writer') . " <a href='https://wpbay.com/store/coderevolution/' target='_blank'>" . esc_html__("'omatic plugins created by CodeRevolution", 'aiomatic-automatic-ai-content-writer') . "</a>" . esc_html__(", click for details:", 'aiomatic-automatic-ai-content-writer');?> <a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-ai-generated-content-from-any-plugin-built-by-coderevolution/" target="_blank"><img src="https://i.ibb.co/WGQ1rtF/ai.webp" alt="artificial-intelligence-badge" title="AI content generator support, when used together with the Aimogen plugin"></a><br/><br/><a href="https://www.youtube.com/watch?v=5rbnu_uis7Y" target="_blank"><?php echo esc_html__("Nested Shortcodes also supported!", 'aiomatic-automatic-ai-content-writer');?></a><br/>
8780
+
</div>
8781
+
</form>
8782
+
<div id="running_status_ai"></div>
8783
+
</div>
8784
+
<?php
8785
+
}
8786
+
function aiomatic_save_editors($data) {
8787
+
check_admin_referer( 'aiomatic_save_edits', '_aiomaticr_nonce_edits' );
8788
+
$data = $_POST['aiomatic_Editor_Rules'];
8789
+
if(isset($data['use_template_manual']))
8790
+
{
8791
+
$cat_cont = 0;
8792
+
$editors = array();
8793
+
for($i = 0; $i < sizeof($data['use_template_manual']); ++$i)
8794
+
{
8795
+
$bundle = array();
8796
+
$use_template_manual = trim( sanitize_text_field( $data['use_template_manual'][$i] ) );
8797
+
$bundle[] = $use_template_manual;
8798
+
$bundle[] = trim( sanitize_text_field( $data['post_posts'][$i] ) );
8799
+
$bundle[] = trim( sanitize_text_field( $data['post_pages'][$i] ) );
8800
+
$bundle[] = trim( sanitize_text_field( $data['post_custom'][$i] ) );
8801
+
$bundle[] = trim( sanitize_text_field( $data['except_type'][$i] ) );
8802
+
$bundle[] = trim( sanitize_text_field( $data['active'][$i] ) );
8803
+
$bundle[] = trim( sanitize_text_field( $data['only_type'][$i] ) );
8804
+
if($i == sizeof($data['use_template_manual']) - 1)
8805
+
{
8806
+
if(isset($data['disabled_categories']))
8807
+
{
8808
+
$bundle[] = $data['disabled_categories'];
8809
+
}
8810
+
else
8811
+
{
8812
+
if(!isset($data['disabled_categories' . $cat_cont]))
8813
+
{
8814
+
$cat_cont++;
8815
+
}
8816
+
if(!isset($data['disabled_categories' . $cat_cont]))
8817
+
{
8818
+
$bundle[] = array('aiomatic_no_category_12345678');
8819
+
}
8820
+
else
8821
+
{
8822
+
$bundle[] = $data['disabled_categories' . $cat_cont];
8823
+
}
8824
+
}
8825
+
}
8826
+
else
8827
+
{
8828
+
if(!isset($data['disabled_categories' . $cat_cont]))
8829
+
{
8830
+
$cat_cont++;
8831
+
}
8832
+
if(!isset($data['disabled_categories' . $cat_cont]))
8833
+
{
8834
+
$bundle[] = array('aiomatic_no_category_12345678');
8835
+
}
8836
+
else
8837
+
{
8838
+
$bundle[] = $data['disabled_categories' . $cat_cont];
8839
+
}
8840
+
}
8841
+
$bundle[] = trim( sanitize_text_field( $data['rule_description'][$i] ) );
8842
+
$bundle[] = trim( sanitize_text_field( $data['disable_tags'][$i] ) );
8843
+
$bundle[] = trim( sanitize_text_field( $data['disable_users'][$i] ) );
8844
+
$bundle[] = trim( sanitize_text_field( $data['enable_users'][$i] ) );
8845
+
$bundle[] = trim( sanitize_text_field( $data['featured_status'][$i] ) );
8846
+
$bundle[] = trim( sanitize_text_field( $data['enable_field'][$i] ) );
8847
+
$bundle[] = trim( sanitize_text_field( $data['disable_field'][$i] ) );
8848
+
$bundle[] = trim( sanitize_text_field( $data['enable_tags'][$i] ) );
8849
+
$bundle[] = trim( sanitize_text_field( $data['seo_status'][$i] ) );
8850
+
if ($use_template_manual == '')
8851
+
{
8852
+
$cat_cont++;
8853
+
continue;
8854
+
}
8855
+
else
8856
+
{
8857
+
$editors[$i] = $bundle;
8858
+
}
8859
+
$cat_cont++;
8860
+
}
8861
+
aiomatic_update_option('aiomatic_Editor_Rules', $editors);
8862
+
}
8863
+
}
8864
+
if (isset($_POST['aiomatic_Editor_Rules'])) {
8865
+
add_action('admin_init', 'aiomatic_save_editors');
8866
+
}
8867
+
function aiomatic_expand_editors($temp_list)
8868
+
{
8869
+
$aiomatic_Main_Settings = get_option('aiomatic_Main_Settings', false);
8870
+
if(empty(trim($aiomatic_Main_Settings['app_id'])))
8871
+
{
8872
+
return 'You need to add an API key in plugin settings for this to work!';
8873
+
}
8874
+
$editors = get_option('aiomatic_Editor_Rules');
8875
+
$output = '';
8876
+
if (!empty($editors)) {
8877
+
$name = md5(get_bloginfo());
8878
+
wp_register_script($name . '-editor-extra-script', '');
8879
+
wp_enqueue_script($name . '-editor-extra-script');
8880
+
foreach ($editors as $cont => $bundle[]) {
8881
+
$bundle_values = array_values($bundle);
8882
+
$myValues = $bundle_values[$cont];
8883
+
8884
+
$array_my_values = array_values($myValues);
8885
+
for($iji=0;$iji<count($array_my_values);++$iji){if(is_string($array_my_values[$iji])){$array_my_values[$iji]=stripslashes($array_my_values[$iji]);}}
8886
+
$use_template_manual = $array_my_values[0];
8887
+
$post_posts = $array_my_values[1];
8888
+
$post_pages = $array_my_values[2];
8889
+
$post_custom = $array_my_values[3];
8890
+
$except_type = $array_my_values[4];
8891
+
$active = $array_my_values[5];
8892
+
$only_type = $array_my_values[6];
8893
+
$disabled_categories = $array_my_values[7];
8894
+
$rule_description = $array_my_values[8];
8895
+
$disable_tags = $array_my_values[9];
8896
+
$disable_users = $array_my_values[10];
8897
+
$enable_users = $array_my_values[11];
8898
+
$featured_status = $array_my_values[12];
8899
+
$enable_field = $array_my_values[13];
8900
+
$disable_field = $array_my_values[14];
8901
+
$enable_tags = $array_my_values[15];
8902
+
$seo_status = $array_my_values[16];
8903
+
if($rule_description == '')
8904
+
{
8905
+
$rule_description = $cont;
8906
+
}
8907
+
wp_add_inline_script($name . '-editor-extra-script', 'aiomaticCreateAdmin(' . esc_html($cont) . ');', 'after');
8908
+
$output .= '
8909
+
<tr>
8910
+
<td class="cr_td_xo"><input type="text" name="aiomatic_Editor_Rules[rule_description][]" id="rule_description' . esc_html($cont) . '" class="cr_center" placeholder="Rule ID" value="' . esc_html($rule_description) . '" class="cr_width_full"/></td>
8911
+
<td class="cr_min_100"><select title="' . esc_html__('Select an AI Content Editor Template to be used', 'aiomatic-automatic-ai-content-writer') . '" name="aiomatic_Editor_Rules[use_template_manual][]" class="skip-from-processing cr_width_full">';
8912
+
$output .= '<option value="default"';
8913
+
if($use_template_manual == 'default')
8914
+
{
8915
+
$output .= ' selected';
8916
+
}
8917
+
$output .= '>' . esc_html__("Use currently saved configuration", 'aiomatic-automatic-ai-content-writer') . '</option>';
8918
+
foreach($temp_list as $templid => $templ)
8919
+
{
8920
+
$output .= '<option value="' . esc_attr($templid) . '"';
8921
+
if($use_template_manual == $templid)
8922
+
{
8923
+
$output .= ' selected';
8924
+
}
8925
+
$output .= '>' . esc_html($templ) . ' (' . esc_attr($templid) . ')</option>';
8926
+
}
8927
+
$output .= '</select></td>
8928
+
<td class="cr_width_70">
8929
+
<center><input type="button" id="mybtnfzr' . esc_html($cont) . '" value="Settings"></center>
8930
+
<div id="mymodalfzr' . esc_html($cont) . '" class="codemodalfzr">
8931
+
<div class="codemodalfzr-content">
8932
+
<div class="codemodalfzr-header">
8933
+
<span id="aiomatic_close' . esc_html($cont) . '" class="codeclosefzr">×</span>
8934
+
<h2>' . esc_html__('Rule', 'aiomatic-automatic-ai-content-writer') . ' <span class="cr_color_white">ID ' . esc_html($cont) . '</span> ' . esc_html__('Advanced Settings', 'aiomatic-automatic-ai-content-writer') . '</h2>
8935
+
</div>
8936
+
<div class="codemodalfzr-body">
8937
+
<div class="table-responsive">
8938
+
<table class="responsive table cr_main_table_nowr">
8939
+
<tr><td colspan="2"><h2>' . esc_html__('What to Restrict', 'aiomatic-automatic-ai-content-writer') . ':</h2></td></tr>
8940
+
<tr>
8941
+
<td class="cr_min_width_200">
8942
+
<div>
8943
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8944
+
<div class="bws_hidden_help_text" >' . esc_html__('Do you want to enable automatically editing of WordPress \'posts\'?', 'aiomatic-automatic-ai-content-writer') . '
8945
+
</div>
8946
+
</div>
8947
+
<b>' . esc_html__("Enable Editing of 'Posts':", 'aiomatic-automatic-ai-content-writer') . '</b>
8948
+
8949
+
</td><td>
8950
+
<select name="aiomatic_Editor_Rules[post_posts][]" class="skip-from-processing cr_width_full">
8951
+
<option value="yes"';
8952
+
if($post_posts == "yes")
8953
+
{
8954
+
$output .= ' selected';
8955
+
}
8956
+
$output .= '>' . esc_html__("Enable", 'aiomatic-automatic-ai-content-writer') . '</option>
8957
+
<option value="on"';
8958
+
if($post_posts == "on")
8959
+
{
8960
+
$output .= ' selected';
8961
+
}
8962
+
$output .= '>' . esc_html__("Disable", 'aiomatic-automatic-ai-content-writer') . '</option>
8963
+
</select>
8964
+
</div>
8965
+
</td></tr>
8966
+
<tr>
8967
+
<td class="cr_min_width_200">
8968
+
<div>
8969
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8970
+
<div class="bws_hidden_help_text" >' . esc_html__('Do you want to enable automatically editing of WordPress \'pages\'?', 'aiomatic-automatic-ai-content-writer') . '
8971
+
</div>
8972
+
</div>
8973
+
<b>' . esc_html__("Enable Editing of 'Pages':", 'aiomatic-automatic-ai-content-writer') . '</b>
8974
+
8975
+
</td><td>
8976
+
<select name="aiomatic_Editor_Rules[post_pages][]" class="skip-from-processing cr_width_full">
8977
+
<option value="yes"';
8978
+
if($post_pages == "yes")
8979
+
{
8980
+
$output .= ' selected';
8981
+
}
8982
+
$output .= '>' . esc_html__("Enable", 'aiomatic-automatic-ai-content-writer') . '</option>
8983
+
<option value="on"';
8984
+
if($post_pages == "on")
8985
+
{
8986
+
$output .= ' selected';
8987
+
}
8988
+
$output .= '>' . esc_html__("Disable", 'aiomatic-automatic-ai-content-writer') . '</option>
8989
+
</select>
8990
+
</div>
8991
+
</td></tr>
8992
+
<tr>
8993
+
<td class="cr_min_width_200">
8994
+
<div>
8995
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
8996
+
<div class="bws_hidden_help_text" >' . esc_html__('Do you want to enable automatically editing of WordPress \'custom post types\'?', 'aiomatic-automatic-ai-content-writer') . '
8997
+
</div>
8998
+
</div>
8999
+
<b>'. esc_html__("Enable Editing of 'Custom Post Types':", 'aiomatic-automatic-ai-content-writer') . '</b>
9000
+
9001
+
</td><td>
9002
+
<select name="aiomatic_Editor_Rules[post_custom][]" class="skip-from-processing cr_width_full">
9003
+
<option value="yes"';
9004
+
if($post_custom == "yes")
9005
+
{
9006
+
$output .= ' selected';
9007
+
}
9008
+
$output .= '>' . esc_html__("Enable", 'aiomatic-automatic-ai-content-writer') . '</option>
9009
+
<option value="on"';
9010
+
if($post_custom == "on")
9011
+
{
9012
+
$output .= ' selected';
9013
+
}
9014
+
$output .= '>' . esc_html__("Disable", 'aiomatic-automatic-ai-content-writer') . '</option>
9015
+
</select>
9016
+
</div>
9017
+
</td></tr>
9018
+
<tr>
9019
+
<td class="cr_min_width_200">
9020
+
<div>
9021
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9022
+
<div class="bws_hidden_help_text">' . esc_html__('If you checked the above checkbox to disable processing of custom post types, you can define here a comma separated list of posts types which should still be process (excepted from skipping).', 'aiomatic-automatic-ai-content-writer') . '
9023
+
</div>
9024
+
</div>
9025
+
<b>' . esc_html__("Excepting This Comma Separated List Of Custom Post Types:", 'aiomatic-automatic-ai-content-writer') . '</b>
9026
+
9027
+
</td><td>
9028
+
<input type="text" name="aiomatic_Editor_Rules[except_type][]" class="skip-from-processing" value="'.esc_attr($except_type).'" placeholder="Excepted custom post types">
9029
+
</div>
9030
+
</td></tr>
9031
+
<tr>
9032
+
<td class="cr_min_width_200">
9033
+
<div>
9034
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9035
+
<div class="bws_hidden_help_text">' . esc_html__('If you enabled custom post type processing and want to set a comma separated list of custom post types which should be processed, you can do it here.', 'aiomatic-automatic-ai-content-writer') . '
9036
+
</div>
9037
+
</div>
9038
+
<b>' . esc_html__("Process Only This Comma Separated List Of Custom Post Types:", 'aiomatic-automatic-ai-content-writer') . '</b>
9039
+
9040
+
</td><td>
9041
+
<input type="text" name="aiomatic_Editor_Rules[only_type][]" class="skip-from-processing" value="'.esc_attr($only_type).'" placeholder="Process only these custom post types">
9042
+
</div>
9043
+
</td></tr>
9044
+
<tr>
9045
+
<td class="cr_min_width_200">
9046
+
<div>
9047
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9048
+
<div class="bws_hidden_help_text">' . esc_html__('Do you want to disable automatically editing of WordPress categories?', 'aiomatic-automatic-ai-content-writer') . '
9049
+
</div>
9050
+
</div>
9051
+
<b>' . esc_html__("Disable Editing of Selected Post Categories:", 'aiomatic-automatic-ai-content-writer') . '</b>
9052
+
9053
+
</td><td>';
9054
+
$cat_args = array(
9055
+
'orderby' => 'name',
9056
+
'hide_empty' => 0,
9057
+
'order' => 'ASC'
9058
+
);
9059
+
$output .= '<select name="aiomatic_Editor_Rules[disabled_categories' . esc_html($cont) . '][]" multiple class="ai_resize_vertical skip-from-processing">
9060
+
<option value="aiomatic_no_category_12345678"';
9061
+
if(!is_array($disabled_categories))
9062
+
{
9063
+
$disabled_categories = array($disabled_categories);
9064
+
}
9065
+
if(count($disabled_categories) == 1)
9066
+
{
9067
+
foreach($disabled_categories as $dc)
9068
+
{
9069
+
if ("aiomatic_no_category_12345678" == $dc) {
9070
+
$output .= ' selected';
9071
+
break;
9072
+
}
9073
+
}
9074
+
}
9075
+
$output .= '>' . esc_html__("Do Not Check Categories", 'aiomatic-automatic-ai-content-writer') . '</option>';
9076
+
$categories = get_categories($cat_args);
9077
+
foreach ($categories as $category)
9078
+
{
9079
+
$output .= '<option value="' . esc_html($category->term_id) . '"';
9080
+
foreach($disabled_categories as $dc)
9081
+
{
9082
+
if($dc == $category->term_id)
9083
+
{
9084
+
$output .= ' selected';
9085
+
}
9086
+
}
9087
+
$output .= '>' . esc_html(sanitize_text_field($category->name)) . '</option>';
9088
+
}
9089
+
$output .= '</select>
9090
+
</div>
9091
+
</td></tr>
9092
+
<tr>
9093
+
<td class="cr_min_width_200">
9094
+
<div>
9095
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9096
+
<div class="bws_hidden_help_text">' . esc_html__('Input the tags for which you want to disable editing. You can enter more tags, separated by comma. Ex: cars, vehicles, red, luxury. To disable this feature, leave this field blank.', 'aiomatic-automatic-ai-content-writer') . '
9097
+
</div>
9098
+
</div>
9099
+
<b>' . esc_html__("Disable Editing of Selected Post Tags:", 'aiomatic-automatic-ai-content-writer') . '</b>
9100
+
9101
+
</td><td>
9102
+
<textarea rows="1" name="aiomatic_Editor_Rules[disable_tags][]" class="skip-from-processing" placeholder="Please insert the tags for which you want to disable editing">' . esc_textarea($disable_tags) . '</textarea>
9103
+
</div>
9104
+
</td></tr>
9105
+
<tr>
9106
+
<td class="cr_min_width_200">
9107
+
<div>
9108
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9109
+
<div class="bws_hidden_help_text">' . esc_html__('Input the tags for which you want to enable editing. You can enter more tags, separated by comma. Ex: cars, vehicles, red, luxury. To disable this feature, leave this field blank.', 'aiomatic-automatic-ai-content-writer') . '
9110
+
</div>
9111
+
</div>
9112
+
<b>' . esc_html__("Enable Editing of Selected Post Tags:", 'aiomatic-automatic-ai-content-writer') . '</b>
9113
+
9114
+
</td><td>
9115
+
<textarea rows="1" name="aiomatic_Editor_Rules[enable_tags][]" class="skip-from-processing" placeholder="Please insert the tags for which you want to enable editing">' . esc_textarea($enable_tags) . '</textarea>
9116
+
</div>
9117
+
</td></tr>
9118
+
<tr>
9119
+
<td class="cr_min_width_200">
9120
+
<div>
9121
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9122
+
<div class="bws_hidden_help_text">' . esc_html__('Input the author user IDs for which you want to disable editing. You can enter more user IDs, separated by comma. To disable this feature, leave this field blank.', 'aiomatic-automatic-ai-content-writer') . '
9123
+
</div>
9124
+
</div>
9125
+
<b>' . esc_html__("Disable Editing Of Posts By Author User IDs:", 'aiomatic-automatic-ai-content-writer') . '</b>
9126
+
9127
+
</td><td>
9128
+
<textarea rows="1" name="aiomatic_Editor_Rules[disable_users][]" class="skip-from-processing" placeholder="Please insert the user IDs for which you want to disable editing">' . esc_textarea($disable_users) . '</textarea>
9129
+
</div>
9130
+
</td></tr>
9131
+
<tr>
9132
+
<td class="cr_min_width_200">
9133
+
<div>
9134
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9135
+
<div class="bws_hidden_help_text">' . esc_html__('Input the author user IDs for which you want to enable editing. You can enter more user IDs, separated by comma. To disable this feature, leave this field blank.', 'aiomatic-automatic-ai-content-writer') . '
9136
+
</div>
9137
+
</div>
9138
+
<b>' . esc_html__("Enable Editing of Posts By Author User IDs:", 'aiomatic-automatic-ai-content-writer') . '</b>
9139
+
9140
+
</td><td>
9141
+
<textarea rows="1" name="aiomatic_Editor_Rules[enable_users][]" class="skip-from-processing" placeholder="Please insert the user IDs for which you want to enable editing">' . esc_textarea($enable_users) . '</textarea>
9142
+
</div>
9143
+
</td></tr>
9144
+
<tr>
9145
+
<td class="cr_min_width_200">
9146
+
<div>
9147
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9148
+
<div class="bws_hidden_help_text">' . esc_html__('Edit posts with this custom field value. Syntax: custom_field_name => custom_field_value. To accept any value, add a * in the value field. To disable this feature, leave this field blank.', 'aiomatic-automatic-ai-content-writer') . '
9149
+
</div>
9150
+
</div>
9151
+
<b>' . esc_html__("Enable Editing If Custom Field Has Value:", 'aiomatic-automatic-ai-content-writer') . '</b>
9152
+
9153
+
</td><td>
9154
+
<textarea rows="1" name="aiomatic_Editor_Rules[enable_field][]" class="skip-from-processing" placeholder="custom_field_name => custom_field_value">' . esc_textarea($enable_field) . '</textarea>
9155
+
</div>
9156
+
</td></tr>
9157
+
<tr>
9158
+
<td class="cr_min_width_200">
9159
+
<div>
9160
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9161
+
<div class="bws_hidden_help_text">' . esc_html__('Do not edit posts with this custom field value. Syntax: custom_field_name => custom_field_value. To accept any value, add a * in the value field. To disable this feature, leave this field blank.', 'aiomatic-automatic-ai-content-writer') . '
9162
+
</div>
9163
+
</div>
9164
+
<b>' . esc_html__("Disable Editing If Custom Field Has Value:", 'aiomatic-automatic-ai-content-writer') . '</b>
9165
+
9166
+
</td><td>
9167
+
<textarea rows="1" name="aiomatic_Editor_Rules[disable_field][]" class="skip-from-processing" placeholder="custom_field_name => custom_field_value">' . esc_textarea($disable_field) . '</textarea>
9168
+
</div>
9169
+
</td></tr>
9170
+
<tr>
9171
+
<td class="cr_min_width_200">
9172
+
<div>
9173
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9174
+
<div class="bws_hidden_help_text" >' . esc_html__('Set the featured image status of edited posts.', 'aiomatic-automatic-ai-content-writer') . '
9175
+
</div>
9176
+
</div>
9177
+
<b>'. esc_html__("Featured Image Status:", 'aiomatic-automatic-ai-content-writer') . '</b>
9178
+
9179
+
</td><td>
9180
+
<select name="aiomatic_Editor_Rules[featured_status][]" class="skip-from-processing cr_width_full">
9181
+
<option value="any"';
9182
+
if($featured_status == "any")
9183
+
{
9184
+
$output .= ' selected';
9185
+
}
9186
+
$output .= '>' . esc_html__("Don't Check", 'aiomatic-automatic-ai-content-writer') . '</option>
9187
+
<option value="yes"';
9188
+
if($featured_status == "yes")
9189
+
{
9190
+
$output .= ' selected';
9191
+
}
9192
+
$output .= '>' . esc_html__("Has Featured Image", 'aiomatic-automatic-ai-content-writer') . '</option>
9193
+
<option value="no"';
9194
+
if($featured_status == "no")
9195
+
{
9196
+
$output .= ' selected';
9197
+
}
9198
+
$output .= '>' . esc_html__("Does Not Have Featured Image", 'aiomatic-automatic-ai-content-writer') . '</option>
9199
+
</select>
9200
+
</div>
9201
+
</td></tr>
9202
+
<tr>
9203
+
<td class="cr_min_width_200">
9204
+
<div>
9205
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
9206
+
<div class="bws_hidden_help_text" >' . esc_html__('Set the featured image status of edited posts.', 'aiomatic-automatic-ai-content-writer') . '
9207
+
</div>
9208
+
</div>
9209
+
<b>'. esc_html__("SEO Description Status:", 'aiomatic-automatic-ai-content-writer') . '</b>
9210
+
9211
+
</td><td>
9212
+
<select name="aiomatic_Editor_Rules[seo_status][]" class="skip-from-processing cr_width_full">
9213
+
<option value="any"';
9214
+
if($seo_status == "any")
9215
+
{
9216
+
$output .= ' selected';
9217
+
}
9218
+
$output .= '>' . esc_html__("Don't Check", 'aiomatic-automatic-ai-content-writer') . '</option>
9219
+
<option value="yes"';
9220
+
if($seo_status == "yes")
9221
+
{
9222
+
$output .= ' selected';
9223
+
}
9224
+
$output .= '>' . esc_html__("Has SEO Description", 'aiomatic-automatic-ai-content-writer') . '</option>
9225
+
<option value="no"';
9226
+
if($seo_status == "no")
9227
+
{
9228
+
$output .= ' selected';
9229
+
}
9230
+
$output .= '>' . esc_html__("Does Not Have SEO Description", 'aiomatic-automatic-ai-content-writer') . '</option>
9231
+
</select>
9232
+
</div>
9233
+
</td></tr>
9234
+
</table></div>
9235
+
</div>
9236
+
<div class="codemodalfzr-footer">
9237
+
<br/>
9238
+
<h3 class="cr_inline">Aimogen Restrictions</h3><span id="aiomatic_ok' . esc_html($cont) . '" class="codeokfzr cr_inline">OK </span>
9239
+
<br/><br/>
9240
+
</div>
9241
+
</div>
9242
+
9243
+
</div>
9244
+
</td>
9245
+
<td class="cr_30 cr_center" ><span class="wpaiomatic-delete">X</span></td>
9246
+
<td class="cr_short_td">
9247
+
<select name="aiomatic_Editor_Rules[active][]" class="cr_width_full">
9248
+
<option value="1" ';
9249
+
if($active === '1')
9250
+
{
9251
+
$output .= 'selected="selected"';
9252
+
}
9253
+
$output .= '>' . esc_html__('Yes', 'aiomatic-automatic-ai-content-writer') . '</option>
9254
+
<option value="0" ';
9255
+
if($active === '0')
9256
+
{
9257
+
$output .= 'selected="selected"';
9258
+
}
9259
+
$output .= '>' . esc_html__('No', 'aiomatic-automatic-ai-content-writer') . '</option></select></td>
9260
+
</tr>
9261
+
';
9262
+
$cont = $cont + 1;
9263
+
}
9264
+
}
9265
+
return $output;
9266
+
}
9267
+
?>