@@ -871,7 +871,7 @@ function rich_snippet_dashboard() {
871
871
</table>
872
872
</form>
873
873
</div>
874
- </div> ' . ( get_support () )
874
+ </div> ' . wp_kses_post ( get_support () )
875
875
. '
876
876
</div> ' ;
877
877
echo '
@@ -1192,7 +1192,6 @@ function (response) {
1192
1192
* Get support.
1193
1193
*/
1194
1194
function get_support () {
1195
-
1196
1195
$ allowed_html = array (
1197
1196
'div ' => array (
1198
1197
'class ' => array (),
@@ -1248,44 +1247,60 @@ function get_support() {
1248
1247
);
1249
1248
1250
1249
$ html = '
1251
- <div class="postbox bsf-contact closed">
1252
- <button type="button" class="handlediv" aria-expanded="false"><span class="screen-reader-text">Toggle panel: Frontend Options</span><span class="toggle-indicator" aria-hidden="true"></span></button>
1253
- <h3 class="get_in_touch"> ' . esc_html__ ( 'Get in touch with the Plugin Developers ' , 'all-in-one-schemaorg-rich-snippets ' ) . '</h3>
1254
- <div class="inside">
1255
- <form name="support" id="support_form" action="" method="post" onsubmit="return false;">
1256
- <input type="hidden" id="aiosrs_support_form_nonce" name="aiosrs_support_form_nonce" value=" ' . esc_attr ( wp_create_nonce ( 'aiosrs_support_form ' ) ) . '" />
1257
- <p> ' . esc_html__ ( 'Just fill out the form below and your message will be emailed to the Plugin Developers. ' , 'all-in-one-schemaorg-rich-snippets ' ) . ' </p>
1258
- <table class="bsf_metabox" > <input type="hidden" name="site_url" value=" ' . site_url () . '" /> </p>
1259
- <tr><td><label for="name"><strong> ' . esc_html__ ( 'Your Name: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '<span style="color:red;"> *</span></strong> </label></td>
1260
- <td><input required="required" type="text" class="bsf_text_medium" name="name" /></td></tr>
1261
- <tr><td><label for="email"><strong> ' . esc_html__ ( 'Your Email: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '<span style="color:red;"> *</span></strong> </label></td>
1262
- <td><input required="required" type="text" class="bsf_text_medium" name="email" /></td></tr>
1263
- <tr><td><label for="post_url"><strong> ' . esc_html__ ( 'Reference URL: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '<span style="color:red;"> *</span></strong> </label></td>
1264
- <td><input required="required" type="text" class="bsf_text_medium" name="post_url" /></td></tr>
1265
- <tr><td><label for="subject"><strong> ' . esc_html__ ( 'Subject: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '</strong> </label></td>
1266
- <td>
1267
- <select class="select_full" name="subject">
1268
- <option value="question"> I have a question </option>
1269
- <option value="bug"> I found a bug </option>
1270
- <option value="help"> I need help </option>
1271
- <option value="professional"> I need professional service </option>
1272
- <option value="contribute"> I want to contribute my code</option>
1273
- <option value="other"> Other </option>
1274
- </select>
1275
- </td><td></td></tr>
1276
- <tr><td class="bsf_label"><label for="message"><strong> ' . esc_html__ ( 'Your Query in Brief: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '</strong> </label></td>
1277
- <td rowspan="4"><textarea class="bsf_textarea_small" name="message" required></textarea> </td></tr>
1278
- <tr></tr> <tr></tr> <tr></tr>
1279
- <tr><td></td>
1280
- <td><input id="submit_request" class="button-primary" type="submit" value="Submit Request" /> <span id="status"></span></td></tr>
1281
- </table>
1282
- </form>
1283
- </div>
1284
- </div>
1285
- </div>
1286
- </div>
1287
- </div>
1288
- ' ;
1250
+ <div class="postbox bsf-contact closed">
1251
+ <button type="button" class="handlediv" aria-expanded="false">
1252
+ <span class="screen-reader-text">Toggle panel: Frontend Options</span>
1253
+ <span class="toggle-indicator" aria-hidden="true"></span>
1254
+ </button>
1255
+ <h3 class="get_in_touch"> ' . esc_html__ ( 'Get in touch with the Plugin Developers ' , 'all-in-one-schemaorg-rich-snippets ' ) . '</h3>
1256
+ <div class="inside">
1257
+ <form name="support" id="support_form" action="" method="post" onsubmit="return false;">
1258
+ <input type="hidden" id="aiosrs_support_form_nonce" name="aiosrs_support_form_nonce" value=" ' . esc_attr ( wp_create_nonce ( 'aiosrs_support_form ' ) ) . '" />
1259
+ <p> ' . esc_html__ ( 'Just fill out the form below and your message will be emailed to the Plugin Developers. ' , 'all-in-one-schemaorg-rich-snippets ' ) . ' </p>
1260
+ <table class="bsf_metabox">
1261
+ <input type="hidden" name="site_url" value=" ' . esc_url ( site_url () ) . '" />
1262
+ <tr>
1263
+ <td><label for="name"><strong> ' . esc_html__ ( 'Your Name: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '<span style="color:red;"> *</span></strong></label></td>
1264
+ <td><input required="required" type="text" class="bsf_text_medium" name="name" /></td>
1265
+ </tr>
1266
+ <tr>
1267
+ <td><label for="email"><strong> ' . esc_html__ ( 'Your Email: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '<span style="color:red;"> *</span></strong></label></td>
1268
+ <td><input required="required" type="text" class="bsf_text_medium" name="email" /></td>
1269
+ </tr>
1270
+ <tr>
1271
+ <td><label for="post_url"><strong> ' . esc_html__ ( 'Reference URL: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '<span style="color:red;"> *</span></strong></label></td>
1272
+ <td><input required="required" type="text" class="bsf_text_medium" name="post_url" /></td>
1273
+ </tr>
1274
+ <tr>
1275
+ <td><label for="subject"><strong> ' . esc_html__ ( 'Subject: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '</strong></label></td>
1276
+ <td>
1277
+ <select class="select_full" name="subject">
1278
+ <option value="question">I have a question</option>
1279
+ <option value="bug">I found a bug</option>
1280
+ <option value="help">I need help</option>
1281
+ <option value="professional">I need professional service</option>
1282
+ <option value="contribute">I want to contribute my code</option>
1283
+ <option value="other">Other</option>
1284
+ </select>
1285
+ </td>
1286
+ </tr>
1287
+ <tr>
1288
+ <td class="bsf_label"><label for="message"><strong> ' . esc_html__ ( 'Your Query in Brief: ' , 'all-in-one-schemaorg-rich-snippets ' ) . '</strong></label></td>
1289
+ <td rowspan="4"><textarea class="bsf_textarea_small" name="message" required></textarea></td>
1290
+ </tr>
1291
+ <tr></tr> <tr></tr> <tr></tr>
1292
+ <tr>
1293
+ <td></td>
1294
+ <td><input id="submit_request" class="button-primary" type="submit" value="Submit Request" /> <span id="status"></span></td>
1295
+ </tr>
1296
+ </table>
1297
+ </form>
1298
+ </div>
1299
+ </div>
1300
+ ' ;
1301
+
1289
1302
return wp_kses ( $ html , $ allowed_html );
1290
1303
}
1304
+
1305
+ echo '<ul class="nav-tab-wrapper bsf-tab-wraper"></ul> ' . get_support () . '<div></div> ' ;
1291
1306
?>
0 commit comments