PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.5.4
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.5.4
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / includes / integration / openai / admin / content_writer.php

content_writer.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.5.4, at includes/integration/openai/admin/content_writer.php

220 lines 16.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) exit; // Exit if accessed directly
3 global $wpchatbot_pro_professional_init,$wpchatbot_pro_master_init;
4 if((isset($wpchatbot_pro_master_init) && $wpchatbot_pro_master_init->is_valid()) || (isset($wpchatbot_pro_professional_init) && $wpchatbot_pro_professional_init->is_valid()) || (function_exists('get_openaiaddon_valid_license') && get_openaiaddon_valid_license())){
5 ?>
6 <div class="wrap fs-section">
7 <div class="qcld-seohelp qcld_seo_ai_single_content">
8 <div class="qcld-seohelp-input">
9 <div class="qcld-seohelp-input-field">
10 <label for="qcld_article_keyword_suggestion" class="form-label"><?php esc_html_e('Prompt', 'chatbot' ); ?></label><br>
11 <input type="text" id="qcld_article_keyword_suggestion_mf" class="form-control" data-press="qcld_article_keyword_suggestion"><br>
12 </div>
13 </div>
14 <div class="qcld-seohelp-input">
15 <div class="qcld-seohelp-input-field qcld-seohelp-input-field_ai_wrap">
16 <div class="qcld_seohelp_ai_con">
17 <label for="qcld_article_number_of_heading"><?php esc_html_e( "How many headings?", 'chatbot' ); ?></label>
18 <input type="number" placeholder="e.g. 5" id="qcld_article_number_of_heading" class="qcld_article_number_of_heading" name="qcld_article_number_of_heading" value="">
19 </div>
20
21 <div class="qcld_seohelp_ai_con">
22 <label for="qcld_article_heading_tag"><?php esc_html_e( "Heading Tag", 'chatbot' ); ?></label>
23 <select name="qcld_article_heading_tag" id="qcld_article_heading_tag">
24 <option value="h1"><?php esc_html_e( "h1", 'chatbot' ); ?></option>
25 <option value="h2"><?php esc_html_e( "h2", 'chatbot' ); ?></option>
26 <option value="h3"><?php esc_html_e( "h3", 'chatbot' ); ?></option>
27 <option value="h4"><?php esc_html_e( "h4", 'chatbot' ); ?></option>
28 <option value="h5"><?php esc_html_e( "h5", 'chatbot' ); ?></option>
29 <option value="h6"><?php esc_html_e( "h6", 'chatbot' ); ?></option>
30 </select>
31 </div>
32
33 <div class="qcld_seohelp_ai_con">
34 <label for="qcld_article_heading_style"><?php esc_html_e( "Writing Style", 'chatbot' ); ?></label>
35 <select name="qcld_article_heading_style" id="qcld_article_heading_style">
36 <option value="infor"><?php esc_html_e( "Informative", 'chatbot' ); ?></option>
37 <option value="analy"><?php esc_html_e( "Analytical", 'chatbot' ); ?></option>
38 <option value="argum"><?php esc_html_e( "Argumentative", 'chatbot' ); ?></option>
39 <option value="creat"><?php esc_html_e( "Creative", 'chatbot' ); ?></option>
40 <option value="criti"><?php esc_html_e( "Critical", 'chatbot' ); ?></option>
41 <option value="descr"><?php esc_html_e( "Descriptive", 'chatbot' ); ?></option>
42 <option value="evalu"><?php esc_html_e( "Evaluative", 'chatbot' ); ?></option>
43 <option value="expos"><?php esc_html_e( "Expository", 'chatbot' ); ?></option>
44 <option value="journ"><?php esc_html_e( "Journalistic", 'chatbot' ); ?></option>
45 <option value="narra"><?php esc_html_e( "Narrative", 'chatbot' ); ?></option>
46 <option value="persu"><?php esc_html_e( "Persuasive", 'chatbot' ); ?></option>
47 <option value="refle"><?php esc_html_e( "Reflective", 'chatbot' ); ?></option>
48 <option value="simpl"><?php esc_html_e( "Simple", 'chatbot' ); ?></option>
49 <option value="techn"><?php esc_html_e( "Technical", 'chatbot' ); ?></option>
50 <option value="repor"><?php esc_html_e( "Report", 'chatbot' ); ?></option>
51 <option value="resea"><?php esc_html_e( "Research", 'chatbot' ); ?></option>
52 </select>
53 </div>
54
55 <div class="qcld_seohelp_ai_con">
56 <label for="qcld_article_heading_tone"><?php esc_html_e( "Writing Tone", 'chatbot' ); ?></label>
57 <select name="qcld_article_heading_tone" id="qcld_article_heading_tone">
58 <option value="formal"><?php esc_html_e( "Formal", 'chatbot' ); ?></option>
59 <option value="asser"><?php esc_html_e( "Assertive", 'chatbot' ); ?></option>
60 <option value="cheer"><?php esc_html_e( "Cheerful", 'chatbot' ); ?></option>
61 <option value="humor"><?php esc_html_e( "Humorous", 'chatbot' ); ?></option>
62 <option value="informal"><?php esc_html_e( "Informal", 'chatbot' ); ?></option>
63 <option value="inspi"><?php esc_html_e( "Inspirational", 'chatbot' ); ?></option>
64 <option value="neutr"><?php esc_html_e( "Neutral", 'chatbot' ); ?></option>
65 <option value="profe"><?php esc_html_e( "Professional", 'chatbot' ); ?></option>
66 <option value="sarca"><?php esc_html_e( "Sarcastic", 'chatbot' ); ?></option>
67 <option value="skept"><?php esc_html_e( "Skeptical", 'chatbot' ); ?></option>
68 <option value="curio"><?php esc_html_e( "Curious", 'chatbot' ); ?></option>
69 <option value="disap"><?php esc_html_e( "Disappointed", 'chatbot' ); ?></option>
70 <option value="encou"><?php esc_html_e( "Encouraging", 'chatbot' ); ?></option>
71 <option value="optim"><?php esc_html_e( "Optimistic", 'chatbot' ); ?></option>
72 <option value="surpr"><?php esc_html_e( "Surprised", 'chatbot' ); ?></option>
73 <option value="worry"><?php esc_html_e( "Worried", 'chatbot' ); ?></option>
74
75
76 </select>
77 </div>
78
79 <div class="qcld_seohelp_ai_con">
80 <label for="qcld_article_img_size" ><?php esc_html_e('Image Size', 'chatbot' ); ?></label>
81 <select name="qcld_article_img_size" id="qcld_article_img_size">
82 <option value="256x256"><?php esc_html_e( "256x256", 'chatbot' ); ?> </option>
83 <option value="512x512" selected><?php esc_html_e( "512x512", 'chatbot' ); ?> </option>
84 <option value="1024x1024"><?php esc_html_e( "1024x1024", 'chatbot' ); ?> </option>
85 </select>
86 </div>
87
88 <div class="qcld_seohelp_ai_con">
89 <label for="qcld_article_language"><?php esc_html_e( "Language", 'chatbot' ); ?></label>
90 <select name="qcld_article_language" id="qcld_article_language">
91 <option value="en"><?php esc_html_e( "English", 'chatbot' ); ?> </option>
92 <option value="ar"><?php esc_html_e( "Arabic", 'chatbot' ); ?> </option>
93 <option value="bg"><?php esc_html_e( "Bulgarian", 'chatbot' ); ?> </option>
94 <option value="zh"><?php esc_html_e( "Chinese", 'chatbot' ); ?> </option>
95 <option value="cs"><?php esc_html_e( "Czech", 'chatbot' ); ?> </option>
96 <option value="nl"><?php esc_html_e( "Dutch", 'chatbot' ); ?> </option>
97 <option value="fr"> <?php esc_html_e( "French", 'chatbot' ); ?> </option>
98 <option value="de"> <?php esc_html_e( "German", 'chatbot' ); ?> </option>
99 <option value="el"> <?php esc_html_e( "Greek", 'chatbot' ); ?> </option>
100 <option value="hi"> <?php esc_html_e( "Hindi", 'chatbot' ); ?> </option>
101 <option value="hu"> <?php esc_html_e( "Hungarian", 'chatbot' ); ?> </option>
102 <option value="id"> <?php esc_html_e( "Indonesian", 'chatbot' ); ?> </option>
103 <option value="it"> <?php esc_html_e( "Italian", 'chatbot' ); ?> </option>
104 <option value="ja"> <?php esc_html_e( "Japanese", 'chatbot' ); ?> </option>
105 <option value="ko"> <?php esc_html_e( "Korean", 'chatbot' ); ?> </option>
106 <option value="pl"> <?php esc_html_e( "Polish", 'chatbot' ); ?> </option>
107 <option value="pt"> <?php esc_html_e( "Portuguese", 'chatbot' ); ?> </option>
108 <option value="ro"> <?php esc_html_e( "Romanian", 'chatbot' ); ?> </option>
109 <option value="ru"> <?php esc_html_e( "Russian", 'chatbot' ); ?> </option>
110 <option value="es"> <?php esc_html_e( "Spanish", 'chatbot' ); ?> </option>
111 <option value="sv"> <?php esc_html_e( "Swedish", 'chatbot' ); ?> </option>
112 <option value="tr"> <?php esc_html_e( "Turkish", 'chatbot' ); ?> </option>
113 <option value="uk"> <?php esc_html_e( "Ukranian", 'chatbot' ); ?> </option>
114 </select>
115 </div>
116
117
118 </div>
119 </div>
120 <div class="qcld-seohelp-input">
121 <div class="qcld-seohelp-input-field qcld-seohelp-input-field_ai_wrap col-sm-12">
122 <div class="qcld_seohelp_ai_con ">
123 <input type="checkbox" name="qcld_article_heading_img" id="qcld_article_heading_img" class="qcld_article_heading_img" value="1"/>
124 <label for="qcld_article_heading_img" class="form-check-label"><?php esc_html_e( "Add Image", 'chatbot' ); ?></label>
125 </div>
126
127 <div class="qcld_seohelp_ai_con form-check">
128 <input type="checkbox" id="qcld_article_heading_tagline" name="qcld_article_heading_tagline" class="qcld_article_heading_tagline" value="1" />
129 <label for="qcld_article_heading_tagline" class="form-check-label"><?php esc_html_e( "Add Tagline", 'chatbot' ); ?></label>
130 </div>
131
132 <div class="qcld_seohelp_ai_con form-check">
133 <input type="checkbox" id="qcld_article_heading_intro" name="qcld_article_heading_intro" class="qcld_article_heading_intro" value="1"/>
134 <label for="qcld_article_heading_intro" class="form-check-label"><?php esc_html_e( "Add Introduction", 'chatbot' ); ?></label>
135 </div>
136
137 <div class="qcld_seohelp_ai_con form-check">
138 <input type="checkbox" id="qcld_article_heading_conclusion" name="qcld_article_heading_conclusion" class="qcld_article_heading_conclusion" value="1" />
139 <label for="qcld_article_heading_conclusion" class="form-check-label"><?php esc_html_e( "Add Conclusion", 'chatbot' ); ?></label>
140 </div>
141
142 <div class="qcld_seohelp_ai_con form-check">
143 <input type="checkbox" id="qcld_article_heading_faq" name="qcld_article_heading_faq" class="qcld_article_heading_faq" value="1" />
144 <label for="qcld_article_heading_faq" class="form-check-label"><?php esc_html_e( "Add Faq", 'chatbot' ); ?></label>
145 </div>
146 </div>
147 </div>
148 <div class="qcld-seohelp-input">
149 <div class="qcld-seohelp-input-field qcld-seohelp-input-field_ai_wrap">
150
151 <div class="qcld_seohelp_ai_con">
152 <label for="qcld_article_label_anchor_text"><?php esc_html_e( "Anchor Text", 'chatbot' ); ?></label>
153 <input type="text" id="qcld_article_label_anchor_text" placeholder="e.g. battery life" class="qcld_article_label_anchor_text" name="qcld_article_label_anchor_text" >
154 </div>
155
156 <div class="qcld_seohelp_ai_con">
157 <label for="qcld_article_target_url"><?php esc_html_e( "Target URL", 'chatbot' ); ?></label>
158 <input type="url" id="qcld_article_target_url" placeholder="https://..." class="qcld_article_target_url" name="qcld_article_target_url">
159 </div>
160
161 <div class="qcld_seohelp_ai_con">
162 <label for="qcld_article_target_label_cta"><?php esc_html_e( "Add Call-to-Action", 'chatbot' ); ?></label>
163 <input type="url" id="qcld_article_target_label_cta" placeholder="https://..." class="qcld_article_target_label_cta" name="qcld_article_target_label_cta">
164 </div>
165
166
167 <div class="qcld_seohelp_ai_con">
168 <label for="qcld_article_cta_pos"><?php esc_html_e( "Call-to-Action Position", 'chatbot' ); ?></label>
169 <select name="qcld_article_cta_pos" id="qcld_article_cta_pos">
170 <option value="beg"><?php esc_html_e( "Beginning", 'chatbot' ); ?></option>
171 <option value="end"><?php esc_html_e( "End", 'chatbot' ); ?></option>
172 </select>
173 </div>
174
175
176 </div>
177 </div>
178 <div class="qcld-seohelp-input">
179 <div class="qcld-seohelp-input-field qcld-seohelp-input-field_ai_wrap">
180
181 <div class="qcld_seohelp_ai_con">
182 <label for="qcld_article_label_keywords"><?php esc_html_e( "Add Keywords", 'chatbot' ); ?></label>
183 <input type="text" id="qcld_article_label_keywords" placeholder="Write Keywords..." class="qcld_article_label_keywords" name="qcld_article_label_keywords">
184 <p><i><?php esc_html_e( "Use comma to seperate keywords", 'chatbot' ); ?></i></p>
185 </div>
186
187 <div class="qcld_seohelp_ai_con">
188 <label for="qcld_article_label_word_to_avoid"><?php esc_html_e( "Keywords to Avoid", 'chatbot' ); ?></label>
189 <input type="text" id="qcld_article_label_word_to_avoid" placeholder="Write Keywords..." class="qcld_article_label_word_to_avoid" name="qcld_article_label_word_to_avoid" value="">
190 <p><i><?php esc_html_e( "Use comma to seperate keywords", 'chatbot' ); ?></i></p>
191 </div>
192
193 <div class="qcld_seohelp_ai_con form-check">
194 <input type="checkbox" id="qcld_article_label_keywords_bold" class="qcld_article_label_keywords_bold" name="qcld_article_label_keywords_bold" value="1">
195 <label for="qcld_article_label_keywords_bold" class="form-check-label"><?php esc_html_e( "Make Keywords Bold", 'chatbot' ); ?></label>
196 </div>
197
198
199 </div>
200 </div>
201 <button id="qcld_article_keyword_suggestion" class="btn btn-info"><?php esc_html_e('Generate', 'chatbot'); ?></button>
202 </div>
203 <hr/>
204 <div class="linkbait_single_field">
205 <div id="linkbait_article_keyword_data">
206 </div>
207 </div>
208 </div>
209 <?php
210 } else { ?>
211 <div class="row my-4">
212 <div class="col-md-12">
213 <?php esc_html_e('Fine tuning and training is available with the ','chatbot');?>
214 <a href="https://www.wpbot.pro/pricing/"><?php esc_html_e('WPBot Pro Professional','chatbot'); ?></a>
215 <?php esc_html_e(' and ','chatbot'); ?>
216 <a href="https://www.wpbot.pro/pricing/"><?php esc_html_e('Master','chatbot'); ?></a>
217 <?php esc_html_e(' Licenses','chatbot'); ?>
218 </div>
219 </div>
220 <?php } ?>