Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/aimogen-pro/res/aiomatic-review-list.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + function aiomatic_review_panel()
3 + {
4 + $aiomatic_language_names = array(
5 + esc_html__("English", 'aiomatic-automatic-ai-content-writer'),
6 + esc_html__("Spanish", 'aiomatic-automatic-ai-content-writer'),
7 + esc_html__("French", 'aiomatic-automatic-ai-content-writer'),
8 + esc_html__("Italian", 'aiomatic-automatic-ai-content-writer'),
9 + esc_html__("Afrikaans", 'aiomatic-automatic-ai-content-writer'),
10 + esc_html__("Albanian", 'aiomatic-automatic-ai-content-writer'),
11 + esc_html__("Arabic", 'aiomatic-automatic-ai-content-writer'),
12 + esc_html__("Amharic", 'aiomatic-automatic-ai-content-writer'),
13 + esc_html__("Armenian", 'aiomatic-automatic-ai-content-writer'),
14 + esc_html__("Belarusian", 'aiomatic-automatic-ai-content-writer'),
15 + esc_html__("Bulgarian", 'aiomatic-automatic-ai-content-writer'),
16 + esc_html__("Catalan", 'aiomatic-automatic-ai-content-writer'),
17 + esc_html__("Chinese Simplified", 'aiomatic-automatic-ai-content-writer'),
18 + esc_html__("Croatian", 'aiomatic-automatic-ai-content-writer'),
19 + esc_html__("Czech", 'aiomatic-automatic-ai-content-writer'),
20 + esc_html__("Danish", 'aiomatic-automatic-ai-content-writer'),
21 + esc_html__("Dutch", 'aiomatic-automatic-ai-content-writer'),
22 + esc_html__("Estonian", 'aiomatic-automatic-ai-content-writer'),
23 + esc_html__("Filipino", 'aiomatic-automatic-ai-content-writer'),
24 + esc_html__("Finnish", 'aiomatic-automatic-ai-content-writer'),
25 + esc_html__("Galician", 'aiomatic-automatic-ai-content-writer'),
26 + esc_html__("German", 'aiomatic-automatic-ai-content-writer'),
27 + esc_html__("Greek", 'aiomatic-automatic-ai-content-writer'),
28 + esc_html__("Hebrew", 'aiomatic-automatic-ai-content-writer'),
29 + esc_html__("Hindi", 'aiomatic-automatic-ai-content-writer'),
30 + esc_html__("Hungarian", 'aiomatic-automatic-ai-content-writer'),
31 + esc_html__("Icelandic", 'aiomatic-automatic-ai-content-writer'),
32 + esc_html__("Indonesian", 'aiomatic-automatic-ai-content-writer'),
33 + esc_html__("Irish", 'aiomatic-automatic-ai-content-writer'),
34 + esc_html__("Japanese", 'aiomatic-automatic-ai-content-writer'),
35 + esc_html__("Korean", 'aiomatic-automatic-ai-content-writer'),
36 + esc_html__("Latvian", 'aiomatic-automatic-ai-content-writer'),
37 + esc_html__("Lithuanian", 'aiomatic-automatic-ai-content-writer'),
38 + esc_html__("Norwegian", 'aiomatic-automatic-ai-content-writer'),
39 + esc_html__("Macedonian", 'aiomatic-automatic-ai-content-writer'),
40 + esc_html__("Malay", 'aiomatic-automatic-ai-content-writer'),
41 + esc_html__("Maltese", 'aiomatic-automatic-ai-content-writer'),
42 + esc_html__("Persian", 'aiomatic-automatic-ai-content-writer'),
43 + esc_html__("Polish", 'aiomatic-automatic-ai-content-writer'),
44 + esc_html__("Portuguese", 'aiomatic-automatic-ai-content-writer'),
45 + esc_html__("Romanian", 'aiomatic-automatic-ai-content-writer'),
46 + esc_html__("Russian", 'aiomatic-automatic-ai-content-writer'),
47 + esc_html__("Serbian", 'aiomatic-automatic-ai-content-writer'),
48 + esc_html__("Slovak", 'aiomatic-automatic-ai-content-writer'),
49 + esc_html__("Slovenian", 'aiomatic-automatic-ai-content-writer'),
50 + esc_html__("Swahili", 'aiomatic-automatic-ai-content-writer'),
51 + esc_html__("Swedish", 'aiomatic-automatic-ai-content-writer'),
52 + esc_html__("Thai", 'aiomatic-automatic-ai-content-writer'),
53 + esc_html__("Turkish", 'aiomatic-automatic-ai-content-writer'),
54 + esc_html__("Ukrainian", 'aiomatic-automatic-ai-content-writer'),
55 + esc_html__("Vietnamese", 'aiomatic-automatic-ai-content-writer'),
56 + esc_html__("Welsh", 'aiomatic-automatic-ai-content-writer'),
57 + esc_html__("Yiddish", 'aiomatic-automatic-ai-content-writer'),
58 + esc_html__("Tamil", 'aiomatic-automatic-ai-content-writer'),
59 + esc_html__("Azerbaijani", 'aiomatic-automatic-ai-content-writer'),
60 + esc_html__("Kannada", 'aiomatic-automatic-ai-content-writer'),
61 + esc_html__("Basque", 'aiomatic-automatic-ai-content-writer'),
62 + esc_html__("Bengali", 'aiomatic-automatic-ai-content-writer'),
63 + esc_html__("Latin", 'aiomatic-automatic-ai-content-writer'),
64 + esc_html__("Chinese Traditional", 'aiomatic-automatic-ai-content-writer'),
65 + esc_html__("Esperanto", 'aiomatic-automatic-ai-content-writer'),
66 + esc_html__("Georgian", 'aiomatic-automatic-ai-content-writer'),
67 + esc_html__("Telugu", 'aiomatic-automatic-ai-content-writer'),
68 + esc_html__("Gujarati", 'aiomatic-automatic-ai-content-writer'),
69 + esc_html__("Haitian Creole", 'aiomatic-automatic-ai-content-writer'),
70 + esc_html__("Urdu", 'aiomatic-automatic-ai-content-writer'),
71 + esc_html__("Burmese", 'aiomatic-automatic-ai-content-writer'),
72 + esc_html__("Bosnian", 'aiomatic-automatic-ai-content-writer'),
73 + esc_html__("Cebuano", 'aiomatic-automatic-ai-content-writer'),
74 + esc_html__("Chichewa", 'aiomatic-automatic-ai-content-writer'),
75 + esc_html__("Corsican", 'aiomatic-automatic-ai-content-writer'),
76 + esc_html__("Frisian", 'aiomatic-automatic-ai-content-writer'),
77 + esc_html__("Scottish Gaelic", 'aiomatic-automatic-ai-content-writer'),
78 + esc_html__("Hausa", 'aiomatic-automatic-ai-content-writer'),
79 + esc_html__("Hawaian", 'aiomatic-automatic-ai-content-writer'),
80 + esc_html__("Hmong", 'aiomatic-automatic-ai-content-writer'),
81 + esc_html__("Igbo", 'aiomatic-automatic-ai-content-writer'),
82 + esc_html__("Javanese", 'aiomatic-automatic-ai-content-writer'),
83 + esc_html__("Kazakh", 'aiomatic-automatic-ai-content-writer'),
84 + esc_html__("Khmer", 'aiomatic-automatic-ai-content-writer'),
85 + esc_html__("Kurdish", 'aiomatic-automatic-ai-content-writer'),
86 + esc_html__("Kyrgyz", 'aiomatic-automatic-ai-content-writer'),
87 + esc_html__("Lao", 'aiomatic-automatic-ai-content-writer'),
88 + esc_html__("Luxembourgish", 'aiomatic-automatic-ai-content-writer'),
89 + esc_html__("Malagasy", 'aiomatic-automatic-ai-content-writer'),
90 + esc_html__("Malayalam", 'aiomatic-automatic-ai-content-writer'),
91 + esc_html__("Maori", 'aiomatic-automatic-ai-content-writer'),
92 + esc_html__("Marathi", 'aiomatic-automatic-ai-content-writer'),
93 + esc_html__("Mongolian", 'aiomatic-automatic-ai-content-writer'),
94 + esc_html__("Nepali", 'aiomatic-automatic-ai-content-writer'),
95 + esc_html__("Pashto", 'aiomatic-automatic-ai-content-writer'),
96 + esc_html__("Punjabi", 'aiomatic-automatic-ai-content-writer'),
97 + esc_html__("Samoan", 'aiomatic-automatic-ai-content-writer'),
98 + esc_html__("Sesotho", 'aiomatic-automatic-ai-content-writer'),
99 + esc_html__("Shona", 'aiomatic-automatic-ai-content-writer'),
100 + esc_html__("Sindhi", 'aiomatic-automatic-ai-content-writer'),
101 + esc_html__("Sinhala", 'aiomatic-automatic-ai-content-writer'),
102 + esc_html__("Somali", 'aiomatic-automatic-ai-content-writer'),
103 + esc_html__("Sundanese", 'aiomatic-automatic-ai-content-writer'),
104 + esc_html__("Swahili", 'aiomatic-automatic-ai-content-writer'),
105 + esc_html__("Tajik", 'aiomatic-automatic-ai-content-writer'),
106 + esc_html__("Uzbek", 'aiomatic-automatic-ai-content-writer'),
107 + esc_html__("Xhosa", 'aiomatic-automatic-ai-content-writer'),
108 + esc_html__("Yoruba", 'aiomatic-automatic-ai-content-writer'),
109 + esc_html__("Zulu", 'aiomatic-automatic-ai-content-writer'),
110 + esc_html__("Assammese", 'aiomatic-automatic-ai-content-writer'),
111 + esc_html__("Aymara", 'aiomatic-automatic-ai-content-writer'),
112 + esc_html__("Bambara", 'aiomatic-automatic-ai-content-writer'),
113 + esc_html__("Bhojpuri", 'aiomatic-automatic-ai-content-writer'),
114 + esc_html__("Dhivehi", 'aiomatic-automatic-ai-content-writer'),
115 + esc_html__("Dogri", 'aiomatic-automatic-ai-content-writer'),
116 + esc_html__("Ewe", 'aiomatic-automatic-ai-content-writer'),
117 + esc_html__("Guarani", 'aiomatic-automatic-ai-content-writer'),
118 + esc_html__("Ilocano", 'aiomatic-automatic-ai-content-writer'),
119 + esc_html__("Kinyarwanda", 'aiomatic-automatic-ai-content-writer'),
120 + esc_html__("Konkani", 'aiomatic-automatic-ai-content-writer'),
121 + esc_html__("Krio", 'aiomatic-automatic-ai-content-writer'),
122 + esc_html__("Kurdish - Sorani", 'aiomatic-automatic-ai-content-writer'),
123 + esc_html__("Lingala", 'aiomatic-automatic-ai-content-writer'),
124 + esc_html__("Luganda", 'aiomatic-automatic-ai-content-writer'),
125 + esc_html__("Maithili", 'aiomatic-automatic-ai-content-writer'),
126 + esc_html__("Meiteilon", 'aiomatic-automatic-ai-content-writer'),
127 + esc_html__("Mizo", 'aiomatic-automatic-ai-content-writer'),
128 + esc_html__("Odia", 'aiomatic-automatic-ai-content-writer'),
129 + esc_html__("Oromo", 'aiomatic-automatic-ai-content-writer'),
130 + esc_html__("Quechua", 'aiomatic-automatic-ai-content-writer'),
131 + esc_html__("Sanskrit", 'aiomatic-automatic-ai-content-writer'),
132 + esc_html__("Sepedi", 'aiomatic-automatic-ai-content-writer'),
133 + esc_html__("Tatar", 'aiomatic-automatic-ai-content-writer'),
134 + esc_html__("Tigrinya", 'aiomatic-automatic-ai-content-writer'),
135 + esc_html__("Tsonga", 'aiomatic-automatic-ai-content-writer'),
136 + esc_html__("Turkmen", 'aiomatic-automatic-ai-content-writer'),
137 + esc_html__("Twi", 'aiomatic-automatic-ai-content-writer'),
138 + esc_html__("Uyghur", 'aiomatic-automatic-ai-content-writer')
139 + );
140 + $all_models = aiomatic_get_all_models(true);
141 + $all_assistants = aiomatic_get_all_assistants(true);
142 + $all_rules = get_option('aiomatic_review_list', array());
143 + if($all_rules === false)
144 + {
145 + $all_rules = array();
146 + }
147 + $rules_count = count($all_rules);
148 + $rules_per_page = get_option('aiomatic_posts_per_page', 12);
149 + $max_pages = ceil($rules_count/$rules_per_page);
150 + if($max_pages == 0)
151 + {
152 + $max_pages = 1;
153 + }
154 + $aiomatic_Main_Settings = get_option('aiomatic_Main_Settings', false);
155 + if (!isset($aiomatic_Main_Settings['app_id']) || trim($aiomatic_Main_Settings['app_id']) == '')
156 + {
157 + ?>
158 + <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>
159 + <?php
160 + return;
161 + }
162 + ?>
163 + <div class="wp-header-end"></div>
164 + <div class="wrap">
165 + <h1><?php echo esc_html__("Amazon Product Reviews", 'aiomatic-automatic-ai-content-writer');?></h1>
166 + </div>
167 + <?php
168 + $max_execution = ini_get('max_execution_time');
169 + if($max_execution != 0 && $max_execution < 1000)
170 + {
171 + ?>
172 + <div class="notice notice-error">
173 + <p class="cr_red">
174 + <?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' ) );?>
175 + </p>
176 + </div>
177 + <?php
178 + }
179 + ?>
180 + <div class="wrap gs_popuptype_holder seo_pops">
181 + <div>
182 + <form id="myForm" method="post" action="<?php echo esc_url((aiomatic_isSecure() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");?>">
183 + <?php
184 + wp_nonce_field('aiomatic_save_rules', '_aiomaticr_nonce');
185 +
186 + if (isset($_GET['settings-updated'])) {
187 + ?>
188 + <div>
189 + <p class="cr_saved_notif"><strong><?php echo esc_html__("Settings saved.", 'aiomatic-automatic-ai-content-writer');?></strong></p>
190 + </div>
191 + <?php
192 + }
193 + ?>
194 + <div>
195 + <div class="hideMain">
196 + <hr/>
197 + <div class="table-responsive">
198 + <table id="mainRules" class="responsive table cr_main_table">
199 + <thead>
200 + <tr>
201 + <th class="cr_width_160">
202 + <?php echo esc_html__("ID", 'aiomatic-automatic-ai-content-writer');?>
203 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
204 + <div class="bws_hidden_help_text cr_min_260px">
205 + <?php
206 + echo esc_html__("This is the ID of the rule.", 'aiomatic-automatic-ai-content-writer');
207 + ?>
208 + </div>
209 + </div>
210 + </th>
211 + <th>
212 + <span id="aiomatic_mode_title"><?php echo esc_html__("Single Product ASIN or Keyword", 'aiomatic-automatic-ai-content-writer');?>*</span>
213 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
214 + <div class="bws_hidden_help_text cr_min_260px">
215 + <?php
216 + echo esc_html__("Please provide a single ASIN of an Amazon product (ex: B07RZ74VLR). To create multiple product review posts, add a different ASIN, each on a new line.", 'aiomatic-automatic-ai-content-writer');
217 + if(!function_exists('is_plugin_active'))
218 + {
219 + include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
220 + }
221 + $amaz_ext_active = false;
222 + if (is_plugin_active('aiomatic-extension-amazon-api/aiomatic-extension-amazon-api.php'))
223 + {
224 + $amaz_ext_active = true;
225 + }
226 + if(isset($aiomatic_Main_Settings['amazon_app_id']) && trim($aiomatic_Main_Settings['amazon_app_id']) != '' && isset($aiomatic_Main_Settings['amazon_app_secret']) && trim($aiomatic_Main_Settings['amazon_app_secret']) != '' && $amaz_ext_active == true)
227 + {
228 + echo '<br/><br/>' . esc_html__("Because you are using the 'Aimogen Extension: Amazon API' extension, you can query Amazon API also by product categories. To do so, enter at the end of the keyword you are searching for, the category, in this format:", 'aiomatic-automatic-ai-content-writer') . '<br/><br/>' .
229 + '<b>category: HomeAndKitchen</b>' . '<br/>' .
230 + '<b>pan category: HomeAndKitchen</b>' . '<br/>' .
231 + '<b>french fries category: HomeAndKitchen</b>' . '<br/><br/>' .
232 + esc_html__("Possible category values are: ", 'aiomatic-automatic-ai-content-writer') . '<br>' .
233 + '<i>' . esc_html(implode(', ', AIMOGEN_AMAZON_CATEGORIES)) . '</i>' . '<br/><br/>' .
234 + esc_html__("Check valid values for your locale, here: ", 'aiomatic-automatic-ai-content-writer') . '<br/><a href="https://webservices.amazon.de/paapi5/documentation/locale-reference.html" target="_blank">Locale Reference for Product Advertising API</a>';
235 + }
236 + else
237 + {
238 + if($amaz_ext_active == true)
239 + {
240 + echo '&nbsp;' . esc_html__("To filter products by categories, you also need to enter your Amazon API key in the Aimogen's 'Settings', afterwards, more details will appear here about the category filtering options.", 'aiomatic-automatic-ai-content-writer');
241 + }
242 + else
243 + {
244 + echo '&nbsp;' . esc_html__("If you activate the 'Aimogen Extension: Amazon API' plugin, which adds support for Amazon API access to Aimogen, and also add your Amazon API key and secret in the plugin settings, you will be able to query Amazon also by product categories. Activate the Amazon Extension plugin and more details will appear here about usage.", 'aiomatic-automatic-ai-content-writer');
245 + }
246 + }
247 + ?>
248 + </div>
249 + </div>
250 + </th>
251 + <th>
252 + <?php echo esc_html__("Schedule", 'aiomatic-automatic-ai-content-writer');?>*
253 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
254 + <div class="bws_hidden_help_text cr_min_260px">
255 + <?php
256 + $unlocker = get_option('aiomatic_minute_running_unlocked', false);
257 + if($unlocker == '1')
258 + {
259 + echo esc_html__("Select the interval in minutes after which you want this rule to run. Defined in minutes.", 'aiomatic-automatic-ai-content-writer');
260 + }
261 + else
262 + {
263 + echo esc_html__("Select the interval in hours after which you want this rule to run. Defined in hours.", 'aiomatic-automatic-ai-content-writer');
264 + }
265 + ?>
266 + </div>
267 + </div>
268 + </th>
269 + <th>
270 + <?php echo esc_html__("# Of Posts", 'aiomatic-automatic-ai-content-writer');?>*
271 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
272 + <div class="bws_hidden_help_text cr_min_260px">
273 + <?php
274 + echo esc_html__("Select the maximum number of posts that this rule can create at once.", 'aiomatic-automatic-ai-content-writer');
275 + ?>
276 + </div>
277 + </div>
278 + </th>
279 + <th>
280 + <?php echo esc_html__("Options", 'aiomatic-automatic-ai-content-writer');?>
281 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
282 + <div class="bws_hidden_help_text cr_min_260px">
283 + <?php
284 + echo esc_html__("Shows advanced settings for this rule.", 'aiomatic-automatic-ai-content-writer');
285 + ?>
286 + </div>
287 + </div>
288 + </th>
289 + <th class="cr_width_60">
290 + <?php echo esc_html__("Delete", 'aiomatic-automatic-ai-content-writer');?>
291 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
292 + <div class="bws_hidden_help_text cr_min_260px">
293 + <?php
294 + echo esc_html__("Do you want to delete this rule?", 'aiomatic-automatic-ai-content-writer');
295 + ?>
296 + </div>
297 + </div>
298 + </th>
299 + <th class="cr_width_60">
300 + <?php echo esc_html__("Active", 'aiomatic-automatic-ai-content-writer');?>
301 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
302 + <div class="bws_hidden_help_text cr_min_260px">
303 + <?php
304 + 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');
305 + ?>
306 + </div>
307 + </div>
308 + <br/>
309 + <input type="checkbox" onchange="thisonChangeHandler(this)" id="exclusion">
310 + </th>
311 + <th class="cr_width_160">
312 + <?php echo esc_html__("Info", 'aiomatic-automatic-ai-content-writer');?>
313 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
314 + <div class="bws_hidden_help_text cr_min_260px">
315 + <?php
316 + echo esc_html__("The number of items (posts, pages) this rule has generated so far.", 'aiomatic-automatic-ai-content-writer');
317 + ?>
318 + </div>
319 + </div>
320 + </th>
321 + <th class="cr_actions">
322 + <?php echo esc_html__("Actions", 'aiomatic-automatic-ai-content-writer');?>
323 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
324 + <div class="bws_hidden_help_text cr_min_260px">
325 + <?php
326 + echo esc_html__("Do you want to run this rule now? Note that only one instance of a rule is allowed at once.", 'aiomatic-automatic-ai-content-writer');
327 + ?>
328 + </div>
329 + </div>
330 + </th>
331 + </tr>
332 +
333 + </thead>
334 + <tbody>
335 + <?php
336 + echo aiomatic_expand_rules_review();
337 + if(isset($_GET['aiomatic_page']))
338 + {
339 + $current_page = $_GET['aiomatic_page'];
340 + }
341 + else
342 + {
343 + $current_page = '';
344 + }
345 + if($current_page == '' || (is_numeric($current_page) && $current_page == $max_pages))
346 + {
347 + ?>
348 +
349 + <tr>
350 + <td class="cr_short_td"><input type="text" name="aiomatic_review_list[rule_description][]" id="rule_description" class="cr_center" placeholder="Rule ID" value="" class="cr_width_full"/></td>
351 + <td class="cr_loi"><textarea rows="1" name="aiomatic_review_list[review_keyword][]" placeholder="Example: B07RZ74VLR" class="cr_width_full"></textarea></td>
352 + <td class="cr_comm_td"><input type="number" step="1" min="1" name="aiomatic_review_list[schedule][]" max="8765812" class="cr_width_60" placeholder="Select the rule schedule interval" value="24"/></td>
353 + <td class="cr_comm_td"><input type="number" step="1" min="0" name="aiomatic_review_list[max][]" class="cr_width_60" placeholder="Select the # of generated posts" value="1" /></td>
354 + <td class="cr_width_70 cr_center">
355 + <input type="button" id="mybtnfzr" value="Settings">
356 + <div id="mymodalfzr" class="codemodalfzr">
357 + <div class="codemodalfzr-content">
358 + <div class="codemodalfzr-header">
359 + <span id="aiomatic_close" class="codeclosefzr">&times;</span>
360 + <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>
361 + </div>
362 + <div class="codemodalfzr-body">
363 + <div class="table-responsive">
364 + <table class="responsive table cr_main_table_nowr">
365 + <tr><td colspan="2">
366 + <h3><?php echo esc_html__("AI Assistant Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
367 + </td></tr>
368 + <tr>
369 + <td class="cr_min_width_200">
370 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
371 + <div class="bws_hidden_help_text cr_min_260px">
372 + <?php
373 + echo esc_html__("Select the AI Assistant to use for content creation. 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');
374 + ?>
375 + </div>
376 + </div>
377 + <b><?php echo esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer');?></b>
378 + </td>
379 + <td><select id="assistant_id" name="aiomatic_review_list[assistant_id][]" class="cr_width_full" onchange="assistantSelected('');">
380 + <?php
381 + if($all_assistants === false)
382 + {
383 + echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
384 + }
385 + else
386 + {
387 + if(count($all_assistants) == 0)
388 + {
389 + 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>';
390 + }
391 + else
392 + {
393 + echo '<option value="" selected';
394 + echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
395 + foreach($all_assistants as $myassistant)
396 + {
397 + echo '<option value="' . esc_html($myassistant->ID) .'"';
398 + echo '>' . esc_html($myassistant->post_title);
399 + echo '</option>';
400 + }
401 + }
402 + }
403 + ?>
404 + </select>
405 + </td>
406 + </tr>
407 + <tr><td colspan="2">
408 + <h3><?php echo esc_html__("Amazon Search Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
409 + </td></tr>
410 + <tr>
411 + <td>
412 + <div>
413 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
414 + <div class="bws_hidden_help_text cr_min_260px">
415 + <?php
416 + echo sprintf( wp_kses( __( "Insert your Amazon Associate ID (Optional). Learn how to get one <a href='%s' target='_blank'>here</a>. Also, you need to sign up for Amazon Affiliate program <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html', 'https://affiliate-program.amazon.com/assoc_credentials/home' );
417 + ?>
418 + </div>
419 + </div>
420 + <b><?php echo esc_html__("Amazon Associate ID (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
421 + </td>
422 + <td>
423 + <input type="text" name="aiomatic_review_list[affiliate_id][]" value="" placeholder="Please insert your Amazon Affiliate ID" class="cr_width_full">
424 + </td>
425 + </tr>
426 + <tr>
427 + <td>
428 + <div>
429 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
430 + <div class="bws_hidden_help_text cr_min_260px">
431 + <?php
432 + echo esc_html__("Select the country where you have registred your affiliate account.", 'aiomatic-automatic-ai-content-writer');
433 + ?>
434 + </div>
435 + </div>
436 + <b><?php echo esc_html__("Amazon Target Country:", 'aiomatic-automatic-ai-content-writer');?></b>
437 + </td>
438 + <td>
439 + <select id="source" name="aiomatic_review_list[target_country][]" class="cr_width_full">
440 + <?php
441 + $amaz_countries = aiomatic_get_amazon_codes();
442 + foreach ($amaz_countries as $key => $value) {
443 + echo '<option value="' . esc_html($key) . '">' . esc_html($value) . '</option>';
444 + }
445 + ?>
446 + </select>
447 + </td>
448 + </tr>
449 + <tr><td colspan="2">
450 + <h3><?php echo esc_html__("AI Writer Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
451 + </td></tr>
452 + <tr>
453 + <td class="cr_min_width_200">
454 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
455 + <div class="bws_hidden_help_text cr_min_260px">
456 + <?php
457 + echo esc_html__("Enter a list of post sections, one per line. These will be headings of the content. These can also be automatically generated by the plugin. To enable auto generating of sections, leave this field blank. This will set the value of the %%sections%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you set a section list here, each created article will have this same list of sections, because of this, use shortcodes or Spintax when defining these static topics or leave this field blank for the plugin to auto generate them!", 'aiomatic-automatic-ai-content-writer');
458 + ?>
459 + </div>
460 + </div>
461 + <b><?php echo esc_html__("Post Sections List (Optional):", 'aiomatic-automatic-ai-content-writer');?></b>
462 + </td>
463 + <td>
464 + <textarea rows="2" cols="70" name="aiomatic_review_list[post_sections_list][]" placeholder="Post sections list (one per line)" class="cr_width_full"></textarea>
465 + </td>
466 + </tr>
467 + <tr>
468 + <td>
469 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
470 + <div class="bws_hidden_help_text cr_min_260px">
471 + <?php
472 + echo esc_html__("Enter the number of sections to create in the article. These will also be set as article headings. You can also set value ranges, example: 5-7. In this case, a random number will be selected in this range. Please use only numeric values in this field. This field will set the value of the %%sections_count%% shortcode.", 'aiomatic-automatic-ai-content-writer');
473 + ?>
474 + </div>
475 + </div>
476 + <b><?php echo esc_html__("Number Of Content Sections To Generate:", 'aiomatic-automatic-ai-content-writer');?></b>
477 + </td>
478 + <td class="cr_min_width_200">
479 + <input type="text" id="section_count" name="aiomatic_review_list[section_count][]" placeholder="3-4" class="cr_width_full" value="3-4">
480 + </td>
481 + </tr>
482 + <tr>
483 + <td>
484 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
485 + <div class="bws_hidden_help_text cr_min_260px">
486 + <?php
487 + echo esc_html__("Select what you want to do with product titles in articles.", 'aiomatic-automatic-ai-content-writer');
488 + ?>
489 + </div>
490 + </div>
491 + <b><?php echo esc_html__("Add Headings To Content As:", 'aiomatic-automatic-ai-content-writer');?></b>
492 + </td>
493 + <td>
494 + <select autocomplete="off" class="cr_width_full" id="sections_role" name="aiomatic_review_list[sections_role][]">
495 + <option value="h2" selected><?php echo esc_html__("h2", 'aiomatic-automatic-ai-content-writer');?></option>
496 + <option value="h3"><?php echo esc_html__("h3", 'aiomatic-automatic-ai-content-writer');?></option>
497 + <option value="b"><?php echo esc_html__("Bold", 'aiomatic-automatic-ai-content-writer');?></option>
498 + <option value="i"><?php echo esc_html__("Italic", 'aiomatic-automatic-ai-content-writer');?></option>
499 + <option value="bi"><?php echo esc_html__("Bold and Italic", 'aiomatic-automatic-ai-content-writer');?></option>
500 + <option value="p"><?php echo esc_html__("Paragraph", 'aiomatic-automatic-ai-content-writer');?></option>
501 + <option value="x"><?php echo esc_html__("Plain Text", 'aiomatic-automatic-ai-content-writer');?></option>
502 + <option value="no"><?php echo esc_html__("Don't Add Sections", 'aiomatic-automatic-ai-content-writer');?></option>
503 + </select>
504 + </td>
505 + </tr>
506 + <tr>
507 + <td>
508 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
509 + <div class="bws_hidden_help_text cr_min_260px">
510 + <?php
511 + echo esc_html__("Enter the number of paragraphs to create for each section. These will also be set as article headings. You can also set value ranges, example: 5-7. In this case, a random number will be selected in this range. Please use only numeric values in this field. This field will set the value of the %%paragraphs_per_section%% shortcode.", 'aiomatic-automatic-ai-content-writer');
512 + ?>
513 + </div>
514 + </div>
515 + <b><?php echo esc_html__("Number Of Paragraphs Per Section:", 'aiomatic-automatic-ai-content-writer');?></b>
516 + </td>
517 + <td class="cr_min_width_200">
518 + <input type="text" id="paragraph_count" name="aiomatic_review_list[paragraph_count][]" placeholder="2-3" class="cr_width_full" value="2">
519 + </td>
520 + </tr>
521 + <tr>
522 + <td class="cr_min_width_200">
523 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
524 + <div class="bws_hidden_help_text cr_min_260px">
525 + <?php
526 + echo esc_html__("Select if you want to add the product image to the article.", 'aiomatic-automatic-ai-content-writer');
527 + ?>
528 + </div>
529 + </div>
530 + <b><?php echo esc_html__("Add Product Images To The Article:", 'aiomatic-automatic-ai-content-writer');?></b>
531 + </td>
532 + <td>
533 + <input type="checkbox" id="topic_images" name="aiomatic_review_list[topic_images][]" checked>
534 + </td>
535 + </tr>
536 + <tr>
537 + <td class="cr_min_width_200">
538 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
539 + <div class="bws_hidden_help_text cr_min_260px">
540 + <?php
541 + echo esc_html__("Select if you don't want to add the product links directly to headings.", 'aiomatic-automatic-ai-content-writer');
542 + ?>
543 + </div>
544 + </div>
545 + <b><?php echo esc_html__("Don't Add Product Links to Headings:", 'aiomatic-automatic-ai-content-writer');?></b>
546 + </td>
547 + <td>
548 + <input type="checkbox" id="no_headlink" name="aiomatic_review_list[no_headlink][]">
549 + </td>
550 + </tr>
551 + <tr>
552 + <td class="cr_min_width_200">
553 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
554 + <div class="bws_hidden_help_text cr_min_260px">
555 + <?php
556 + echo esc_html__("Select if you would like to add a relevant Social Network Embed to the end of the created article. You can select the source of the social embeds, in the plugin's 'Settings' menu -> 'Bulk Posts' tab -> 'Social Networks To Get Embeds From In AI Created Articles' settings field.", 'aiomatic-automatic-ai-content-writer');
557 + ?>
558 + </div>
559 + </div>
560 + <b><?php echo esc_html__("Add A Relevant Social Network Embed To The Article:", 'aiomatic-automatic-ai-content-writer');?></b>
561 + </td>
562 + <td>
563 + <input type="checkbox" id="topic_videos" name="aiomatic_review_list[topic_videos][]">
564 + </td>
565 + </tr>
566 + <tr>
567 + <td>
568 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
569 + <div class="bws_hidden_help_text cr_min_260px">
570 + <?php
571 + echo esc_html__("Set the text of the outro section header. This is optional.", 'aiomatic-automatic-ai-content-writer');
572 + ?>
573 + </div>
574 + </div>
575 + <b><?php echo esc_html__("Article Outro Section Header Text:", 'aiomatic-automatic-ai-content-writer');?></b>
576 + </td>
577 + <td>
578 + <input type="text" name="aiomatic_review_list[title_outro][]" value="{Experience the Difference|Unlock Your Potential|Elevate Your Lifestyle|Embrace a New Era|Seize the Opportunity|Discover the Power|Transform Your World|Unleash Your True Potential|Embody Excellence|Achieve New Heights|Experience Innovation|Ignite Your Passion|Reveal the Extraordinary}" placeholder="Optional" class="cr_width_full">
579 + </td>
580 + </tr>
581 + <tr>
582 + <td class="hideTOC-1">
583 + <div>
584 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
585 + <div class="bws_hidden_help_text cr_min_260px">
586 + <?php
587 + echo esc_html__("Select if you want to add a Table of Contents section to the created post.", 'aiomatic-automatic-ai-content-writer');
588 + ?>
589 + </div>
590 + </div>
591 + <b><?php echo esc_html__("Add Article 'Table Of Contents':", 'aiomatic-automatic-ai-content-writer');?></b>
592 + </td>
593 + <td class="hideTOC-1">
594 + <input type="checkbox" id="enable_toc" name="aiomatic_review_list[enable_toc][]">
595 + </td>
596 + </tr>
597 + <tr>
598 + <td class="hideTOC-1">
599 + <div>
600 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
601 + <div class="bws_hidden_help_text cr_min_260px">
602 + <?php
603 + echo esc_html__("Set the text of the Table of Contents section header. Default is: Table of Contents", 'aiomatic-automatic-ai-content-writer');
604 + ?>
605 + </div>
606 + </div>
607 + <b><?php echo esc_html__("Article 'Table Of Contents' Section Header Text:", 'aiomatic-automatic-ai-content-writer');?></b>
608 + </td>
609 + <td class="hideTOC-1">
610 + <input type="text" name="aiomatic_review_list[title_toc][]" value="Table of Contents" placeholder="Table of Contents" class="cr_width_full">
611 + </td>
612 + </tr>
613 + <tr>
614 + <td>
615 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
616 + <div class="bws_hidden_help_text cr_min_260px">
617 + <?php
618 + echo esc_html__("Select if you want to add a Customer Reviews Analysis section to the created post. To enable Customer Reviews Analysis for articles, be sure to add a prompt also in the 'Article Customer Reviews Analysis Prompt' settings field from below.", 'aiomatic-automatic-ai-content-writer');
619 + ?>
620 + </div>
621 + </div>
622 + <b><?php echo esc_html__("Add Article 'Customer Reviews Analysis' Section:", 'aiomatic-automatic-ai-content-writer');?></b>
623 + </td>
624 + <td>
625 + <input type="checkbox" id="enable_reviews" name="aiomatic_review_list[enable_reviews][]">
626 + </td>
627 + </tr>
628 + <tr>
629 + <td>
630 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
631 + <div class="bws_hidden_help_text cr_min_260px">
632 + <?php
633 + echo esc_html__("Set the text of the Customer Reviews Analysis section header. Default is: Customer Reviews Analysis", 'aiomatic-automatic-ai-content-writer');
634 + ?>
635 + </div>
636 + </div>
637 + <b><?php echo esc_html__("Article 'Customer Reviews Analysis' Section Header Text:", 'aiomatic-automatic-ai-content-writer');?></b>
638 + </td>
639 + <td>
640 + <input type="text" name="aiomatic_review_list[title_reviews][]" value="Customer Reviews Analysis" placeholder="Customer Reviews Analysis" class="cr_width_full">
641 + </td>
642 + </tr>
643 + <tr>
644 + <td>
645 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
646 + <div class="bws_hidden_help_text cr_min_260px">
647 + <?php
648 + echo esc_html__("Select if you want to add a Pros & Cons section to the created post. To enable Pros & Cons for articles, be sure to add a prompt also in the 'Article Pros & Cons Prompt' settings field from below.", 'aiomatic-automatic-ai-content-writer');
649 + ?>
650 + </div>
651 + </div>
652 + <b><?php echo esc_html__("Add Article 'Pros & Cons' Section:", 'aiomatic-automatic-ai-content-writer');?></b>
653 + </td>
654 + <td>
655 + <input type="checkbox" id="enable_proscons" name="aiomatic_review_list[enable_proscons][]">
656 + </td>
657 + </tr>
658 + <tr>
659 + <td>
660 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
661 + <div class="bws_hidden_help_text cr_min_260px">
662 + <?php
663 + echo esc_html__("Set the text of the Pros & Cons section header. Default is: Pros & Cons", 'aiomatic-automatic-ai-content-writer');
664 + ?>
665 + </div>
666 + </div>
667 + <b><?php echo esc_html__("Article 'Pros & Cons' Section Header Text:", 'aiomatic-automatic-ai-content-writer');?></b>
668 + </td>
669 + <td>
670 + <input type="text" name="aiomatic_review_list[title_proscons][]" value="Pros & Cons" placeholder="Pros & Cons" class="cr_width_full">
671 + </td>
672 + </tr>
673 + <tr>
674 + <td>
675 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
676 + <div class="bws_hidden_help_text cr_min_260px">
677 + <?php
678 + echo esc_html__("Select if you want to add a Q&A section to the created post. To enable Q&A for articles, be sure to add a prompt also in the 'Article Q&A Prompt' settings field from below.", 'aiomatic-automatic-ai-content-writer');
679 + ?>
680 + </div>
681 + </div>
682 + <b><?php echo esc_html__("Add Article 'Q&A' Section:", 'aiomatic-automatic-ai-content-writer');?></b>
683 + </td>
684 + <td>
685 + <input type="checkbox" id="enable_qa" name="aiomatic_review_list[enable_qa][]">
686 + </td>
687 + </tr>
688 + <tr>
689 + <td>
690 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
691 + <div class="bws_hidden_help_text cr_min_260px">
692 + <?php
693 + echo esc_html__("Set the text of the Q&A section header. Default is: Q&A", 'aiomatic-automatic-ai-content-writer');
694 + ?>
695 + </div>
696 + </div>
697 + <b><?php echo esc_html__("Article 'Q&A' Section Header Text:", 'aiomatic-automatic-ai-content-writer');?></b>
698 + </td>
699 + <td>
700 + <input type="text" name="aiomatic_review_list[title_qa][]" value="Q&A" placeholder="Q&A" class="cr_width_full">
701 + </td>
702 + </tr>
703 + <tr><td colspan="2">
704 + <h4><?php echo esc_html__("Content Parameters", 'aiomatic-automatic-ai-content-writer');?>:</h4>
705 + </td></tr>
706 + <tr>
707 + <td class="cr_min_width_200">
708 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
709 + <div class="bws_hidden_help_text cr_min_260px">
710 + <?php
711 + echo esc_html__("Set the language of the created content. This will set the value of the %%language%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
712 + ?>
713 + </div>
714 + </div>
715 + <b><?php echo esc_html__("Content Language:", 'aiomatic-automatic-ai-content-writer');?></b>
716 + </td>
717 + <td>
718 + <input id="content_language" name="aiomatic_review_list[content_language][]" type="text" list="languages" placeholder="Created content language" class="coderevolution_gutenberg_input" value="English"/>
719 + <datalist id="languages">
720 + <?php
721 + foreach($aiomatic_language_names as $ln)
722 + {
723 + echo '<option>' . esc_html($ln) . '</option>';
724 + }
725 + ?>
726 + </datalist>
727 + </td>
728 + </tr>
729 + <tr>
730 + <td class="cr_min_width_200">
731 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
732 + <div class="bws_hidden_help_text cr_min_260px">
733 + <?php
734 + echo esc_html__("Set the writing style of the created content. This will set the value of the %%writing_style%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
735 + ?>
736 + </div>
737 + </div>
738 + <b><?php echo esc_html__("Writing Style:", 'aiomatic-automatic-ai-content-writer');?></b>
739 + </td>
740 + <td>
741 + <input id="writing_style" name="aiomatic_review_list[writing_style][]" type="text" placeholder="Created content writing style" list="writing_styles" class="coderevolution_gutenberg_input" value="Creative"/>
742 + <datalist id="writing_styles">
743 + <option>Informative</option>
744 + <option>Academic</option>
745 + <option>Descriptive</option>
746 + <option>Detailed</option>
747 + <option>Dramative</option>
748 + <option>Fiction</option>
749 + <option>Expository</option>
750 + <option>Historical</option>
751 + <option>Dialogue</option>
752 + <option>Creative</option>
753 + <option>Critical</option>
754 + <option>Narrative</option>
755 + <option>Persuasive</option>
756 + <option>Reflective</option>
757 + <option>Argumentative</option>
758 + <option>Analytical</option>
759 + <option>Blog</option>
760 + <option>News</option>
761 + <option>Casual</option>
762 + <option>Pastoral</option>
763 + <option>Personal</option>
764 + <option>Poetic</option>
765 + <option>Satirical</option>
766 + <option>Sensory</option>
767 + <option>Articulate</option>
768 + <option>Monologue</option>
769 + <option>Colloquial</option>
770 + <option>Comparative</option>
771 + <option>Concise</option>
772 + <option>Biographical</option>
773 + <option>Anecdotal</option>
774 + <option>Evaluative</option>
775 + <option>Letter</option>
776 + <option>Lyrical</option>
777 + <option>Simple</option>
778 + <option>Vivid</option>
779 + <option>Journalistic</option>
780 + <option>Technical</option>
781 + <option>Direct</option>
782 + <option>Emotional</option>
783 + <option>Metaphorical</option>
784 + <option>Objective</option>
785 + <option>Rhetorical</option>
786 + <option>Theoretical</option>
787 + <option>Business</option>
788 + <option>Report</option>
789 + <option>Research</option>
790 + </datalist>
791 + </td>
792 + </tr>
793 + <tr>
794 + <td class="cr_min_width_200">
795 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
796 + <div class="bws_hidden_help_text cr_min_260px">
797 + <?php
798 + echo esc_html__("Set the writing tone of the created content. This will set the value of the %%writing_tone%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
799 + ?>
800 + </div>
801 + </div>
802 + <b><?php echo esc_html__("Writing Tone:", 'aiomatic-automatic-ai-content-writer');?></b>
803 + </td>
804 + <td>
805 + <input id="writing_tone" name="aiomatic_review_list[writing_tone][]" type="text" list="writing_tones" placeholder="Created content writing tone" class="coderevolution_gutenberg_input" value="Neutral"/>
806 + <datalist id="writing_tones">
807 + <option>Neutral</option>
808 + <option>Formal</option>
809 + <option>Assertive</option>
810 + <option>Cheerful</option>
811 + <option>Humorous</option>
812 + <option>Informal</option>
813 + <option>Inspirational</option>
814 + <option>Professional</option>
815 + <option>Emotional</option>
816 + <option>Persuasive</option>
817 + <option>Supportive</option>
818 + <option>Sarcastic</option>
819 + <option>Condescending</option>
820 + <option>Skeptical</option>
821 + <option>Narrative</option>
822 + <option>Journalistic</option>
823 + <option>Conversational</option>
824 + <option>Factual</option>
825 + <option>Friendly</option>
826 + <option>Polite</option>
827 + <option>Scientific</option>
828 + <option>Sensitive</option>
829 + <option>Sincere</option>
830 + <option>Curious</option>
831 + <option>Dissapointed</option>
832 + <option>Encouraging</option>
833 + <option>Optimistic</option>
834 + <option>Surprised</option>
835 + <option>Worried</option>
836 + <option>Confident</option>
837 + <option>Authoritative</option>
838 + <option>Nostalgic</option>
839 + <option>Sympathetic</option>
840 + <option>Suspenseful</option>
841 + <option>Romantic</option>
842 + <option>Serious</option>
843 + </datalist>
844 + </td>
845 + </tr>
846 + <tr>
847 + <td class="cr_min_width_200">
848 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
849 + <div class="bws_hidden_help_text cr_min_260px">
850 + <?php
851 + echo esc_html__("Select the point of view of the article.", 'aiomatic-automatic-ai-content-writer');
852 + ?>
853 + </div>
854 + </div>
855 + <b><?php echo esc_html__("Point Of View:", 'aiomatic-automatic-ai-content-writer');?></b>
856 + </td>
857 + <td>
858 + <select autocomplete="off" class="cr_width_full" id="point_of_view" name="aiomatic_review_list[point_of_view][]">
859 + <option value="First Person Singular (I, me, my, mine)"><?php echo esc_html__("First Person Singular (I, me, my, mine)", 'aiomatic-automatic-ai-content-writer');?></option>
860 + <option value="First Person Plural (we, us, our, ours)" selected><?php echo esc_html__("First Person Plural (we, us, our, ours)", 'aiomatic-automatic-ai-content-writer');?></option>
861 + <option value="Second Person Singular (you, your, yours)"><?php echo esc_html__("Second Person Singular (you, your, yours)", 'aiomatic-automatic-ai-content-writer');?></option>
862 + <option value="Second Person Plural (you [plural], y'all, you guys)"><?php echo esc_html__("Second Person Plural (you [plural], y'all, you guys)", 'aiomatic-automatic-ai-content-writer');?></option>
863 + <option value="Third Person Singular (he, she, it)"><?php echo esc_html__("Third Person Singular (he, she, it)", 'aiomatic-automatic-ai-content-writer');?></option>
864 + <option value="Third Person Plural (they, them, theirs, themselves)"><?php echo esc_html__("Third Person Plural (they, them, theirs, themselves)", 'aiomatic-automatic-ai-content-writer');?></option>
865 + </select>
866 + </td>
867 + </tr>
868 + <tr><td colspan="2">
869 + <h4><?php echo esc_html__("Prompts", 'aiomatic-automatic-ai-content-writer');?>:</h4>
870 + </td></tr>
871 + <tr>
872 + <td class="cr_min_width_200">
873 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
874 + <div class="bws_hidden_help_text cr_min_260px">
875 + <?php
876 + echo esc_html__("Prompt to be used for the Post Title. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
877 + ?>
878 + </div>
879 + </div>
880 + <b><?php echo esc_html__("Title Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
881 + </td>
882 + <td>
883 + <textarea rows="2" cols="70" name="aiomatic_review_list[title_prompt][]" placeholder="Enter your title prompts, one per line" class="cr_width_full">Write a title for a product review blog post of the following product: "%%product_title%%", in %%language%% language. Style: %%writing_style%%. Tone: %%writing_tone%%. Point of View: %%point_of_view%%. The title must be between 40 and 60 characters. The description of the product is: "%%product_description%%".</textarea>
884 + </td>
885 + </tr>
886 + <tr>
887 + <td>
888 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
889 + <div class="bws_hidden_help_text cr_min_260px">
890 + <?php
891 + echo esc_html__("Select the AI Model to be used for the title generator.", 'aiomatic-automatic-ai-content-writer');
892 + ?>
893 + </div>
894 + </div>
895 + <b><?php echo esc_html__("AI Model For Title Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
896 + </td>
897 + <td class="cr_min_width_200">
898 + <select autocomplete="off" id="topic_title_model" name="aiomatic_review_list[topic_title_model][]" class="hideAssistant cr_width_full">
899 + <?php
900 + foreach($all_models as $modelx)
901 + {
902 + echo '<option value="' . esc_html($modelx) .'"';
903 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
904 + }
905 + ?>
906 + </select>
907 + </td>
908 + </tr>
909 + <tr>
910 + <td class="cr_min_width_200">
911 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
912 + <div class="bws_hidden_help_text cr_min_260px">
913 + <?php
914 + echo esc_html__("Prompt to be used for the intro of the article. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
915 + ?>
916 + </div>
917 + </div>
918 + <b><?php echo esc_html__("Article Intro Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
919 + </td>
920 + <td>
921 + <textarea rows="2" cols="70" name="aiomatic_review_list[intro_prompt][]" placeholder="Enter your intro prompts, one per line" class="cr_width_full">Write an introduction for a product review blog post of the following product: "%%product_title%%". The post is reviewing the product "%%product_title%%", in %%language%% language. Style: %%writing_style%%. Tone: %%writing_tone%%. Point of View: %%point_of_view%%. Write as if you had first-hand experience with the product you are describing. The description of the product is: "%%product_description%%".</textarea>
922 + </td>
923 + </tr>
924 + <tr>
925 + <td>
926 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
927 + <div class="bws_hidden_help_text cr_min_260px">
928 + <?php
929 + echo esc_html__("Select the AI Model to be used for the intro generator.", 'aiomatic-automatic-ai-content-writer');
930 + ?>
931 + </div>
932 + </div>
933 + <b><?php echo esc_html__("AI Model For Intro Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
934 + </td>
935 + <td class="cr_min_width_200">
936 + <select autocomplete="off" id="topic_intro_model" name="aiomatic_review_list[topic_intro_model][]" class="hideAssistant cr_width_full">
937 + <?php
938 + foreach($all_models as $modelx)
939 + {
940 + echo '<option value="' . esc_html($modelx) .'"';
941 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
942 + }
943 + ?>
944 + </select>
945 + </td>
946 + </tr>
947 + <tr>
948 + <td class="cr_min_width_200">
949 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
950 + <div class="bws_hidden_help_text cr_min_260px">
951 + <?php
952 + echo esc_html__("Prompt to be used for the main Sections of the article. These will be set also as headings in the article. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%sections_count%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
953 + ?>
954 + </div>
955 + </div>
956 + <b><?php echo esc_html__("Article Sections Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
957 + </td>
958 + <td>
959 + <textarea rows="2" cols="70" name="aiomatic_review_list[sections_prompt][]" placeholder="Enter your sections prompts, one per line" class="cr_width_full">Write %%sections_count%% consecutive headings for a product review article of the "%%product_title%%" product, that starts with an overview, highlights specific features and aspects of the product, provides detailed insights and specific recommendations. The headings should be written in %%language%%, following a %%writing_style%% style and a %%writing_tone%% tone. Point of view: %%point_of_view%%. Don't add numbers to the headings, hyphens or any types of quotes. Write as if you had first-hand experience with the product you are describing. Return only the headings list, nothing else.</textarea>
960 + </td>
961 + </tr>
962 + <tr>
963 + <td>
964 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
965 + <div class="bws_hidden_help_text cr_min_260px">
966 + <?php
967 + echo esc_html__("Select the AI Model to be used for the sections generator.", 'aiomatic-automatic-ai-content-writer');
968 + ?>
969 + </div>
970 + </div>
971 + <b><?php echo esc_html__("AI Model For Sections Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
972 + </td>
973 + <td class="cr_min_width_200">
974 + <select autocomplete="off" id="topic_sections_model" name="aiomatic_review_list[topic_sections_model][]" class="hideAssistant cr_width_full">
975 + <?php
976 + foreach($all_models as $modelx)
977 + {
978 + echo '<option value="' . esc_html($modelx) .'"';
979 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
980 + }
981 + ?>
982 + </select>
983 + </td>
984 + </tr>
985 + <tr>
986 + <td class="cr_min_width_200">
987 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
988 + <div class="bws_hidden_help_text cr_min_260px">
989 + <?php
990 + echo esc_html__("Prompt to be used for the Content of the article, which will be applied to each section heading generated by the plugin (or entered manually) or to the entire content (depending how you select using the 'Use the Above Content Prompt To Create The Entire Article' checkbox). You can use the following shortcodes: %current_section%%, %%article_so_far%%, %%last_section_content%%, %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
991 + ?>
992 + </div>
993 + </div>
994 + <b><?php echo esc_html__("Content Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
995 + </td>
996 + <td>
997 + <textarea rows="3" cols="70" name="aiomatic_review_list[content_prompt][]" placeholder="Enter your content prompt" class="cr_width_full">Write the content of a product review post, for the following section heading: "%%current_section%%". The post is reviewing the product "%%product_title%%" in %%language%%. Don't repeat the product title in the created content, also don't be repetitive in general. Don't add an intro or outro. Write %%paragraphs_per_section%% paragraphs in the section. Use HTML for formatting, include unnumbered lists and bold. When applicable, add also HTML tables with WordPress styling (you can use WordPress table classes). If added, table data must be relevant, creative, short and simple. Act as a Content Writer, not as a Virtual Assistant. Return only the content requested, without any additional comments or text. The content provided will be automatically published on my website. Add a engaging Call to Action link to: %%aff_url%%. Be sure to add the following HTML classes to the call to action button: "button btn btn-primary". Writing Style: %%writing_style%%. Tone: %%writing_tone%%. Point Of View: %%point_of_view%%. Extract content from the following product description: "%%product_description%%".</textarea>
998 + </td>
999 + </tr>
1000 + <tr>
1001 + <td>
1002 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1003 + <div class="bws_hidden_help_text cr_min_260px">
1004 + <?php
1005 + echo esc_html__("Select the AI Model to be used for the content generator.", 'aiomatic-automatic-ai-content-writer');
1006 + ?>
1007 + </div>
1008 + </div>
1009 + <b><?php echo esc_html__("AI Model For Content Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1010 + </td>
1011 + <td class="cr_min_width_200">
1012 + <select autocomplete="off" id="topic_content_model" name="aiomatic_review_list[topic_content_model][]" class="hideAssistant cr_width_full">
1013 + <?php
1014 + foreach($all_models as $modelx)
1015 + {
1016 + echo '<option value="' . esc_html($modelx) .'"';
1017 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1018 + }
1019 + ?>
1020 + </select>
1021 + </td>
1022 + </tr>
1023 + <tr>
1024 + <td class="cr_min_width_200">
1025 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1026 + <div class="bws_hidden_help_text cr_min_260px">
1027 + <?php
1028 + echo esc_html__("Prompt to be used for the Customer Reviews Analysis section of the article. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
1029 + ?>
1030 + </div>
1031 + </div>
1032 + <b><?php echo esc_html__("Article Customer Reviews Analysis Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
1033 + </td>
1034 + <td>
1035 + <textarea rows="2" cols="70" name="aiomatic_review_list[reviews_prompt][]" placeholder="Enter your Customer Reviews Analysis prompts, one per line" class="cr_width_full">Write the content of a "Customer Reviews Analysis" section for a product review blog post for the following product: "%%product_title%%". The title of the blog post is: "%%post_title%%", in %%language%%. Style: %%writing_style%%. Tone: %%writing_tone%%. Point Of View: %%point_of_view%%. Use HTML for formatting. When applicable, add also HTML tables with WordPress styling (you can use WordPress table classes). If added, table data must be relevant, creative, short and simple. List of customer reviews: "%%product_reviews%%". </textarea>
1036 + </td>
1037 + </tr>
1038 + <tr>
1039 + <td>
1040 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1041 + <div class="bws_hidden_help_text cr_min_260px">
1042 + <?php
1043 + echo esc_html__("Select the AI Model to be used for the Customer Reviews Analysis generator.", 'aiomatic-automatic-ai-content-writer');
1044 + ?>
1045 + </div>
1046 + </div>
1047 + <b><?php echo esc_html__("AI Model For Customer Reviews Analysis Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1048 + </td>
1049 + <td class="cr_min_width_200">
1050 + <select autocomplete="off" id="topic_reviews_model" name="aiomatic_review_list[topic_reviews_model][]" class="hideAssistant cr_width_full">
1051 + <?php
1052 + foreach($all_models as $modelx)
1053 + {
1054 + echo '<option value="' . esc_html($modelx) .'"';
1055 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1056 + }
1057 + ?>
1058 + </select>
1059 + </td>
1060 + </tr>
1061 + <tr>
1062 + <td class="cr_min_width_200">
1063 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1064 + <div class="bws_hidden_help_text cr_min_260px">
1065 + <?php
1066 + echo esc_html__("Prompt to be used for the Pros & Cons section of the article. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
1067 + ?>
1068 + </div>
1069 + </div>
1070 + <b><?php echo esc_html__("Article Pros & Cons Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
1071 + </td>
1072 + <td>
1073 + <textarea rows="2" cols="70" name="aiomatic_review_list[proscons_prompt][]" placeholder="Enter your Pros & Cons prompts, one per line" class="cr_width_full">Write the content of a "Pros & Cons" section for a product review blog post for the following product: "%%product_title%%". The title of the blog post is: "%%post_title%%", in %%language%%. Style: %%writing_style%%. Tone: %%writing_tone%%. Point Of View: %%point_of_view%%.Use HTML for formatting. When applicable, add also HTML tables with WordPress styling (you can use WordPress table classes). If added, table data must be relevant, creative, short and simple. Product description: "%%product_description%%". </textarea>
1074 + </td>
1075 + </tr>
1076 + <tr>
1077 + <td>
1078 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1079 + <div class="bws_hidden_help_text cr_min_260px">
1080 + <?php
1081 + echo esc_html__("Select the AI Model to be used for the Pros & Cons generator.", 'aiomatic-automatic-ai-content-writer');
1082 + ?>
1083 + </div>
1084 + </div>
1085 + <b><?php echo esc_html__("AI Model For Pros & Cons Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1086 + </td>
1087 + <td class="cr_min_width_200">
1088 + <select autocomplete="off" id="topic_proscons_model" name="aiomatic_review_list[topic_proscons_model][]" class="hideAssistant cr_width_full">
1089 + <?php
1090 + foreach($all_models as $modelx)
1091 + {
1092 + echo '<option value="' . esc_html($modelx) .'"';
1093 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1094 + }
1095 + ?>
1096 + </select>
1097 + </td>
1098 + </tr>
1099 + <tr>
1100 + <td class="cr_min_width_200">
1101 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1102 + <div class="bws_hidden_help_text cr_min_260px">
1103 + <?php
1104 + echo esc_html__("Prompt to be used for the Q&A of the article. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
1105 + ?>
1106 + </div>
1107 + </div>
1108 + <b><?php echo esc_html__("Article Q&A Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
1109 + </td>
1110 + <td>
1111 + <textarea rows="2" cols="70" name="aiomatic_review_list[qa_prompt][]" placeholder="Enter your Q&A prompts, one per line" class="cr_width_full">Write the content of a Q&A section for a product review blog post for the following product: "%%product_title%%". The title of the blog post is: "%%post_title%%", in %%language%%. Style: %%writing_style%%. Tone: %%writing_tone%%. Point Of View: %%point_of_view%%. Product description: "%%product_description%%".</textarea>
1112 + </td>
1113 + </tr>
1114 + <tr>
1115 + <td>
1116 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1117 + <div class="bws_hidden_help_text cr_min_260px">
1118 + <?php
1119 + echo esc_html__("Select the AI Model to be used for the Q&A generator.", 'aiomatic-automatic-ai-content-writer');
1120 + ?>
1121 + </div>
1122 + </div>
1123 + <b><?php echo esc_html__("AI Model For Q&A Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1124 + </td>
1125 + <td class="cr_min_width_200">
1126 + <select autocomplete="off" id="topic_qa_model" name="aiomatic_review_list[topic_qa_model][]" class="hideAssistant cr_width_full">
1127 + <?php
1128 + foreach($all_models as $modelx)
1129 + {
1130 + echo '<option value="' . esc_html($modelx) .'"';
1131 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1132 + }
1133 + ?>
1134 + </select>
1135 + </td>
1136 + </tr>
1137 + <tr>
1138 + <td class="cr_min_width_200">
1139 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1140 + <div class="bws_hidden_help_text cr_min_260px">
1141 + <?php
1142 + echo esc_html__("Prompt to be used for the outro of the article. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
1143 + ?>
1144 + </div>
1145 + </div>
1146 + <b><?php echo esc_html__("Article Outro Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
1147 + </td>
1148 + <td>
1149 + <textarea rows="2" cols="70" name="aiomatic_review_list[outro_prompt][]" placeholder="Enter your outro prompts, one per line" class="cr_width_full">Write an outro for a product review blog post, for the product: "%%product_title%%". The post has the following title: "%%post_title%%", in %%language%%. Style: %%writing_style%%. Tone: %%writing_tone%%. Point Of View: %%point_of_view%%. Product description: "%%product_description%%". Add also an engaging final call to action link, in a clickable HTML format (don't use markdown language), leading to the link of the product: "%%aff_url%%".</textarea>
1150 + </td>
1151 + </tr>
1152 + <tr>
1153 + <td>
1154 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1155 + <div class="bws_hidden_help_text cr_min_260px">
1156 + <?php
1157 + echo esc_html__("Select the AI Model to be used for the outro generator.", 'aiomatic-automatic-ai-content-writer');
1158 + ?>
1159 + </div>
1160 + </div>
1161 + <b><?php echo esc_html__("AI Model For Outro Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1162 + </td>
1163 + <td class="cr_min_width_200">
1164 + <select autocomplete="off" id="topic_outro_model" name="aiomatic_review_list[topic_outro_model][]" class="hideAssistant cr_width_full">
1165 + <?php
1166 + foreach($all_models as $modelx)
1167 + {
1168 + echo '<option value="' . esc_html($modelx) .'"';
1169 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1170 + }
1171 + ?>
1172 + </select>
1173 + </td>
1174 + </tr>
1175 + <tr>
1176 + <td class="cr_min_width_200">
1177 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1178 + <div class="bws_hidden_help_text cr_min_260px">
1179 + <?php
1180 + echo esc_html__("Prompt to be used for the excerpt of the article. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer');
1181 + ?>
1182 + </div>
1183 + </div>
1184 + <b><?php echo esc_html__("Excerpt Prompt:", 'aiomatic-automatic-ai-content-writer');?></b>
1185 + </td>
1186 + <td>
1187 + <textarea rows="2" cols="70" name="aiomatic_review_list[excerpt_prompt][]" placeholder="Enter your excerpt prompts, one per line" class="cr_width_full">Write a short excerpt for a product review blog post, for the product: "%%product_title%%". The post has the following title: "%%post_title%%", in %%language%%. Style: %%writing_style%%. Tone: %%writing_tone%%. Point Of View: %%point_of_view%%. The excerpt must be between 100 and 150 words. </textarea>
1188 + </td>
1189 + </tr>
1190 + <tr>
1191 + <td>
1192 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1193 + <div class="bws_hidden_help_text cr_min_260px">
1194 + <?php
1195 + echo esc_html__("Select the AI Model to be used for the excerpt generator.", 'aiomatic-automatic-ai-content-writer');
1196 + ?>
1197 + </div>
1198 + </div>
1199 + <b><?php echo esc_html__("AI Model For Excerpt Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1200 + </td>
1201 + <td class="cr_min_width_200">
1202 + <select autocomplete="off" id="topic_excerpt_model" name="aiomatic_review_list[topic_excerpt_model][]" class="hideAssistant cr_width_full">
1203 + <?php
1204 + foreach($all_models as $modelx)
1205 + {
1206 + echo '<option value="' . esc_html($modelx) .'"';
1207 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1208 + }
1209 + ?>
1210 + </select>
1211 + </td>
1212 + </tr>
1213 + <tr><td colspan="2">
1214 + <h4><?php echo esc_html__("Advanced Prompting Options", 'aiomatic-automatic-ai-content-writer');?>:</h4>
1215 + </td></tr>
1216 + <tr>
1217 + <td>
1218 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1219 + <div class="bws_hidden_help_text cr_min_260px">
1220 + <?php
1221 + echo esc_html__("Run regex on prompts. To disable this feature, leave this field blank. No Regex separators are required here. You can add multiple Regex expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer');
1222 + ?>
1223 + </div>
1224 + </div>
1225 + <b><?php echo esc_html__("Run Regex On Prompts:", 'aiomatic-automatic-ai-content-writer');?></b>
1226 + </td>
1227 + <td>
1228 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[strip_by_regex_prompts][]" placeholder="regex expression" class="cr_width_full"></textarea>
1229 + </td>
1230 + </tr>
1231 + <tr>
1232 + <td>
1233 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1234 + <div class="bws_hidden_help_text cr_min_260px">
1235 + <?php
1236 + echo esc_html__("Replace the above regex matches with this regex expression. If you want to strip matched content, leave this field blank. No Regex separators are required here. You can add multiple replacement expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer');
1237 + ?>
1238 + </div>
1239 + </div>
1240 + <b><?php echo esc_html__("Replace Matches From Regex (Prompts):", 'aiomatic-automatic-ai-content-writer');?></b>
1241 + </td>
1242 + <td>
1243 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[replace_regex_prompts][]" placeholder="regex replacement" class="cr_width_full"></textarea>
1244 + </td>
1245 + </tr>
1246 + <tr>
1247 + <td>
1248 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1249 + <div class="bws_hidden_help_text cr_min_260px">
1250 + <?php
1251 + echo esc_html__("Select on which prompts do you want to run the above Regex. Possible values are (or any of their combinations): title, intro, sections, content, reviews, proscons, qa, outro, excerpt", 'aiomatic-automatic-ai-content-writer');
1252 + ?>
1253 + </div>
1254 + </div>
1255 + <b><?php echo esc_html__("Run Above Regex On Prompts:", 'aiomatic-automatic-ai-content-writer');?></b>
1256 + </td>
1257 + <td>
1258 + <input id="run_regex_on" name="aiomatic_review_list[run_regex_on][]" type="text" list="run_regex_on_list" class="coderevolution_gutenberg_input" value="content"/>
1259 + <datalist id="run_regex_on_list">
1260 + <option value="title">title</option>
1261 + <option value="intro">intro</option>
1262 + <option value="sections">sections</option>
1263 + <option value="content">content</option>
1264 + <option value="qa">Q&A</option>
1265 + <option value="outro">outro</option>
1266 + <option value="excerpt">excerpt</option>
1267 + </datalist>
1268 + </td>
1269 + </tr>
1270 + <tr><td colspan="2">
1271 + <h3><?php echo esc_html__("Global Prompt Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
1272 + </td></tr>
1273 + <tr>
1274 + <td class="cr_min_width_200">
1275 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1276 + <div class="bws_hidden_help_text cr_min_260px">
1277 + <?php
1278 + echo esc_html__("This will be prepended to each prompt sent by the plugin to the AI writer. You can use the following shortcodes: %%topic%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%title%%, %%random_sentence%%, %%random_sentence2%%, %%post_original_title%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
1279 + ?>
1280 + </div>
1281 + </div>
1282 + <b><?php echo esc_html__("Prepend Text To All Textual AI Prompts:", 'aiomatic-automatic-ai-content-writer');?></b>
1283 + </td>
1284 + <td>
1285 + <textarea rows="2" cols="70" name="aiomatic_review_list[global_prepend][]" placeholder="Global prompt prepend text" class="cr_width_full"></textarea>
1286 + </td>
1287 + </tr>
1288 + <tr>
1289 + <td class="cr_min_width_200">
1290 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1291 + <div class="bws_hidden_help_text cr_min_260px">
1292 + <?php
1293 + echo esc_html__("This will be appended to each prompt sent by the plugin to the AI writer. You can use the following shortcodes: %%topic%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%title%%, %%random_sentence%%, %%random_sentence2%%, %%post_original_title%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
1294 + ?>
1295 + </div>
1296 + </div>
1297 + <b><?php echo esc_html__("Append Text To All Textual AI Prompts:", 'aiomatic-automatic-ai-content-writer');?></b>
1298 + </td>
1299 + <td>
1300 + <textarea rows="2" cols="70" name="aiomatic_review_list[global_append][]" placeholder="Global prompt append text" class="cr_width_full"></textarea>
1301 + </td>
1302 + </tr>
1303 + <tr><td colspan="2">
1304 + <h3><?php echo esc_html__("Automatic Linking Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
1305 + </td></tr>
1306 + <tr>
1307 + <td>
1308 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1309 + <div class="bws_hidden_help_text cr_min_260px">
1310 + <?php
1311 + echo esc_html__("Select the linking method to use in posts.", 'aiomatic-automatic-ai-content-writer');
1312 + ?>
1313 + </div>
1314 + </div>
1315 + <b><?php echo esc_html__("Automatic Linking Type:", 'aiomatic-automatic-ai-content-writer');?></b>
1316 + </td>
1317 + <td>
1318 + <select autocomplete="off" class="cr_width_full" id="link_type" onchange="hideLinks('');" name="aiomatic_review_list[link_type][]">
1319 + <option value="disabled" selected><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
1320 + <option value="internal"><?php echo esc_html__("Internal Links", 'aiomatic-automatic-ai-content-writer');?></option>
1321 + <option value="manual"><?php echo esc_html__("Manual Links", 'aiomatic-automatic-ai-content-writer');?></option>
1322 + <option value="serp"><?php echo esc_html__("Related SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
1323 + <option value="mixed"><?php echo esc_html__("Internal + Manual Links", 'aiomatic-automatic-ai-content-writer');?></option>
1324 + <option value="intserp"><?php echo esc_html__("Internal & SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
1325 + <option value="manserp"><?php echo esc_html__("Manual & SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
1326 + <option value="intmanserp"><?php echo esc_html__("Internal & Manual & SERP Links", 'aiomatic-automatic-ai-content-writer');?></option>
1327 + </select>
1328 + </td>
1329 + </tr>
1330 + <tr>
1331 + <td class="cr_min_width_200">
1332 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1333 + <div class="bws_hidden_help_text cr_min_260px">
1334 + <?php
1335 + 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.", 'aiomatic-automatic-ai-content-writer');
1336 + ?>
1337 + </div>
1338 + </div>
1339 + <b><?php echo esc_html__("Maximum Number Of Automatic Links To Add To The Post Content:", 'aiomatic-automatic-ai-content-writer');?></b>
1340 + </td>
1341 + <td>
1342 + <input type="text" name="aiomatic_review_list[max_links][]" placeholder="Add the number of links to enable this feature" class="cr_width_full">
1343 + </td>
1344 + </tr>
1345 + <tr class="hidelinks">
1346 + <td class="cr_min_width_200">
1347 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1348 + <div class="bws_hidden_help_text cr_min_260px">
1349 + <?php
1350 + echo esc_html__("Enter a manual list of links, where the plugin will create links.", 'aiomatic-automatic-ai-content-writer');
1351 + ?>
1352 + </div>
1353 + </div>
1354 + <b><?php echo esc_html__("Manual List Of URLs (One Per Line):", 'aiomatic-automatic-ai-content-writer');?></b>
1355 + </td>
1356 + <td>
1357 + <textarea rows="1" cols="70" name="aiomatic_review_list[link_list][]" placeholder="URL list (one per line)" class="cr_width_full"></textarea>
1358 + </td>
1359 + </tr>
1360 + <tr class="hidelinks">
1361 + <td class="cr_min_width_200">
1362 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1363 + <div class="bws_hidden_help_text cr_min_260px">
1364 + <?php
1365 + echo esc_html__("Do you want to add nofollow attribute to manually entered, external links?", 'aiomatic-automatic-ai-content-writer');
1366 + ?>
1367 + </div>
1368 + </div>
1369 + <b><?php echo esc_html__("Add Nofollow Attribute To External Links:", 'aiomatic-automatic-ai-content-writer');?></b>
1370 + </td>
1371 + <td>
1372 + <input type="checkbox" id="link_nofollow" name="aiomatic_review_list[link_nofollow][]">
1373 + </td>
1374 + </tr>
1375 + <tr>
1376 + <td class="cr_min_width_200">
1377 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1378 + <div class="bws_hidden_help_text cr_min_260px">
1379 + <?php
1380 + 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');
1381 + ?>
1382 + </div>
1383 + </div>
1384 + <b><?php echo esc_html__("Post Types Where To Generate Automatic Links:", 'aiomatic-automatic-ai-content-writer');?></b>
1385 + </td>
1386 + <td>
1387 + <input type="text" name="aiomatic_review_list[link_post_types][]" placeholder="post" class="cr_width_full">
1388 + </td>
1389 + </tr>
1390 + <tr><td colspan="2">
1391 + <h3><?php echo esc_html__("Post Category Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
1392 + </td></tr>
1393 + <tr>
1394 + <td>
1395 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1396 + <div class="bws_hidden_help_text cr_min_260px">
1397 + <?php
1398 + echo esc_html__("Do you want to automatically add post categories from the generated items?", 'aiomatic-automatic-ai-content-writer');
1399 + ?>
1400 + </div>
1401 + </div>
1402 + <b><?php echo esc_html__("Auto Add Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
1403 + </td>
1404 + <td>
1405 + <select autocomplete="off" class="cr_width_full" id="auto_categories" name="aiomatic_review_list[auto_categories][]">
1406 + <option value="disabled" selected><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
1407 + <option value="ai"><?php echo esc_html__("AI Generated", 'aiomatic-automatic-ai-content-writer');?></option>
1408 + <option value="hashtags"><?php echo esc_html__("Title", 'aiomatic-automatic-ai-content-writer');?></option>
1409 + <option value="content"><?php echo esc_html__("Content", 'aiomatic-automatic-ai-content-writer');?></option>
1410 + <option value="both"><?php echo esc_html__("Title and Content", 'aiomatic-automatic-ai-content-writer');?></option>
1411 + </select>
1412 + </td>
1413 + </tr>
1414 + <tr>
1415 + <td>
1416 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1417 + <div class="bws_hidden_help_text cr_min_260px">
1418 + <?php
1419 + echo esc_html__("Select the AI Model to be used for category generator. You can add this to the post categories, if you select 'AI Generated Categories' in the 'Auto Add Categories' settings field.", 'aiomatic-automatic-ai-content-writer');
1420 + ?>
1421 + </div>
1422 + </div>
1423 + <b><?php echo esc_html__("AI Model For Category Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1424 + </td>
1425 + <td class="cr_min_width_200">
1426 + <select autocomplete="off" id="category_model" name="aiomatic_review_list[category_model][]" class="hideAssistant cr_width_full">
1427 + <?php
1428 + foreach($all_models as $modelx)
1429 + {
1430 + echo '<option value="' . esc_html($modelx) .'"';
1431 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1432 + }
1433 + ?>
1434 + </select>
1435 + </td>
1436 + </tr>
1437 + <tr>
1438 + <td class="cr_min_width_200">
1439 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1440 + <div class="bws_hidden_help_text cr_min_260px">
1441 + <?php
1442 + echo esc_html__("Set list of prompt commands (one on each line) you want to send to AI for generating post categories. You can use the following shortcodes here: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%. You can also add a link to a TXT file, containing keywords (one per line), or to an RSS feed. If you use RSS feeds, you can also use the following additional shortcodes: %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%author_name%%, %%current_date_time%%, %%post_link%%. The length of this command should not be greater than the max token count set in the settings for the 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). You can also add here a link to a .txt file, where you can add multiple prompts (one per line) and the plugin will select a random one at each run. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
1443 + echo '&nbsp;' . sprintf( wp_kses( __( "Please check some tips and tricks about writing prompt commands, <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/');
1444 + ?>
1445 + </div>
1446 + </div>
1447 + <b><?php echo esc_html__("Prompt For The AI Category Generator:", 'aiomatic-automatic-ai-content-writer');?></b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/" target="_blank">&#9432;</a></b>
1448 + </td>
1449 + <td>
1450 + <textarea rows="2" cols="70" name="aiomatic_review_list[category_ai_command][]" placeholder="Write a comma separated list of categories, for the post title: %%post_title%%" class="cr_width_full">Generate a comma-separated list of relevant categories for the post title: "%%post_title%%". These categories must accurately categorize the article within the broader topics or themes of your blog, aiding in the organization and navigation of your content.</textarea>
1451 + </td>
1452 + </tr>
1453 + <tr>
1454 + <td class="cr_min_width_200">
1455 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1456 + <div class="bws_hidden_help_text cr_min_260px">
1457 + <?php
1458 + echo esc_html__("Select the post category that you want for the automatically generated posts to have.", 'aiomatic-automatic-ai-content-writer');
1459 + ?>
1460 + </div>
1461 + </div>
1462 + <b><?php echo esc_html__("Additional Post Category:", 'aiomatic-automatic-ai-content-writer');?></b>
1463 + </td>
1464 + <td>
1465 + <select multiple id="default_category" name="aiomatic_review_list[default_category][]" class="cr_width_full" onmouseover="this.size=this.length;" onmouseout="this.size=4;">
1466 + <option value="aiomatic_no_category_12345678" selected><?php echo esc_html__("Do Not Add a Category", 'aiomatic-automatic-ai-content-writer');?></option>
1467 + <?php
1468 + $cat_args = array(
1469 + 'orderby' => 'name',
1470 + 'hide_empty' => 0,
1471 + 'order' => 'ASC'
1472 + );
1473 + $categories = get_categories($cat_args);
1474 + foreach ($categories as $category) {
1475 + ?>
1476 + <option value="<?php
1477 + echo esc_html($category->term_id);
1478 + ?>"><?php
1479 + echo esc_html(sanitize_text_field($category->name)) . ' - ID ' . esc_html($category->term_id);
1480 + ?></option>
1481 + <?php
1482 + }
1483 + ?>
1484 + </select>
1485 + </td>
1486 + </tr>
1487 + <tr>
1488 + <td>
1489 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1490 + <div class="bws_hidden_help_text cr_min_260px">
1491 + <?php
1492 + echo esc_html__("This feature will try to remove the WordPress's default post category. This may fail in case no additional categories are added, because WordPress requires at least one post category for every post.", 'aiomatic-automatic-ai-content-writer');
1493 + ?>
1494 + </div>
1495 + </div>
1496 + <b><?php echo esc_html__("Remove WP Default Post Category:", 'aiomatic-automatic-ai-content-writer');?></b>
1497 + </td>
1498 + <td>
1499 + <input type="checkbox" id="remove_default" name="aiomatic_review_list[remove_default][]" checked>
1500 + </td>
1501 + </tr>
1502 + <tr>
1503 + <td>
1504 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1505 + <div class="bws_hidden_help_text cr_min_260px">
1506 + <?php
1507 + 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');
1508 + ?>
1509 + </div>
1510 + </div>
1511 + <b><?php echo esc_html__("Do Not Add Inexistent Categories:", 'aiomatic-automatic-ai-content-writer');?></b>
1512 + </td>
1513 + <td>
1514 + <input type="checkbox" id="skip_inexist" name="aiomatic_review_list[skip_inexist][]">
1515 + </td>
1516 + </tr>
1517 + <tr><td colspan="2">
1518 + <h3><?php echo esc_html__("Post Tag Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
1519 + </td></tr>
1520 + <tr>
1521 + <td>
1522 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1523 + <div class="bws_hidden_help_text cr_min_260px">
1524 + <?php
1525 + echo esc_html__("Do you want to automatically add post tags from the generated items?", 'aiomatic-automatic-ai-content-writer');
1526 + ?>
1527 + </div>
1528 + </div>
1529 + <b><?php echo esc_html__("Auto Add Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
1530 + </td>
1531 + <td>
1532 + <select autocomplete="off" class="cr_width_full" id="auto_tags" name="aiomatic_review_list[auto_tags][]">
1533 + <option value="disabled" selected><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
1534 + <option value="ai"><?php echo esc_html__("AI Generated", 'aiomatic-automatic-ai-content-writer');?></option>
1535 + <option value="hashtags"><?php echo esc_html__("Title", 'aiomatic-automatic-ai-content-writer');?></option>
1536 + <option value="content"><?php echo esc_html__("Content", 'aiomatic-automatic-ai-content-writer');?></option>
1537 + <option value="both"><?php echo esc_html__("Title and Content", 'aiomatic-automatic-ai-content-writer');?></option>
1538 + </select>
1539 + </td>
1540 + </tr>
1541 + <tr>
1542 + <td>
1543 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1544 + <div class="bws_hidden_help_text cr_min_260px">
1545 + <?php
1546 + echo esc_html__("Select the AI Model to be used for tag generator. You can add this to the post tags, if you select 'AI Generated Tags' in the 'Auto Add Tags' settings field.", 'aiomatic-automatic-ai-content-writer');
1547 + ?>
1548 + </div>
1549 + </div>
1550 + <b><?php echo esc_html__("AI Model For Post Tag Generator:", 'aiomatic-automatic-ai-content-writer');?></b>
1551 + </td>
1552 + <td class="cr_min_width_200">
1553 + <select autocomplete="off" id="tag_model" name="aiomatic_review_list[tag_model][]" class="hideAssistant cr_width_full">
1554 + <?php
1555 + foreach($all_models as $modelx)
1556 + {
1557 + echo '<option value="' . esc_html($modelx) .'"';
1558 + echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
1559 + }
1560 + ?>
1561 + </select>
1562 + </td>
1563 + </tr>
1564 + <tr>
1565 + <td class="cr_min_width_200">
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__("Set list of prompt commands (one on each line) you want to send to AI for generating post tags. You can use the following shortcodes here: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%. You can also add a link to a TXT file, containing keywords (one per line), or to an RSS feed. If you use RSS feeds, you can also use the following additional shortcodes: %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%author_name%%, %%current_date_time%%, %%post_link%%. The length of this command should not be greater than the max token count set in the settings for the 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). You can also add here a link to a .txt file, where you can add multiple prompts (one per line) and the plugin will select a random one at each run. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
1570 + echo '&nbsp;' . sprintf( wp_kses( __( "Please check some tips and tricks about writing prompt commands, <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/');
1571 + ?>
1572 + </div>
1573 + </div>
1574 + <b><?php echo esc_html__("Prompt For The AI Post Tag Generator:", 'aiomatic-automatic-ai-content-writer');?></b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/" target="_blank">&#9432;</a></b>
1575 + </td>
1576 + <td>
1577 + <textarea rows="2" cols="70" name="aiomatic_review_list[tag_ai_command][]" placeholder="Write a comma separated list of tags, for the post title: %%post_title%%" class="cr_width_full">Generate a comma-separated list of relevant tags for the post title: "%%post_title%%". These tags must accurately reflect the key topics, themes, or keywords associated with the article and help improve its discoverability and organization.</textarea>
1578 + </td>
1579 + </tr>
1580 + <tr>
1581 + <td>
1582 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1583 + <div class="bws_hidden_help_text cr_min_260px">
1584 + <?php
1585 + echo esc_html__("Select the post tags that you want for the automatically generated posts to have. Spintax supported.", 'aiomatic-automatic-ai-content-writer');
1586 + ?>
1587 + </div>
1588 + </div>
1589 + <b><?php echo esc_html__("Additional Post Tags:", 'aiomatic-automatic-ai-content-writer');?></b>
1590 + </td>
1591 + <td>
1592 + <input type="text" name="aiomatic_review_list[default_tags][]" value="" placeholder="Please insert your additional post tags here" class="cr_width_full">
1593 + </td>
1594 + </tr>
1595 + <tr><td colspan="2">
1596 + <h3><?php echo esc_html__("Advanced AI Text Generator Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
1597 + </td></tr>
1598 + <tr>
1599 + <td class="cr_min_width_200">
1600 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1601 + <div class="bws_hidden_help_text cr_min_260px">
1602 + <?php
1603 + 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 is 4000. For other models, the maximum is 2048.", 'aiomatic-automatic-ai-content-writer');
1604 + ?>
1605 + </div>
1606 + </div>
1607 + <b><?php echo esc_html__("Maximum Total Token Count To Use Per API Request:", 'aiomatic-automatic-ai-content-writer');?></b>
1608 + </td>
1609 + <td>
1610 + <input type="number" min="1" name="aiomatic_review_list[max_tokens][]" value="" placeholder="2048" class="cr_width_full">
1611 + </td>
1612 + </tr>
1613 + <tr>
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__("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 is 1000.", 'aiomatic-automatic-ai-content-writer');
1619 + ?>
1620 + </div>
1621 + </div>
1622 + <b><?php echo esc_html__("Maximum Prompt Token Count To Use Per API Request:", 'aiomatic-automatic-ai-content-writer');?></b>
1623 + </td>
1624 + <td>
1625 + <input type="number" min="1" name="aiomatic_review_list[max_seed_tokens][]" value="" placeholder="1000" class="cr_width_full">
1626 + </td>
1627 + </tr>
1628 + <tr>
1629 + <td class="cr_min_width_200">
1630 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1631 + <div class="bws_hidden_help_text cr_min_260px">
1632 + <?php
1633 + 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 is 500.", 'aiomatic-automatic-ai-content-writer');
1634 + ?>
1635 + </div>
1636 + </div>
1637 + <b><?php echo esc_html__("Maximum Continue Token Count To Use Per API Request:", 'aiomatic-automatic-ai-content-writer');?></b>
1638 + </td>
1639 + <td>
1640 + <input type="number" min="1" name="aiomatic_review_list[max_continue_tokens][]" value="" placeholder="500" class="cr_width_full">
1641 + </td>
1642 + </tr>
1643 + <tr>
1644 + <td class="cr_min_width_200">
1645 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1646 + <div class="bws_hidden_help_text cr_min_260px">
1647 + <?php
1648 + 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');
1649 + ?>
1650 + </div>
1651 + </div>
1652 + <b><?php echo esc_html__("AI Temperature:", 'aiomatic-automatic-ai-content-writer');?></b>
1653 + </td>
1654 + <td>
1655 + <input type="number" min="0" step="0.01" max="2" name="aiomatic_review_list[temperature][]" value="" placeholder="1" class="cr_width_full">
1656 + </td>
1657 + </tr><tr>
1658 + <td class="cr_min_width_200">
1659 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1660 + <div class="bws_hidden_help_text cr_min_260px">
1661 + <?php
1662 + 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');
1663 + ?>
1664 + </div>
1665 + </div>
1666 + <b><?php echo esc_html__("AI Top_p:", 'aiomatic-automatic-ai-content-writer');?></b>
1667 + </td>
1668 + <td>
1669 + <input type="number" min="0" max="1" step="0.01" name="aiomatic_review_list[top_p][]" value="" placeholder="1" class="cr_width_full">
1670 + </td>
1671 + </tr><tr>
1672 + <td class="cr_min_width_200">
1673 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1674 + <div class="bws_hidden_help_text cr_min_260px">
1675 + <?php
1676 + 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');
1677 + ?>
1678 + </div>
1679 + </div>
1680 + <b><?php echo esc_html__("AI Presence Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
1681 + </td>
1682 + <td>
1683 + <input type="number" min="-2" step="0.01" max="2" name="aiomatic_review_list[presence_penalty][]" value="" placeholder="0" class="cr_width_full">
1684 + </td>
1685 + </tr><tr>
1686 + <td class="cr_min_width_200">
1687 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1688 + <div class="bws_hidden_help_text cr_min_260px">
1689 + <?php
1690 + 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');
1691 + ?>
1692 + </div>
1693 + </div>
1694 + <b><?php echo esc_html__("AI Frequency Penalty:", 'aiomatic-automatic-ai-content-writer');?></b>
1695 + </td>
1696 + <td>
1697 + <input type="number" min="0" max="2" step="0.01" name="aiomatic_review_list[frequency_penalty][]" value="" placeholder="0" class="cr_width_full">
1698 + </td>
1699 + </tr>
1700 + <tr><td colspan="2">
1701 + <h3><?php echo esc_html__("Image Generator Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
1702 + </td></tr>
1703 + <tr>
1704 + <td>
1705 + <div>
1706 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1707 + <div class="bws_hidden_help_text cr_min_260px">
1708 + <?php
1709 + echo esc_html__("Do you want to set a featured image for the created post (royalty free or AI generated)? Please note that for this feature to function you must configure the plugin (add API keys) in the plugin's 'Settings' menu -> 'Royalty Free Featured Image Importing Options' section.", 'aiomatic-automatic-ai-content-writer');
1710 + ?>
1711 + </div>
1712 + </div>
1713 + <b><?php echo esc_html__("Auto Set A Featured Image For Posts (Select Source Below):", 'aiomatic-automatic-ai-content-writer');?></b>
1714 + </td>
1715 + <td>
1716 + <select autocomplete="off" id="royalty_free" name="aiomatic_review_list[royalty_free][]" class="cr_width_full">
1717 + <option value="0"><?php echo esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer');?></option>
1718 + <option value="1"><?php echo esc_html__("AI Image From Below Selector", 'aiomatic-automatic-ai-content-writer');?></option>
1719 + <option value="2" selected><?php echo esc_html__("Amazon Product Thumbnail", 'aiomatic-automatic-ai-content-writer');?></option>
1720 + </select>
1721 + </td>
1722 + </tr>
1723 + <tr>
1724 + <td class="cr_min_width_200">
1725 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1726 + <div class="bws_hidden_help_text cr_min_260px">
1727 + <?php
1728 + echo esc_html__("Select the search query repetition mode, when searching royalty free images.", 'aiomatic-automatic-ai-content-writer');
1729 + ?>
1730 + </div>
1731 + </div>
1732 + <b><?php echo esc_html__("Search Query Repetition:", 'aiomatic-automatic-ai-content-writer');?></b>
1733 + </td>
1734 + <td>
1735 + <select autocomplete="off" id="search_query_repetition" name="aiomatic_review_list[search_query_repetition][]" class="cr_width_full">
1736 + <option value="0" selected><?php echo esc_html__("Use Different Search Queries For Images", 'aiomatic-automatic-ai-content-writer');?></option>
1737 + <option value="1"><?php echo esc_html__("Use The Same Search Query For Images", 'aiomatic-automatic-ai-content-writer');?></option>
1738 + </select>
1739 + </td>
1740 + </tr>
1741 + <tr>
1742 + <td class="cr_min_width_200">
1743 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1744 + <div class="bws_hidden_help_text cr_min_260px">
1745 + <?php
1746 + echo esc_html__("Do you want to enable the AI Image Generator and to replace Royalty Free Images with AI generated images? If you select 'Default Featured Image List', you can add the image URLs in the 'Default Featured Image List' settings field.", 'aiomatic-automatic-ai-content-writer');
1747 + ?>
1748 + </div>
1749 + </div>
1750 + <b><?php echo esc_html__("Article Image Source:", 'aiomatic-automatic-ai-content-writer');?></b>
1751 + </td>
1752 + <td>
1753 + <select autocomplete="off" id="enable_ai_images" onchange="hideImage('');" name="aiomatic_review_list[enable_ai_images][]" class="cr_width_full">
1754 + <option value="0" selected><?php echo esc_html__("Royalty Free", 'aiomatic-automatic-ai-content-writer');?></option>
1755 + <option value="1"><?php echo esc_html__("OpenAI/AiomaticAPI", 'aiomatic-automatic-ai-content-writer');?></option>
1756 + <?php
1757 + if (isset($aiomatic_Main_Settings['stability_app_id']) && trim($aiomatic_Main_Settings['stability_app_id']) != '')
1758 + {
1759 + ?>
1760 + <option value="2"><?php echo esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer');?></option>
1761 + <?php
1762 + }
1763 + if (isset($aiomatic_Main_Settings['midjourney_app_id']) && trim($aiomatic_Main_Settings['midjourney_app_id']) != '')
1764 + {
1765 + ?>
1766 + <option value="4"><?php echo esc_html__("Midjourney", 'aiomatic-automatic-ai-content-writer');?></option>
1767 + <?php
1768 + }
1769 + if (isset($aiomatic_Main_Settings['replicate_app_id']) && trim($aiomatic_Main_Settings['replicate_app_id']) != '')
1770 + {
1771 + ?>
1772 + <option value="5"><?php echo esc_html__("Replicate", 'aiomatic-automatic-ai-content-writer');?></option>
1773 + <?php
1774 + }
1775 + if (isset($aiomatic_Main_Settings['ideogram_app_id']) && trim($aiomatic_Main_Settings['ideogram_app_id']) != '')
1776 + {
1777 + ?>
1778 + <option value="6"><?php echo esc_html__("Ideogram", 'aiomatic-automatic-ai-content-writer');?></option>
1779 + <?php
1780 + }
1781 + if (isset($aiomatic_Main_Settings['app_id_google']) && trim($aiomatic_Main_Settings['app_id_google']) != '')
1782 + {
1783 + ?>
1784 + <option value="7"><?php echo esc_html__("Google", 'aiomatic-automatic-ai-content-writer');?></option>
1785 + <?php
1786 + }
1787 + ?>
1788 + <option value="3"><?php echo esc_html__("Manual URL List", 'aiomatic-automatic-ai-content-writer');?></option>
1789 + </select>
1790 + </td>
1791 + </tr>
1792 + <tr class="hideImg cr_none">
1793 + <td class="cr_min_width_200">
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
1797 + echo esc_html__("Set list of prompt commands (one on each line) you want to send to the AI image generator. This command can be any given task or order, based on which, it will generate images. You can 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%%. The length of this command should not be greater than 1000 characters (4000 characters for Dall-E 3), otherwise the plugin will strip it to 1000 characters length. - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You can also add here a link to a .txt file, where you can add multiple prompts (one per line) and the plugin will select a random one at each run. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
1798 + echo '&nbsp;' . sprintf( wp_kses( __( "Please check some tips and tricks about writing prompt commands, <a href='%s' target='_blank'>here</a>. The [aicontent] shortcode is able to be used also here.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-image-generating-for-openai-dall-e-api/' );
1799 + ?>
1800 + </div>
1801 + </div>
1802 + <b><?php echo esc_html__("Prompt For The AI Image Generator:", 'aiomatic-automatic-ai-content-writer');?></b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-image-generating-for-openai-dall-e-api/" target="_blank">&#9432;</a></b>
1803 + </td>
1804 + <td>
1805 + <textarea rows="2" cols="70" name="aiomatic_review_list[ai_command_image][]" placeholder="Please insert a command for the AI image generator" class="cr_width_full">A high detail image with no text of: "%%post_title%%"</textarea>
1806 + </td>
1807 + </tr>
1808 + <tr class="hideDalle cr_none">
1809 + <td class="cr_min_width_200">
1810 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1811 + <div class="bws_hidden_help_text cr_min_260px">
1812 + <?php
1813 + echo esc_html__("Select the AI model you wish to use for image the image generator.", 'aiomatic-automatic-ai-content-writer');
1814 + ?>
1815 + </div>
1816 + </div>
1817 + <b><?php echo esc_html__("AI Image Model:", 'aiomatic-automatic-ai-content-writer');?></b>
1818 + </td>
1819 + <td>
1820 + <select autocomplete="off" id="image_model" name="aiomatic_review_list[image_model][]" class="cr_width_full">
1821 + <?php
1822 + foreach(AIMOGEN_DALLE_IMAGE_MODELS as $modelx)
1823 + {
1824 + echo '<option value="' . esc_html($modelx) .'"';
1825 + if ($modelx == AIMOGEN_DEFAULT_IMAGE_MODEL) { echo ' selected'; }
1826 + echo '>' . esc_html($modelx) . '</option>';
1827 + }
1828 + ?>
1829 + </select>
1830 + </td>
1831 + </tr>
1832 + <tr class="hideImg cr_none">
1833 + <td>
1834 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1835 + <div class="bws_hidden_help_text cr_min_260px">
1836 + <?php
1837 + echo esc_html__("Select the size of the generated image.", 'aiomatic-automatic-ai-content-writer');
1838 + ?>
1839 + </div>
1840 + </div>
1841 + <b><?php echo esc_html__("Generated Image Size:", 'aiomatic-automatic-ai-content-writer');?></b>
1842 + </td>
1843 + <td class="cr_min_width_200">
1844 + <select autocomplete="off" id="model" name="aiomatic_review_list[image_size][]" class="cr_width_full">
1845 + <option value="256x256"><?php echo esc_html__("256x256 (only for Dall-E 2)", 'aiomatic-automatic-ai-content-writer');?></option>
1846 + <option value="512x512"><?php echo esc_html__("512x512 (only for Dall-E 2 & Stable Diffusion)", 'aiomatic-automatic-ai-content-writer');?></option>
1847 + <option value="1024x1024" selected><?php echo esc_html__("1024x1024", 'aiomatic-automatic-ai-content-writer');?></option>
1848 + <option value="1792x1024"><?php echo esc_html__("1792x1024 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer');?></option>
1849 + <option value="1024x1792"><?php echo esc_html__("1024x1792 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer');?></option>
1850 + <option value="1536x1024"><?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>
1851 + <option value="1024x1536"><?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>
1852 + </select>
1853 + </td>
1854 + </tr>
1855 + <tr>
1856 + <td>
1857 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1858 + <div class="bws_hidden_help_text cr_min_260px">
1859 + <?php
1860 + echo esc_html__("Insert a comma separated list of links to valid images that will be set randomly for the featured image for the posts that do not have a valid image attached or if you disabled automatical featured image generator. You can also use image numeric IDs from images found in the Media Gallery. To disable this feature, leave this field blank. Spintax supported. You can also use the %%random_image[keyword]%% shortcode to automatically import a random image from Google Image Search with the Creative Commons filter applied. To get a related image, you can also use: %%random_image[%%post_title%%]%%", 'aiomatic-automatic-ai-content-writer');
1861 + ?>
1862 + </div>
1863 + </div>
1864 + <b><?php echo esc_html__("Default Featured Image List:", 'aiomatic-automatic-ai-content-writer');?></b>
1865 + </td>
1866 + <td>
1867 + <textarea class="cr_width_60p" rows="1" name="aiomatic_review_list[image_url][]" placeholder="Please insert the link to a valid image (spintax supported)"></textarea>
1868 + <input class="cr_width_33p aiomatic_image_button" type="button" value=">>>"/>
1869 + </td>
1870 + </tr>
1871 + <tr><td colspan="2">
1872 + <h3><?php echo esc_html__("Posting Options", 'aiomatic-automatic-ai-content-writer');?>:</h3>
1873 + </td></tr>
1874 + <tr>
1875 + <td class="cr_min_width_200">
1876 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1877 + <div class="bws_hidden_help_text cr_min_260px">
1878 + <?php
1879 + echo esc_html__("Enter a HTML text that should be prepended to the AI generated content in each created post. You can use the following shortcodes: %%custom_html%%, %%custom_html2%%, %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%, %%random_image[keyword]%%, %%random_image_url[keyword]%%, %%random_video[keyword]%%, %%royalty_free_image_attribution%% - you can also use an optional parameter in the random_image and random_video shortcodes, which will add a percentage chance for the media to appear or not - example: %%random_video[keyword][60]%% - a video will appear in 60% of cases, in the rest of 40%, nothing will be returned by the shortcode - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
1880 + ?>
1881 + </div>
1882 + </div>
1883 + <b><?php echo esc_html__("HTML Text To Prepend To AI Created Content:", 'aiomatic-automatic-ai-content-writer');?></b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
1884 + </td>
1885 + <td>
1886 + <textarea rows="2" cols="70" name="aiomatic_review_list[post_prepend][]" placeholder="HTML content to prepend to the AI generated content" class="cr_width_full"></textarea>
1887 + </td>
1888 + </tr>
1889 + <tr>
1890 + <td class="cr_min_width_200">
1891 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1892 + <div class="bws_hidden_help_text cr_min_260px">
1893 + <?php
1894 + echo esc_html__("Enter a HTML text that should be appended to the AI generated content in each created post. You can use the following shortcodes: %%custom_html%%, %%custom_html2%%, %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%, %%random_image[keyword]%%, %%random_image_url[keyword]%%, %%random_video[keyword]%%, %%royalty_free_image_attribution%% - you can also use an optional parameter in the random_image and random_video shortcodes, which will add a percentage chance for the media to appear or not - example: %%random_video[keyword][60]%% - a video will appear in 60% of cases, in the rest of 40%, nothing will be returned by the shortcode - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer');
1895 + ?>
1896 + </div>
1897 + </div>
1898 + <b><?php echo esc_html__("HTML Text To Append To AI Created Content:", 'aiomatic-automatic-ai-content-writer');?></b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
1899 + </td>
1900 + <td>
1901 + <textarea rows="2" cols="70" name="aiomatic_review_list[post_append][]" placeholder="HTML content to append to the AI generated content" class="cr_width_full"></textarea>
1902 + </td>
1903 + </tr>
1904 + <tr>
1905 + <td class="cr_min_width_200">
1906 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1907 + <div class="bws_hidden_help_text cr_min_260px">
1908 + <?php
1909 + echo esc_html__("Custom AI generated content shortcode creator. If you wish to create content from multiple AI prompts, and use them in post content/post custom fields/taxonomies, you can configure this from here. Also, these shortcodes will be able to be used in custom fields or custom taxonomies which the plugin will create. Syntax for this field: shortcode_name => AI_MODEL_TO_USE @@ TEXTUAL_PROMPT_TO_USE (to specify multiple shortcodes and crawling values, separate them by a new line. Example: my_custom_shortcode => gpt-4.1-mini @@ Write a short poem. Afterwards, you can use shortcodes in any settings field that supports shortcodes (ex: 'HTML Text To Append To AI Created Content' settings field), like this: %%my_custom_shortcode%%. Official format is %%name_of_custom_shortcode%%", 'aiomatic-automatic-ai-content-writer');
1910 + ?>
1911 + </div>
1912 + </div>
1913 + <b><?php echo esc_html__("Custom Shortcode Creator (Optional):", 'aiomatic-automatic-ai-content-writer');?></b><span class="tool" data-tip="Supported models: <?php echo esc_html(implode(',', aiomatic_get_all_models()));?>">&nbsp;&#9432;</span>
1914 + </td>
1915 + <td>
1916 + <textarea rows="2" cols="70" name="aiomatic_review_list[custom_shortcodes][]" placeholder="shortcode_name => AI_MODEL @@ AI_PROMPT" class="cr_width_full"></textarea>
1917 + </td>
1918 + </tr>
1919 + <tr>
1920 + <td>
1921 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1922 + <div class="bws_hidden_help_text cr_min_260px">
1923 + <?php
1924 + echo esc_html__("The AI writer might add the title of the post to the created post content. Check this checkbox if you want to remove the title from the post content.", 'aiomatic-automatic-ai-content-writer');
1925 + ?>
1926 + </div>
1927 + </div>
1928 + <b><?php echo esc_html__("Strip Title From Content:", 'aiomatic-automatic-ai-content-writer');?></b>
1929 + </td>
1930 + <td>
1931 + <input type="checkbox" id="strip_title" name="aiomatic_review_list[strip_title][]">
1932 + </td>
1933 + </tr>
1934 + <tr>
1935 + <td>
1936 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1937 + <div class="bws_hidden_help_text cr_min_260px"><?php echo esc_html__("Do you want to skip spinning of posts generated by this rule?", 'aiomatic-automatic-ai-content-writer');?>
1938 + </div>
1939 + </div>
1940 + <b><?php echo esc_html__("Do Not Spin Posts Generated By This Rule:", 'aiomatic-automatic-ai-content-writer');?></b>
1941 + </td>
1942 + <td>
1943 + <input type="checkbox" id="skip_spin" name="aiomatic_review_list[skip_spin][]">
1944 + </td>
1945 + </tr>
1946 + <tr>
1947 + <td>
1948 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1949 + <div class="bws_hidden_help_text cr_min_260px"><?php echo esc_html__("Do you want to skip translating of posts generated by this rule?", 'aiomatic-automatic-ai-content-writer');?>
1950 + </div>
1951 + </div>
1952 + <b><?php echo esc_html__("Do Not Translate Posts Generated By This Rule:", 'aiomatic-automatic-ai-content-writer');?></b>
1953 + </td>
1954 + <td>
1955 + <input type="checkbox" id="skip_translate" name="aiomatic_review_list[skip_translate][]">
1956 + </td>
1957 + </tr>
1958 + <tr>
1959 + <td>
1960 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1961 + <div class="bws_hidden_help_text cr_min_260px">
1962 + <?php
1963 + echo esc_html__("Select if you want to process each title from the added list only once.", 'aiomatic-automatic-ai-content-writer');
1964 + ?>
1965 + </div>
1966 + </div>
1967 + <b><?php echo esc_html__("Process Each Title/Keyword Only Once:", 'aiomatic-automatic-ai-content-writer');?></b>
1968 + </td>
1969 + <td>
1970 + <input type="checkbox" id="title_once" name="aiomatic_review_list[title_once][]" checked>
1971 + </td>
1972 + </tr>
1973 + <tr>
1974 + <td>
1975 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
1976 + <div class="bws_hidden_help_text cr_min_260px">
1977 + <?php
1978 + echo esc_html__("Select if you want to overwrite existing posts during the publishing process.", 'aiomatic-automatic-ai-content-writer');
1979 + ?>
1980 + </div>
1981 + </div>
1982 + <b><?php echo esc_html__("Overwrite Existing Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
1983 + </td>
1984 + <td>
1985 + <input type="checkbox" id="overwrite_existing" name="aiomatic_review_list[overwrite_existing][]">
1986 + </td>
1987 + </tr>
1988 + <tr>
1989 + <td>
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__("Run regex on post content. To disable this feature, leave this field blank. No Regex separators are required here. You can add multiple Regex expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer');
1994 + ?>
1995 + </div>
1996 + </div>
1997 + <b><?php echo esc_html__("Run Regex On Content:", 'aiomatic-automatic-ai-content-writer');?></b>
1998 + </td>
1999 + <td>
2000 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[strip_by_regex][]" placeholder="regex expression" class="cr_width_full"></textarea>
2001 + </td>
2002 + </tr>
2003 + <tr>
2004 + <td>
2005 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2006 + <div class="bws_hidden_help_text cr_min_260px">
2007 + <?php
2008 + echo esc_html__("Replace the above regex matches with this regex expression. If you want to strip matched content, leave this field blank. No Regex separators are required here. You can add multiple replacement expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer');
2009 + ?>
2010 + </div>
2011 + </div>
2012 + <b><?php echo esc_html__("Replace Matches From Regex (Content):", 'aiomatic-automatic-ai-content-writer');?></b>
2013 + </td>
2014 + <td>
2015 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[replace_regex][]" placeholder="regex replacement" class="cr_width_full"></textarea>
2016 + </td>
2017 + </tr>
2018 + <tr>
2019 + <td>
2020 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2021 + <div class="bws_hidden_help_text cr_min_260px">
2022 + <?php
2023 + echo esc_html__("Select the author that you want to assign for the automatically generated posts.", 'aiomatic-automatic-ai-content-writer');
2024 + ?>
2025 + </div>
2026 + </div>
2027 + <b><?php echo esc_html__("Post Author:", 'aiomatic-automatic-ai-content-writer');?></b>
2028 + </td>
2029 + <td class="cr_min_width_200">
2030 + <select autocomplete="off" id="post_author" name="aiomatic_review_list[post_author][]" class="cr_width_full">
2031 + <option value="rand"><?php echo esc_html__("Random user", 'aiomatic-automatic-ai-content-writer');?></option>
2032 + <?php
2033 + $blogusers = get_users( [ 'role__in' => [ 'contributor', 'author', 'editor', 'administrator' ] ] );
2034 + foreach ($blogusers as $user) {
2035 + echo '<option value="' . esc_html($user->ID) . '"';
2036 + echo '>' . esc_html($user->display_name) . '</option>';
2037 + }
2038 + ?>
2039 + </select>
2040 + </td>
2041 + </tr>
2042 + <tr>
2043 + <td>
2044 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2045 + <div class="bws_hidden_help_text cr_min_260px">
2046 + <?php
2047 + echo esc_html__("Select the status that you want for the automatically generated posts to have.", 'aiomatic-automatic-ai-content-writer');
2048 + ?>
2049 + </div>
2050 + </div>
2051 + <b><?php echo esc_html__("Post Status:", 'aiomatic-automatic-ai-content-writer');?></b>
2052 + </td>
2053 + <td class="cr_min_width_200">
2054 + <select autocomplete="off" id="submit_status" name="aiomatic_review_list[submit_status][]" class="cr_width_full">
2055 + <option value="pending"><?php echo esc_html__("Pending -> Moderate", 'aiomatic-automatic-ai-content-writer');?></option>
2056 + <option value="draft"><?php echo esc_html__("Draft -> Moderate", 'aiomatic-automatic-ai-content-writer');?></option>
2057 + <option value="publish" selected><?php echo esc_html__("Published", 'aiomatic-automatic-ai-content-writer');?></option>
2058 + <option value="private"><?php echo esc_html__("Private", 'aiomatic-automatic-ai-content-writer');?></option>
2059 + <option value="trash"><?php echo esc_html__("Trash", 'aiomatic-automatic-ai-content-writer');?></option>
2060 + </select>
2061 + </td>
2062 + </tr>
2063 + <tr>
2064 + <td>
2065 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2066 + <div class="bws_hidden_help_text cr_min_260px">
2067 + <?php
2068 + echo esc_html__("Select the type (post/page) for your automatically generated item.", 'aiomatic-automatic-ai-content-writer');
2069 + ?>
2070 + </div>
2071 + </div>
2072 + <b><?php echo esc_html__("Item Type:", 'aiomatic-automatic-ai-content-writer');?></b>
2073 + </td>
2074 + <td class="cr_min_width_200">
2075 + <select autocomplete="off" id="default_type" name="aiomatic_review_list[default_type][]" class="cr_width_full" onchange="go_change_cats(this, '');">
2076 + <?php
2077 + $is_first = true;
2078 + foreach ( get_post_types( '', 'names' ) as $post_type ) {
2079 + if(strstr($post_type, 'aiomatic_'))
2080 + {
2081 + continue;
2082 + }
2083 + echo '<option value="' . esc_attr($post_type) . '"';
2084 + if($is_first === true)
2085 + {
2086 + echo ' selected';
2087 + $is_first = false;
2088 + }
2089 + echo '>' . esc_html($post_type) . '</option>';
2090 + }
2091 + ?>
2092 + </select>
2093 + </td>
2094 + </tr>
2095 + <tr>
2096 + <td>
2097 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2098 + <div class="bws_hidden_help_text cr_min_260px">
2099 + <?php
2100 + echo esc_html__("If your template supports 'Post Formats', than you can select one here. If not, leave this at it's default value.", 'aiomatic-automatic-ai-content-writer');
2101 + ?>
2102 + </div>
2103 + </div>
2104 + <b><?php echo esc_html__("Generated Post Format:", 'aiomatic-automatic-ai-content-writer');?></b>
2105 + </td>
2106 + <td class="cr_min_width_200">
2107 + <select autocomplete="off" id="post_format" name="aiomatic_review_list[post_format][]" class="cr_width_full">
2108 + <option value="post-format-standard" selected><?php echo esc_html__("Standard", 'aiomatic-automatic-ai-content-writer');?></option>
2109 + <option value="post-format-aside"><?php echo esc_html__("Aside", 'aiomatic-automatic-ai-content-writer');?></option>
2110 + <option value="post-format-gallery"><?php echo esc_html__("Gallery", 'aiomatic-automatic-ai-content-writer');?></option>
2111 + <option value="post-format-link"><?php echo esc_html__("Link", 'aiomatic-automatic-ai-content-writer');?></option>
2112 + <option value="post-format-image"><?php echo esc_html__("Image", 'aiomatic-automatic-ai-content-writer');?></option>
2113 + <option value="post-format-quote"><?php echo esc_html__("Quote", 'aiomatic-automatic-ai-content-writer');?></option>
2114 + <option value="post-format-status"><?php echo esc_html__("Status", 'aiomatic-automatic-ai-content-writer');?></option>
2115 + <option value="post-format-video"><?php echo esc_html__("Video", 'aiomatic-automatic-ai-content-writer');?></option>
2116 + <option value="post-format-audio"><?php echo esc_html__("Audio", 'aiomatic-automatic-ai-content-writer');?></option>
2117 + <option value="post-format-chat"><?php echo esc_html__("Chat", 'aiomatic-automatic-ai-content-writer');?></option>
2118 + </select>
2119 + </td>
2120 + </tr>
2121 + <tr>
2122 + <td>
2123 + <div>
2124 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2125 + <div class="bws_hidden_help_text cr_min_260px">
2126 + <?php
2127 + echo esc_html__("Set the ID of the parent of created posts. This is useful for BBPress integration, to assign forum IDs for created topics or for other similar functionalities.", 'aiomatic-automatic-ai-content-writer');
2128 + ?>
2129 + </div>
2130 + </div>
2131 + <b><?php echo esc_html__("Post Parent ID:", 'aiomatic-automatic-ai-content-writer');?></b>
2132 + </td>
2133 + <td>
2134 + <input type="number" min="1" class="cr_width_full" name="aiomatic_review_list[parent_id][]" value="" placeholder="Post parent ID" class="cr_width_full">
2135 + </td>
2136 + </tr>
2137 + <tr>
2138 + <td>
2139 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2140 + <div class="bws_hidden_help_text cr_min_260px">
2141 + <?php
2142 + echo esc_html__("Do you want to enable comments for the generated posts?", 'aiomatic-automatic-ai-content-writer');
2143 + ?>
2144 + </div>
2145 + </div>
2146 + <b><?php echo esc_html__("Enable Comments For Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
2147 + </td>
2148 + <td>
2149 + <input type="checkbox" id="enable_comments" name="aiomatic_review_list[enable_comments][]" checked>
2150 + </td>
2151 + </tr>
2152 + <tr>
2153 + <td>
2154 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2155 + <div class="bws_hidden_help_text cr_min_260px">
2156 + <?php
2157 + echo esc_html__("Do you want to enable pingbacks/trackbacks for the generated posts?", 'aiomatic-automatic-ai-content-writer');
2158 + ?>
2159 + </div>
2160 + </div>
2161 + <b><?php echo esc_html__("Enable Pingback/Trackback:", 'aiomatic-automatic-ai-content-writer');?></b>
2162 + </td>
2163 + <td>
2164 + <input type="checkbox" id="enable_pingback" name="aiomatic_review_list[enable_pingback][]" checked>
2165 + </td>
2166 + </tr>
2167 + <tr>
2168 + <td>
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 sprintf( wp_kses( __( "Do you want to set a custom post publish date for posts? 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.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://www.php.net/manual/en/datetime.formats.php' ) );
2173 + ?>
2174 + </div>
2175 + </div>
2176 + <b><?php echo esc_html__("Set a Custom Post Publish Date Range:", 'aiomatic-automatic-ai-content-writer');?></b>
2177 + </td>
2178 + <td>
2179 + <input type="text" id="min_time" name="aiomatic_review_list[min_time][]" placeholder="Start time" class="cr_half"> - <input type="text" id="max_time" name="aiomatic_review_list[max_time][]" placeholder="End time" class="cr_half">
2180 + </td>
2181 + </tr>
2182 + <tr>
2183 + <td class="cr_min_width_200">
2184 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2185 + <div class="bws_hidden_help_text_top cr_min_260px">
2186 + <?php
2187 + echo esc_html__("Set the custom fields that will be set for generated posts. The syntax for this field is the following: custom_field_name1 => custom_field_value1, custom_field_name2 => custom_field_value2, ... . You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You can also use the following topic based shortcodes: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%", 'aiomatic-automatic-ai-content-writer');
2188 + ?>
2189 + </div>
2190 + </div>
2191 + <b><?php echo esc_html__("Post Custom Fields:", 'aiomatic-automatic-ai-content-writer');?></b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
2192 + </td>
2193 + <td>
2194 + <textarea rows="1" cols="70" name="aiomatic_review_list[custom_fields][]" placeholder="Please insert your desired custom fields. Example: title_custom_field => %%post_title%%" class="cr_width_full"></textarea>
2195 + </td>
2196 + </tr>
2197 + <tr>
2198 + <td class="cr_min_width_200">
2199 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2200 + <div class="bws_hidden_help_text_top cr_min_260px">
2201 + <?php
2202 + echo esc_html__("Set the custom taxonomies that will be set for generated posts. The syntax for this field is the following: custom_taxonomy_name1 => custom_taxonomy_value1A, custom_taxonomy_value1B; custom_taxonomy_name2 => custom_taxonomy_value2A, custom_taxonomy_value2B; ... . You can also set hierarhical taxonomies (parent > child), in this format: custom_taxonomy_name => parent1 > child1 . You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You can also use the following topic based shortcodes: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%", 'aiomatic-automatic-ai-content-writer');
2203 + ?>
2204 + </div>
2205 + </div>
2206 + <b><?php echo esc_html__("Post Custom Taxonomies:", 'aiomatic-automatic-ai-content-writer');?></b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
2207 + </td>
2208 + <td>
2209 + <textarea rows="1" cols="70" name="aiomatic_review_list[custom_tax][]" placeholder="Please insert your desired custom taxonomies. Example: custom_taxonomy_name => %%post_title%%" class="cr_width_full"></textarea>
2210 + </td>
2211 + </tr>
2212 + <tr>
2213 + <td>
2214 + <div>
2215 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2216 + <div class="bws_hidden_help_text_top cr_min_260px">
2217 + <?php
2218 + echo esc_html__("Enter a 2 letter language code that will be assigned as the WPML/Polylang language for posts. Example: for German, input: de", 'aiomatic-automatic-ai-content-writer');
2219 + ?>
2220 + </div>
2221 + </div>
2222 + <b><?php echo esc_html__("Assign WPML/Polylang Language to Posts:", 'aiomatic-automatic-ai-content-writer');?></b>
2223 + </td>
2224 + <td>
2225 + <input type="text" class="cr_width_full" name="aiomatic_review_list[wpml_lang][]" value="" placeholder="WPML/Polylang language" class="cr_width_full">
2226 + </td>
2227 + </tr>
2228 + <tr><td colspan="2">
2229 + <h3><?php echo esc_html__("Scheduling Restrictions", 'aiomatic-automatic-ai-content-writer');?>:</h3>
2230 + </td></tr>
2231 + <tr>
2232 + <td class="cr_min_width_200">
2233 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
2234 + <div class="bws_hidden_help_text cr_min_260px">
2235 + <?php
2236 + echo esc_html__("Select the days of the week when you don't want to run this rule. You can enter a comma separate list of day names.", 'aiomatic-automatic-ai-content-writer');
2237 + ?>
2238 + </div>
2239 + </div>
2240 + <b><?php echo esc_html__("Do Not Run This Rule On The Following Days Of The Week:", 'aiomatic-automatic-ai-content-writer');?></b>
2241 + <br/><?php echo esc_html__("Current Server Time:", 'aiomatic-automatic-ai-content-writer') . '&nbsp;' . esc_html(date('l', time())) . ', ' . esc_html(date("Y-m-d H:i:s"));?>
2242 + </td>
2243 + <td>
2244 + <input type="text" class="cr_width_full" name="aiomatic_review_list[days_no_run][]" value="" placeholder="Mo,Tu,We,Th,Fr,Sa,Su" class="cr_width_full">
2245 + </td>
2246 + </tr>
2247 + </table>
2248 + </div>
2249 + </div>
2250 + <div class="codemodalfzr-footer">
2251 + <br/>
2252 + <h3 class="cr_inline">Aimogen Automatic Post Generator</h3>
2253 + <span id="aiomatic_ok" class="codeokfzr cr_inline">OK&nbsp;</span>
2254 + <br/><br/>
2255 + </div>
2256 + </div>
2257 + </div>
2258 + </td>
2259 + <td class="cr_shrt_td2"><span class="cr_gray20">X</span></td>
2260 + <td class="cr_short_td"><input type="checkbox" name="aiomatic_review_list[active][]" value="1" checked />
2261 + <input type="hidden" name="aiomatic_review_list[last_run][]" value="1988-01-27 00:00:00"/>
2262 + <input type="hidden" name="aiomatic_review_list[rule_unique_id][]" value="<?php echo esc_html(uniqid('', true));?>"/>
2263 + </td>
2264 + <td class="cr_short_td">
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__("No info.", 'aiomatic-automatic-ai-content-writer');
2269 + ?>
2270 + </div>
2271 + </div>
2272 + </td>
2273 + <td class="cr_center">
2274 + <div>
2275 + <img src="<?php
2276 + echo esc_url_raw(plugin_dir_url(dirname(__FILE__)) . 'images/running.gif');
2277 + ?>" alt="Running" class="cr_running">
2278 + <div class="codemainfzr cr_gray_back cr_width_80p">
2279 + <select autocomplete="off" class="codemainfzr" id="actions" class="actions" name="actions" disabled>
2280 + <option value="select" disabled selected><?php echo esc_html__("Select an Action", 'aiomatic-automatic-ai-content-writer');?></option>
2281 + <option value="run" onclick=""><?php echo esc_html__("Run This Rule Now", 'aiomatic-automatic-ai-content-writer');?></option>
2282 + <option value="duplicate" onclick=""><?php echo esc_html__("Duplicate This Rule", 'aiomatic-automatic-ai-content-writer');?></option>
2283 + <option value="up" onclick=""><?php echo esc_html__("Move This Rule Up", 'aiomatic-automatic-ai-content-writer');?></option>
2284 + <option value="down" onclick=""><?php echo esc_html__("Move This Rule Down", 'aiomatic-automatic-ai-content-writer');?></option>
2285 + <option value="trash" onclick=""><?php echo esc_html__("Send All Posts To Trash", 'aiomatic-automatic-ai-content-writer');?></option>
2286 + <option value="delete" onclick=""><?php echo esc_html__("Permanently Delete All Posts", 'aiomatic-automatic-ai-content-writer');?></option>
2287 + </select>
2288 + </div>
2289 + </div>
2290 + </td>
2291 + </tr>
2292 + <?php
2293 + }
2294 + ?>
2295 + </tbody>
2296 + </table>
2297 + </div>
2298 + </div>
2299 + </div>
2300 + <hr/>
2301 +
2302 + <div>
2303 + <?php
2304 + $next_url = (aiomatic_isSecure() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
2305 + if(stristr($next_url, 'aiomatic_page=') === false)
2306 + {
2307 + if(stristr($next_url, '?') === false)
2308 + {
2309 + if($max_pages == 1)
2310 + {
2311 + $next_url .= '?aiomatic_page=1';
2312 + }
2313 + else
2314 + {
2315 + $next_url .= '?aiomatic_page=2';
2316 + }
2317 + }
2318 + else
2319 + {
2320 + if($max_pages == 1)
2321 + {
2322 + $next_url .= '&aiomatic_page=1';
2323 + }
2324 + else
2325 + {
2326 + $next_url .= '&aiomatic_page=2';
2327 + }
2328 + }
2329 + }
2330 + else
2331 + {
2332 + if(isset($_GET['aiomatic_page']))
2333 + {
2334 + $curent_page = $_GET["aiomatic_page"];
2335 + }
2336 + else
2337 + {
2338 + $curent_page = '';
2339 + }
2340 + if(is_numeric($curent_page))
2341 + {
2342 + $next_page = $curent_page + 1;
2343 + if($next_page > $max_pages)
2344 + {
2345 + $next_page = $max_pages;
2346 + }
2347 + if($next_page <= 0)
2348 + {
2349 + $next_page = 1;
2350 + }
2351 + $next_url = str_replace('aiomatic_page=' . $curent_page, 'aiomatic_page=' . $next_page, $next_url);
2352 + }
2353 + else
2354 + {
2355 + if(stristr($next_url, '?') === false)
2356 + {
2357 + if($max_pages == 1)
2358 + {
2359 + $next_url .= '?aiomatic_page=1';
2360 + }
2361 + else
2362 + {
2363 + $next_url .= '?aiomatic_page=2';
2364 + }
2365 + }
2366 + else
2367 + {
2368 + if($max_pages == 1)
2369 + {
2370 + $next_url .= '&aiomatic_page=1';
2371 + }
2372 + else
2373 + {
2374 + $next_url .= '&aiomatic_page=2';
2375 + }
2376 + }
2377 + }
2378 + }
2379 + $prev_url = (aiomatic_isSecure() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
2380 + if(stristr($prev_url, 'aiomatic_page=') === false)
2381 + {
2382 + if(stristr($prev_url, '?') === false)
2383 + {
2384 + $prev_url .= '?aiomatic_page=1';
2385 + }
2386 + else
2387 + {
2388 + $prev_url .= '&aiomatic_page=1';
2389 + }
2390 + }
2391 + else
2392 + {
2393 + if(isset($_GET['aiomatic_page']))
2394 + {
2395 + $curent_page = $_GET["aiomatic_page"];
2396 + }
2397 + else
2398 + {
2399 + $curent_page = '';
2400 + }
2401 + if(is_numeric($curent_page))
2402 + {
2403 + $go_to = $curent_page - 1;
2404 + if($go_to <= 0)
2405 + {
2406 + $go_to = 1;
2407 + }
2408 + if($go_to > $max_pages)
2409 + {
2410 + $go_to = $max_pages;
2411 + }
2412 + $prev_url = str_replace('aiomatic_page=' . $curent_page, 'aiomatic_page=' . $go_to, $prev_url);
2413 + }
2414 + else
2415 + {
2416 + if(stristr($prev_url, '?') === false)
2417 + {
2418 + $prev_url .= '?aiomatic_page=1';
2419 + }
2420 + else
2421 + {
2422 + $prev_url .= '&aiomatic_page=1';
2423 + }
2424 + }
2425 + }
2426 + $first_url = (aiomatic_isSecure() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
2427 + if(stristr($first_url, 'aiomatic_page=') === false)
2428 + {
2429 + if(stristr($first_url, '?') === false)
2430 + {
2431 + $first_url .= '?aiomatic_page=1';
2432 + }
2433 + else
2434 + {
2435 + $first_url .= '&aiomatic_page=1';
2436 + }
2437 + }
2438 + else
2439 + {
2440 + if(isset($_GET['aiomatic_page']))
2441 + {
2442 + $curent_page = $_GET["aiomatic_page"];
2443 + }
2444 + else
2445 + {
2446 + $curent_page = '';
2447 + }
2448 + if(is_numeric($curent_page))
2449 + {
2450 + $first_url = str_replace('aiomatic_page=' . $curent_page, 'aiomatic_page=1', $first_url);
2451 + }
2452 + else
2453 + {
2454 + if(stristr($first_url, '?') === false)
2455 + {
2456 + $first_url .= '?aiomatic_page=1';
2457 + }
2458 + else
2459 + {
2460 + $first_url .= '&aiomatic_page=1';
2461 + }
2462 + }
2463 + }
2464 + $last_url = (aiomatic_isSecure() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
2465 + if(stristr($last_url, 'aiomatic_page=') === false)
2466 + {
2467 + if(stristr($last_url, '?') === false)
2468 + {
2469 + $last_url .= '?aiomatic_page=' . $max_pages;
2470 + }
2471 + else
2472 + {
2473 + $last_url .= '&aiomatic_page=' . $max_pages;
2474 + }
2475 + }
2476 + else
2477 + {
2478 + if(isset($_GET['aiomatic_page']))
2479 + {
2480 + $curent_page = $_GET["aiomatic_page"];
2481 + }
2482 + else
2483 + {
2484 + $curent_page = '';
2485 + }
2486 + if(is_numeric($curent_page))
2487 + {
2488 + $last_url = str_replace('aiomatic_page=' . $curent_page, 'aiomatic_page=' . $max_pages, $last_url);
2489 + }
2490 + else
2491 + {
2492 + if(stristr($last_url, '?') === false)
2493 + {
2494 + $last_url .= '?aiomatic_page=' . $max_pages;
2495 + }
2496 + else
2497 + {
2498 + $last_url .= '&aiomatic_page=' . $max_pages;
2499 + }
2500 + }
2501 + }
2502 + if(isset($_GET['aiomatic_page']))
2503 + {
2504 + $this_page = $_GET["aiomatic_page"];
2505 + }
2506 + else
2507 + {
2508 + $this_page = '1';
2509 + }
2510 + echo '<center><a href="' . esc_url_raw($first_url) . '">' . esc_html__('First Page', 'aiomatic-automatic-ai-content-writer') . '</a>&nbsp;&nbsp;&nbsp;<a href="' . esc_url_raw($prev_url) . '">' . esc_html__('Previous Page', 'aiomatic-automatic-ai-content-writer') . '</a>&nbsp;&nbsp;' . esc_html__('Page', 'aiomatic-automatic-ai-content-writer') . ' ' . esc_html($this_page) . ' ' . esc_html__('of', 'aiomatic-automatic-ai-content-writer') . ' ' . esc_html($max_pages) . '&nbsp;-&nbsp;' . esc_html__("Rules Per Page:", 'aiomatic-automatic-ai-content-writer') . '&nbsp;&nbsp;<input class="cr_50" type="number" min="2" step="1" max="999" name="posts_per_page" value="' . esc_attr($rules_per_page). '" required/>&nbsp;&nbsp;&nbsp;<a href="' . esc_url_raw($next_url) . '">' . esc_html__('Next Page', 'aiomatic-automatic-ai-content-writer') . '</a>&nbsp;&nbsp;&nbsp;<a href="' . esc_url_raw($last_url) . '">' . esc_html__('Last Page', 'aiomatic-automatic-ai-content-writer') . '</a></center>
2511 + <center></center>
2512 + <center>Info: You can add new rules only on the last page.</center>';
2513 + ?>
2514 + <div>
2515 + <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>
2516 + </div>
2517 + <div>
2518 + <div><?php echo esc_html__("* = required", 'aiomatic-automatic-ai-content-writer');?></div><br/><?php echo sprintf( wp_kses( __( "Check more settings which apply to rule running, over at the plugin's 'Settings' menu, <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( get_admin_url() . 'admin.php?page=aiomatic_admin_settings#tab-17' ) );?>
2519 + <br/>
2520 + <?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');?>&nbsp;<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/><br/><?php echo esc_html__("Confused about rule running status icons?", 'aiomatic-automatic-ai-content-writer');?> <a href="http://coderevolution.ro/knowledge-base/faq/how-to-interpret-the-rule-running-visual-indicators-red-x-yellow-diamond-green-tick-from-inside-plugins/" target="_blank"><?php echo esc_html__("More info", 'aiomatic-automatic-ai-content-writer');?></a><br/>
2521 + <div class="cr_none" id="midas_icons">
2522 + <table>
2523 + <tr>
2524 + <td><img id="run_img" src="<?php echo esc_url_raw(plugin_dir_url(dirname(__FILE__)) . 'images/running.gif');?>" alt="Running" title="status"></td>
2525 + <td><?php echo esc_html__("In Progress", 'aiomatic-automatic-ai-content-writer');?> - <b><?php echo esc_html__("Importing is Running", 'aiomatic-automatic-ai-content-writer');?></b></td>
2526 + </tr>
2527 + <tr>
2528 + <td><img id="ok_img" src="<?php echo esc_url_raw(plugin_dir_url(dirname(__FILE__)) . 'images/ok.gif');?>" alt="OK" title="status"></td>
2529 + <td><?php echo esc_html__("Success", 'aiomatic-automatic-ai-content-writer');?> - <b><?php echo esc_html__("New Posts Created", 'aiomatic-automatic-ai-content-writer');?></b></td>
2530 + </tr>
2531 + <tr>
2532 + <td><img id="fail_img" src="<?php echo esc_url_raw(plugin_dir_url(dirname(__FILE__)) . 'images/failed.gif');?>" alt="Faield" title="status"></td>
2533 + <td><?php echo esc_html__("Failed", 'aiomatic-automatic-ai-content-writer');?> - <b><?php echo esc_html__("An Error Occurred.", 'aiomatic-automatic-ai-content-writer');?> <b><?php echo esc_html__("Please check 'Activity and Logging' plugin menu for details.", 'aiomatic-automatic-ai-content-writer');?></b></td>
2534 + </tr>
2535 + <tr>
2536 + <td><img id="nochange_img" src="<?php echo esc_url_raw(plugin_dir_url(dirname(__FILE__)) . 'images/nochange.gif');?>" alt="NoChange" title="status"></td>
2537 + <td><?php echo esc_html__("No Change - No New Posts Created", 'aiomatic-automatic-ai-content-writer');?> - <b><?php echo esc_html__("Possible reasons:", 'aiomatic-automatic-ai-content-writer');?></b></td>
2538 + </tr>
2539 + <tr>
2540 + <td></td>
2541 + <td>
2542 + <ul>
2543 + <li>&#9658; <?php echo esc_html__("Please change rule settings, as your titles are all posted.", 'aiomatic-automatic-ai-content-writer');?></li>
2544 + </ul>
2545 + </td>
2546 + </tr>
2547 + </table>
2548 + </div>
2549 + </div>
2550 + </form>
2551 + </div>
2552 + <div id="running_status_ai"></div>
2553 + </div>
2554 + <?php if(!isset($aiomatic_Main_Settings['hide_videos']) || trim($aiomatic_Main_Settings['hide_videos']) != 'on'){
2555 + ?>
2556 + <div class="wrap">
2557 + <h3><?php echo esc_html__("Amazon Product Reviews Tutorial Video", 'aiomatic-automatic-ai-content-writer');?></h3>
2558 + <div id="ai-video-container"><br/>
2559 + <iframe class="ai-video" width="560" height="315" src="https://www.youtube.com/embed/X_sxxlbdKXU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
2560 + </div>
2561 + </div>
2562 + <?php
2563 + }
2564 + }
2565 + if (isset($_POST['aiomatic_review_list'])) {
2566 + add_action('admin_init', 'aiomatic_save_rules_review');
2567 + }
2568 +
2569 + function aiomatic_save_rules_review($data2)
2570 + {
2571 + $init_rules_per_page = get_option('aiomatic_posts_per_page', 12);
2572 + $rules_per_page = get_option('aiomatic_posts_per_page', 12);
2573 + if(isset($_POST['posts_per_page']))
2574 + {
2575 + aiomatic_update_option('aiomatic_posts_per_page', $_POST['posts_per_page']);
2576 + }
2577 + check_admin_referer('aiomatic_save_rules', '_aiomaticr_nonce');
2578 +
2579 + $data2 = $_POST['aiomatic_review_list'];
2580 + $rules = get_option('aiomatic_review_list', array());
2581 + if(!is_array($rules))
2582 + {
2583 + $rules = array();
2584 + }
2585 + $initial_count = count($rules);
2586 + $add = false;
2587 + $scad = false;
2588 + if(isset($_GET["aiomatic_page"]) && is_numeric($_GET["aiomatic_page"]))
2589 + {
2590 + $curent_page = $_GET["aiomatic_page"];
2591 + }
2592 + else
2593 + {
2594 + $curent_page = 1;
2595 + }
2596 + $offset = ($curent_page - 1) * $rules_per_page;
2597 + $cat_cont = $offset;
2598 + $cont = 0;
2599 + if (isset($data2['review_keyword'][0])) {
2600 + for ($i = 0; $i < sizeof($data2['review_keyword']); ++$i)
2601 + {
2602 + $bundle = array();
2603 + if (isset($data2['schedule'][$i]) && $data2['schedule'][$i] != '' && $data2['review_keyword'][$i] != '') {
2604 + $bundle[] = trim(sanitize_text_field($data2['schedule'][$i]));
2605 + if (isset($data2['active'][$i])) {
2606 + $bundle[] = trim(sanitize_text_field($data2['active'][$i]));
2607 + } else {
2608 + $bundle[] = '0';
2609 + }
2610 + $bundle[] = trim(sanitize_text_field($data2['last_run'][$i]));
2611 + $bundle[] = trim(sanitize_text_field($data2['max'][$i]));
2612 + $bundle[] = trim(sanitize_text_field($data2['submit_status'][$i]));
2613 + $bundle[] = trim(sanitize_text_field($data2['default_type'][$i]));
2614 + $bundle[] = trim(sanitize_text_field($data2['post_author'][$i]));
2615 + $bundle[] = trim(sanitize_text_field($data2['default_tags'][$i]));
2616 + if($i == sizeof($data2['schedule']) - 1)
2617 + {
2618 + if(isset($data2['default_category']))
2619 + {
2620 + $bundle[] = $data2['default_category'];
2621 + }
2622 + else
2623 + {
2624 + if(!isset($data2['default_category' . $cat_cont]))
2625 + {
2626 + $cat_cont++;
2627 + }
2628 + if(!isset($data2['default_category' . $cat_cont]))
2629 + {
2630 + $bundle[] = array('aiomatic_no_category_12345678');
2631 + }
2632 + else
2633 + {
2634 + $bundle[] = $data2['default_category' . $cat_cont];
2635 + }
2636 + }
2637 + }
2638 + else
2639 + {
2640 + if(!isset($data2['default_category' . $cat_cont]))
2641 + {
2642 + $cat_cont++;
2643 + }
2644 + if(!isset($data2['default_category' . $cat_cont]))
2645 + {
2646 + $bundle[] = array('aiomatic_no_category_12345678');
2647 + }
2648 + else
2649 + {
2650 + $bundle[] = $data2['default_category' . $cat_cont];
2651 + }
2652 + }
2653 + $bundle[] = trim(sanitize_text_field($data2['auto_categories'][$i]));
2654 + $bundle[] = trim(sanitize_text_field($data2['auto_tags'][$i]));
2655 + $bundle[] = trim(sanitize_text_field($data2['enable_comments'][$i]));
2656 + $bundle[] = trim($data2['image_url'][$i]);
2657 + $bundle[] = $data2['review_keyword'][$i];
2658 + $bundle[] = trim(sanitize_text_field($data2['enable_pingback'][$i]));
2659 + $bundle[] = trim(sanitize_text_field($data2['post_format'][$i]));
2660 + $bundle[] = trim($data2['custom_fields'][$i]);
2661 + $bundle[] = trim($data2['custom_tax'][$i]);
2662 + $bundle[] = trim($data2['temperature'][$i]);
2663 + $bundle[] = trim($data2['top_p'][$i]);
2664 + $bundle[] = trim($data2['presence_penalty'][$i]);
2665 + $bundle[] = trim($data2['frequency_penalty'][$i]);
2666 + $bundle[] = trim($data2['royalty_free'][$i]);
2667 + $bundle[] = trim($data2['max_tokens'][$i]);
2668 + $bundle[] = trim($data2['max_seed_tokens'][$i]);
2669 + $bundle[] = trim($data2['max_continue_tokens'][$i]);
2670 + $bundle[] = trim($data2['post_prepend'][$i]);
2671 + $bundle[] = trim($data2['post_append'][$i]);
2672 + $bundle[] = trim($data2['enable_ai_images'][$i]);
2673 + $bundle[] = trim($data2['ai_command_image'][$i]);
2674 + $bundle[] = trim($data2['image_size'][$i]);
2675 + $bundle[] = trim($data2['wpml_lang'][$i]);
2676 + $bundle[] = trim($data2['remove_default'][$i]);
2677 + $bundle[] = trim($data2['strip_title'][$i]);
2678 + $bundle[] = trim($data2['title_once'][$i]);
2679 + $bundle[] = trim($data2['category_model'][$i]);
2680 + $bundle[] = trim($data2['category_ai_command'][$i]);
2681 + $bundle[] = trim($data2['tag_model'][$i]);
2682 + $bundle[] = trim($data2['tag_ai_command'][$i]);
2683 + $bundle[] = trim($data2['min_time'][$i]);
2684 + $bundle[] = trim($data2['max_time'][$i]);
2685 + $bundle[] = trim($data2['skip_spin'][$i]);
2686 + $bundle[] = trim($data2['skip_translate'][$i]);
2687 + $bundle[] = trim($data2['affiliate_id'][$i]);
2688 + $bundle[] = trim($data2['content_language'][$i]);
2689 + $bundle[] = trim($data2['writing_style'][$i]);
2690 + $bundle[] = trim($data2['writing_tone'][$i]);
2691 + $bundle[] = trim($data2['title_prompt'][$i]);
2692 + $bundle[] = trim($data2['content_prompt'][$i]);
2693 + $bundle[] = trim($data2['excerpt_prompt'][$i]);
2694 + $bundle[] = trim($data2['paragraph_count'][$i]);
2695 + $bundle[] = trim($data2['topic_title_model'][$i]);
2696 + $bundle[] = trim($data2['topic_content_model'][$i]);
2697 + $bundle[] = trim($data2['topic_excerpt_model'][$i]);
2698 + $bundle[] = trim($data2['intro_prompt'][$i]);
2699 + $bundle[] = trim($data2['topic_intro_model'][$i]);
2700 + $bundle[] = trim($data2['outro_prompt'][$i]);
2701 + $bundle[] = trim($data2['topic_outro_model'][$i]);
2702 + $bundle[] = trim($data2['topic_images'][$i]);
2703 + $bundle[] = trim($data2['sections_role'][$i]);
2704 + $bundle[] = trim($data2['topic_videos'][$i]);
2705 + $bundle[] = trim($data2['rule_description'][$i]);
2706 + $bundle[] = trim($data2['custom_shortcodes'][$i]);
2707 + $bundle[] = trim($data2['strip_by_regex'][$i]);
2708 + $bundle[] = trim($data2['replace_regex'][$i]);
2709 + $bundle[] = trim($data2['strip_by_regex_prompts'][$i]);
2710 + $bundle[] = trim($data2['replace_regex_prompts'][$i]);
2711 + $bundle[] = trim($data2['run_regex_on'][$i]);
2712 + $bundle[] = trim($data2['max_links'][$i]);
2713 + $bundle[] = trim($data2['link_post_types'][$i]);
2714 + $bundle[] = trim($data2['enable_toc'][$i]);
2715 + $bundle[] = trim($data2['title_toc'][$i]);
2716 + $bundle[] = trim($data2['qa_prompt'][$i]);
2717 + $bundle[] = trim($data2['topic_qa_model'][$i]);
2718 + $bundle[] = trim($data2['enable_qa'][$i]);
2719 + $bundle[] = trim($data2['title_qa'][$i]);
2720 + $bundle[] = trim($data2['title_outro'][$i]);
2721 + $bundle[] = trim($data2['link_type'][$i]);
2722 + $bundle[] = trim($data2['link_list'][$i]);
2723 + $bundle[] = trim($data2['skip_inexist'][$i]);
2724 + $bundle[] = trim($data2['target_country'][$i]);
2725 + $bundle[] = trim($data2['global_prepend'][$i]);
2726 + $bundle[] = trim($data2['global_append'][$i]);
2727 + $bundle[] = trim($data2['search_query_repetition'][$i]);
2728 + $bundle[] = trim($data2['days_no_run'][$i]);
2729 + $bundle[] = trim($data2['overwrite_existing'][$i]);
2730 + $bundle[] = trim($data2['link_nofollow'][$i]);
2731 + $bundle[] = trim($data2['parent_id'][$i]);
2732 + $bundle[] = trim($data2['rule_unique_id'][$i]);
2733 + $bundle[] = trim($data2['point_of_view'][$i]);
2734 + $bundle[] = trim($data2['sections_prompt'][$i]);
2735 + $bundle[] = trim($data2['topic_sections_model'][$i]);
2736 + $bundle[] = trim($data2['post_sections_list'][$i]);
2737 + $bundle[] = trim($data2['section_count'][$i]);
2738 + $bundle[] = trim($data2['proscons_prompt'][$i]);
2739 + $bundle[] = trim($data2['topic_proscons_model'][$i]);
2740 + $bundle[] = trim($data2['title_proscons'][$i]);
2741 + $bundle[] = trim($data2['enable_proscons'][$i]);
2742 + $bundle[] = trim($data2['title_reviews'][$i]);
2743 + $bundle[] = trim($data2['enable_reviews'][$i]);
2744 + $bundle[] = trim($data2['reviews_prompt'][$i]);
2745 + $bundle[] = trim($data2['topic_reviews_model'][$i]);
2746 + $bundle[] = trim($data2['no_headlink'][$i]);
2747 + $bundle[] = trim($data2['image_model'][$i]);
2748 + $bundle[] = isset($data2['assistant_id'][$i]) ? trim($data2['assistant_id'][$i]) : '';
2749 + $rules[$offset + $cont] = $bundle;
2750 + $cont++;
2751 + $cat_cont++;
2752 + }
2753 + }
2754 + while($cont < $init_rules_per_page)
2755 + {
2756 + if(isset($rules[$offset + $cont]))
2757 + {
2758 + $rules[$offset + $cont] = false;
2759 + }
2760 + $cont = $cont + 1;
2761 + $cat_cont++;
2762 + }
2763 + $rules = array_values(array_filter($rules));
2764 + }
2765 + $final_count = count($rules);
2766 + if($final_count > $initial_count)
2767 + {
2768 + $add = true;
2769 + }
2770 + elseif($final_count < $initial_count)
2771 + {
2772 + $scad = true;
2773 + }
2774 + aiomatic_update_option('aiomatic_review_list', $rules, false);
2775 + if(count($rules) % $rules_per_page === 1 && $add === true)
2776 + {
2777 + $rules_count = count($rules);
2778 + $max_pages = ceil($rules_count/$rules_per_page);
2779 + if($max_pages == 0)
2780 + {
2781 + $max_pages = 1;
2782 + }
2783 + $last_url = (aiomatic_isSecure() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
2784 + if(stristr($last_url, 'aiomatic_page=') === false)
2785 + {
2786 + if(stristr($last_url, '?') === false)
2787 + {
2788 + $last_url .= '?aiomatic_page=' . $max_pages;
2789 + }
2790 + else
2791 + {
2792 + $last_url .= '&aiomatic_page=' . $max_pages;
2793 + }
2794 + }
2795 + else
2796 + {
2797 + if(isset($_GET['aiomatic_page']))
2798 + {
2799 + $curent_page = $_GET["aiomatic_page"];
2800 + }
2801 + else
2802 + {
2803 + $curent_page = '';
2804 + }
2805 + if(is_numeric($curent_page))
2806 + {
2807 + $last_url = str_replace('aiomatic_page=' . $curent_page, 'aiomatic_page=' . $max_pages, $last_url);
2808 + }
2809 + else
2810 + {
2811 + if(stristr($last_url, '?') === false)
2812 + {
2813 + $last_url .= '?aiomatic_page=' . $max_pages;
2814 + }
2815 + else
2816 + {
2817 + $last_url .= '&aiomatic_page=' . $max_pages;
2818 + }
2819 + }
2820 + }
2821 + aiomatic_redirect($last_url);
2822 + }
2823 + elseif(count($rules) != 0 && count($rules) % $rules_per_page === 0 && $scad === true)
2824 + {
2825 + $rules_count = count($rules);
2826 + $max_pages = ceil($rules_count/$rules_per_page);
2827 + if($max_pages == 0)
2828 + {
2829 + $max_pages = 1;
2830 + }
2831 + $last_url = (aiomatic_isSecure() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
2832 + if(stristr($last_url, 'aiomatic_page=') === false)
2833 + {
2834 + if(stristr($last_url, '?') === false)
2835 + {
2836 + $last_url .= '?aiomatic_page=' . $max_pages;
2837 + }
2838 + else
2839 + {
2840 + $last_url .= '&aiomatic_page=' . $max_pages;
2841 + }
2842 + }
2843 + else
2844 + {
2845 + if(isset($_GET['aiomatic_page']))
2846 + {
2847 + $curent_page = $_GET["aiomatic_page"];
2848 + }
2849 + else
2850 + {
2851 + $curent_page = '';
2852 + }
2853 + if(is_numeric($curent_page))
2854 + {
2855 + $last_url = str_replace('aiomatic_page=' . $curent_page, 'aiomatic_page=' . $max_pages, $last_url);
2856 + }
2857 + else
2858 + {
2859 + if(stristr($last_url, '?') === false)
2860 + {
2861 + $last_url .= '?aiomatic_page=' . $max_pages;
2862 + }
2863 + else
2864 + {
2865 + $last_url .= '&aiomatic_page=' . $max_pages;
2866 + }
2867 + }
2868 + }
2869 + aiomatic_redirect($last_url);
2870 + }
2871 + }
2872 + function aiomatic_expand_rules_review()
2873 + {
2874 + $all_models = aiomatic_get_all_models(true);
2875 + $all_assistants = aiomatic_get_all_assistants(true);
2876 + if (!get_option('aiomatic_running_list')) {
2877 + $running = array();
2878 + } else {
2879 + $running = get_option('aiomatic_running_list');
2880 + }
2881 + $GLOBALS['wp_object_cache']->delete('aiomatic_review_list', 'options');
2882 + $rules = get_option('aiomatic_review_list');
2883 + if(!is_array($rules))
2884 + {
2885 + $rules = array();
2886 + }
2887 + $output = '';
2888 + $cont = 0;
2889 + if (!empty($rules)) {
2890 + $cat_args = array(
2891 + "orderby" => "name",
2892 + "hide_empty" => 0,
2893 + "order" => "ASC"
2894 + );
2895 + $cats_arr = [];
2896 + global $wpdb;
2897 + $post_statuses = array(
2898 + 'publish',
2899 + 'draft',
2900 + 'pending',
2901 + 'trash',
2902 + 'private',
2903 + 'future'
2904 + );
2905 + $post_statuses_in = "'" . implode("','", $post_statuses) . "'";
2906 + $sql = "
2907 + SELECT pm.meta_value AS rule_id, COUNT(*) AS rule_count
2908 + FROM {$wpdb->posts} p
2909 + INNER JOIN {$wpdb->postmeta} pm ON (p.ID = pm.post_id)
2910 + WHERE p.post_status IN ($post_statuses_in)
2911 + AND pm.meta_key = 'aiomatic_parent_rule'
2912 + GROUP BY pm.meta_value
2913 + ";
2914 + $results = $wpdb->get_results($sql);
2915 + $counted_vals = array();
2916 + if ( ! empty($results) ) {
2917 + foreach ($results as $row) {
2918 + $ruleKey = (string)$row->rule_id;
2919 + if (strpos($ruleKey, '-') !== false) {
2920 + $exp = explode('-', $ruleKey);
2921 + if (isset($exp[0]) && isset($exp[1]) && $exp[0] === '0') {
2922 + $ruleKey = $exp[1];
2923 + }
2924 + }
2925 + $counted_vals[$ruleKey] = $row->rule_count;
2926 + }
2927 + }
2928 + if(isset($_GET["aiomatic_page"]) && is_numeric($_GET["aiomatic_page"]))
2929 + {
2930 + $curent_page = $_GET["aiomatic_page"];
2931 + }
2932 + else
2933 + {
2934 + $curent_page = 1;
2935 + }
2936 + $unlocker = get_option('aiomatic_minute_running_unlocked', false);
2937 + $rules_per_page = get_option('aiomatic_posts_per_page', 12);
2938 + $amaz_countries = aiomatic_get_amazon_codes();
2939 + foreach ($rules as $request => $bundle[]) {
2940 + if(($cont < ($curent_page - 1) * $rules_per_page) || ($cont >= $curent_page * $rules_per_page))
2941 + {
2942 + $cont++;
2943 + continue;
2944 + }
2945 + $bundle_values = array_values($bundle);
2946 + $myValues = $bundle_values[$cont];
2947 + $array_my_values = array_values($myValues);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]);}}
2948 + $schedule = $array_my_values[0];
2949 + $active = $array_my_values[1];
2950 + $last_run = $array_my_values[2];
2951 + $max = $array_my_values[3];
2952 + $status = $array_my_values[4];
2953 + $def_type = $array_my_values[5];
2954 + $post_user_name = $array_my_values[6];
2955 + $default_tags = $array_my_values[7];
2956 + $default_category = $array_my_values[8];
2957 + $auto_categories = $array_my_values[9];
2958 + $auto_tags = $array_my_values[10];
2959 + $enable_comments = $array_my_values[11];
2960 + $image_url = $array_my_values[12];
2961 + $review_keyword = $array_my_values[13];
2962 + $enable_pingback = $array_my_values[14];
2963 + $post_format = $array_my_values[15];
2964 + $custom_fields = $array_my_values[16];
2965 + $custom_tax = $array_my_values[17];
2966 + $temperature = $array_my_values[18];
2967 + $top_p = $array_my_values[19];
2968 + $presence_penalty = $array_my_values[20];
2969 + $frequency_penalty = $array_my_values[21];
2970 + $royalty_free = $array_my_values[22];
2971 + $max_tokens = $array_my_values[23];
2972 + $max_seed_tokens = $array_my_values[24];
2973 + $max_continue_tokens = $array_my_values[25];
2974 + $post_prepend = $array_my_values[26];
2975 + $post_append = $array_my_values[27];
2976 + $enable_ai_images = $array_my_values[28];
2977 + $ai_command_image = $array_my_values[29];
2978 + $image_size = $array_my_values[30];
2979 + $wpml_lang = $array_my_values[31];
2980 + $remove_default = $array_my_values[32];
2981 + $strip_title = $array_my_values[33];
2982 + $title_once = $array_my_values[34];
2983 + $category_model = $array_my_values[35];
2984 + $category_ai_command = $array_my_values[36];
2985 + $tag_model = $array_my_values[37];
2986 + $tag_ai_command = $array_my_values[38];
2987 + $min_time = $array_my_values[39];
2988 + $max_time = $array_my_values[40];
2989 + $skip_spin = $array_my_values[41];
2990 + $skip_translate = $array_my_values[42];
2991 + $affiliate_id = $array_my_values[43];
2992 + $content_language = $array_my_values[44];
2993 + $writing_style = $array_my_values[45];
2994 + $writing_tone = $array_my_values[46];
2995 + $title_prompt = $array_my_values[47];
2996 + $content_prompt = $array_my_values[48];
2997 + $excerpt_prompt = $array_my_values[49];
2998 + $paragraph_count = $array_my_values[50];
2999 + $topic_title_model = $array_my_values[51];
3000 + $topic_content_model = $array_my_values[52];
3001 + $topic_excerpt_model = $array_my_values[53];
3002 + $intro_prompt = $array_my_values[54];
3003 + $topic_intro_model = $array_my_values[55];
3004 + $outro_prompt = $array_my_values[56];
3005 + $topic_outro_model = $array_my_values[57];
3006 + $topic_images = $array_my_values[58];
3007 + $sections_role = $array_my_values[59];
3008 + $topic_videos = $array_my_values[60];
3009 + $rule_description = $array_my_values[61];
3010 + $custom_shortcodes = $array_my_values[62];
3011 + $strip_by_regex = $array_my_values[63];
3012 + $replace_regex = $array_my_values[64];
3013 + $strip_by_regex_prompts = $array_my_values[65];
3014 + $replace_regex_prompts = $array_my_values[66];
3015 + $run_regex_on = $array_my_values[67];
3016 + $max_links = $array_my_values[68];
3017 + $link_post_types = $array_my_values[69];
3018 + $enable_toc = $array_my_values[70];
3019 + $title_toc = $array_my_values[71];
3020 + $qa_prompt = $array_my_values[72];
3021 + $topic_qa_model = $array_my_values[73];
3022 + $enable_qa = $array_my_values[74];
3023 + $title_qa = $array_my_values[75];
3024 + $title_outro = $array_my_values[76];
3025 + $link_type = $array_my_values[77];
3026 + $link_list = $array_my_values[78];
3027 + $skip_inexist = $array_my_values[79];
3028 + $target_country = $array_my_values[80];
3029 + $global_prepend = $array_my_values[81];
3030 + $global_append = $array_my_values[82];
3031 + $search_query_repetition= $array_my_values[83];
3032 + $days_no_run = $array_my_values[84];
3033 + $overwrite_existing = $array_my_values[85];
3034 + $link_nofollow = $array_my_values[86];
3035 + $parent_id = $array_my_values[87];
3036 + $rule_unique_id = $array_my_values[88];
3037 + $point_of_view = $array_my_values[89];
3038 + $sections_prompt = $array_my_values[90];
3039 + $topic_sections_model = $array_my_values[91];
3040 + $post_sections_list = $array_my_values[92];
3041 + $section_count = $array_my_values[93];
3042 + $proscons_prompt = $array_my_values[94];
3043 + $topic_proscons_model = $array_my_values[95];
3044 + $title_proscons = $array_my_values[96];
3045 + $enable_proscons = $array_my_values[97];
3046 + $title_reviews = $array_my_values[98];
3047 + $enable_reviews = $array_my_values[99];
3048 + $reviews_prompt = $array_my_values[100];
3049 + $topic_reviews_model = $array_my_values[101];
3050 + $no_headlink = $array_my_values[102];
3051 + $image_model = $array_my_values[103];
3052 + $assistant_id = $array_my_values[104];
3053 + if(empty($rule_unique_id))
3054 + {
3055 + $rule_unique_id = $cont;
3056 + }
3057 + if (isset($counted_vals[$rule_unique_id])) {
3058 + $generated_posts = $counted_vals[$rule_unique_id];
3059 + } else {
3060 + $generated_posts = 0;
3061 + }
3062 + if($rule_description == '')
3063 + {
3064 + $rule_description = $cont;
3065 + }
3066 + $name = md5(get_bloginfo());
3067 + wp_add_inline_script($name . '-footer-script', 'createAdmin(' . esc_html($cont) . ');createModeSelect(' . esc_html($cont) . ');hideLinks(' . esc_html($cont) . ');', 'after');
3068 + $output .= '<tr>
3069 + <td class="cr_short_td"><input type="text" name="aiomatic_review_list[rule_description][]" id="rule_description' . esc_html($cont) . '" class="cr_center" placeholder="Rule ID" value="' . esc_html($rule_description) . '" class="cr_width_full"/></td>
3070 + <td class="cr_loi"><textarea rows="1" name="aiomatic_review_list[review_keyword][]" placeholder="Example: dog food" class="cr_width_full">' . htmlspecialchars($review_keyword) . '</textarea></td>
3071 + <td class="cr_comm_td"><input type="number" step="1" min="1" placeholder="# h" name="aiomatic_review_list[schedule][]" max="8765812" value="' . esc_attr($schedule) . '" class="cr_width_60" required></td>
3072 + <td class="cr_comm_td"><input type="number" step="1" min="0" placeholder="#" name="aiomatic_review_list[max][]" value="' . esc_attr($max) . '" class="cr_width_60" required></td>
3073 + <td class="cr_width_70 cr_center">
3074 + <input type="button" id="mybtnfzr' . esc_html($cont) . '" value="Settings">
3075 + <div id="mymodalfzr' . esc_html($cont) . '" class="codemodalfzr">
3076 + <div class="codemodalfzr-content">
3077 + <div class="codemodalfzr-header">
3078 + <span id="aiomatic_close' . esc_html($cont) . '" class="codeclosefzr">&times;</span>
3079 + <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>
3080 + </div>
3081 + <div class="codemodalfzr-body">
3082 + <div class="table-responsive">
3083 + <table class="responsive table cr_main_table_nowr">
3084 + <tr><td colspan="2"><h3>' . esc_html__("AI Assistant Options", 'aiomatic-automatic-ai-content-writer') . ':</h3>
3085 + </td></tr><tr>
3086 + <td class="cr_min_width_200">
3087 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3088 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Assistant to use for content creation. 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') . '</div>
3089 + </div>
3090 + <b>' . esc_html__("AI Assistant Name:", 'aiomatic-automatic-ai-content-writer') . '</b>
3091 + </td>
3092 + <td><select id="assistant_id' . esc_html($cont) . '" name="aiomatic_review_list[assistant_id][]" class="cr_width_full" onchange="assistantSelected(\'' . esc_html($cont) . '\');">';
3093 + if($all_assistants === false)
3094 + {
3095 + $output .= '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
3096 + }
3097 + else
3098 + {
3099 + if(count($all_assistants) == 0)
3100 + {
3101 + $output .= '<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>';
3102 + }
3103 + else
3104 + {
3105 + $output .= '<option value=""';
3106 + if($assistant_id == ''){$output .= ' selected';}
3107 + $output .= '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
3108 + foreach($all_assistants as $myassistant)
3109 + {
3110 + $output .= '<option value="' . esc_html($myassistant->ID) .'"';
3111 + if($assistant_id == $myassistant->ID){$output .= ' selected';}
3112 + $output .= '>' . esc_html($myassistant->post_title);
3113 + $output .= '</option>';
3114 + }
3115 + }
3116 + }
3117 + $output .= '</select>
3118 + </td>
3119 + </tr>
3120 + <tr><td colspan="2"><h3>' . esc_html__('Amazon Search Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr><tr><td>
3121 + <div>
3122 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3123 + <div class="bws_hidden_help_text cr_min_260px">' . sprintf( wp_kses( __( "Insert your Amazon Associate ID (Optional). Learn how to get one <a href='%s' target='_blank'>here</a>. Also, you need to sign up for Amazon Affiliate program <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html', 'https://affiliate-program.amazon.com/assoc_credentials/home' ) . '
3124 + </div>
3125 + </div>
3126 + <b>' . esc_html__("Amazon Associate ID (Optional)", 'aiomatic-automatic-ai-content-writer') . ':</b>
3127 + </td><td>
3128 + <input type="text" name="aiomatic_review_list[affiliate_id][]" value="' . esc_attr($affiliate_id) . '" placeholder="Please insert your Amazon Affiliate ID" class="cr_width_full">
3129 +
3130 + </div>
3131 + </td></tr><tr><td>
3132 + <div>
3133 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3134 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the maximum length of captions in prompts. This is useful to have, when captions can be very long.", 'aiomatic-automatic-ai-content-writer') . '
3135 + </div>
3136 + </div>
3137 + <b>' . esc_html__("Amazon Target Country", 'aiomatic-automatic-ai-content-writer') . ':</b>
3138 + </td><td>
3139 + <select id="source' . esc_html($cont) . '" name="aiomatic_review_list[target_country][]" class="cr_width_full">';
3140 + foreach ($amaz_countries as $key => $value) {
3141 + $output .= '<option value="' . esc_html($key) . '"';
3142 + if ($target_country == $key) {
3143 + $output .= " selected";
3144 + }
3145 + $output .= '>' . esc_html($value) . '</option>';
3146 + }
3147 + $output .= '</select>
3148 +
3149 + </div>
3150 + </td></tr>
3151 + <tr><td colspan="2"><h3>' . esc_html__('AI Writer Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr>
3152 + <tr><td class="cr_min_width_200">
3153 + <div>
3154 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3155 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Enter a list of post sections, one per line. These will be headings of the content. These can also be automatically generated by the plugin. To enable auto generating of sections, leave this field blank. You can use here the %%topic%% shortcode, to get the value of the above topic, automtically. This will set the value of the %%sections%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you set a section list here, each created article will have this same list of sections, because of this, use shortcodes or Spintax when defining these static topics or leave this field blank for the plugin to auto generate them!", 'aiomatic-automatic-ai-content-writer') . '
3156 + </div>
3157 + </div>
3158 + <b>' . esc_html__("Post Sections List (Optional)", 'aiomatic-automatic-ai-content-writer') . ':</b>
3159 +
3160 + </td><td>
3161 + <textarea rows="2" cols="70" name="aiomatic_review_list[post_sections_list][]" placeholder="Post sections list (one per line)" class="cr_width_full">' . esc_textarea($post_sections_list) . '</textarea>
3162 +
3163 + </div>
3164 + </td></tr>
3165 + <tr><td class="cr_min_width_200">
3166 + <div>
3167 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3168 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Enter the number of sections to create in the article. These will also be set as article headings. You can also set value ranges, example: 5-7. In this case, a random number will be selected in this range. Please use only numeric values in this field. This field will set the value of the %%sections_count%% shortcode.", 'aiomatic-automatic-ai-content-writer') . '
3169 + </div>
3170 + </div>
3171 + <b>' . esc_html__("Number Of Content Sections To Generate", 'aiomatic-automatic-ai-content-writer') . ':</b>
3172 +
3173 + </td><td>
3174 + <input type="text" id="section_count' . esc_html($cont) . '" name="aiomatic_review_list[section_count][]" placeholder="3-4" class="cr_width_full" value="' . esc_attr($section_count) . '">
3175 + </div>
3176 + </td></tr>
3177 + <tr><td>
3178 + <div>
3179 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3180 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select what you want to do with product titles in articles.", 'aiomatic-automatic-ai-content-writer') . '
3181 + </div>
3182 + </div>
3183 + <b>' . esc_html__("Add Headings To Content As", 'aiomatic-automatic-ai-content-writer') . ':</b>
3184 +
3185 + </td><td>
3186 + <select autocomplete="off" class="cr_width_full" id="sections_role' . esc_html($cont) . '" name="aiomatic_review_list[sections_role][]">
3187 + <option value="h2"';
3188 + if ($sections_role == 'h2') {
3189 + $output .= ' selected';
3190 + }
3191 + $output .= '>' . esc_html__("h2", 'aiomatic-automatic-ai-content-writer') . '</option>
3192 + <option value="h3"';
3193 + if ($sections_role == 'h3') {
3194 + $output .= ' selected';
3195 + }
3196 + $output .= '>' . esc_html__("h3", 'aiomatic-automatic-ai-content-writer') . '</option>
3197 + <option value="b"';
3198 + if ($sections_role == 'b') {
3199 + $output .= ' selected';
3200 + }
3201 + $output .= '>' . esc_html__("Bold", 'aiomatic-automatic-ai-content-writer') . '</option>
3202 + <option value="i"';
3203 + if ($sections_role == 'i') {
3204 + $output .= ' selected';
3205 + }
3206 + $output .= '>' . esc_html__("Italic", 'aiomatic-automatic-ai-content-writer') . '</option>
3207 + <option value="bi"';
3208 + if ($sections_role == 'bi') {
3209 + $output .= ' selected';
3210 + }
3211 + $output .= '>' . esc_html__("Bold and Italic", 'aiomatic-automatic-ai-content-writer') . '</option>
3212 + <option value="p"';
3213 + if ($sections_role == 'p') {
3214 + $output .= ' selected';
3215 + }
3216 + $output .= '>' . esc_html__("Paragraph", 'aiomatic-automatic-ai-content-writer') . '</option>
3217 + <option value="x"';
3218 + if ($sections_role == 'x') {
3219 + $output .= ' selected';
3220 + }
3221 + $output .= '>' . esc_html__("Plain Text", 'aiomatic-automatic-ai-content-writer') . '</option>
3222 + <option value="no"';
3223 + if ($sections_role == 'no') {
3224 + $output .= ' selected';
3225 + }
3226 + $output .= '>' . esc_html__("Don't Add Sections", 'aiomatic-automatic-ai-content-writer') . '</option>
3227 + </select>
3228 + </div>
3229 + </td></tr>
3230 + <tr><td class="cr_min_width_200">
3231 + <div>
3232 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3233 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Enter the number of paragraphs to create for each section. These will also be set as article headings. You can also set value ranges, example: 5-7. In this case, a random number will be selected in this range. Please use only numeric values in this field. This field will set the value of the %%paragraphs_per_section%% shortcode.", 'aiomatic-automatic-ai-content-writer') . '
3234 + </div>
3235 + </div>
3236 + <b>' . esc_html__("Number Of Paragraphs Per Section", 'aiomatic-automatic-ai-content-writer') . ':</b>
3237 +
3238 + </td><td>
3239 + <input type="text" id="paragraph_count' . esc_html($cont) . '" name="aiomatic_review_list[paragraph_count][]" placeholder="2-3" class="cr_width_full" value="' . esc_attr($paragraph_count) . '">
3240 + </div>
3241 + </td></tr>
3242 + <tr><td class="cr_min_width_200">
3243 + <div>
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">' . esc_html__("Select if you want to add the product image to the article.", 'aiomatic-automatic-ai-content-writer') . '
3246 + </div>
3247 + </div>
3248 + <b>' . esc_html__("Add Product Images To The Article", 'aiomatic-automatic-ai-content-writer') . ':</b>
3249 + </td><td>
3250 + <input type="checkbox" id="topic_images' . esc_html($cont) . '" name="aiomatic_review_list[topic_images][]"';
3251 + if($topic_images == '1')
3252 + {
3253 + $output .= ' checked';
3254 + }
3255 + $output .= '>
3256 +
3257 + </div>
3258 + </td></tr>
3259 + <tr><td class="cr_min_width_200">
3260 + <div>
3261 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3262 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you don't want to add the product links directly to headings.", 'aiomatic-automatic-ai-content-writer') . '
3263 + </div>
3264 + </div>
3265 + <b>' . esc_html__("Don't Add Product Links to Headings", 'aiomatic-automatic-ai-content-writer') . ':</b>
3266 + </td><td>
3267 + <input type="checkbox" id="no_headlink' . esc_html($cont) . '" name="aiomatic_review_list[no_headlink][]"';
3268 + if($no_headlink == '1')
3269 + {
3270 + $output .= ' checked';
3271 + }
3272 + $output .= '>
3273 +
3274 + </div>
3275 + </td></tr>
3276 + <tr><td class="cr_min_width_200">
3277 + <div>
3278 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3279 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you would like to add a relevant Social Network Embed to the end of the created article. You can select the source of the social embeds, in the plugin's 'Settings' menu -> 'Bulk Posts' tab -> 'Social Networks To Get Embeds From In AI Created Articles' settings field.", 'aiomatic-automatic-ai-content-writer') . '
3280 + </div>
3281 + </div>
3282 + <b>' . esc_html__("Add A Relevant Social Network Embed To The Article", 'aiomatic-automatic-ai-content-writer') . ':</b>
3283 + </td><td>
3284 + <input type="checkbox" id="topic_videos' . esc_html($cont) . '" name="aiomatic_review_list[topic_videos][]"';
3285 + if($topic_videos == '1')
3286 + {
3287 + $output .= ' checked';
3288 + }
3289 + $output .= '>
3290 + </div>
3291 + </td></tr>
3292 + <tr><td>
3293 + <div>
3294 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3295 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the header text of the outro section header. This is optional.", 'aiomatic-automatic-ai-content-writer') . '
3296 + </div>
3297 + </div>
3298 + <b>' . esc_html__("Article Outro Section Header Text", 'aiomatic-automatic-ai-content-writer') . ':</b>
3299 +
3300 + </td><td>
3301 + <input id="title_outro' . esc_html($cont) . '" name="aiomatic_review_list[title_outro][]" type="text" placeholder="Optional" class="coderevolution_gutenberg_input" value="' . esc_attr($title_outro) . '"/>
3302 + </div>
3303 + </td></tr>
3304 + <tr><td class="hideTOC' . esc_html($cont) . '">
3305 + <div>
3306 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3307 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you want to add a Table of Contents section to the created post.", 'aiomatic-automatic-ai-content-writer') . '
3308 + </div>
3309 + </div>
3310 + <b>' . esc_html__("Add Article 'Table Of Contents' Section", 'aiomatic-automatic-ai-content-writer') . ':</b>
3311 +
3312 + </td><td class="hideTOC' . esc_html($cont) . '">
3313 + <input type="checkbox" id="enable_toc' . esc_html($cont) . '" name="aiomatic_review_list[enable_toc][]"';
3314 + if($enable_toc == '1')
3315 + {
3316 + $output .= ' checked';
3317 + }
3318 + $output .= '>
3319 +
3320 + </div>
3321 + </td></tr>
3322 + <tr><td class="hideTOC' . esc_html($cont) . '">
3323 + <div>
3324 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3325 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the text of the Table of Contents section header. Default is: Table of Contents", 'aiomatic-automatic-ai-content-writer') . '
3326 + </div>
3327 + </div>
3328 + <b>' . esc_html__("Article 'Table Of Contents' Section Header Text", 'aiomatic-automatic-ai-content-writer') . ':</b>
3329 +
3330 + </td><td class="hideTOC' . esc_html($cont) . '">
3331 + <input id="title_toc' . esc_html($cont) . '" name="aiomatic_review_list[title_toc][]" type="text" placeholder="Table of Contents" class="coderevolution_gutenberg_input" value="' . esc_attr($title_toc) . '"/>
3332 + </div>
3333 + </td></tr>
3334 + <tr><td>
3335 + <div>
3336 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3337 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you want to add a Customer Reviews Analysis section to the created post. To enable Customer Reviews Analysis for articles, be sure to add a prompt also in the 'Article Customer Reviews Analysis Prompt' settings field from below.", 'aiomatic-automatic-ai-content-writer') . '
3338 + </div>
3339 + </div>
3340 + <b>' . esc_html__("Add Article 'Customer Reviews Analysis' Section", 'aiomatic-automatic-ai-content-writer') . ':</b>
3341 +
3342 + </td><td>
3343 + <input type="checkbox" id="enable_reviews' . esc_html($cont) . '" name="aiomatic_review_list[enable_reviews][]"';
3344 + if($enable_reviews == '1')
3345 + {
3346 + $output .= ' checked';
3347 + }
3348 + $output .= '>
3349 +
3350 + </div>
3351 + </td></tr>
3352 + <tr><td>
3353 + <div>
3354 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3355 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the header text of the Customer Reviews Analysis section header. Default is: Customer Reviews Analysis", 'aiomatic-automatic-ai-content-writer') . '
3356 + </div>
3357 + </div>
3358 + <b>' . esc_html__("Article 'Customer Reviews Analysis' Section Header Text", 'aiomatic-automatic-ai-content-writer') . ':</b>
3359 +
3360 + </td><td>
3361 + <input id="title_reviews' . esc_html($cont) . '" name="aiomatic_review_list[title_reviews][]" type="text" placeholder="Customer Reviews Analysis" class="coderevolution_gutenberg_input" value="' . esc_attr($title_reviews) . '"/>
3362 + </div>
3363 + </td></tr>
3364 + <tr><td>
3365 + <div>
3366 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3367 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you want to add a Pros & Cons section to the created post. To enable Pros & Cons for articles, be sure to add a prompt also in the 'Article Pros & Cons Prompt' settings field from below.", 'aiomatic-automatic-ai-content-writer') . '
3368 + </div>
3369 + </div>
3370 + <b>' . esc_html__("Add Article 'Pros & Cons' Section", 'aiomatic-automatic-ai-content-writer') . ':</b>
3371 +
3372 + </td><td>
3373 + <input type="checkbox" id="enable_proscons' . esc_html($cont) . '" name="aiomatic_review_list[enable_proscons][]"';
3374 + if($enable_proscons == '1')
3375 + {
3376 + $output .= ' checked';
3377 + }
3378 + $output .= '>
3379 +
3380 + </div>
3381 + </td></tr>
3382 + <tr><td>
3383 + <div>
3384 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3385 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the header text of the Pros & Cons section header. Default is: Pros & Cons", 'aiomatic-automatic-ai-content-writer') . '
3386 + </div>
3387 + </div>
3388 + <b>' . esc_html__("Article 'Pros & Cons' Section Header Text", 'aiomatic-automatic-ai-content-writer') . ':</b>
3389 +
3390 + </td><td>
3391 + <input id="title_proscons' . esc_html($cont) . '" name="aiomatic_review_list[title_proscons][]" type="text" placeholder="Pros & Cons" class="coderevolution_gutenberg_input" value="' . esc_attr($title_proscons) . '"/>
3392 + </div>
3393 + </td></tr>
3394 + <tr><td>
3395 + <div>
3396 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3397 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you want to add a Q&A section to the created post. To enable Q&A for articles, be sure to add a prompt also in the 'Article Q&A Prompt' settings field from below.", 'aiomatic-automatic-ai-content-writer') . '
3398 + </div>
3399 + </div>
3400 + <b>' . esc_html__("Add Article 'Q&A' Section", 'aiomatic-automatic-ai-content-writer') . ':</b>
3401 +
3402 + </td><td>
3403 + <input type="checkbox" id="enable_qa' . esc_html($cont) . '" name="aiomatic_review_list[enable_qa][]"';
3404 + if($enable_qa == '1')
3405 + {
3406 + $output .= ' checked';
3407 + }
3408 + $output .= '>
3409 +
3410 + </div>
3411 + </td></tr>
3412 + <tr><td>
3413 + <div>
3414 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3415 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the header text of the Q&A section header. Default is: Q&A", 'aiomatic-automatic-ai-content-writer') . '
3416 + </div>
3417 + </div>
3418 + <b>' . esc_html__("Article 'Q&A' Section Header Text", 'aiomatic-automatic-ai-content-writer') . ':</b>
3419 +
3420 + </td><td>
3421 + <input id="title_qa' . esc_html($cont) . '" name="aiomatic_review_list[title_qa][]" type="text" placeholder="Q&A" class="coderevolution_gutenberg_input" value="' . esc_attr($title_qa) . '"/>
3422 + </div>
3423 + </td></tr>
3424 + <tr><td colspan="2"><h4>' . esc_html__('Content Parameters', 'aiomatic-automatic-ai-content-writer') . ':</h4></td></tr>
3425 + <tr><td class="cr_min_width_200">
3426 + <div>
3427 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3428 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the language of the created content. This will set the value of the %%language%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '
3429 + </div>
3430 + </div>
3431 + <b>' . esc_html__("Content Language", 'aiomatic-automatic-ai-content-writer') . ':</b>
3432 +
3433 + </td><td>
3434 + <input id="content_language' . esc_html($cont) . '" name="aiomatic_review_list[content_language][]" type="text" list="languages" placeholder="Created content language" class="coderevolution_gutenberg_input" value="' . esc_attr($content_language) . '"/>
3435 + </div>
3436 + </td></tr>
3437 + <tr><td class="cr_min_width_200">
3438 + <div>
3439 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3440 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the writing style of the created content. This will set the value of the %%writing_style%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '
3441 + </div>
3442 + </div>
3443 + <b>' . esc_html__("Writing Style", 'aiomatic-automatic-ai-content-writer') . ':</b>
3444 +
3445 + </td><td>
3446 + <input id="writing_style' . esc_html($cont) . '" name="aiomatic_review_list[writing_style][]" type="text" list="writing_styles" placeholder="Created content writing style" class="coderevolution_gutenberg_input" value="' . esc_attr($writing_style) . '"/>
3447 + </div>
3448 + </td></tr>
3449 + <tr><td class="cr_min_width_200">
3450 + <div>
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">' . esc_html__("Set the writing tone of the created content. This will set the value of the %%writing_tone%% shortcode, which can be used in prompts below. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '
3453 + </div>
3454 + </div>
3455 + <b>' . esc_html__("Writing Tone", 'aiomatic-automatic-ai-content-writer') . ':</b>
3456 +
3457 + </td><td>
3458 + <input id="writing_tone' . esc_html($cont) . '" name="aiomatic_review_list[writing_tone][]" type="text" list="writing_tones" placeholder="Created content writing tone" class="coderevolution_gutenberg_input" value="' . esc_attr($writing_tone) . '"/>
3459 + </div>
3460 + </td></tr>
3461 + <tr><td>
3462 + <div>
3463 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3464 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the point of view of the article.", 'aiomatic-automatic-ai-content-writer') . '
3465 + </div>
3466 + </div>
3467 + <b>' . esc_html__("Point Of View", 'aiomatic-automatic-ai-content-writer') . ':</b>
3468 +
3469 + </td><td>
3470 + <select autocomplete="off" class="cr_width_full" id="point_of_view' . esc_html($cont) . '" name="aiomatic_review_list[point_of_view][]">
3471 + <option value="First Person Singular (I, me, my, mine)"';
3472 + if ($point_of_view == 'First Person Singular (I, me, my, mine)') {
3473 + $output .= ' selected';
3474 + }
3475 + $output .= '>' . esc_html__("First Person Singular (I, me, my, mine)", 'aiomatic-automatic-ai-content-writer') . '</option>
3476 + <option value="First Person Plural (we, us, our, ours)"';
3477 + if ($point_of_view == 'First Person Plural (we, us, our, ours)') {
3478 + $output .= ' selected';
3479 + }
3480 + $output .= '>' . esc_html__("First Person Plural (we, us, our, ours)", 'aiomatic-automatic-ai-content-writer') . '</option>
3481 + <option value="Second Person Singular (you, your, yours)"';
3482 + if ($point_of_view == 'Second Person Singular (you, your, yours)') {
3483 + $output .= ' selected';
3484 + }
3485 + $output .= '>' . esc_html__("Second Person Singular (you, your, yours)", 'aiomatic-automatic-ai-content-writer') . '</option>
3486 + <option value="Second Person Plural (you [plural], y\'all, you guys)"';
3487 + if ($point_of_view == 'Second Person Plural (you [plural], y\'all, you guys)') {
3488 + $output .= ' selected';
3489 + }
3490 + $output .= '>' . esc_html__("Second Person Plural (you [plural], y'all, you guys)", 'aiomatic-automatic-ai-content-writer') . '</option>
3491 + <option value="Third Person Singular (he, she, it)"';
3492 + if ($point_of_view == 'Third Person Singular (he, she, it)') {
3493 + $output .= ' selected';
3494 + }
3495 + $output .= '>' . esc_html__("Third Person Singular (he, she, it)", 'aiomatic-automatic-ai-content-writer') . '</option>
3496 + <option value="Third Person Plural (they, them, theirs, themselves)"';
3497 + if ($point_of_view == 'Third Person Plural (they, them, theirs, themselves)') {
3498 + $output .= ' selected';
3499 + }
3500 + $output .= '>' . esc_html__("Third Person Plural (they, them, theirs, themselves)", 'aiomatic-automatic-ai-content-writer') . '</option>
3501 + </select>
3502 + </div>
3503 + </td></tr>
3504 + <tr><td colspan="2"><h4>' . esc_html__('Prompts', 'aiomatic-automatic-ai-content-writer') . ':</h4></td></tr>
3505 + <tr><td class="cr_min_width_200">
3506 + <div>
3507 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3508 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Post Title. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3509 + </div>
3510 + </div>
3511 + <b>' . esc_html__("Title Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3512 +
3513 + </td><td>
3514 + <textarea rows="2" cols="70" name="aiomatic_review_list[title_prompt][]" placeholder="Enter your title prompts, one per line" class="cr_width_full">' . esc_textarea($title_prompt) . '</textarea>
3515 +
3516 + </div>
3517 + </td></tr>
3518 + <tr><td>
3519 + <div>
3520 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3521 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the title generator.", 'aiomatic-automatic-ai-content-writer') . '
3522 + </div>
3523 + </div>
3524 + <b>' . esc_html__("AI Model For Title Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3525 + </td><td class="cr_min_width_200">
3526 + <select autocomplete="off" name="aiomatic_review_list[topic_title_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3527 + if(empty($topic_title_model))
3528 + {
3529 + $topic_title_model = AIMOGEN_DEFAULT_MODEL;
3530 + }
3531 + foreach($all_models as $modelx)
3532 + {
3533 + $output .= '<option value="' . esc_html($modelx) .'"';
3534 + if ($topic_title_model == $modelx)
3535 + {
3536 + $output .= " selected";
3537 + }
3538 + else
3539 + {
3540 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3541 + }
3542 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3543 + }
3544 + $output .= '</select>
3545 + </div>
3546 + </td></tr>
3547 + <tr><td class="cr_min_width_200">
3548 + <div>
3549 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3550 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Post Intro. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - to disable article intro, leave this prompt blank - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3551 + </div>
3552 + </div>
3553 + <b>' . esc_html__("Article Intro Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3554 +
3555 + </td><td>
3556 + <textarea rows="2" cols="70" name="aiomatic_review_list[intro_prompt][]" placeholder="Enter your intro prompts, one per line" class="cr_width_full">' . esc_textarea($intro_prompt) . '</textarea>
3557 +
3558 + </div>
3559 + </td></tr>
3560 + <tr><td>
3561 + <div>
3562 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3563 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the intro generator.", 'aiomatic-automatic-ai-content-writer') . '
3564 + </div>
3565 + </div>
3566 + <b>' . esc_html__("AI Model For Intro Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3567 + </td><td class="cr_min_width_200">
3568 + <select autocomplete="off" name="aiomatic_review_list[topic_intro_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3569 + if(empty($topic_intro_model))
3570 + {
3571 + $topic_intro_model = AIMOGEN_DEFAULT_MODEL;
3572 + }
3573 + foreach($all_models as $modelx)
3574 + {
3575 + $output .= '<option value="' . esc_html($modelx) .'"';
3576 + if ($topic_intro_model == $modelx)
3577 + {
3578 + $output .= " selected";
3579 + }
3580 + else
3581 + {
3582 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3583 + }
3584 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3585 + }
3586 + $output .= '</select>
3587 + </div>
3588 + </td></tr>
3589 + <tr><td class="cr_min_width_200">
3590 + <div>
3591 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3592 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the review post main sections. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%sections_count%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3593 + </div>
3594 + </div>
3595 + <b>' . esc_html__("Article Sections Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3596 +
3597 + </td><td>
3598 + <textarea rows="2" cols="70" name="aiomatic_review_list[sections_prompt][]" placeholder="Enter your sections prompts, one per line" class="cr_width_full">' . esc_textarea($sections_prompt) . '</textarea>
3599 +
3600 + </div>
3601 + </td></tr>
3602 + <tr><td>
3603 + <div>
3604 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3605 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the sections generator.", 'aiomatic-automatic-ai-content-writer') . '
3606 + </div>
3607 + </div>
3608 + <b>' . esc_html__("AI Model For Sections Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3609 + </td><td class="cr_min_width_200">
3610 + <select autocomplete="off" name="aiomatic_review_list[topic_sections_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3611 + if(empty($topic_sections_model))
3612 + {
3613 + $topic_sections_model = AIMOGEN_DEFAULT_MODEL;
3614 + }
3615 + foreach($all_models as $modelx)
3616 + {
3617 + $output .= '<option value="' . esc_html($modelx) .'"';
3618 + if ($topic_sections_model == $modelx)
3619 + {
3620 + $output .= " selected";
3621 + }
3622 + else
3623 + {
3624 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3625 + }
3626 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3627 + }
3628 + $output .= '</select>
3629 + </div>
3630 + </td></tr>
3631 + <tr><td class="cr_min_width_200">
3632 + <div>
3633 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3634 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Content of the article, which will be applied to each section heading generated by the plugin (or entered manually) or to the entire content (depending how you select using the 'Use the Above Content Prompt To Create The Entire Article' checkbox). You can use the following shortcodes: %%current_section%%, %%article_so_far%%, %%last_section_content%%, %%product_title%%, %%product_description%%, %%language%%, %%all_product_titles%%, %%product_author%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%offer_url%%, %%offer_price%%, %%product_list_price%%, %%offer_img%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%review_link%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%product_imgs_html%%, %%price_with_discount_fixed%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%sections%%, %%paragraphs_per_section%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3635 + </div>
3636 + </div>
3637 + <b>' . esc_html__("Content Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3638 +
3639 + </td><td>
3640 + <textarea rows="3" cols="70" name="aiomatic_review_list[content_prompt][]" placeholder="Enter your content prompt" class="cr_width_full">' . esc_textarea($content_prompt) . '</textarea>
3641 +
3642 + </div>
3643 + </td></tr>
3644 + <tr><td>
3645 + <div>
3646 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3647 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the content generator.", 'aiomatic-automatic-ai-content-writer') . '
3648 + </div>
3649 + </div>
3650 + <b>' . esc_html__("AI Model For Content Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3651 + </td><td class="cr_min_width_200">
3652 + <select autocomplete="off" name="aiomatic_review_list[topic_content_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3653 + if(empty($topic_content_model))
3654 + {
3655 + $topic_content_model = AIMOGEN_DEFAULT_MODEL;
3656 + }
3657 + foreach($all_models as $modelx)
3658 + {
3659 + $output .= '<option value="' . esc_html($modelx) .'"';
3660 + if ($topic_content_model == $modelx)
3661 + {
3662 + $output .= " selected";
3663 + }
3664 + else
3665 + {
3666 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3667 + }
3668 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3669 + }
3670 + $output .= '</select>
3671 + </div>
3672 + </td></tr>
3673 + <tr><td class="cr_min_width_200">
3674 + <div>
3675 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3676 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Post Customer Reviews Analysis section. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - to disable article outro, leave this prompt blank - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3677 + </div>
3678 + </div>
3679 + <b>' . esc_html__("Article Customer Reviews Analysis Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3680 +
3681 + </td><td>
3682 + <textarea rows="2" cols="70" name="aiomatic_review_list[reviews_prompt][]" placeholder="Enter your Customer Reviews Analysis prompts, one per line" class="cr_width_full">' . esc_textarea($reviews_prompt) . '</textarea>
3683 +
3684 + </div>
3685 + </td></tr>
3686 + <tr><td>
3687 + <div>
3688 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3689 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the Customer Reviews Analysis generator.", 'aiomatic-automatic-ai-content-writer') . '
3690 + </div>
3691 + </div>
3692 + <b>' . esc_html__("AI Model For Customer Reviews Analysis Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3693 + </td><td class="cr_min_width_200">
3694 + <select autocomplete="off" name="aiomatic_review_list[topic_reviews_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3695 + if(empty($topic_reviews_model))
3696 + {
3697 + $topic_reviews_model = AIMOGEN_DEFAULT_MODEL;
3698 + }
3699 + foreach($all_models as $modelx)
3700 + {
3701 + $output .= '<option value="' . esc_html($modelx) .'"';
3702 + if ($topic_reviews_model == $modelx)
3703 + {
3704 + $output .= " selected";
3705 + }
3706 + else
3707 + {
3708 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3709 + }
3710 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3711 + }
3712 + $output .= '</select>
3713 + </div>
3714 + </td></tr>
3715 + <tr><td class="cr_min_width_200">
3716 + <div>
3717 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3718 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Post Pros & Cons section. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - to disable article outro, leave this prompt blank - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3719 + </div>
3720 + </div>
3721 + <b>' . esc_html__("Article Pros & Cons Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3722 +
3723 + </td><td>
3724 + <textarea rows="2" cols="70" name="aiomatic_review_list[proscons_prompt][]" placeholder="Enter your Pros & Cons prompts, one per line" class="cr_width_full">' . esc_textarea($proscons_prompt) . '</textarea>
3725 +
3726 + </div>
3727 + </td></tr>
3728 + <tr><td>
3729 + <div>
3730 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3731 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the Pros & Cons generator.", 'aiomatic-automatic-ai-content-writer') . '
3732 + </div>
3733 + </div>
3734 + <b>' . esc_html__("AI Model For Pros & Cons Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3735 + </td><td class="cr_min_width_200">
3736 + <select autocomplete="off" name="aiomatic_review_list[topic_proscons_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3737 + if(empty($topic_proscons_model))
3738 + {
3739 + $topic_proscons_model = AIMOGEN_DEFAULT_MODEL;
3740 + }
3741 + foreach($all_models as $modelx)
3742 + {
3743 + $output .= '<option value="' . esc_html($modelx) .'"';
3744 + if ($topic_proscons_model == $modelx)
3745 + {
3746 + $output .= " selected";
3747 + }
3748 + else
3749 + {
3750 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3751 + }
3752 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3753 + }
3754 + $output .= '</select>
3755 + </div>
3756 + </td></tr>
3757 + <tr><td class="cr_min_width_200">
3758 + <div>
3759 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3760 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Post Q&A. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - to disable article outro, leave this prompt blank - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3761 + </div>
3762 + </div>
3763 + <b>' . esc_html__("Article Q&A Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3764 +
3765 + </td><td>
3766 + <textarea rows="2" cols="70" name="aiomatic_review_list[qa_prompt][]" placeholder="Enter your Q&A prompts, one per line" class="cr_width_full">' . esc_textarea($qa_prompt) . '</textarea>
3767 +
3768 + </div>
3769 + </td></tr>
3770 + <tr><td>
3771 + <div>
3772 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3773 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the Q&A generator.", 'aiomatic-automatic-ai-content-writer') . '
3774 + </div>
3775 + </div>
3776 + <b>' . esc_html__("AI Model For Q&A Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3777 + </td><td class="cr_min_width_200">
3778 + <select autocomplete="off" name="aiomatic_review_list[topic_qa_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3779 + if(empty($topic_qa_model))
3780 + {
3781 + $topic_qa_model = AIMOGEN_DEFAULT_MODEL;
3782 + }
3783 + foreach($all_models as $modelx)
3784 + {
3785 + $output .= '<option value="' . esc_html($modelx) .'"';
3786 + if ($topic_qa_model == $modelx)
3787 + {
3788 + $output .= " selected";
3789 + }
3790 + else
3791 + {
3792 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3793 + }
3794 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3795 + }
3796 + $output .= '</select>
3797 + </div>
3798 + </td></tr>
3799 + <tr><td class="cr_min_width_200">
3800 + <div>
3801 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3802 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Post outro. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - to disable article outro, leave this prompt blank - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3803 + </div>
3804 + </div>
3805 + <b>' . esc_html__("Article Outro Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3806 +
3807 + </td><td>
3808 + <textarea rows="2" cols="70" name="aiomatic_review_list[outro_prompt][]" placeholder="Enter your outro prompts, one per line" class="cr_width_full">' . esc_textarea($outro_prompt) . '</textarea>
3809 +
3810 + </div>
3811 + </td></tr>
3812 + <tr><td>
3813 + <div>
3814 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3815 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the outro generator.", 'aiomatic-automatic-ai-content-writer') . '
3816 + </div>
3817 + </div>
3818 + <b>' . esc_html__("AI Model For Outro Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3819 + </td><td class="cr_min_width_200">
3820 + <select autocomplete="off" name="aiomatic_review_list[topic_outro_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3821 + if(empty($topic_outro_model))
3822 + {
3823 + $topic_outro_model = AIMOGEN_DEFAULT_MODEL;
3824 + }
3825 + foreach($all_models as $modelx)
3826 + {
3827 + $output .= '<option value="' . esc_html($modelx) .'"';
3828 + if ($topic_outro_model == $modelx)
3829 + {
3830 + $output .= " selected";
3831 + }
3832 + else
3833 + {
3834 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3835 + }
3836 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3837 + }
3838 + $output .= '</select>
3839 + </div>
3840 + </td></tr>
3841 + <tr><td class="cr_min_width_200">
3842 + <div>
3843 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3844 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Prompt to be used for the Post Excerpt. You can use the following shortcodes: %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%", 'aiomatic-automatic-ai-content-writer') . '
3845 + </div>
3846 + </div>
3847 + <b>' . esc_html__("Excerpt Prompt", 'aiomatic-automatic-ai-content-writer') . ':</b>
3848 +
3849 + </td><td>
3850 + <textarea rows="2" cols="70" name="aiomatic_review_list[excerpt_prompt][]" placeholder="Enter your excerpt prompts, one per line" class="cr_width_full">' . esc_textarea($excerpt_prompt) . '</textarea>
3851 +
3852 + </div>
3853 + </td></tr>
3854 + <tr><td>
3855 + <div>
3856 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3857 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the excerpt generator.", 'aiomatic-automatic-ai-content-writer') . '
3858 + </div>
3859 + </div>
3860 + <b>' . esc_html__("AI Model For Excerpt Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
3861 + </td><td class="cr_min_width_200">
3862 + <select autocomplete="off" name="aiomatic_review_list[topic_excerpt_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
3863 + if(empty($topic_excerpt_model))
3864 + {
3865 + $topic_excerpt_model = AIMOGEN_DEFAULT_MODEL;
3866 + }
3867 + foreach($all_models as $modelx)
3868 + {
3869 + $output .= '<option value="' . esc_html($modelx) .'"';
3870 + if ($topic_excerpt_model == $modelx)
3871 + {
3872 + $output .= " selected";
3873 + }
3874 + else
3875 + {
3876 + $output .= (($assistant_id != '') ? ' disabled ' : '');
3877 + }
3878 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
3879 + }
3880 + $output .= '</select>
3881 + </div>
3882 + </td></tr>
3883 + <tr><td colspan="2"><h4>' . esc_html__('Advanced Prompting Options', 'aiomatic-automatic-ai-content-writer') . ':</h4></td></tr>
3884 + <tr><td>
3885 + <div>
3886 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3887 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Run regex on prompts. To disable this feature, leave this field blank. No Regex separators are required here. You can add multiple Regex expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer') . '
3888 + </div>
3889 + </div>
3890 + <b>' . esc_html__("Run Regex On Prompts", 'aiomatic-automatic-ai-content-writer') . ':</b>
3891 +
3892 + </td><td>
3893 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[strip_by_regex_prompts][]" placeholder="regex" class="cr_width_full">' . esc_textarea($strip_by_regex_prompts) . '</textarea>
3894 +
3895 + </div>
3896 + </td></tr><tr><td>
3897 + <div>
3898 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3899 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Replace the above regex matches with this regex expression. If you want to strip matched content from prompts, leave this field blank. No Regex separators are required here. You can add multiple replacement expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer') . '
3900 + </div>
3901 + </div>
3902 + <b>' . esc_html__("Replace Matches From Regex (Prompts)", 'aiomatic-automatic-ai-content-writer') . ':</b>
3903 +
3904 + </td><td>
3905 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[replace_regex_prompts][]" placeholder="regex replacement" class="cr_width_full">' . esc_textarea($replace_regex_prompts) . '</textarea>
3906 +
3907 + </div>
3908 + </td></tr><tr><td>
3909 + <div>
3910 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3911 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select on which prompts do you want to run the above Regex. Possible values are (or any of their combinations): title, intro, sections, content, reviews, proscons, qa, outro, excerpt", 'aiomatic-automatic-ai-content-writer') . '
3912 + </div>
3913 + </div>
3914 + <b>' . esc_html__("Run Above Regex On Prompts", 'aiomatic-automatic-ai-content-writer') . ':</b>
3915 +
3916 + </td><td>
3917 + <input id="run_regex_on' . esc_html($cont) . '" name="aiomatic_review_list[run_regex_on][]" type="text" list="run_regex_on_list' . esc_html($cont) . '" class="coderevolution_gutenberg_input" value="' . esc_attr($run_regex_on) . '"/>
3918 + <datalist id="run_regex_on_list' . esc_html($cont) . '">
3919 + <option value="title">title</option>
3920 + <option value="intro">intro</option>
3921 + <option value="sections">sections</option>
3922 + <option value="content">content</option>
3923 + <option value="qa">Q&A</option>
3924 + <option value="outro">outro</option>
3925 + <option value="excerpt">excerpt</option>
3926 + </datalist>
3927 +
3928 + </div>
3929 + </td></tr>
3930 + <tr><td colspan="2"><h3>' . esc_html__('Global Prompt Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr>
3931 + <tr><td class="cr_min_width_200">
3932 + <div>
3933 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3934 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("This will be prepended to each prompt sent by the plugin to the AI writer. You can use the following shortcodes: %%topic%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%title%%, %%random_sentence%%, %%random_sentence2%%, %%post_original_title%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '
3935 + </div>
3936 + </div>
3937 + <b>' . esc_html__("Prepend Text To All Textual AI Prompts", 'aiomatic-automatic-ai-content-writer') . ':</b>
3938 +
3939 + </td><td>
3940 + <textarea rows="2" cols="70" name="aiomatic_review_list[global_prepend][]" placeholder="Global prompt prepend text" class="cr_width_full">' . esc_textarea($global_prepend) . '</textarea>
3941 +
3942 + </div>
3943 + </td></tr>
3944 + <tr><td class="cr_min_width_200">
3945 + <div>
3946 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3947 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("This will be appended to each prompt sent by the plugin to the AI writer. You can use the following shortcodes: %%topic%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%title%%, %%random_sentence%%, %%random_sentence2%%, %%post_original_title%%, %%blog_title%% - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '
3948 + </div>
3949 + </div>
3950 + <b>' . esc_html__("Append Text To All Textual AI Prompts", 'aiomatic-automatic-ai-content-writer') . ':</b>
3951 +
3952 + </td><td>
3953 + <textarea rows="2" cols="70" name="aiomatic_review_list[global_append][]" placeholder="Global prompt append text" class="cr_width_full">' . esc_textarea($global_append) . '</textarea>
3954 +
3955 + </div>
3956 + </td></tr>
3957 + <tr><td colspan="2"><h3>' . esc_html__('Automatic Linking Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr><tr><td>
3958 + <div>
3959 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
3960 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the linking method to use in posts.", 'aiomatic-automatic-ai-content-writer') . '
3961 + </div>
3962 + </div>
3963 + <b>' . esc_html__("Automatic Linking Type", 'aiomatic-automatic-ai-content-writer') . ':</b>
3964 +
3965 + </td><td>
3966 + <select autocomplete="off" class="cr_width_full" id="link_type' . esc_html($cont) . '" onchange="hideLinks(' . esc_html($cont) . ');" name="aiomatic_review_list[link_type][]">
3967 + <option value="disabled"';
3968 + if ($link_type == 'disabled') {
3969 + $output .= ' selected';
3970 + }
3971 + $output .= '>' . esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer') . '</option>
3972 + <option value="internal"';
3973 + if ($link_type == 'internal') {
3974 + $output .= ' selected';
3975 + }
3976 + $output .= '>' . esc_html__("Internal Links", 'aiomatic-automatic-ai-content-writer') . '</option>
3977 + <option value="manual"';
3978 + if ($link_type == 'manual') {
3979 + $output .= ' selected';
3980 + }
3981 + $output .= '>' . esc_html__("Manual Links", 'aiomatic-automatic-ai-content-writer') . '</option>
3982 + <option value="serp"';
3983 + if ($link_type == 'serp') {
3984 + $output .= ' selected';
3985 + }
3986 + $output .= '>' . esc_html__("Related SERP Links", 'aiomatic-automatic-ai-content-writer') . '</option>
3987 + <option value="mixed"';
3988 + if ($link_type == 'mixed') {
3989 + $output .= ' selected';
3990 + }
3991 + $output .= '>' . esc_html__("Internal + Manual Links", 'aiomatic-automatic-ai-content-writer') . '</option>
3992 + <option value="intserp"';
3993 + if ($link_type == 'intserp') {
3994 + $output .= ' selected';
3995 + }
3996 + $output .= '>' . esc_html__("Internal & SERP Links", 'aiomatic-automatic-ai-content-writer') . '</option>
3997 + <option value="manserp"';
3998 + if ($link_type == 'manserp') {
3999 + $output .= ' selected';
4000 + }
4001 + $output .= '>' . esc_html__("Manual & SERP Links", 'aiomatic-automatic-ai-content-writer') . '</option>
4002 + <option value="intmanserp"';
4003 + if ($link_type == 'intmanserp') {
4004 + $output .= ' selected';
4005 + }
4006 + $output .= '>' . esc_html__("Internal & Manual & SERP Links", 'aiomatic-automatic-ai-content-writer') . '</option>
4007 + </select>
4008 + </div>
4009 + </td></tr>
4010 + <tr><td class="cr_min_width_200">
4011 + <div>
4012 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4013 + <div class="bws_hidden_help_text cr_min_260px">' . 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.", 'aiomatic-automatic-ai-content-writer') . '
4014 + </div>
4015 + </div>
4016 + <b>' . esc_html__("Maximum Number Of Automatic Links To Add To The Post Content", 'aiomatic-automatic-ai-content-writer') . ':</b>
4017 + </td><td>
4018 + <input type="text" name="aiomatic_review_list[max_links][]" placeholder="Add the number of links to enable this feature" class="cr_width_full" value="' . esc_attr($max_links) . '">
4019 + </div>
4020 + </td></tr>
4021 + <tr class="hidelinks' . esc_html($cont) . '"><td class="cr_min_width_200">
4022 + <div>
4023 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4024 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Enter a manual list of links, where the plugin will create links.", 'aiomatic-automatic-ai-content-writer') . '
4025 + </div>
4026 + </div>
4027 + <b>' . esc_html__("Manual List Of URLs (One Per Line)", 'aiomatic-automatic-ai-content-writer') . ':</b>
4028 + </td><td>
4029 + <textarea rows="1" cols="70" name="aiomatic_review_list[link_list][]" placeholder="URL list (one per line)" class="cr_width_full">' . esc_textarea($link_list) . '</textarea>
4030 +
4031 + </div>
4032 + </td></tr>
4033 + <tr class="hidelinks' . esc_html($cont) . '"><td class="cr_min_width_200">
4034 + <div>
4035 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4036 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to add nofollow attribute to manually entered, external links?", 'aiomatic-automatic-ai-content-writer') . '
4037 + </div>
4038 + </div>
4039 + <b>' . esc_html__("Add Nofollow Attribute To External Links", 'aiomatic-automatic-ai-content-writer') . ':</b>
4040 + </td><td>
4041 + <input type="checkbox" name="aiomatic_review_list[link_nofollow][]"';
4042 + if($link_nofollow == '1')
4043 + {
4044 + $output .= ' checked';
4045 + }
4046 + $output .= '>
4047 +
4048 + </div>
4049 + </td></tr>
4050 + <tr><td class="cr_min_width_200">
4051 + <div>
4052 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4053 + <div class="bws_hidden_help_text cr_min_260px">' . 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') . '
4054 + </div>
4055 + </div>
4056 + <b>' . esc_html__("Post Types Where To Generate Automatic Links", 'aiomatic-automatic-ai-content-writer') . ':</b>
4057 + </td><td>
4058 + <input type="text" name="aiomatic_review_list[link_post_types][]" placeholder="post" class="cr_width_full" value="' . esc_attr($link_post_types) . '">
4059 + </div>
4060 + </td></tr>
4061 + <tr><td colspan="2"><h3>' . esc_html__('Post Category Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr>
4062 + <tr><td>
4063 + <div>
4064 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4065 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to automatically add post categories from the feed items?", 'aiomatic-automatic-ai-content-writer') . '
4066 + </div>
4067 + </div>
4068 + <b>' . esc_html__("Auto Add Categories", 'aiomatic-automatic-ai-content-writer') . ':</b>
4069 +
4070 + </td><td>
4071 + <select autocomplete="off" class="cr_width_full" id="auto_categories' . esc_html($cont) . '" name="aiomatic_review_list[auto_categories][]">
4072 + <option value="disabled"';
4073 + if ($auto_categories == 'disabled') {
4074 + $output .= ' selected';
4075 + }
4076 + $output .= '>' . esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer') . '</option>
4077 + <option value="ai"';
4078 + if ($auto_categories == 'ai') {
4079 + $output .= ' selected';
4080 + }
4081 + $output .= '>' . esc_html__("AI Generated", 'aiomatic-automatic-ai-content-writer') . '</option>
4082 + <option value="title"';
4083 + if ($auto_categories == 'title') {
4084 + $output .= ' selected';
4085 + }
4086 + $output .= '>' . esc_html__("Title", 'aiomatic-automatic-ai-content-writer') . '</option>
4087 + <option value="content"';
4088 + if ($auto_categories == 'content') {
4089 + $output .= ' selected';
4090 + }
4091 + $output .= '>' . esc_html__("Content", 'aiomatic-automatic-ai-content-writer') . '</option>
4092 + <option value="both"';
4093 + if ($auto_categories == 'both') {
4094 + $output .= ' selected';
4095 + }
4096 + $output .= '>' . esc_html__("Title and Content", 'aiomatic-automatic-ai-content-writer') . '</option>
4097 + </select>
4098 + </div>
4099 + </td></tr><tr><td>
4100 + <div>
4101 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4102 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the category generator. You can add this to the post categories, if you select 'AI Generated Categories' in the 'Auto Add Categories' settings field.", 'aiomatic-automatic-ai-content-writer') . '
4103 + </div>
4104 + </div>
4105 + <b>' . esc_html__("AI Model For The Category Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
4106 + </td><td class="cr_min_width_200">
4107 + <select autocomplete="off" name="aiomatic_review_list[category_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
4108 + if(empty($category_model))
4109 + {
4110 + $category_model = AIMOGEN_DEFAULT_MODEL;
4111 + }
4112 + foreach($all_models as $modelx)
4113 + {
4114 + $output .= '<option value="' . esc_html($modelx) .'"';
4115 + if ($category_model == $modelx)
4116 + {
4117 + $output .= " selected";
4118 + }
4119 + else
4120 + {
4121 + $output .= (($assistant_id != '') ? ' disabled ' : '');
4122 + }
4123 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
4124 + }
4125 + $output .= '</select>
4126 + </div>
4127 + </td></tr>
4128 + <tr><td class="cr_min_width_200">
4129 + <div>
4130 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4131 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set list of prompt commands (one on each line) you want to send to AI category generator. You can use the following shortcodes here: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%. You can also add a link to a TXT file, containing keywords (one per line), or to an RSS feed. If you use RSS feeds, you can also use the following additional shortcodes: %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%author_name%%, %%current_date_time%%, %%post_link%%. The length of this command should not be greater than the max token count set in the settings for the 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). You can also add here a link to a .txt file, where you can add multiple prompts (one per line) and the plugin will select a random one at each run. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '&nbsp;' . sprintf( wp_kses( __( "Please check some tips and tricks about writing prompt commands, <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/' ) . '
4132 + </div>
4133 + </div>
4134 + <b>' . esc_html__("Prompt For The AI Category Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/" target="_blank">&#9432;</a></b>
4135 +
4136 + </td><td>
4137 + <textarea rows="2" cols="70" name="aiomatic_review_list[category_ai_command][]" placeholder="Write a comma separated list of categories, for the post title: %%post_title%%" class="cr_width_full">' . esc_textarea($category_ai_command) . '</textarea>
4138 +
4139 + </div>
4140 + </td></tr><tr><td class="cr_min_width_200">
4141 + <div>
4142 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4143 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the post category that you want for the automatically generated posts to have.", 'aiomatic-automatic-ai-content-writer') . '
4144 + </div>
4145 + </div>
4146 + <b>' . esc_html__("Additional Post Category", 'aiomatic-automatic-ai-content-writer') . ':</b>
4147 +
4148 + </td><td>
4149 +
4150 + <select multiple class="cr_width_full" id="default_category' . esc_html($cont) . '" name="aiomatic_review_list[default_category' . esc_html($cont) . '][]" onmouseover="this.size=this.length;" onmouseout="this.size=4;">
4151 + <option value="aiomatic_no_category_12345678"';
4152 + if(!is_array($default_category))
4153 + {
4154 + $default_category = array($default_category);
4155 + }
4156 + if(count($default_category) == 1)
4157 + {
4158 + foreach($default_category as $dc)
4159 + {
4160 + if ("aiomatic_no_category_12345678" == $dc) {
4161 + $output .= ' selected';
4162 + break;
4163 + }
4164 + }
4165 + }
4166 + $output .= '>' . esc_html__("Do Not Add a Category", 'aiomatic-automatic-ai-content-writer') . '</option>';
4167 + if(!isset($cats_arr[$def_type]))
4168 + {
4169 + if($def_type == 'product')
4170 + {
4171 + $cat_args['taxonomy'] = 'product_cat';
4172 + }
4173 + elseif(isset($cat_args['taxonomy']))
4174 + {
4175 + unset($cat_args['taxonomy']);
4176 + }
4177 + $cats_arr[$def_type] = get_categories($cat_args);
4178 +
4179 + }
4180 + $categories = $cats_arr[$def_type];
4181 + foreach ($categories as $category) {
4182 + $output .= '<option value="' . esc_attr($category->term_id) . '"';
4183 + foreach($default_category as $dc)
4184 + {
4185 + if ($category->term_id == $dc) {
4186 + $output .= ' selected';
4187 + break;
4188 + }
4189 + }
4190 + $output .= '>' . sanitize_text_field($category->name) . ' - ID ' . esc_html($category->term_id) . '</option>';
4191 + }
4192 + $output .= '</select>
4193 + </div>
4194 + </td></tr><tr><td>
4195 + <div>
4196 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4197 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("This feature will try to remove the WordPress\'s default post category. This may fail in case no additional categories are added, because WordPress requires at least one post category for every post.", 'aiomatic-automatic-ai-content-writer') . '
4198 + </div>
4199 + </div>
4200 + <b>' . esc_html__("Remove WP Default Post Category", 'aiomatic-automatic-ai-content-writer') . ':</b>
4201 +
4202 + </td><td>
4203 + <input type="checkbox" id="remove_default' . esc_html($cont) . '" name="aiomatic_review_list[remove_default][]"';
4204 + if($remove_default == '1')
4205 + {
4206 + $output .= ' checked';
4207 + }
4208 + $output .= '>
4209 +
4210 + </div>
4211 + </td></tr><tr><td>
4212 + <div>
4213 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4214 + <div class="bws_hidden_help_text cr_min_260px">' . 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') . '
4215 + </div>
4216 + </div>
4217 + <b>' . esc_html__("Do Not Add Inexistent Categories", 'aiomatic-automatic-ai-content-writer') . ':</b>
4218 +
4219 + </td><td>
4220 + <input type="checkbox" id="skip_inexist' . esc_html($cont) . '" name="aiomatic_review_list[skip_inexist][]"';
4221 + if($skip_inexist == '1')
4222 + {
4223 + $output .= ' checked';
4224 + }
4225 + $output .= '>
4226 +
4227 + </div>
4228 + </td></tr>
4229 + <tr><td colspan="2"><h3>' . esc_html__('Post Tag Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr><tr><td>
4230 + <div>
4231 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4232 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to automatically add post tags from the feed items?", 'aiomatic-automatic-ai-content-writer') . '
4233 + </div>
4234 + </div>
4235 + <b>' . esc_html__("Auto Add Tags", 'aiomatic-automatic-ai-content-writer') . ':</b>
4236 +
4237 + </td><td>
4238 + <select autocomplete="off" class="cr_width_full" id="auto_tags' . esc_html($cont) . '" name="aiomatic_review_list[auto_tags][]">
4239 + <option value="disabled"';
4240 + if ($auto_tags == 'disabled') {
4241 + $output .= ' selected';
4242 + }
4243 + $output .= '>' . esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer') . '</option>
4244 + <option value="ai"';
4245 + if ($auto_tags == 'ai') {
4246 + $output .= ' selected';
4247 + }
4248 + $output .= '>' . esc_html__("AI Generated", 'aiomatic-automatic-ai-content-writer') . '</option>
4249 + <option value="title"';
4250 + if ($auto_tags == 'title') {
4251 + $output .= ' selected';
4252 + }
4253 + $output .= '>' . esc_html__("Title", 'aiomatic-automatic-ai-content-writer') . '</option>
4254 + <option value="content"';
4255 + if ($auto_tags == 'content') {
4256 + $output .= ' selected';
4257 + }
4258 + $output .= '>' . esc_html__("Content", 'aiomatic-automatic-ai-content-writer') . '</option>
4259 + <option value="both"';
4260 + if ($auto_tags == 'both') {
4261 + $output .= ' selected';
4262 + }
4263 + $output .= '>' . esc_html__("Title and Content", 'aiomatic-automatic-ai-content-writer') . '</option>
4264 + </select>
4265 + </div>
4266 + </td></tr><tr><td>
4267 + <div>
4268 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4269 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI Model to be used for the tag generator. You can add this to the post tags, if you select 'AI Generated Tags' in the 'Auto Add Tags' settings field.", 'aiomatic-automatic-ai-content-writer') . '
4270 + </div>
4271 + </div>
4272 + <b>' . esc_html__("AI Model For The Post Tag Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>
4273 + </td><td class="cr_min_width_200">
4274 + <select autocomplete="off" name="aiomatic_review_list[tag_model][]" class="hideAssistant' . esc_html($cont) . ' cr_width_full">';
4275 + if(empty($tag_model))
4276 + {
4277 + $tag_model = AIMOGEN_DEFAULT_MODEL;
4278 + }
4279 + foreach($all_models as $modelx)
4280 + {
4281 + $output .= '<option value="' . esc_html($modelx) .'"';
4282 + if ($tag_model == $modelx)
4283 + {
4284 + $output .= " selected";
4285 + }
4286 + else
4287 + {
4288 + $output .= (($assistant_id != '') ? ' disabled ' : '');
4289 + }
4290 + $output .= '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
4291 + }
4292 + $output .= '</select>
4293 + </div>
4294 + </td></tr>
4295 + <tr><td class="cr_min_width_200">
4296 + <div>
4297 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4298 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set list of prompt commands (one on each line) you want to send to AI tag generator. You can use the following shortcodes here: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%. You can also add a link to a TXT file, containing keywords (one per line), or to an RSS feed. If you use RSS feeds, you can also use the following additional shortcodes: %%post_content%%, %%post_content_plain_text%%, %%post_excerpt%%, %%post_cats%%, %%author_name%%, %%current_date_time%%, %%post_link%%. The length of this command should not be greater than the max token count set in the settings for the 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). You can also add here a link to a .txt file, where you can add multiple prompts (one per line) and the plugin will select a random one at each run. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '&nbsp;' . sprintf( wp_kses( __( "Please check some tips and tricks about writing prompt commands, <a href='%s' target='_blank'>here</a>.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/' ) . '
4299 + </div>
4300 + </div>
4301 + <b>' . esc_html__("Prompt For The AI Post Tag Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-for-openai-gpt-3-api/" target="_blank">&#9432;</a></b>
4302 +
4303 + </td><td>
4304 + <textarea rows="2" cols="70" name="aiomatic_review_list[tag_ai_command][]" placeholder="Write a comma separated list of tags, for the post title: %%post_title%%" class="cr_width_full">' . esc_textarea($tag_ai_command) . '</textarea>
4305 +
4306 + </div>
4307 + </td></tr><tr><td>
4308 + <div>
4309 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4310 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the post tags that you want for the automatically generated posts to have. Spintax supported.", 'aiomatic-automatic-ai-content-writer') . '
4311 + </div>
4312 + </div>
4313 + <b>' . esc_html__("Additional Post Tags", 'aiomatic-automatic-ai-content-writer') . ':</b>
4314 +
4315 + </td><td>
4316 + <input class="cr_width_full" type="text" name="aiomatic_review_list[default_tags][]" value="' . esc_attr($default_tags) . '" placeholder="Please insert your additional post tags here" >
4317 +
4318 + </div>
4319 + </td></tr>
4320 + <tr><td colspan="2"><h3>' . esc_html__('Advanced AI Text Generator Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr>
4321 + <tr><td class="cr_min_width_200">
4322 + <div>
4323 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4324 + <div class="bws_hidden_help_text cr_min_260px">' . 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 is 4000. For other models, the maximum is 2048.", 'aiomatic-automatic-ai-content-writer') . '
4325 + </div>
4326 + </div>
4327 + <b>' . esc_html__("Maximum Total Token Count To Use Per API Request", 'aiomatic-automatic-ai-content-writer') . ':</b>
4328 + </td><td>
4329 + <input type="number" min="1" name="aiomatic_review_list[max_tokens][]" value="' . esc_attr($max_tokens) . '" placeholder="2048" class="cr_width_full">
4330 +
4331 + </div>
4332 + </td></tr><tr><td class="cr_min_width_200">
4333 + <div>
4334 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4335 + <div class="bws_hidden_help_text cr_min_260px">' . 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 is 1000.", 'aiomatic-automatic-ai-content-writer') . '
4336 + </div>
4337 + </div>
4338 + <b>' . esc_html__("Maximum Prompt Token Count To Use Per API Request", 'aiomatic-automatic-ai-content-writer') . ':</b>
4339 + </td><td>
4340 + <input type="number" min="1" name="aiomatic_review_list[max_seed_tokens][]" value="' . esc_attr($max_seed_tokens) . '" placeholder="1000" class="cr_width_full">
4341 +
4342 + </div>
4343 + </td></tr><tr><td class="cr_min_width_200">
4344 + <div>
4345 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4346 + <div class="bws_hidden_help_text cr_min_260px">' . 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 is 500.", 'aiomatic-automatic-ai-content-writer') . '
4347 + </div>
4348 + </div>
4349 + <b>' . esc_html__("Maximum Continue Token Count To Use Per API Request", 'aiomatic-automatic-ai-content-writer') . ':</b>
4350 + </td><td>
4351 + <input type="number" min="1" name="aiomatic_review_list[max_continue_tokens][]" value="' . esc_attr($max_continue_tokens) . '" placeholder="500" class="cr_width_full">
4352 +
4353 + </div>
4354 + </td></tr><tr><td class="cr_min_width_200">
4355 + <div>
4356 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4357 + <div class="bws_hidden_help_text cr_min_260px">' . 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') . '
4358 + </div>
4359 + </div>
4360 + <b>' . esc_html__("AI Temperature", 'aiomatic-automatic-ai-content-writer') . ':</b>
4361 + </td><td>
4362 + <input type="number" min="0" step="0.01" max="2" name="aiomatic_review_list[temperature][]" value="' . esc_attr($temperature) . '" placeholder="1" class="cr_width_full">
4363 +
4364 + </div>
4365 + </td></tr>
4366 + <tr><td class="cr_min_width_200">
4367 + <div>
4368 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4369 + <div class="bws_hidden_help_text cr_min_260px">' . 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') . '
4370 + </div>
4371 + </div>
4372 + <b>' . esc_html__("AI Top_p", 'aiomatic-automatic-ai-content-writer') . ':</b>
4373 + </td><td>
4374 + <input type="number" min="0" step="0.01" max="1" name="aiomatic_review_list[top_p][]" value="' . esc_attr($top_p) . '" placeholder="1" class="cr_width_full">
4375 +
4376 + </div>
4377 + </td></tr>
4378 + <tr><td class="cr_min_width_200">
4379 + <div>
4380 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4381 + <div class="bws_hidden_help_text cr_min_260px">' . 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') . '
4382 + </div>
4383 + </div>
4384 + <b>' . esc_html__("AI Presence Penalty", 'aiomatic-automatic-ai-content-writer') . ':</b>
4385 + </td><td>
4386 + <input type="number" min="-2" max="2" step="0.01" name="aiomatic_review_list[presence_penalty][]" value="' . esc_attr($presence_penalty) . '" placeholder="0" class="cr_width_full">
4387 +
4388 + </div>
4389 + </td></tr>
4390 + <tr><td class="cr_min_width_200">
4391 + <div>
4392 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4393 + <div class="bws_hidden_help_text cr_min_260px">' . 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') . '
4394 + </div>
4395 + </div>
4396 + <b>' . esc_html__("AI Frequency Penalty", 'aiomatic-automatic-ai-content-writer') . ':</b>
4397 + </td><td>
4398 + <input type="number" min="-2" step="0.01" max="2" name="aiomatic_review_list[frequency_penalty][]" value="' . esc_attr($frequency_penalty) . '" placeholder="0" class="cr_width_full">
4399 +
4400 + </div>
4401 + </td></tr>
4402 + <tr><td colspan="2"><h3>' . esc_html__('Image Generator Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr>
4403 + <tr><td>
4404 + <div>
4405 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4406 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to set a featured image for the created post (royalty free or AI generated)? Please note that for this feature to function you must configure the plugin (add API keys) in the plugin\'s \'Settings\' menu -> \'Royalty Free Featured Image Importing Options\' section.", 'aiomatic-automatic-ai-content-writer') . '
4407 + </div>
4408 + </div>
4409 + <b>' . esc_html__("Auto Set A Featured Image For Posts (Select Source Below)", 'aiomatic-automatic-ai-content-writer') . ':</b>
4410 +
4411 + </td><td>
4412 + <select autocomplete="off" name="aiomatic_review_list[royalty_free][]" class="cr_width_full">
4413 + <option value="0"';
4414 + if ($royalty_free == '0') {
4415 + $output .= ' selected';
4416 + }
4417 + $output .= '>' . esc_html__("Disabled", 'aiomatic-automatic-ai-content-writer') . '</option>
4418 + <option value="1"';
4419 + if ($royalty_free == '1') {
4420 + $output .= ' selected';
4421 + }
4422 + $output .= '>' . esc_html__("AI Image From Below Selector", 'aiomatic-automatic-ai-content-writer') . '</option>
4423 + <option value="2"';
4424 + if ($royalty_free == '2') {
4425 + $output .= ' selected';
4426 + }
4427 + $output .= '>' . esc_html__("Amazon Product Thumbnail", 'aiomatic-automatic-ai-content-writer') . '</option>
4428 + </select>
4429 +
4430 + </div>
4431 + </td></tr>
4432 + <tr><td class="cr_min_width_200">
4433 + <div>
4434 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4435 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the search query repetition mode, when searching royalty free images.", 'aiomatic-automatic-ai-content-writer') . '
4436 + </div>
4437 + </div>
4438 + <b>' . esc_html__("Search Query Repetition", 'aiomatic-automatic-ai-content-writer') . ':</b>
4439 + </td><td>
4440 + <select autocomplete="off" name="aiomatic_review_list[search_query_repetition][]" class="cr_width_full">
4441 + <option value="0"';
4442 + if ($search_query_repetition == '0') {
4443 + $output .= ' selected';
4444 + }
4445 + $output .= '>' . esc_html__("Use Different Search Queries For Images", 'aiomatic-automatic-ai-content-writer') . '</option>
4446 + <option value="1"';
4447 + if ($search_query_repetition == '1') {
4448 + $output .= ' selected';
4449 + }
4450 + $output .= '>' . esc_html__("Use The Same Search Query For Images", 'aiomatic-automatic-ai-content-writer') . '</option>
4451 + </select>
4452 + </div>
4453 + </td></tr>
4454 + <tr><td class="cr_min_width_200">
4455 + <div>
4456 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4457 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to enable the AI Image Generator and to replace Royalty Free Images with AI generated images? If you select 'Default Featured Image List', you can add the image URLs in the 'Default Featured Image List' settings field.", 'aiomatic-automatic-ai-content-writer') . '
4458 + </div>
4459 + </div>
4460 + <b>' . esc_html__("Article Image Source", 'aiomatic-automatic-ai-content-writer') . ':</b>
4461 + </td><td>
4462 + <select id="enable_ai_images' . esc_html($cont) . '" autocomplete="off" onchange="hideImage(' . esc_html($cont) . ');" name="aiomatic_review_list[enable_ai_images][]" class="cr_width_full">
4463 + <option value="0"';
4464 + if ($enable_ai_images == '0') {
4465 + $output .= ' selected';
4466 + }
4467 + $output .= '>' . esc_html__("Royalty Free", 'aiomatic-automatic-ai-content-writer') . '</option>
4468 + <option value="1"';
4469 + if ($enable_ai_images == '1') {
4470 + $output .= ' selected';
4471 + }
4472 + $output .= '>' . esc_html__("OpenAI/AiomaticAPI", 'aiomatic-automatic-ai-content-writer') . '</option>
4473 + <option value="2"';
4474 + if ($enable_ai_images == '2') {
4475 + $output .= ' selected';
4476 + }
4477 + $output .= '>' . esc_html__("Stability.AI", 'aiomatic-automatic-ai-content-writer') . '</option>
4478 + <option value="4"';
4479 + if ($enable_ai_images == '4') {
4480 + $output .= ' selected';
4481 + }
4482 + $output .= '>' . esc_html__("Midjourney", 'aiomatic-automatic-ai-content-writer') . '</option>
4483 + <option value="5"';
4484 + if ($enable_ai_images == '5') {
4485 + $output .= ' selected';
4486 + }
4487 + $output .= '>' . esc_html__("Replicate", 'aiomatic-automatic-ai-content-writer') . '</option>
4488 + <option value="6"';
4489 + if ($enable_ai_images == '6') {
4490 + $output .= ' selected';
4491 + }
4492 + $output .= '>' . esc_html__("Ideogram", 'aiomatic-automatic-ai-content-writer') . '</option>
4493 + <option value="7"';
4494 + if ($enable_ai_images == '7') {
4495 + $output .= ' selected';
4496 + }
4497 + $output .= '>' . esc_html__("Google", 'aiomatic-automatic-ai-content-writer') . '</option>
4498 + <option value="3"';
4499 + if ($enable_ai_images == '3') {
4500 + $output .= ' selected';
4501 + }
4502 + $output .= '>' . esc_html__("Manual URL List", 'aiomatic-automatic-ai-content-writer') . '</option>
4503 + </select>
4504 + </div>
4505 + </td></tr>
4506 + <tr class="hideImg' . esc_html($cont) . '"><td class="cr_min_width_200">
4507 + <div>
4508 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4509 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set list of prompt commands (one on each line) you want to send to the AI image generator. This command can be any given task or order, based on which, it will generate images. You can 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%%. The length of this command should not be greater than 1000 characters (4000 characters for Dall-E 3), otherwise the plugin will strip it to 1000 characters length. - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You can also add here a link to a .txt file, where you can add multiple prompts (one per line) and the plugin will select a random one at each run. 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. You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '&nbsp;' . sprintf( wp_kses( __( "Please check some tips and tricks about writing prompt commands, <a href='%s' target='_blank'>here</a>. The [aicontent] shortcode is able to be used also here.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), 'https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-image-generating-for-openai-dall-e-api/' ) . '
4510 + </div>
4511 + </div>
4512 + <b>' . esc_html__("Prompt For The AI Image Generator", 'aiomatic-automatic-ai-content-writer') . ':</b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/how-to-create-a-good-seed-prompt-command-for-aiomatic-image-generating-for-openai-dall-e-api/" target="_blank">&#9432;</a></b>
4513 +
4514 + </td><td>
4515 + <textarea rows="2" cols="70" name="aiomatic_review_list[ai_command_image][]" placeholder="Please insert a command for the AI image generator" class="cr_width_full">' . esc_textarea($ai_command_image) . '</textarea>
4516 +
4517 + </div>
4518 + </td></tr>
4519 + <tr class="hideDalle' . esc_html($cont) . '"><td>
4520 + <div>
4521 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4522 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the AI model you wish to use for image the image generator.", 'aiomatic-automatic-ai-content-writer') . '
4523 + </div>
4524 + </div>
4525 + <b>' . esc_html__("AI Image Model", 'aiomatic-automatic-ai-content-writer') . ':</b>
4526 + </td><td class="cr_min_width_200">
4527 + <select autocomplete="off" name="aiomatic_review_list[image_model][]" class="cr_width_full">';
4528 + foreach(AIMOGEN_DALLE_IMAGE_MODELS as $modelx)
4529 + {
4530 + $output .= '<option value="' . esc_html($modelx) .'"';
4531 + if ($modelx == $image_model) { $output .= ' selected'; }
4532 + $output .= '>' . esc_html($modelx) . '</option>';
4533 + }
4534 + $output .= '</select>
4535 + </div>
4536 + </td></tr>
4537 + <tr class="hideImg' . esc_html($cont) . '"><td>
4538 + <div>
4539 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4540 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the size of the generated image.", 'aiomatic-automatic-ai-content-writer') . '
4541 + </div>
4542 + </div>
4543 + <b>' . esc_html__("Generated Image Size", 'aiomatic-automatic-ai-content-writer') . ':</b>
4544 + </td><td class="cr_min_width_200">
4545 + <select autocomplete="off" name="aiomatic_review_list[image_size][]" class="cr_width_full">
4546 + <option value="256x256"';
4547 + if ($image_size == '256x256') {
4548 + $output .= ' selected';
4549 + }
4550 + $output .= '>' . esc_html__("256x256 (only for Dall-E 2)", 'aiomatic-automatic-ai-content-writer') . '</option>
4551 + <option value="512x512"';
4552 + if ($image_size == '512x512') {
4553 + $output .= ' selected';
4554 + }
4555 + $output .= '>' . esc_html__("512x512 (only for Dall-E 2 & Stable Diffusion)", 'aiomatic-automatic-ai-content-writer') . '</option>
4556 + <option value="1024x1024"';
4557 + if ($image_size == '1024x1024') {
4558 + $output .= ' selected';
4559 + }
4560 + $output .= '>' . esc_html__("1024x1024", 'aiomatic-automatic-ai-content-writer') . '</option>
4561 + <option value="1792x1024"';
4562 + if ($image_size == '1792x1024') {
4563 + $output .= ' selected';
4564 + }
4565 + $output .= '>' . esc_html__("1792x1024 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer') . '</option>
4566 + <option value="1024x1792"';
4567 + if ($image_size == '1024x1792') {
4568 + $output .= ' selected';
4569 + }
4570 + $output .= '>' . esc_html__("1024x1792 (only for Dall-E 3)", 'aiomatic-automatic-ai-content-writer') . '</option>
4571 + <option value="1536x1024"';
4572 + if ($image_size == '1536x1024') {
4573 + $output .= ' selected';
4574 + }
4575 + $output .= '>' . 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>
4576 + <option value="1024x1536"';
4577 + if ($image_size == '1024x1536') {
4578 + $output .= ' selected';
4579 + }
4580 + $output .= '>' . 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>
4581 + </select>
4582 + </div>
4583 + </td></tr><tr><td>
4584 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4585 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Insert a comma separated list of links to valid images that will be set randomly for the featured image for the posts that do not have a valid image attached or if you disabled automatical featured image generator. You can also use image numeric IDs from images found in the Media Gallery. To disable this feature, leave this field blank. Spintax supported. You can also use the %%random_image[keyword]%% shortcode to automatically import a random image from Google Image Search with the Creative Commons filter applied. To get a related image, you can also use: %%random_image[%%post_title%%]%%", 'aiomatic-automatic-ai-content-writer') . '
4586 + </div>
4587 + </div>
4588 + <b>' . esc_html__("Default Featured Image List", 'aiomatic-automatic-ai-content-writer') . ':</b>
4589 + </td><td>
4590 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[image_url][]" placeholder="Please insert the link to a valid image (spintax supported)">' . esc_textarea($image_url) . '</textarea>
4591 +
4592 + </td></tr>
4593 + <tr><td colspan="2"><h3>' . esc_html__('Posting Options', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr>
4594 + <tr><td class="cr_min_width_200">
4595 + <div>
4596 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4597 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Enter a HTML text that should be prepended to the AI generated content in each created post. You can use the following shortcodes: %%custom_html%%, %%custom_html2%%, %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%, %%random_image[keyword]%%, %%random_image_url[keyword]%%, %%random_video[keyword]%%, %%royalty_free_image_attribution%% - you can also use an optional parameter in the random_image and random_video shortcodes, which will add a percentage chance for the media to appear or not - example: %%random_video[keyword][60]%% - a video will appear in 60% of cases, in the rest of 40%, nothing will be returned by the shortcode - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '
4598 + </div>
4599 + </div>
4600 + <b>' . esc_html__("HTML Text To Prepend To AI Created Content", 'aiomatic-automatic-ai-content-writer') . ':</b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
4601 + </td><td>
4602 + <textarea rows="2" cols="70" name="aiomatic_review_list[post_prepend][]" placeholder="HTML content to prepend to the AI generated content" class="cr_width_full">' . esc_textarea($post_prepend) . '</textarea>
4603 + </div>
4604 + </td></tr><tr><td class="cr_min_width_200">
4605 + <div>
4606 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4607 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Enter a HTML text that should be append to the AI generated content in each created post. You can use the following shortcodes: %%custom_html%%, %%custom_html2%%, %%product_title%%, %%product_description%%, %%aff_url%%, %%product_author%%, %%offer_price%%, %%product_price%%, %%product_list_price%%, %%product_brand%%, %%product_isbn%%, %%product_upc%%, %%product_reviews%%, %%price_numeric%%, %%price_currency%%, %%product_asin%%, %%cart_url%%, %%list_price_numeric%%, %%product_imgs%%, %%search_keywords%%, %%language%%, %%writing_style%%, %%point_of_view%%, %%writing_tone%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%, %%random_image[keyword]%%, %%random_image_url[keyword]%%, %%random_video[keyword]%%, %%royalty_free_image_attribution%% - you can also use an optional parameter in the random_image and random_video shortcodes, which will add a percentage chance for the media to appear or not - example: %%random_video[keyword][60]%% - a video will appear in 60% of cases, in the rest of 40%, nothing will be returned by the shortcode - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins). You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators.", 'aiomatic-automatic-ai-content-writer') . '
4608 + </div>
4609 + </div>
4610 + <b>' . esc_html__("HTML Text To Append To AI Created Content", 'aiomatic-automatic-ai-content-writer') . ':</b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
4611 + </td><td>
4612 + <textarea rows="2" cols="70" name="aiomatic_review_list[post_append][]" placeholder="HTML content to append to the AI generated content" class="cr_width_full">' . esc_textarea($post_append) . '</textarea>
4613 + </div>
4614 + </td></tr><tr><td class="cr_min_width_200">
4615 + <div>
4616 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4617 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Custom AI generated content shortcode creator. If you wish to create content from multiple AI prompts, and use them in post content/post custom fields/taxonomies, you can configure this from here. Also, these shortcodes will be able to be used in custom fields or custom taxonomies which the plugin will create. Syntax for this field: shortcode_name => AI_MODEL_TO_USE @@ TEXTUAL_PROMPT_TO_USE (to specify multiple shortcodes and crawling values, separate them by a new line. Example: my_custom_shortcode => gpt-4.1-mini @@ Write a short poem. Afterwards, you can use shortcodes in any settings field that supports shortcodes (ex: 'HTML Text To Append To AI Created Content' settings field), like this: %%my_custom_shortcode%%. Official format is %%name_of_custom_shortcode%%", 'aiomatic-automatic-ai-content-writer') . '
4618 + </div>
4619 + </div>
4620 + <b>' . esc_html__("Custom Shortcode Creator (Optional)", 'aiomatic-automatic-ai-content-writer') . ':</b><span class="tool" data-tip="Supported models: ' . implode(',', aiomatic_get_all_models()) . '">&nbsp;&#9432;</span>
4621 + </td><td>
4622 + <textarea rows="2" cols="70" name="aiomatic_review_list[custom_shortcodes][]" placeholder="shortcode_name => AI_MODEL @@ AI_PROMPT" class="cr_width_full">' . esc_textarea($custom_shortcodes) . '</textarea>
4623 + </div>
4624 + </td></tr><tr><td>
4625 + <div>
4626 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4627 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("The AI writer might add the title of the post to the created post content. Check this checkbox if you want to remove the title from the post content", 'aiomatic-automatic-ai-content-writer') . '
4628 + </div>
4629 + </div>
4630 + <b>' . esc_html__("Strip Title From Content", 'aiomatic-automatic-ai-content-writer') . ':</b>
4631 +
4632 + </td><td>
4633 + <input type="checkbox" id="strip_title' . esc_html($cont) . '" name="aiomatic_review_list[strip_title][]"';
4634 + if($strip_title == '1')
4635 + {
4636 + $output .= ' checked';
4637 + }
4638 + $output .= '>
4639 +
4640 + </div>
4641 + </td></tr><tr><td>
4642 + <div>
4643 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4644 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to skip spinning of posts generated by this rule?", 'aiomatic-automatic-ai-content-writer') . '
4645 + </div>
4646 + </div>
4647 + <b>' . esc_html__("Do Not Spin Posts Generated By This Rule", 'aiomatic-automatic-ai-content-writer') . ':</b>
4648 +
4649 + </td><td>
4650 + <input type="checkbox" id="skip_spin' . esc_html($cont) . '" name="aiomatic_review_list[skip_spin][]"';
4651 + if($skip_spin == '1')
4652 + {
4653 + $output .= ' checked';
4654 + }
4655 + $output .= '>
4656 + </div>
4657 + </td></tr><tr><td>
4658 + <div>
4659 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4660 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to skip translating of posts generated by this rule?", 'aiomatic-automatic-ai-content-writer') . '
4661 + </div>
4662 + </div>
4663 + <b>' . esc_html__("Do Not Translate Posts Generated By This Rule", 'aiomatic-automatic-ai-content-writer') . ':</b>
4664 +
4665 + </td><td>
4666 + <input type="checkbox" id="skip_translate' . esc_html($cont) . '" name="aiomatic_review_list[skip_translate][]"';
4667 + if($skip_translate == '1')
4668 + {
4669 + $output .= ' checked';
4670 + }
4671 + $output .= '>
4672 + </div>
4673 + </td></tr><tr><td>
4674 + <div>
4675 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4676 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you want to process each title from the added list only once.", 'aiomatic-automatic-ai-content-writer') . '
4677 + </div>
4678 + </div>
4679 + <b>' . esc_html__("Process Each Title/Keyword Only Once", 'aiomatic-automatic-ai-content-writer') . ':</b>
4680 +
4681 + </td><td>
4682 + <input type="checkbox" id="title_once' . esc_html($cont) . '" name="aiomatic_review_list[title_once][]"';
4683 + if($title_once == '1')
4684 + {
4685 + $output .= ' checked';
4686 + }
4687 + $output .= '>
4688 +
4689 + </div>
4690 + </td></tr><tr><td>
4691 + <div>
4692 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4693 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select if you want to overwrite existing posts during the publishing process.", 'aiomatic-automatic-ai-content-writer') . '
4694 + </div>
4695 + </div>
4696 + <b>' . esc_html__("Overwrite Existing Posts", 'aiomatic-automatic-ai-content-writer') . ':</b>
4697 +
4698 + </td><td>
4699 + <input type="checkbox" id="overwrite_existing' . esc_html($cont) . '" name="aiomatic_review_list[overwrite_existing][]"';
4700 + if($overwrite_existing == '1')
4701 + {
4702 + $output .= ' checked';
4703 + }
4704 + $output .= '>
4705 +
4706 + </div>
4707 + </td></tr><tr><td>
4708 + <div>
4709 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4710 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Run regex on post content. To disable this feature, leave this field blank. No Regex separators are required here. You can add multiple Regex expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer') . '
4711 + </div>
4712 + </div>
4713 + <b>' . esc_html__("Run Regex On Content", 'aiomatic-automatic-ai-content-writer') . ':</b>
4714 +
4715 + </td><td>
4716 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[strip_by_regex][]" placeholder="regex" class="cr_width_full">' . esc_textarea($strip_by_regex) . '</textarea>
4717 +
4718 + </div>
4719 + </td></tr><tr><td>
4720 + <div>
4721 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4722 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Replace the above regex matches with this regex expression. If you want to strip matched content, leave this field blank. No Regex separators are required here. You can add multiple replacement expressions, each on a different line.", 'aiomatic-automatic-ai-content-writer') . '
4723 + </div>
4724 + </div>
4725 + <b>' . esc_html__("Replace Matches From Regex (Content)", 'aiomatic-automatic-ai-content-writer') . ':</b>
4726 +
4727 + </td><td>
4728 + <textarea rows="1" class="cr_width_full" name="aiomatic_review_list[replace_regex][]" placeholder="regex replacement" class="cr_width_full">' . esc_textarea($replace_regex) . '</textarea>
4729 +
4730 + </div>
4731 + </td></tr><tr><td>
4732 + <div>
4733 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4734 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the author that you want to assign for the automatically generated posts.", 'aiomatic-automatic-ai-content-writer') . '
4735 + </div>
4736 + </div>
4737 + <b>' . esc_html__("Post Author", 'aiomatic-automatic-ai-content-writer') . ':</b>
4738 + </td><td class="cr_min_width_200">
4739 + <select autocomplete="off" id="post_author' . esc_html($cont) . '" name="aiomatic_review_list[post_author][]" class="cr_width_full">';
4740 + $output .= '<option value="rand"';
4741 + if ($post_user_name == "rand") {
4742 + $output .= " selected";
4743 + }
4744 + $output .= '>' . esc_html__("Random user", 'aiomatic-automatic-ai-content-writer') . '</option>';
4745 + $blogusers = get_users( [ 'role__in' => [ 'contributor', 'author', 'editor', 'administrator' ] ] );
4746 + foreach ($blogusers as $user) {
4747 + $output .= '<option value="' . esc_html($user->ID) . '"';
4748 + if ($post_user_name == $user->ID) {
4749 + $output .= " selected";
4750 + }
4751 + $output .= '>' . esc_html($user->display_name) . '</option>';
4752 + }
4753 + $output .= '</select>
4754 + </div>
4755 + </td></tr><tr><td>
4756 + <div>
4757 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4758 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the status that you want for the automatically generated posts to have.", 'aiomatic-automatic-ai-content-writer') . '
4759 + </div>
4760 + </div>
4761 + <b>' . esc_html__("Post Status", 'aiomatic-automatic-ai-content-writer') . ':</b>
4762 + </td><td class="cr_min_width_200">
4763 + <select autocomplete="off" id="submit_status' . esc_html($cont) . '" name="aiomatic_review_list[submit_status][]" class="cr_width_full">
4764 + <option value="pending"';
4765 + if ($status == 'pending') {
4766 + $output .= ' selected';
4767 + }
4768 + $output .= '>' . esc_html__("Pending -> Moderate", 'aiomatic-automatic-ai-content-writer') . '</option>
4769 + <option value="draft"';
4770 + if ($status == 'draft') {
4771 + $output .= ' selected';
4772 + }
4773 + $output .= '>' . esc_html__("Draft -> Moderate", 'aiomatic-automatic-ai-content-writer') . '</option>
4774 + <option value="publish"';
4775 + if ($status == 'publish') {
4776 + $output .= ' selected';
4777 + }
4778 + $output .= '>' . esc_html__("Published", 'aiomatic-automatic-ai-content-writer') . '</option>
4779 + <option value="private"';
4780 + if ($status == 'private') {
4781 + $output .= ' selected';
4782 + }
4783 + $output .= '>' . esc_html__("Private", 'aiomatic-automatic-ai-content-writer') . '</option>
4784 + <option value="trash"';
4785 + if ($status == 'trash') {
4786 + $output .= ' selected';
4787 + }
4788 + $output .= '>' . esc_html__("Trash", 'aiomatic-automatic-ai-content-writer') . '</option>
4789 + </select>
4790 + </div>
4791 + </td></tr><tr><td>
4792 + <div>
4793 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4794 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the type (post/page) for your automatically generated item.", 'aiomatic-automatic-ai-content-writer') . '
4795 + </div>
4796 + </div>
4797 + <b>' . esc_html__("Item Type", 'aiomatic-automatic-ai-content-writer') . ':</b>
4798 + </td><td class="cr_min_width_200">
4799 + <select autocomplete="off" id="default_type' . esc_html($cont) . '" name="aiomatic_review_list[default_type][]" class="cr_width_full" onchange="go_change_cats(this, \'' . esc_html($cont) . '\');">';
4800 + foreach ( get_post_types( '', 'names' ) as $post_type ) {
4801 + if(strstr($post_type, 'aiomatic_'))
4802 + {
4803 + continue;
4804 + }
4805 + $output .= '<option value="' . esc_attr($post_type) . '"';
4806 + if ($def_type == $post_type) {
4807 + $output .= ' selected';
4808 + }
4809 + $output .= '>' . esc_html($post_type) . '</option>';
4810 + }
4811 + $output .= '</select>
4812 + </div>
4813 + </td></tr><tr><td>
4814 + <div>
4815 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4816 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__('If your template supports "Post Formats", than you can select one here. If not, leave this at it\'s default value.', 'aiomatic-automatic-ai-content-writer') . '
4817 + </div>
4818 + </div>
4819 + <b>' . esc_html__("Generated Post Format", 'aiomatic-automatic-ai-content-writer') . ':</b>
4820 + </td><td>
4821 + <select autocomplete="off" id="post_format' . esc_html($cont) . '" name="aiomatic_review_list[post_format][]" class="cr_width_full">
4822 + <option value="post-format-standard"';
4823 + if ($post_format == 'post-format-standard') {
4824 + $output .= ' selected';
4825 + }
4826 + $output .= '>' . esc_html__("Standard", 'aiomatic-automatic-ai-content-writer') . '</option>
4827 + <option value="post-format-aside"';
4828 + if ($post_format == 'post-format-aside') {
4829 + $output .= ' selected';
4830 + }
4831 + $output .= '>' . esc_html__("Aside", 'aiomatic-automatic-ai-content-writer') . '</option>
4832 + <option value="post-format-gallery"';
4833 + if ($post_format == 'post-format-gallery') {
4834 + $output .= ' selected';
4835 + }
4836 + $output .= '>' . esc_html__("Gallery", 'aiomatic-automatic-ai-content-writer') . '</option>
4837 + <option value="post-format-link"';
4838 + if ($post_format == 'post-format-link') {
4839 + $output .= ' selected';
4840 + }
4841 + $output .= '>' . esc_html__("Link", 'aiomatic-automatic-ai-content-writer') . '</option>
4842 + <option value="post-format-image"';
4843 + if ($post_format == 'post-format-image') {
4844 + $output .= ' selected';
4845 + }
4846 + $output .= '>' . esc_html__("Image", 'aiomatic-automatic-ai-content-writer') . '</option>
4847 + <option value="post-format-quote"';
4848 + if ($post_format == 'post-format-quote') {
4849 + $output .= ' selected';
4850 + }
4851 + $output .= '>' . esc_html__("Quote", 'aiomatic-automatic-ai-content-writer') . '</option>
4852 + <option value="post-format-status"';
4853 + if ($post_format == 'post-format-status') {
4854 + $output .= ' selected';
4855 + }
4856 + $output .= '>' . esc_html__("Status", 'aiomatic-automatic-ai-content-writer') . '</option>
4857 + <option value="post-format-video"';
4858 + if ($post_format == 'post-format-video') {
4859 + $output .= ' selected';
4860 + }
4861 + $output .= '>' . esc_html__("Video", 'aiomatic-automatic-ai-content-writer') . '</option>
4862 + <option value="post-format-audio"';
4863 + if ($post_format == 'post-format-audio') {
4864 + $output .= ' selected';
4865 + }
4866 + $output .= '>' . esc_html__("Audio", 'aiomatic-automatic-ai-content-writer') . '</option>
4867 + <option value="post-format-chat"';
4868 + if ($post_format == 'post-format-chat') {
4869 + $output .= ' selected';
4870 + }
4871 + $output .= '>' . esc_html__("Chat", 'aiomatic-automatic-ai-content-writer') . '</option>
4872 + </select>
4873 + </div>
4874 + </td></tr><tr><td>
4875 + <div>
4876 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4877 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Set the ID of the parent of created posts. This is useful for BBPress integration, to assign forum IDs for created topics or for other similar functionalities.", 'aiomatic-automatic-ai-content-writer') . '
4878 + </div>
4879 + </div>
4880 + <b>' . esc_html__("Post Parent ID", 'aiomatic-automatic-ai-content-writer') . ':</b>
4881 +
4882 + </td><td>
4883 + <input type="text" class="cr_width_full" name="aiomatic_review_list[parent_id][]" value="' . esc_attr($parent_id) . '" placeholder="Post parent ID" class="cr_width_full">
4884 +
4885 + </div>
4886 + </td></tr><tr><td>
4887 + <div>
4888 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4889 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to enable comments for the generated posts?", 'aiomatic-automatic-ai-content-writer') . '
4890 + </div>
4891 + </div>
4892 + <b>' . esc_html__("Enable Comments For Posts", 'aiomatic-automatic-ai-content-writer') . ':</b>
4893 +
4894 + </td><td>
4895 + <input type="checkbox" id="enable_comments' . esc_html($cont) . '" name="aiomatic_review_list[enable_comments][]"';
4896 + if ($enable_comments == '1') {
4897 + $output .= ' checked';
4898 + }
4899 + $output .= '>
4900 +
4901 + </div>
4902 + </td></tr><tr><td>
4903 + <div>
4904 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4905 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Do you want to enable pingbacks and trackbacks for the generated posts?", 'aiomatic-automatic-ai-content-writer') . '
4906 + </div>
4907 + </div>
4908 + <b>' . esc_html__("Enable Pingback/Trackback", 'aiomatic-automatic-ai-content-writer') . ':</b>
4909 +
4910 + </td><td>
4911 + <input type="checkbox" id="enable_pingback' . esc_html($cont) . '" name="aiomatic_review_list[enable_pingback][]"';
4912 + if ($enable_pingback == '1') {
4913 + $output .= ' checked';
4914 + }
4915 + $output .= '>
4916 +
4917 + </div>
4918 + </td></tr><tr><td>
4919 + <div>
4920 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4921 + <div class="bws_hidden_help_text cr_min_260px">' . sprintf( wp_kses( __( "Do you want to set a custom post publish date for posts? 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.", 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://www.php.net/manual/en/datetime.formats.php' ) ) . '
4922 + </div>
4923 + </div>
4924 + <b>' . esc_html__("Set a Custom Post Publish Date Range", 'aiomatic-automatic-ai-content-writer') . ':</b>
4925 +
4926 + </td><td>
4927 + <input type="text" id="min_time' . esc_html($cont) . '" name="aiomatic_review_list[min_time][]" value="' . esc_attr($min_time) . '" placeholder="Start time" class="cr_half"> - <input type="text" id="max_time' . esc_html($cont) . '" name="aiomatic_review_list[max_time][]" value="' . esc_attr($max_time) . '" placeholder="End time" class="cr_half">
4928 + </div>
4929 + </td></tr><tr><td class="cr_min_width_200">
4930 + <div>
4931 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4932 + <div class="bws_hidden_help_text_top cr_min_260px">' . esc_html__("Set the custom fields that will be set for generated posts. The syntax for this field is the following: custom_field_name1 => custom_field_value1, custom_field_name2 => custom_field_value2, ... . You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You can also use the following topic based shortcodes: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%", 'aiomatic-automatic-ai-content-writer') . '
4933 + </div>
4934 + </div>
4935 + <b>' . esc_html__("Post Custom Fields", 'aiomatic-automatic-ai-content-writer') . ':</b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
4936 +
4937 + </td><td>
4938 + <textarea rows="1" cols="70" name="aiomatic_review_list[custom_fields][]" placeholder="Please insert your desired custom fields. Example: title_custom_field => %%post_title%%" class="cr_width_full">' . esc_textarea($custom_fields) . '</textarea>
4939 +
4940 + </div>
4941 + </td></tr><tr><td class="cr_min_width_200">
4942 + <div>
4943 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4944 + <div class="bws_hidden_help_text_top cr_min_260px">' . esc_html__("Set the custom taxonomies that will be set for generated posts. The syntax for this field is the following: custom_taxonomy_name1 => custom_taxonomy_value1A, custom_taxonomy_value1B; custom_taxonomy_name2 => custom_taxonomy_value2A, custom_taxonomy_value2B; ... . You can also set hierarhical taxonomies (parent > child), in this format: custom_taxonomy_name => parent1 > child1 . You will also be able to use the custom shortcodes defined in the 'Custom Shortcode Creator' feature from the rule settings - this will allow you to create partially or fully AI generated prompts which will be used for the content generators. You can also use the following topic based shortcodes: %%post_title%%, %%random_sentence%%, %%random_sentence2%%, %%blog_title%%", 'aiomatic-automatic-ai-content-writer') . '
4945 + </div>
4946 + </div>
4947 + <b>' . esc_html__("Post Custom Taxonomies", 'aiomatic-automatic-ai-content-writer') . ':</b>&nbsp;<b><a href="https://coderevolution.ro/knowledge-base/faq/post-template-reference-advanced-usage/" target="_blank">&#9432;</a></b>
4948 + </td><td>
4949 + <textarea rows="1" cols="70" name="aiomatic_review_list[custom_tax][]" placeholder="Please insert your desired custom taxonomies. Example: custom_taxonomy_name => %%post_title%%" class="cr_width_full">' . esc_textarea($custom_tax) . '</textarea>
4950 + </div>
4951 + </td></tr><tr><td>
4952 + <div>
4953 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4954 + <div class="bws_hidden_help_text_top cr_min_260px">' . esc_html__("Enter a 2 letter language code that will be assigned as the WPML/Polylang language for posts. Example: for German, input: de", 'aiomatic-automatic-ai-content-writer') . '
4955 + </div>
4956 + </div>
4957 + <b>' . esc_html__("Assign WPML/Polylang Language to Posts", 'aiomatic-automatic-ai-content-writer') . ':</b>
4958 +
4959 + </td><td>
4960 + <input type="text" class="cr_width_full" name="aiomatic_review_list[wpml_lang][]" value="' . esc_attr($wpml_lang) . '" placeholder="WPML/Polylang language" class="cr_width_full">
4961 +
4962 + </div>
4963 + </td></tr>
4964 + <tr><td colspan="2"><h3>' . esc_html__('Scheduling Restrictions', 'aiomatic-automatic-ai-content-writer') . ':</h3></td></tr><tr><td class="cr_min_width_200">
4965 + <div>
4966 + <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4967 + <div class="bws_hidden_help_text cr_min_260px">' . esc_html__("Select the days of the week when you don't want to run this rule. You can enter a comma separate list of day names.", 'aiomatic-automatic-ai-content-writer') . '
4968 + </div>
4969 + </div>
4970 + <b>' . esc_html__("Do Not Run This Rule On The Following Days Of The Week", 'aiomatic-automatic-ai-content-writer') . ':</b>
4971 + <br/>' . esc_html__("Current Server Time:", 'aiomatic-automatic-ai-content-writer') . '&nbsp;' . date('l', time()) . ', ' . date("Y-m-d H:i:s") . '
4972 + </td><td>
4973 + <input type="text" class="cr_width_full" name="aiomatic_review_list[days_no_run][]" value="' . esc_attr($days_no_run) . '" placeholder="Mo,Tu,We,Th,Fr,Sa,Su" class="cr_width_full">
4974 + </div>
4975 + </td></tr></table></div>
4976 + </div>
4977 + <div class="codemodalfzr-footer">
4978 + <br/>
4979 + <h3 class="cr_inline">Aimogen Automatic Post Generator</h3><span id="aiomatic_ok' . esc_html($cont) . '" class="codeokfzr cr_inline">OK&nbsp;</span>
4980 + <br/><br/>
4981 + </div>
4982 + </div>
4983 +
4984 + </div>
4985 + </td>
4986 + <td class="cr_shrt_td2"><span class="wpaiomatic-delete">X</span></td>
4987 + <td class="cr_short_td"><input type="checkbox" name="aiomatic_review_list[active][]" class="activateDeactivateClass" value="1"';
4988 + if (isset($active) && $active === '1') {
4989 + $output .= ' checked';
4990 + }
4991 + $output .= '/>
4992 + <input type="hidden" name="aiomatic_review_list[last_run][]" value="' . esc_attr($last_run) . '"/>
4993 + <input type="hidden" name="aiomatic_review_list[rule_unique_id][]" value="' . esc_attr($rule_unique_id) . '"/></td>
4994 + <td class="cr_shrt_td2"><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
4995 + <div class="bws_hidden_help_text cr_min_260px">' . sprintf( wp_kses( __( 'Shortcode for this rule<br/>(to cross-post from this plugin in other plugins):', 'aiomatic-automatic-ai-content-writer'), array( 'br' => array( ) ) ) ) . '<br/><b>%%aiomatic_3_' . esc_html($cont) . '%% and %%aiomatic_title_3_' . esc_html($cont) . '%%</b><br/>' . esc_html__('Posts Generated:', 'aiomatic-automatic-ai-content-writer') . ' ' . esc_html($generated_posts) . '<br/>';
4996 + if ($generated_posts != 0) {
4997 + $output .= '<a href="' . get_admin_url() . 'edit.php?coderevolution_post_source=Aiomatic_3_' . esc_html($cont) . '&post_type=' . esc_html($def_type) . '" target="_blank">' . esc_html__('View Generated Posts', 'aiomatic-automatic-ai-content-writer') . '</a><br/>';
4998 + }
4999 + $output .= esc_html__('Last Run: ', 'aiomatic-automatic-ai-content-writer');
5000 + if ($last_run == '1988-01-27 00:00:00') {
5001 + $output .= 'Never';
5002 + } else {
5003 + $output .= $last_run;
5004 + }
5005 + $output .= '<br/>' . esc_html__('Next Run: ', 'aiomatic-automatic-ai-content-writer');
5006 + if($unlocker == '1')
5007 + {
5008 + $nextrun = aiomatic_add_minute($last_run, $schedule);
5009 + }
5010 + else
5011 + {
5012 + $nextrun = aiomatic_add_hour($last_run, $schedule);
5013 + }
5014 + $now = aiomatic_get_date_now();
5015 + if (isset($active) && $active === '1') {
5016 + if($unlocker == '1')
5017 + {
5018 + $aiomatic_hour_diff = (int)aiomatic_minute_diff($now, $nextrun);
5019 + }
5020 + else
5021 + {
5022 + $aiomatic_hour_diff = (int)aiomatic_hour_diff($now, $nextrun);
5023 + }
5024 + if ($aiomatic_hour_diff >= 0) {
5025 + if($unlocker == '1')
5026 + {
5027 + $append = 'Now.';
5028 + }
5029 + else
5030 + {
5031 + $append = 'Now.';
5032 + }
5033 + $cron = _get_cron_array();
5034 + if ($cron != FALSE) {
5035 + $date_format = _x('Y-m-d H:i:s', 'Date Time Format1', 'aiomatic-automatic-ai-content-writer');
5036 + foreach ($cron as $timestamp => $cronhooks) {
5037 + foreach ((array) $cronhooks as $hook => $events) {
5038 + if ($hook == 'aiomaticaction') {
5039 + foreach ((array) $events as $key => $event) {
5040 + $append = date_i18n($date_format, $timestamp);
5041 + }
5042 + }
5043 + }
5044 + }
5045 + }
5046 + $output .= $append;
5047 + } else {
5048 + $output .= $nextrun;
5049 + }
5050 + } else {
5051 + $output .= esc_html__('Rule Disabled', 'aiomatic-automatic-ai-content-writer');
5052 + }
5053 + $output .= '<br/>' . esc_html__('Local Time: ', 'aiomatic-automatic-ai-content-writer') . $now;
5054 + if(isset($aiomatic_Main_Settings['rule_webhook']) && $aiomatic_Main_Settings['rule_webhook'] == 'on')
5055 + {
5056 + $attsx = array();
5057 + $attsx['secret'] = aiomatic_generate_site_secret();
5058 + $attsx['ruleid'] = $cont;
5059 + $attsx['ruletype'] = '3';
5060 + $queryParams = http_build_query($attsx);
5061 + $webhookUrl = esc_url(get_site_url() . '/wp-json/aiomatic/v1/rules?' . $queryParams);
5062 + $webhookUrl = '<a href="' . $webhookUrl . '" target="_blank">' . $webhookUrl . '</a>';
5063 + $output .= '<br/>' . esc_html__('Webhook To Run Rule: ', 'aiomatic-automatic-ai-content-writer') . '<br/>' . $webhookUrl;
5064 + }
5065 + $output .= '</div>
5066 + </div></td>
5067 + <td class="cr_center">
5068 + <div>
5069 + <img id="run_img' . esc_html($cont) . '" src="' . plugin_dir_url(dirname(__FILE__)) . 'images/running.gif' . '" alt="Running" class="cr_status_icon';
5070 + if (!empty($running)) {
5071 + if (!in_array(array($cont => 3), $running)) {
5072 + $f = fopen(get_temp_dir() . 'aiomatic_3_' . $cont, 'w');
5073 + if($f !== false)
5074 + {
5075 + flock($f, LOCK_UN);
5076 + fclose($f);
5077 + global $wp_filesystem;
5078 + if ( ! is_a( $wp_filesystem, 'WP_Filesystem_Base') ){
5079 + include_once(ABSPATH . 'wp-admin/includes/file.php');$creds = request_filesystem_credentials( site_url() );
5080 + wp_filesystem($creds);
5081 + }
5082 + $wp_filesystem->delete(get_temp_dir() . 'aiomatic_3_' . $cont);
5083 + }
5084 + $output .= ' cr_hidden';
5085 + }
5086 + else
5087 + {
5088 + $f = fopen(get_temp_dir() . 'aiomatic_3_' . $cont, 'w');
5089 + if($f !== false)
5090 + {
5091 + if (!flock($f, LOCK_EX | LOCK_NB)) {
5092 + }
5093 + else
5094 + {
5095 + $output .= ' cr_hidden';
5096 + flock($f, LOCK_UN);
5097 + if (($xxkey = array_search(array($cont => 3), $running)) !== false) {
5098 + unset($running[$xxkey]);
5099 + aiomatic_update_option('aiomatic_running_list', $running);
5100 + }
5101 + }
5102 + }
5103 + }
5104 + }
5105 + else
5106 + {
5107 + $f = fopen(get_temp_dir() . 'aiomatic_3_' . $cont, 'w');
5108 + if($f !== false)
5109 + {
5110 + flock($f, LOCK_UN);
5111 + fclose($f);
5112 + global $wp_filesystem;
5113 + if ( ! is_a( $wp_filesystem, 'WP_Filesystem_Base') ){
5114 + include_once(ABSPATH . 'wp-admin/includes/file.php');$creds = request_filesystem_credentials( site_url() );
5115 + wp_filesystem($creds);
5116 + }
5117 + $wp_filesystem->delete(get_temp_dir() . 'aiomatic_3_' . $cont);
5118 + }
5119 + $output .= ' cr_hidden';
5120 + }
5121 + $output .= '" title="status">
5122 + <div class="codemainfzr cr_width_80p">
5123 + <select autocomplete="off" class="codemainfzr" id="actions' . esc_html($cont) . '" class="actions" name="actions" onchange="actionsChangedManual(' . esc_html($cont) . ', this.value, 3, \'' . esc_html($rule_unique_id) . '\');" onfocus="this.selectedIndex = 0;">
5124 + <option value="select" disabled selected>' . esc_html__("Select an Action", 'aiomatic-automatic-ai-content-writer') . '</option>
5125 + <option value="run">' . esc_html__("Run This Rule Now", 'aiomatic-automatic-ai-content-writer') . '</option>
5126 + <option value="duplicate">' . esc_html__("Duplicate This Rule", 'aiomatic-automatic-ai-content-writer') . '</option>
5127 + <option value="up">' . esc_html__("Move This Rule Up", 'aiomatic-automatic-ai-content-writer') . '</option>
5128 + <option value="down">' . esc_html__("Move This Rule Down", 'aiomatic-automatic-ai-content-writer') . '</option>
5129 + <option value="trash">' . esc_html__("Send All Posts To Trash", 'aiomatic-automatic-ai-content-writer') . '</option>
5130 + <option value="delete">' . esc_html__("Permanently Delete All Posts", 'aiomatic-automatic-ai-content-writer') . '</option>
5131 + </select>
5132 + </div>
5133 + </div>
5134 + </td>
5135 + </tr>
5136 + ';
5137 + $cont = $cont + 1;
5138 + }
5139 + }
5140 + return $output;
5141 + }
5142 + ?>