Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/aimogen-pro/res/admin/ai-post-gutenberg.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
if ( ! defined( 'ABSPATH' ) ) exit;
3
+
$aiomatic_Main_Settings = get_option('aiomatic_Main_Settings', false);
4
+
if(isset($aiomatic_Main_Settings['ai_writer_title_prompt']) && $aiomatic_Main_Settings['ai_writer_title_prompt'] != '')
5
+
{
6
+
$aiomatic_title_prompt = $aiomatic_Main_Settings['ai_writer_title_prompt'];
7
+
}
8
+
else
9
+
{
10
+
$aiomatic_title_prompt = sprintf( wp_kses( __( 'Create a captivating and concise SEO title in English for your WordPress %s: "%s". Boost its search engine visibility with relevant keywords for maximum impact. Don\'t act as a virtual assistant, reply only with what you are asked.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), $post->post_type, '%%post_title_idea%%' );
11
+
}
12
+
if(isset($aiomatic_Main_Settings['ai_writer_seo_prompt']) && $aiomatic_Main_Settings['ai_writer_seo_prompt'] != '')
13
+
{
14
+
$aiomatic_seo_prompt = $aiomatic_Main_Settings['ai_writer_seo_prompt'];
15
+
}
16
+
else
17
+
{
18
+
$aiomatic_seo_prompt = sprintf( wp_kses( __( 'Craft an enticing and succinct meta description in English for your WordPress %s: "%s". Emphasize the notable features and advantages in just 155 characters, incorporating relevant keywords to optimize its SEO performance. Don\'t act as a virtual assistant, reply only with what you are asked.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), $post->post_type, '%%post_title_idea%%' );
19
+
}
20
+
if(isset($aiomatic_Main_Settings['ai_writer_seo_title_prompt']) && $aiomatic_Main_Settings['ai_writer_seo_title_prompt'] != '')
21
+
{
22
+
$aiomatic_seo_title_prompt = $aiomatic_Main_Settings['ai_writer_seo_title_prompt'];
23
+
}
24
+
else
25
+
{
26
+
$aiomatic_seo_title_prompt = sprintf( wp_kses( __( 'Craft an enticing and succinct meta SEO title in English for your WordPress %s: "%s". Emphasize the notable features and advantages in just 155 characters, incorporating relevant keywords to optimize its SEO performance. Don\'t act as a virtual assistant, reply only with what you are asked.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), $post->post_type, '%%post_title_idea%%' );
27
+
}
28
+
if(isset($aiomatic_Main_Settings['ai_writer_content_prompt']) && $aiomatic_Main_Settings['ai_writer_content_prompt'] != '')
29
+
{
30
+
$aiomatic_content_prompt = $aiomatic_Main_Settings['ai_writer_content_prompt'];
31
+
}
32
+
else
33
+
{
34
+
$aiomatic_content_prompt = sprintf( wp_kses( __( 'Create a captivating and comprehensive English description for your WordPress %s: "%s". Dive into specific details, highlighting its unique features of this subject, if possible, benefits, and the value it brings. Craft a compelling narrative around the %s that captivates the audience. Use HTML for formatting, include unnumbered lists and bold. Writing Style: Creative. Tone: Neutral. Don\'t act as a virtual assistant, reply only with what you are asked.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), $post->post_type, '%%post_title_idea%%', $post->post_type );
35
+
}
36
+
if(isset($aiomatic_Main_Settings['ai_writer_excerpt_prompt']) && $aiomatic_Main_Settings['ai_writer_excerpt_prompt'] != '')
37
+
{
38
+
$aiomatic_short_prompt = $aiomatic_Main_Settings['ai_writer_excerpt_prompt'];
39
+
}
40
+
else
41
+
{
42
+
$aiomatic_short_prompt = sprintf( wp_kses( __( 'Write a captivating and succinct English summary for the WordPress %s: "%s", accentuating its pivotal features, advantages, and distinctive qualities. Don\'t act as a virtual assistant, reply only with what you are asked.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), $post->post_type, '%%post_title_idea%%' );
43
+
}
44
+
if(isset($aiomatic_Main_Settings['ai_writer_tags_prompt']) && $aiomatic_Main_Settings['ai_writer_tags_prompt'] != '')
45
+
{
46
+
$aiomatic_tag_prompt = $aiomatic_Main_Settings['ai_writer_tags_prompt'];
47
+
}
48
+
else
49
+
{
50
+
$aiomatic_tag_prompt = sprintf( wp_kses( __( 'Suggest a series of pertinent keywords in English for your WordPress %s: "%s". These keywords should be closely connected to the %s, optimizing its visibility. Please present the keywords in a comma-separated format without using symbols like -, #, etc. Don\'t act as a virtual assistant, reply only with what you are asked.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), $post->post_type, '%%post_title_idea%%', $post->post_type );
51
+
}
52
+
if(isset($aiomatic_Main_Settings['aiomatic_focus_prompt']) && $aiomatic_Main_Settings['aiomatic_focus_prompt'] != '')
53
+
{
54
+
$aiomatic_focus_prompt = $aiomatic_Main_Settings['aiomatic_focus_prompt'];
55
+
}
56
+
else
57
+
{
58
+
$aiomatic_focus_prompt = sprintf( wp_kses( __( 'Craft a single focus keyword in English for your WordPress %s: "%s". Don\'t act as a virtual assistant, reply only with what you are asked.', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), $post->post_type, '%%post_title_idea%%' );
59
+
}
60
+
$focus_active = false;
61
+
$seo_plugin_activated = aiomatic_seo_plugins_active();
62
+
if($seo_plugin_activated == '_yoast_wpseo_metadesc' || $seo_plugin_activated == '_aioseo_description' || $seo_plugin_activated == 'rank_math_description' || $seo_plugin_activated == '_seopress_titles_desc' || $seo_plugin_activated == '_sq_description')
63
+
{
64
+
$focus_active = true;
65
+
}
66
+
?>
67
+
<div id="aiomatic-content-generator">
68
+
<p class="aiomatic-form-row">
69
+
<label><strong><?php echo esc_html(ucwords($post->post_type)) . ' ' . esc_html__('Title Idea / Keywords','aiomatic-automatic-ai-content-writer');?></strong></label>
70
+
<input class="coderevolution_gutenberg_input" name="aiomatic_original_title" id="aiomatic_original_title" type="text" value="<?php echo esc_html($post->post_title);?>">
71
+
</p>
72
+
<table class="widefat">
73
+
<tr><td colspan="2">
74
+
<h4><?php echo esc_html__('What To Generate?','aiomatic-automatic-ai-content-writer');?></h4>
75
+
</td></tr><tr><td>
76
+
<label for="aiomatic_generate_title"><?php echo esc_html__('Generate A Post Title','aiomatic-automatic-ai-content-writer');?></label>
77
+
</td><td>
78
+
<input type="checkbox" value="1" id="aiomatic_generate_title">
79
+
</td></tr><tr><td>
80
+
<label for="aiomatic_generate_description"><?php echo esc_html__('Generate Content','aiomatic-automatic-ai-content-writer');?></label>
81
+
</td><td>
82
+
<input type="checkbox" value="1" id="aiomatic_generate_description">
83
+
</td></tr><tr><td>
84
+
<label for="aiomatic_generate_short"><?php echo esc_html__('Generate Short Description (Excerpt)','aiomatic-automatic-ai-content-writer');?></label>
85
+
</td><td>
86
+
<input type="checkbox" value="1" id="aiomatic_generate_short">
87
+
</td></tr><tr><td>
88
+
<label for="aiomatic_generate_tags"><?php echo esc_html__('Generate Tags','aiomatic-automatic-ai-content-writer');?></label>
89
+
</td><td>
90
+
<input type="checkbox" value="1" id="aiomatic_generate_tags">
91
+
</td></tr><tr><td>
92
+
<label for="aiomatic_generate_meta"><?php echo esc_html__('Generate A SEO Meta Description','aiomatic-automatic-ai-content-writer');?></label>
93
+
</td><td>
94
+
<input type="checkbox" value="1" id="aiomatic_generate_meta">
95
+
</td></tr><tr><td>
96
+
<label for="aiomatic_generate_meta_title"><?php echo esc_html__('Generate A SEO Meta Title','aiomatic-automatic-ai-content-writer');?></label>
97
+
</td><td>
98
+
<input type="checkbox" value="1" id="aiomatic_generate_meta_title">
99
+
</td></tr><tr><td>
100
+
<label for="aiomatic_generate_focus"><?php echo esc_html__('Generate A SEO Focus Keyword','aiomatic-automatic-ai-content-writer');?></label>
101
+
</td><td>
102
+
<input type="checkbox" value="1" id="aiomatic_generate_focus" <?php if($focus_active == false){echo ' disabled title="No supported SEO plugin found for this feature"';}?>>
103
+
</td></tr><tr><td>
104
+
<button type="button" id="aiomatic_show_more" class="button"><?php echo esc_html__('Toggle Advanced Options','aiomatic-automatic-ai-content-writer');?></button>
105
+
</td></tr>
106
+
<tr class="aiomatic_toggle_me aiomatic_none"><td colspan="2"><hr/></td></tr>
107
+
<tr class="aiomatic_toggle_me aiomatic_none"><td colspan="2">
108
+
<h4><?php echo esc_html__('Advanced Settings','aiomatic-automatic-ai-content-writer');?></h4>
109
+
</td></tr><tr class="aiomatic_toggle_me aiomatic_none"><td>
110
+
<label for="aiomatic_ai_assistant_id"><?php echo esc_html__('AI Assistant ID','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
111
+
<div class="bws_hidden_help_text cr_min_260px">
112
+
<?php
113
+
echo esc_html__("Set the assistant ID to be used for the AI content creation.", 'aiomatic-automatic-ai-content-writer');
114
+
?>
115
+
</div>
116
+
</div>
117
+
</td><td>
118
+
<?php
119
+
$all_assistants = aiomatic_get_all_assistants(true);
120
+
?>
121
+
<select class="coderevolution_gutenberg_input" autocomplete="off" id="aiomatic_ai_assistant_id" name="aiomatic_ai_assistant_id" onchange="assistantSelected('aiomatic_ai_assistant_id', 'disableModel');" class="cr_width_full">
122
+
<?php
123
+
if($all_assistants === false)
124
+
{
125
+
echo '<option val="" selected disabled>' . esc_html__("Only OpenAI API is supported for Assistants API", 'aiomatic-automatic-ai-content-writer') . '</option>';
126
+
}
127
+
else
128
+
{
129
+
if(count($all_assistants) == 0)
130
+
{
131
+
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>';
132
+
}
133
+
else
134
+
{
135
+
echo '<option value=""';
136
+
if(isset($aiomatic_Main_Settings['writer_assistant_id']) && $aiomatic_Main_Settings['writer_assistant_id'] == '')
137
+
{
138
+
echo ' selected';
139
+
}
140
+
echo '>' . esc_html__("Don't use assistants, use AI models instead", 'aiomatic-automatic-ai-content-writer') . '</option>';
141
+
foreach($all_assistants as $myassistant)
142
+
{
143
+
echo '<option value="' . esc_html($myassistant->ID) .'"';
144
+
if(isset($aiomatic_Main_Settings['writer_assistant_id']) && $aiomatic_Main_Settings['writer_assistant_id'] == $myassistant->ID)
145
+
{
146
+
echo ' selected';
147
+
}
148
+
echo '>' . esc_html($myassistant->post_title);
149
+
echo '</option>';
150
+
}
151
+
}
152
+
}
153
+
?>
154
+
</select>
155
+
</td></tr>
156
+
<tr class="aiomatic_toggle_me aiomatic_none"><td>
157
+
<label for="aiomatic_ai_model"><?php echo esc_html__('AI Model','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
158
+
<div class="bws_hidden_help_text cr_min_260px">
159
+
<?php
160
+
echo esc_html__("Set the model to be used for the AI content creation.", 'aiomatic-automatic-ai-content-writer');
161
+
?>
162
+
</div>
163
+
</div>
164
+
</td><td>
165
+
<?php
166
+
$all_models = aiomatic_get_all_models(true);
167
+
?>
168
+
<select class="disableModel cr_width_full coderevolution_gutenberg_input" autocomplete="off" id="aiomatic_ai_model" name="aiomatic_ai_model" <?php if(isset($aiomatic_Main_Settings['writer_assistant_id']) && $aiomatic_Main_Settings['writer_assistant_id'] != ''){echo ' disabled';}?>>
169
+
<?php
170
+
foreach($all_models as $modelx)
171
+
{
172
+
echo '<option value="' . esc_html($modelx) .'"';
173
+
if(isset($aiomatic_Main_Settings['ai_writer_model']) && $aiomatic_Main_Settings['ai_writer_model'] != '')
174
+
{
175
+
if($modelx == $aiomatic_Main_Settings['ai_writer_model'])
176
+
{
177
+
echo ' selected';
178
+
}
179
+
}
180
+
echo '>' . esc_html($modelx) . esc_html(aiomatic_get_model_provider($modelx)) . '</option>';
181
+
}
182
+
?>
183
+
</select>
184
+
</td></tr>
185
+
<tr class="aiomatic_toggle_me aiomatic_none">
186
+
<td>
187
+
<label for="ai_title_vision"><?php echo esc_html__('Enable AI Vision','aiomatic-automatic-ai-content-writer');?></label>
188
+
<div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
189
+
<div class="bws_hidden_help_text cr_min_260px">
190
+
<?php
191
+
echo esc_html__("Select if you want to use AI vision and send to the AI model also the Featured Image of the edited post. Note that the AI prompt might also be needed to be updated if you enable this feature.", 'aiomatic-automatic-ai-content-writer');
192
+
?>
193
+
</div>
194
+
</div>
195
+
</td>
196
+
<td>
197
+
<input type="checkbox" id="ai_title_vision" name="ai_title_vision">
198
+
</td>
199
+
</tr>
200
+
<tr class="aiomatic_toggle_me aiomatic_none"><td>
201
+
<label for="aiomatic_title_prompt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('Title Prompt','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
202
+
<div class="bws_hidden_help_text cr_min_260px">
203
+
<?php
204
+
echo esc_html__("You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
205
+
?>
206
+
</div>
207
+
</div>
208
+
</td><td>
209
+
<textarea class="coderevolution_gutenberg_input" name="aiomatic_title_prompt" id="aiomatic_title_prompt"><?php echo esc_textarea($aiomatic_title_prompt);?></textarea>
210
+
</td></tr><tr class="aiomatic_toggle_me aiomatic_none"><td>
211
+
<label for="aiomatic_content_prompt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('Content Prompt','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
212
+
<div class="bws_hidden_help_text cr_min_260px">
213
+
<?php
214
+
echo esc_html__("You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
215
+
?>
216
+
</div>
217
+
</div>
218
+
</td><td>
219
+
<textarea class="coderevolution_gutenberg_input" name="aiomatic_content_prompt" id="aiomatic_content_prompt"><?php echo esc_textarea($aiomatic_content_prompt);?></textarea>
220
+
</td></tr><tr class="aiomatic_toggle_me aiomatic_none"><td>
221
+
<label for="aiomatic_short_prompt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('Short Description Prompt','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
222
+
<div class="bws_hidden_help_text cr_min_260px">
223
+
<?php
224
+
echo esc_html__("You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
225
+
?>
226
+
</div>
227
+
</div>
228
+
</td><td>
229
+
<textarea class="coderevolution_gutenberg_input" name="aiomatic_short_prompt" id="aiomatic_short_prompt"><?php echo esc_textarea($aiomatic_short_prompt);?></textarea>
230
+
</td></tr><tr class="aiomatic_toggle_me aiomatic_none"><td>
231
+
<label for="aiomatic_tag_prompt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('Tags Prompt','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
232
+
<div class="bws_hidden_help_text cr_min_260px">
233
+
<?php
234
+
echo esc_html__("You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
235
+
?>
236
+
</div>
237
+
</div>
238
+
</td><td>
239
+
<textarea class="coderevolution_gutenberg_input" name="aiomatic_tag_prompt" id="aiomatic_tag_prompt"><?php echo esc_textarea($aiomatic_tag_prompt);?></textarea>
240
+
</td></tr><tr class="aiomatic_toggle_me aiomatic_none"><td>
241
+
<label for="aiomatic_seo_prompt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('SEO Meta Description Prompt','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
242
+
<div class="bws_hidden_help_text cr_min_260px">
243
+
<?php
244
+
echo esc_html__("You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
245
+
?>
246
+
</div>
247
+
</div>
248
+
</td><td>
249
+
<textarea class="coderevolution_gutenberg_input" name="aiomatic_seo_prompt" id="aiomatic_seo_prompt"><?php echo esc_textarea($aiomatic_seo_prompt);?></textarea>
250
+
</td></tr><tr class="aiomatic_toggle_me aiomatic_none"><td>
251
+
<label for="aiomatic_seo_title_prompt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('SEO Meta Title Prompt','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
252
+
<div class="bws_hidden_help_text cr_min_260px">
253
+
<?php
254
+
echo esc_html__("You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
255
+
?>
256
+
</div>
257
+
</div>
258
+
</td><td>
259
+
<textarea class="coderevolution_gutenberg_input" name="aiomatic_seo_title_prompt" id="aiomatic_seo_title_prompt"><?php echo esc_textarea($aiomatic_seo_title_prompt);?></textarea>
260
+
</td></tr><tr class="aiomatic_toggle_me aiomatic_none"><td>
261
+
<label for="aiomatic_focus_prompt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('SEO Focus Keyword Prompt','aiomatic-automatic-ai-content-writer');?></label><div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle">
262
+
<div class="bws_hidden_help_text cr_min_260px">
263
+
<?php
264
+
echo esc_html__("You can use the following shortcodes here: %%post_title_idea%%, %%post_title%%, %%post_excerpt%%, %%post_content%%, %%post_type%%, %%random_sentence%%, %%random_sentence2%%. You can also use custom fields (post meta) that it's assigned to posts using custom shortcodes in this format: %%!custom_field_slug!%%. You can also use custom user meta fields (user meta) which is assigned to users using custom shortcodes in this format: %%~custom_field_slug~%%. Example: if you wish to add data that is imported from the custom field post_data, you should use this shortcode: %%!post_data!%%. The length of this command should not be greater than the max token count set in the settings for the prompt command - Update: %%related_questions_KEYWORD%% is also supported, to get a list of PAA questions for the KEYWORD you want to use. Update: nested shortcodes also supported (shortcodes generated by rules from other plugins).", 'aiomatic-automatic-ai-content-writer');
265
+
?>
266
+
</div>
267
+
</div>
268
+
</td><td>
269
+
<textarea class="coderevolution_gutenberg_input" name="aiomatic_focus_prompt" id="aiomatic_focus_prompt"><?php echo esc_textarea($aiomatic_focus_prompt);?></textarea>
270
+
</td></tr>
271
+
<tr class="aiomatic_toggle_me aiomatic_none"><td colspan="2"><?php echo sprintf( wp_kses( __( 'You can edit default values for the above fields, <a href="%s">here</a>', 'aiomatic-automatic-ai-content-writer'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), admin_url('admin.php?page=aiomatic_admin_settings#tab-27') );?>
272
+
</td></tr>
273
+
<tr><td colspan="2"><hr/></td></tr>
274
+
<tr><td colspan="2">
275
+
<h4><?php echo esc_html__('AI Generated Results','aiomatic-automatic-ai-content-writer');?></h4>
276
+
</td></tr>
277
+
<tr><td>
278
+
<label for="aiomatic_ai_title"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('AI Generated Title','aiomatic-automatic-ai-content-writer');?></label>
279
+
</td><td>
280
+
<textarea rows="1" class="coderevolution_gutenberg_input" name="aiomatic_ai_title" id="aiomatic_ai_title" placeholder="The AI generated title will appear here"></textarea>
281
+
</td></tr>
282
+
<tr><td>
283
+
<label for="aiomatic_ai_seo"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('AI Generated SEO Meta Description','aiomatic-automatic-ai-content-writer');?></label>
284
+
</td><td>
285
+
<textarea rows="2" class="coderevolution_gutenberg_input" name="aiomatic_ai_seo" id="aiomatic_ai_seo" placeholder="The AI generated meta description will appear here"></textarea>
286
+
</td></tr>
287
+
<tr><td>
288
+
<label for="aiomatic_ai_seo_title"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('AI Generated SEO Meta Title','aiomatic-automatic-ai-content-writer');?></label>
289
+
</td><td>
290
+
<textarea rows="2" class="coderevolution_gutenberg_input" name="aiomatic_ai_seo_title" id="aiomatic_ai_seo_title" placeholder="The AI generated meta title will appear here"></textarea>
291
+
</td></tr>
292
+
<tr><td>
293
+
<label for="aiomatic_ai_focus"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('AI Generated SEO Focus Keyword','aiomatic-automatic-ai-content-writer');?></label>
294
+
</td><td>
295
+
<textarea rows="2" class="coderevolution_gutenberg_input" name="aiomatic_ai_focus" id="aiomatic_ai_focus" placeholder="The AI generated focus keyword will appear here"></textarea>
296
+
</td></tr>
297
+
<tr><td>
298
+
<label for="aiomatic_ai_content"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('AI Generated Content','aiomatic-automatic-ai-content-writer');?></label>
299
+
</td><td>
300
+
<textarea rows="10" class="coderevolution_gutenberg_input" name="aiomatic_ai_content" id="aiomatic_ai_content" placeholder="The AI generated content will appear here"></textarea>
301
+
</td></tr>
302
+
<tr><td>
303
+
<label for="aiomatic_ai_excerpt"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('AI Generated Excerpt','aiomatic-automatic-ai-content-writer');?></label>
304
+
</td><td>
305
+
<textarea rows="2" class="coderevolution_gutenberg_input" name="aiomatic_ai_excerpt" id="aiomatic_ai_excerpt" placeholder="The AI generated excerpt will appear here"></textarea>
306
+
</td></tr>
307
+
<tr><td>
308
+
<label for="aiomatic_ai_tags"><?php echo esc_html(ucwords($post->post_type)) . ' ' .esc_html__('AI Generated Tags','aiomatic-automatic-ai-content-writer');?></label>
309
+
</td><td>
310
+
<textarea rows="1" class="coderevolution_gutenberg_input" name="aiomatic_ai_tags" id="aiomatic_ai_tags" placeholder="The AI generated tags will appear here"></textarea>
311
+
</td></tr>
312
+
</table>
313
+
<br/>
314
+
<button type="button" id="aiomatic_ai_content_generator" class="button button-primary"><?php echo esc_html__('Generate Using AI','aiomatic-automatic-ai-content-writer');?></button>
315
+
<span id="aiomatic_save_button" class="aiomatic_none"><button type="button" id="aiomatic_save_ai_content" class="button button-primary"><?php echo esc_html__('Save AI Content','aiomatic-automatic-ai-content-writer');?></button></span>
316
+
<br/>
317
+
<br/>
318
+
<div id="ai-generator-status">
319
+
320
+
</div>
321
+
</div>