User Submitted Posts - Version 20180822

Version Description

To upgrade User Submitted Posts, remove the old version and replace with the new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically.

Important! The /custom/ directory is deprecated. If you are using a custom form template, please move it to /wp-content/your-theme/usp/. For more information, check out the "Custom Submission Form" section under Installation.

Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database. Submitted posts are NOT removed if you deactivate the plugin, reset default options, or uninstall the plugins; that is, all submitted posts must be removed manually.

Download this release

Release Info

Developer specialk
Plugin Icon 128x128 User Submitted Posts
Version 20180822
Comparing to
See all releases

Code changes from version 20180511 to 20180822

languages/usp.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
msgstr ""
4
"Project-Id-Version: PACKAGE VERSION\n"
5
"Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2018-05-13 00:44+0000\n"
7
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
"Language-Team: \n"
@@ -288,6 +288,10 @@ msgstr ""
288
msgid "Submit Post"
289
msgstr ""
290
291
#: library/shortcode-misc.php:18
292
msgid "Reset form"
293
msgstr ""
@@ -538,7 +542,7 @@ msgstr ""
538
msgid "Display the form"
539
msgstr ""
540
541
- #: library/plugin-settings.php:997 library/plugin-settings.php:1568
542
msgid "Plugin Homepage"
543
msgstr ""
544
@@ -1180,7 +1184,7 @@ msgid ""
1180
"Can use"
1181
msgstr ""
1182
1183
- #: library/plugin-settings.php:1459 library/plugin-settings.php:1554
1184
msgid "Save Settings"
1185
msgstr ""
1186
@@ -1197,164 +1201,164 @@ msgid ""
1197
"USP enables you to display a post-submission form anywhere on your site."
1198
msgstr ""
1199
1200
- #: library/plugin-settings.php:1469 library/plugin-settings.php:1476
1201
msgid "Use the shortcode to display the form on any WP Post or Page:"
1202
msgstr ""
1203
1204
- #: library/plugin-settings.php:1471 library/plugin-settings.php:1478
1205
msgid ""
1206
"Or, use the template tag to display the form anywhere in your theme template:"
1207
msgstr ""
1208
1209
- #: library/plugin-settings.php:1474
1210
msgid "Login/Register Form"
1211
msgstr ""
1212
1213
- #: library/plugin-settings.php:1475
1214
msgid ""
1215
"You also can display a form that enables users to log in, register, or reset "
1216
"their password."
1217
msgstr ""
1218
1219
- #: library/plugin-settings.php:1481
1220
msgid "Display Submitted Posts"
1221
msgstr ""
1222
1223
- #: library/plugin-settings.php:1482
1224
msgid ""
1225
"Use this shortcode to display a list of submitted posts on any WP Post or "
1226
"Page:"
1227
msgstr ""
1228
1229
- #: library/plugin-settings.php:1484
1230
msgid ""
1231
"Or, use the template tag to display a list of submitted posts anywhere in "
1232
"your theme template:"
1233
msgstr ""
1234
1235
- #: library/plugin-settings.php:1486
1236
msgid "Here are some examples showing how to configure this shortcode:"
1237
msgstr ""
1238
1239
- #: library/plugin-settings.php:1493
1240
msgid "Display Image Gallery"
1241
msgstr ""
1242
1243
- #: library/plugin-settings.php:1494
1244
msgid ""
1245
"Use this shortcode to display a gallery of uploaded images for each "
1246
"submitted post:"
1247
msgstr ""
1248
1249
- #: library/plugin-settings.php:1496
1250
msgid ""
1251
"Or, use the template tag to display an image gallery anywhere in your theme "
1252
"template:"
1253
msgstr ""
1254
1255
- #: library/plugin-settings.php:1498
1256
msgid "You can customize using any of the follwing attributes:"
1257
msgstr ""
1258
1259
- #: library/plugin-settings.php:1512
1260
msgid "Reset Form Button"
1261
msgstr ""
1262
1263
- #: library/plugin-settings.php:1513
1264
msgid ""
1265
"This shortcode displays a link that resets the form to its original state:"
1266
msgstr ""
1267
1268
- #: library/plugin-settings.php:1515
1269
msgid "This shortcode accepts the following attributes:"
1270
msgstr ""
1271
1272
- #: library/plugin-settings.php:1520
1273
msgid "Note that the url attribute accepts"
1274
msgstr ""
1275
1276
- #: library/plugin-settings.php:1520
1277
msgid "to get the current URL."
1278
msgstr ""
1279
1280
- #: library/plugin-settings.php:1522
1281
msgid "Access Control"
1282
msgstr ""
1283
1284
- #: library/plugin-settings.php:1523
1285
msgid "USP provides three shortcodes to control access and restrict content."
1286
msgstr ""
1287
1288
- #: library/plugin-settings.php:1524
1289
msgid "Display content only to users with a specific capability:"
1290
msgstr ""
1291
1292
- #: library/plugin-settings.php:1526
1293
msgid "Display content to logged-in users:"
1294
msgstr ""
1295
1296
- #: library/plugin-settings.php:1528
1297
msgid "Display content to visitors only:"
1298
msgstr ""
1299
1300
- #: library/plugin-settings.php:1530
1301
msgid "Tip:"
1302
msgstr ""
1303
1304
- #: library/plugin-settings.php:1530
1305
msgid "to include markup in the deny message, you can use"
1306
msgstr ""
1307
1308
- #: library/plugin-settings.php:1530
1309
msgid "to output"
1310
msgstr ""
1311
1312
- #: library/plugin-settings.php:1532
1313
msgid "Example"
1314
msgstr ""
1315
1316
- #: library/plugin-settings.php:1533
1317
msgid ""
1318
"If the user is logged in, display the post-submit form; or if the user is "
1319
"not logged in, display the login form:"
1320
msgstr ""
1321
1322
- #: library/plugin-settings.php:1545
1323
msgid "Restore Defaults"
1324
msgstr ""
1325
1326
- #: library/plugin-settings.php:1548
1327
msgid ""
1328
"Leave this option disabled to remember your settings. Or, to go ahead and "
1329
"restore the default plugin options: check the box, save your settings, and "
1330
"then deactivate/reactivate the plugin."
1331
msgstr ""
1332
1333
- #: library/plugin-settings.php:1552
1334
msgid "Restore default options upon plugin deactivation/reactivation."
1335
msgstr ""
1336
1337
- #: library/plugin-settings.php:1559
1338
msgid "Show Support"
1339
msgstr ""
1340
1341
- #: library/plugin-settings.php:1568
1342
msgid "by"
1343
msgstr ""
1344
1345
- #: library/plugin-settings.php:1569
1346
msgid "Jeff Starr on Twitter"
1347
msgstr ""
1348
1349
- #: library/plugin-settings.php:1570
1350
msgid "Obsessive Web Design &amp; Development"
1351
msgstr ""
1352
1353
- #: library/plugin-settings.php:1581
1354
msgid "Save Preference"
1355
msgstr ""
1356
1357
- #: library/plugin-settings.php:1588
1358
msgid ""
1359
"Are you sure you want to restore all default options? (this action cannot be "
1360
"undone)"
@@ -1401,7 +1405,7 @@ msgid "or by making a"
1401
msgstr ""
1402
1403
#: library/support-panel.php:63
1404
- msgid "Your generous support helps to ensure future development of"
1405
msgstr ""
1406
1407
#: library/support-panel.php:64
3
msgstr ""
4
"Project-Id-Version: PACKAGE VERSION\n"
5
"Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2018-08-22 21:45+0000\n"
7
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
"Language-Team: \n"
288
msgid "Submit Post"
289
msgstr ""
290
291
+ #: library/enqueue-scripts.php:83 library/enqueue-scripts.php:117
292
+ msgid "Incorrect response."
293
+ msgstr ""
294
+
295
#: library/shortcode-misc.php:18
296
msgid "Reset form"
297
msgstr ""
542
msgid "Display the form"
543
msgstr ""
544
545
+ #: library/plugin-settings.php:997 library/plugin-settings.php:1585
546
msgid "Plugin Homepage"
547
msgstr ""
548
1184
"Can use"
1185
msgstr ""
1186
1187
+ #: library/plugin-settings.php:1459 library/plugin-settings.php:1571
1188
msgid "Save Settings"
1189
msgstr ""
1190
1201
"USP enables you to display a post-submission form anywhere on your site."
1202
msgstr ""
1203
1204
+ #: library/plugin-settings.php:1469 library/plugin-settings.php:1478
1205
msgid "Use the shortcode to display the form on any WP Post or Page:"
1206
msgstr ""
1207
1208
+ #: library/plugin-settings.php:1472 library/plugin-settings.php:1481
1209
msgid ""
1210
"Or, use the template tag to display the form anywhere in your theme template:"
1211
msgstr ""
1212
1213
+ #: library/plugin-settings.php:1476
1214
msgid "Login/Register Form"
1215
msgstr ""
1216
1217
+ #: library/plugin-settings.php:1477
1218
msgid ""
1219
"You also can display a form that enables users to log in, register, or reset "
1220
"their password."
1221
msgstr ""
1222
1223
+ #: library/plugin-settings.php:1485
1224
msgid "Display Submitted Posts"
1225
msgstr ""
1226
1227
+ #: library/plugin-settings.php:1486
1228
msgid ""
1229
"Use this shortcode to display a list of submitted posts on any WP Post or "
1230
"Page:"
1231
msgstr ""
1232
1233
+ #: library/plugin-settings.php:1489
1234
msgid ""
1235
"Or, use the template tag to display a list of submitted posts anywhere in "
1236
"your theme template:"
1237
msgstr ""
1238
1239
+ #: library/plugin-settings.php:1492
1240
msgid "Here are some examples showing how to configure this shortcode:"
1241
msgstr ""
1242
1243
+ #: library/plugin-settings.php:1500
1244
msgid "Display Image Gallery"
1245
msgstr ""
1246
1247
+ #: library/plugin-settings.php:1501
1248
msgid ""
1249
"Use this shortcode to display a gallery of uploaded images for each "
1250
"submitted post:"
1251
msgstr ""
1252
1253
+ #: library/plugin-settings.php:1504
1254
msgid ""
1255
"Or, use the template tag to display an image gallery anywhere in your theme "
1256
"template:"
1257
msgstr ""
1258
1259
+ #: library/plugin-settings.php:1507
1260
msgid "You can customize using any of the follwing attributes:"
1261
msgstr ""
1262
1263
+ #: library/plugin-settings.php:1522
1264
msgid "Reset Form Button"
1265
msgstr ""
1266
1267
+ #: library/plugin-settings.php:1523
1268
msgid ""
1269
"This shortcode displays a link that resets the form to its original state:"
1270
msgstr ""
1271
1272
+ #: library/plugin-settings.php:1526
1273
msgid "This shortcode accepts the following attributes:"
1274
msgstr ""
1275
1276
+ #: library/plugin-settings.php:1532
1277
msgid "Note that the url attribute accepts"
1278
msgstr ""
1279
1280
+ #: library/plugin-settings.php:1532
1281
msgid "to get the current URL."
1282
msgstr ""
1283
1284
+ #: library/plugin-settings.php:1535
1285
msgid "Access Control"
1286
msgstr ""
1287
1288
+ #: library/plugin-settings.php:1536
1289
msgid "USP provides three shortcodes to control access and restrict content."
1290
msgstr ""
1291
1292
+ #: library/plugin-settings.php:1537
1293
msgid "Display content only to users with a specific capability:"
1294
msgstr ""
1295
1296
+ #: library/plugin-settings.php:1540
1297
msgid "Display content to logged-in users:"
1298
msgstr ""
1299
1300
+ #: library/plugin-settings.php:1543
1301
msgid "Display content to visitors only:"
1302
msgstr ""
1303
1304
+ #: library/plugin-settings.php:1546
1305
msgid "Tip:"
1306
msgstr ""
1307
1308
+ #: library/plugin-settings.php:1546
1309
msgid "to include markup in the deny message, you can use"
1310
msgstr ""
1311
1312
+ #: library/plugin-settings.php:1546
1313
msgid "to output"
1314
msgstr ""
1315
1316
+ #: library/plugin-settings.php:1549
1317
msgid "Example"
1318
msgstr ""
1319
1320
+ #: library/plugin-settings.php:1550
1321
msgid ""
1322
"If the user is logged in, display the post-submit form; or if the user is "
1323
"not logged in, display the login form:"
1324
msgstr ""
1325
1326
+ #: library/plugin-settings.php:1562
1327
msgid "Restore Defaults"
1328
msgstr ""
1329
1330
+ #: library/plugin-settings.php:1565
1331
msgid ""
1332
"Leave this option disabled to remember your settings. Or, to go ahead and "
1333
"restore the default plugin options: check the box, save your settings, and "
1334
"then deactivate/reactivate the plugin."
1335
msgstr ""
1336
1337
+ #: library/plugin-settings.php:1569
1338
msgid "Restore default options upon plugin deactivation/reactivation."
1339
msgstr ""
1340
1341
+ #: library/plugin-settings.php:1576
1342
msgid "Show Support"
1343
msgstr ""
1344
1345
+ #: library/plugin-settings.php:1585
1346
msgid "by"
1347
msgstr ""
1348
1349
+ #: library/plugin-settings.php:1586
1350
msgid "Jeff Starr on Twitter"
1351
msgstr ""
1352
1353
+ #: library/plugin-settings.php:1587
1354
msgid "Obsessive Web Design &amp; Development"
1355
msgstr ""
1356
1357
+ #: library/plugin-settings.php:1598
1358
msgid "Save Preference"
1359
msgstr ""
1360
1361
+ #: library/plugin-settings.php:1605
1362
msgid ""
1363
"Are you sure you want to restore all default options? (this action cannot be "
1364
"undone)"
1405
msgstr ""
1406
1407
#: library/support-panel.php:63
1408
+ msgid "Your generous support helps future development of"
1409
msgstr ""
1410
1411
#: library/support-panel.php:64
library/enqueue-scripts.php CHANGED
@@ -80,6 +80,7 @@ function usp_inline_script() {
80
$usp_casing = isset($usp_options['usp_casing']) ? $usp_options['usp_casing'] : '';
81
$usp_response = isset($usp_options['usp_response']) ? $usp_options['usp_response'] : '';
82
$print_casing = $usp_casing ? 'true' : 'false';
83
84
$script = 'var usp_custom_field = '. json_encode($custom_field) .'; ';
85
$script .= 'var usp_custom_checkbox = '. json_encode($custom_checkbox) .'; ';
@@ -87,6 +88,7 @@ function usp_inline_script() {
87
$script .= 'var usp_challenge_response = '. json_encode($usp_response) .'; ';
88
$script .= 'var usp_min_images = '. json_encode($min_images) .'; ';
89
$script .= 'var usp_max_images = '. json_encode($max_images) .'; ';
90
91
wp_add_inline_script('usp_core', $script, 'before');
92
@@ -112,6 +114,7 @@ function usp_print_scripts() {
112
$usp_casing = isset($usp_options['usp_casing']) ? $usp_options['usp_casing'] : '';
113
$usp_response = isset($usp_options['usp_response']) ? $usp_options['usp_response'] : '';
114
$print_casing = $usp_casing ? 'true' : 'false';
115
116
if (!is_admin()) : ?>
117
@@ -122,6 +125,7 @@ function usp_print_scripts() {
122
var usp_challenge_response = <?php echo json_encode($usp_response); ?>;
123
var usp_min_images = <?php echo json_encode($min_images); ?>;
124
var usp_max_images = <?php echo json_encode($max_images); ?>;
125
</script>
126
127
<?php endif;
80
$usp_casing = isset($usp_options['usp_casing']) ? $usp_options['usp_casing'] : '';
81
$usp_response = isset($usp_options['usp_response']) ? $usp_options['usp_response'] : '';
82
$print_casing = $usp_casing ? 'true' : 'false';
83
+ $parsley_error = apply_filters('usp_parsley_error', esc_html__('Incorrect response.', 'usp'));
84
85
$script = 'var usp_custom_field = '. json_encode($custom_field) .'; ';
86
$script .= 'var usp_custom_checkbox = '. json_encode($custom_checkbox) .'; ';
88
$script .= 'var usp_challenge_response = '. json_encode($usp_response) .'; ';
89
$script .= 'var usp_min_images = '. json_encode($min_images) .'; ';
90
$script .= 'var usp_max_images = '. json_encode($max_images) .'; ';
91
+ $script .= 'var usp_parsley_error = '. json_encode($parsley_error) .'; ';
92
93
wp_add_inline_script('usp_core', $script, 'before');
94
114
$usp_casing = isset($usp_options['usp_casing']) ? $usp_options['usp_casing'] : '';
115
$usp_response = isset($usp_options['usp_response']) ? $usp_options['usp_response'] : '';
116
$print_casing = $usp_casing ? 'true' : 'false';
117
+ $parsley_error = apply_filters('usp_parsley_error', esc_html__('Incorrect response.', 'usp'));
118
119
if (!is_admin()) : ?>
120
125
var usp_challenge_response = <?php echo json_encode($usp_response); ?>;
126
var usp_min_images = <?php echo json_encode($min_images); ?>;
127
var usp_max_images = <?php echo json_encode($max_images); ?>;
128
+ var usp_parsley_error = <?php echo json_encode($parsley_error); ?>;
129
</script>
130
131
<?php endif;
library/plugin-settings.php CHANGED
@@ -33,7 +33,7 @@ function usp_plugin_action_links($links, $file) {
33
$pro_text = esc_html__('Go Pro', 'usp');
34
$pro_style = 'font-weight:bold;';
35
36
- $pro = '<a target="_blank" href="'. $pro_href .'" title="'. $pro_title .'" style="'. $pro_style .'">'. $pro_text .'</a>';
37
$settings = '<a href="'. get_admin_url() .'options-general.php?page='. USP_PATH .'">'. esc_html__('Settings', 'usp') .'</a>';
38
39
array_unshift($links, $pro, $settings);
@@ -55,7 +55,7 @@ function add_usp_links($links, $file) {
55
$rate_title = esc_attr__('Give USP a 5-star rating at WordPress.org', 'usp');
56
$rate_text = esc_html__('Rate this plugin&nbsp;&raquo;', 'usp');
57
58
- $links[] = '<a target="_blank" href="'. $rate_href .'" title="'. $rate_title .'">'. $rate_text .'</a>';
59
60
}
61
@@ -962,8 +962,8 @@ function usp_render_form() {
962
<div class="toggle">
963
<div class="mm-panel-alert">
964
<p>
965
- <?php esc_html_e('Please', 'usp'); ?> <a target="_blank" href="https://m0n.co/donate" title="<?php esc_attr_e('Make a donation via PayPal', 'usp'); ?>"><?php esc_html_e('make a donation', 'usp'); ?></a> <?php esc_html_e('and/or', 'usp'); ?>
966
- <a target="_blank" href="https://wordpress.org/support/plugin/user-submitted-posts/reviews/?rate=5#new-post" title="<?php esc_attr_e('Rate and review at the Plugin Directory', 'usp'); ?>">
967
<?php esc_html_e('give this plugin a 5-star rating', 'usp'); ?>&nbsp;&raquo;
968
</a>
969
</p>
@@ -987,22 +987,22 @@ function usp_render_form() {
987
<div class="mm-panel-overview clear">
988
<p class="mm-overview-intro">
989
<strong><abbr title="<?php echo USP_PLUGIN; ?>"><?php esc_html_e('USP', 'usp'); ?></abbr></strong> <?php esc_html_e('enables your visitors to submit posts and upload images from the front-end of your site. ', 'usp'); ?>
990
- <?php esc_html_e('For advanced functionality and unlimited forms, check out', 'usp'); ?> <strong><a target="_blank" href="https://plugin-planet.com/usp-pro/"><?php esc_html_e('USP Pro', 'usp'); ?></a></strong>
991
<?php esc_html_e('&mdash; the ultimate solution for user-generated content.', 'usp'); ?>
992
</p>
993
<div class="mm-left-div">
994
<ul>
995
<li><a id="mm-panel-primary-link" href="#mm-panel-primary"><?php esc_html_e('Plugin Settings', 'usp'); ?></a></li>
996
<li><a id="mm-panel-secondary-link" href="#mm-panel-secondary"><?php esc_html_e('Display the form', 'usp'); ?></a></li>
997
- <li><a target="_blank" href="https://wordpress.org/plugins/user-submitted-posts/"><?php esc_html_e('Plugin Homepage', 'usp'); ?>&nbsp;&raquo;</a></li>
998
</ul>
999
<p>
1000
<?php esc_html_e('If you like this plugin, please', 'usp'); ?>
1001
- <a target="_blank" href="https://wordpress.org/support/plugin/user-submitted-posts/reviews/?rate=5#new-post" title="<?php esc_attr_e('THANK YOU for your support!', 'usp'); ?>"><?php esc_html_e('give it a 5-star rating', 'usp'); ?>&nbsp;&raquo;</a>
1002
</p>
1003
</div>
1004
<div class="mm-right-div">
1005
- <a target="_blank" class="mm-pro-blurb" href="https://plugin-planet.com/usp-pro/" title="<?php esc_attr_e('Unlimited front-end forms', 'usp'); ?>"><?php esc_html_e('Get USP Pro', 'usp'); ?></a>
1006
</div>
1007
</div>
1008
</div>
@@ -1061,8 +1061,8 @@ function usp_render_form() {
1061
</ul>
1062
<p>
1063
<?php esc_html_e('That will enable you to customize the form and styles as desired. For more info, check out the "Custom Submission Form" section in the', 'usp'); ?>
1064
- <a target="_blank" href="https://wordpress.org/plugins/user-submitted-posts/#installation"><?php esc_html_e('Installation Docs', 'usp'); ?></a>.
1065
- <?php esc_html_e('FYI: here is a', 'usp'); ?> <a target="_blank" href="https://m0n.co/e"><?php esc_html_e('list of USP CSS selectors', 'usp'); ?>&nbsp;&raquo;</a>
1066
</p>
1067
</div>
1068
</td>
@@ -1389,7 +1389,7 @@ function usp_render_form() {
1389
<td>
1390
<span class="mm-item-caption">
1391
<?php esc_html_e('For more options, like the ability to upload other file types (like PDF, Word, Zip, videos, and more), check out', 'usp'); ?>
1392
- <strong><a target="_blank" href="https://plugin-planet.com/usp-pro/" title="<?php esc_attr__('Go Pro!', 'usp'); ?>"><?php esc_html_e('USP Pro', 'usp'); ?>&nbsp;&raquo;</a></strong>
1393
</span>
1394
</td>
1395
</tr>
@@ -1467,22 +1467,28 @@ function usp_render_form() {
1467
<h3><?php esc_html_e('Post-Submit Form', 'usp'); ?></h3>
1468
<p><?php esc_html_e('USP enables you to display a post-submission form anywhere on your site.', 'usp'); ?></p>
1469
<p><?php esc_html_e('Use the shortcode to display the form on any WP Post or Page:', 'usp'); ?></p>
1470
- <p><code class="mm-code">[user-submitted-posts]</code></p>
1471
<p><?php esc_html_e('Or, use the template tag to display the form anywhere in your theme template:', 'usp'); ?></p>
1472
- <p><code class="mm-code">&lt;?php if (function_exists('user_submitted_posts')) user_submitted_posts(); ?&gt;</code></p>
1473
<br>
1474
<h3><?php esc_html_e('Login/Register Form', 'usp'); ?></h3>
1475
<p><?php esc_html_e('You also can display a form that enables users to log in, register, or reset their password.', 'usp'); ?></p>
1476
<p><?php esc_html_e('Use the shortcode to display the form on any WP Post or Page:', 'usp'); ?></p>
1477
- <p><code class="mm-code">[usp-login-form]</code></p>
1478
<p><?php esc_html_e('Or, use the template tag to display the form anywhere in your theme template:', 'usp'); ?></p>
1479
- <p><code class="mm-code">&lt;?php if (function_exists('usp_login_form')) usp_login_form(); ?&gt;</code></p>
1480
<br>
1481
<h3><?php esc_html_e('Display Submitted Posts', 'usp'); ?></h3>
1482
<p><?php esc_html_e('Use this shortcode to display a list of submitted posts on any WP Post or Page:', 'usp'); ?></p>
1483
- <p><code class="mm-code">[usp_display_posts]</code></p>
1484
<p><?php esc_html_e('Or, use the template tag to display a list of submitted posts anywhere in your theme template:', 'usp'); ?></p>
1485
- <p><code class="mm-code">&lt;?php if (function_exists('usp_display_posts')) usp_display_posts(); ?&gt;</code></p>
1486
<p><?php esc_html_e('Here are some examples showing how to configure this shortcode:', 'usp'); ?></p>
1487
<pre>[usp_display_posts] : default displays all submitted posts by all authors
1488
[usp_display_posts userid="1"] : displays all submitted posts by registered user with ID = 1
@@ -1490,11 +1496,14 @@ function usp_render_form() {
1490
[usp_display_posts userid="all"] : displays all submitted posts by all users/authors
1491
[usp_display_posts userid="all" numposts="5"] : limit to 5 posts from all users</pre>
1492
<br>
1493
<h3><?php esc_html_e('Display Image Gallery', 'usp'); ?></h3>
1494
<p><?php esc_html_e('Use this shortcode to display a gallery of uploaded images for each submitted post:', 'usp'); ?></p>
1495
- <p><code class="mm-code">[usp_gallery]</code></p>
1496
<p><?php esc_html_e('Or, use the template tag to display an image gallery anywhere in your theme template:', 'usp'); ?></p>
1497
- <p><code class="mm-code">&lt;?php if (function_exists('usp_get_images')) $images = usp_get_images(); foreach ($images as $image) echo $image; ?&gt;</code></p>
1498
<p><?php esc_html_e('You can customize using any of the follwing attributes:', 'usp'); ?></p>
1499
<pre>$size = image size as thumbnail, medium, large or full -> default = thumbnail
1500
$before = text/markup displayed before the image URL -> default = {a href='%%url%%'}{img src='
@@ -1509,26 +1518,34 @@ Notes:
1509
Check out the source code inline notes for more info
1510
</pre>
1511
<br>
1512
<h3><?php esc_html_e('Reset Form Button', 'usp'); ?></h3>
1513
<p><?php esc_html_e('This shortcode displays a link that resets the form to its original state:', 'usp'); ?></p>
1514
- <p><code class="mm-code">[usp-reset-button]</code></p>
1515
<p><?php esc_html_e('This shortcode accepts the following attributes:', 'usp'); ?></p>
1516
<pre>class = classes for the parent element (optional, default: none)
1517
value = link text (optional, default: "Reset form")
1518
url = the URL where your form is displayed (required, default: none)
1519
custom = any attributes or custom code for the link element (optional, default: none)</pre>
1520
<p><?php esc_html_e('Note that the url attribute accepts', 'usp'); ?> <code>%%current%%</code> <?php esc_html_e('to get the current URL.', 'usp'); ?></p>
1521
<br>
1522
<h3><?php esc_html_e('Access Control', 'usp'); ?></h3>
1523
<p><?php esc_html_e('USP provides three shortcodes to control access and restrict content.', 'usp'); ?></p>
1524
<p><?php esc_html_e('Display content only to users with a specific capability:', 'usp'); ?></p>
1525
- <p><code class="mm-code">[usp_access cap="read" deny="Message for users without read capability"][/usp_access]</code></p>
1526
<p><?php esc_html_e('Display content to logged-in users:', 'usp'); ?></p>
1527
- <p><code class="mm-code">[usp_member deny="Message for users who are not logged in"][/usp_member]</code></p>
1528
<p><?php esc_html_e('Display content to visitors only:', 'usp'); ?></p>
1529
- <p><code class="mm-code">[usp_visitor deny="Message for users who are logged in"][/usp_visitor]</code></p>
1530
<p><strong><?php esc_html_e('Tip:', 'usp'); ?></strong> <?php esc_html_e('to include markup in the deny message, you can use', 'usp'); ?> <code>{tag}</code> <?php esc_html_e('to output', 'usp'); ?> <code>&lt;tag&gt;</code>.</p>
1531
<br>
1532
<h3><?php esc_html_e('Example', 'usp'); ?></h3>
1533
<p><?php esc_html_e('If the user is logged in, display the post-submit form; or if the user is not logged in, display the login form:', 'usp'); ?></p>
1534
<pre>[usp_member]
@@ -1565,9 +1582,9 @@ custom = any attributes or custom code for the link element (optional, default:
1565
</div>
1566
1567
<div id="mm-credit-info">
1568
- <a target="_blank" href="https://perishablepress.com/user-submitted-posts/" title="<?php esc_attr_e('Plugin Homepage', 'usp'); ?>"><?php echo USP_PLUGIN; ?></a> <?php esc_html_e('by', 'usp'); ?>
1569
- <a target="_blank" href="https://twitter.com/perishable" title="<?php esc_attr_e('Jeff Starr on Twitter', 'usp'); ?>">Jeff Starr</a> @
1570
- <a target="_blank" href="https://monzillamedia.com/" title="<?php esc_attr_e('Obsessive Web Design &amp; Development', 'usp'); ?>">Monzilla Media</a>
1571
</div>
1572
</form>
1573
</div>
33
$pro_text = esc_html__('Go Pro', 'usp');
34
$pro_style = 'font-weight:bold;';
35
36
+ $pro = '<a target="_blank" rel="noopener noreferrer" href="'. $pro_href .'" title="'. $pro_title .'" style="'. $pro_style .'">'. $pro_text .'</a>';
37
$settings = '<a href="'. get_admin_url() .'options-general.php?page='. USP_PATH .'">'. esc_html__('Settings', 'usp') .'</a>';
38
39
array_unshift($links, $pro, $settings);
55
$rate_title = esc_attr__('Give USP a 5-star rating at WordPress.org', 'usp');
56
$rate_text = esc_html__('Rate this plugin&nbsp;&raquo;', 'usp');
57
58
+ $links[] = '<a target="_blank" rel="noopener noreferrer" href="'. $rate_href .'" title="'. $rate_title .'">'. $rate_text .'</a>';
59
60
}
61
962
<div class="toggle">
963
<div class="mm-panel-alert">
964
<p>
965
+ <?php esc_html_e('Please', 'usp'); ?> <a target="_blank" rel="noopener noreferrer" href="https://monzillamedia.com/donate.html" title="<?php esc_attr_e('Make a donation via PayPal', 'usp'); ?>"><?php esc_html_e('make a donation', 'usp'); ?></a> <?php esc_html_e('and/or', 'usp'); ?>
966
+ <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/support/plugin/user-submitted-posts/reviews/?rate=5#new-post" title="<?php esc_attr_e('Rate and review at the Plugin Directory', 'usp'); ?>">
967
<?php esc_html_e('give this plugin a 5-star rating', 'usp'); ?>&nbsp;&raquo;
968
</a>
969
</p>
987
<div class="mm-panel-overview clear">
988
<p class="mm-overview-intro">
989
<strong><abbr title="<?php echo USP_PLUGIN; ?>"><?php esc_html_e('USP', 'usp'); ?></abbr></strong> <?php esc_html_e('enables your visitors to submit posts and upload images from the front-end of your site. ', 'usp'); ?>
990
+ <?php esc_html_e('For advanced functionality and unlimited forms, check out', 'usp'); ?> <strong><a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/usp-pro/"><?php esc_html_e('USP Pro', 'usp'); ?></a></strong>
991
<?php esc_html_e('&mdash; the ultimate solution for user-generated content.', 'usp'); ?>
992
</p>
993
<div class="mm-left-div">
994
<ul>
995
<li><a id="mm-panel-primary-link" href="#mm-panel-primary"><?php esc_html_e('Plugin Settings', 'usp'); ?></a></li>
996
<li><a id="mm-panel-secondary-link" href="#mm-panel-secondary"><?php esc_html_e('Display the form', 'usp'); ?></a></li>
997
+ <li><a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/plugins/user-submitted-posts/"><?php esc_html_e('Plugin Homepage', 'usp'); ?>&nbsp;&raquo;</a></li>
998
</ul>
999
<p>
1000
<?php esc_html_e('If you like this plugin, please', 'usp'); ?>
1001
+ <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/support/plugin/user-submitted-posts/reviews/?rate=5#new-post" title="<?php esc_attr_e('THANK YOU for your support!', 'usp'); ?>"><?php esc_html_e('give it a 5-star rating', 'usp'); ?>&nbsp;&raquo;</a>
1002
</p>
1003
</div>
1004
<div class="mm-right-div">
1005
+ <a target="_blank" rel="noopener noreferrer" class="mm-pro-blurb" href="https://plugin-planet.com/usp-pro/" title="<?php esc_attr_e('Unlimited front-end forms', 'usp'); ?>"><?php esc_html_e('Get USP Pro', 'usp'); ?></a>
1006
</div>
1007
</div>
1008
</div>
1061
</ul>
1062
<p>
1063
<?php esc_html_e('That will enable you to customize the form and styles as desired. For more info, check out the "Custom Submission Form" section in the', 'usp'); ?>
1064
+ <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/plugins/user-submitted-posts/#installation"><?php esc_html_e('Installation Docs', 'usp'); ?></a>.
1065
+ <?php esc_html_e('FYI: here is a', 'usp'); ?> <a target="_blank" rel="noopener noreferrer" href="https://m0n.co/e"><?php esc_html_e('list of USP CSS selectors', 'usp'); ?>&nbsp;&raquo;</a>
1066
</p>
1067
</div>
1068
</td>
1389
<td>
1390
<span class="mm-item-caption">
1391
<?php esc_html_e('For more options, like the ability to upload other file types (like PDF, Word, Zip, videos, and more), check out', 'usp'); ?>
1392
+ <strong><a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/usp-pro/" title="<?php esc_attr__('Go Pro!', 'usp'); ?>"><?php esc_html_e('USP Pro', 'usp'); ?>&nbsp;&raquo;</a></strong>
1393
</span>
1394
</td>
1395
</tr>
1467
<h3><?php esc_html_e('Post-Submit Form', 'usp'); ?></h3>
1468
<p><?php esc_html_e('USP enables you to display a post-submission form anywhere on your site.', 'usp'); ?></p>
1469
<p><?php esc_html_e('Use the shortcode to display the form on any WP Post or Page:', 'usp'); ?></p>
1470
+ <p><span class="code mm-code">[user-submitted-posts]</span></p>
1471
+
1472
<p><?php esc_html_e('Or, use the template tag to display the form anywhere in your theme template:', 'usp'); ?></p>
1473
+ <p><span class="code mm-code">&lt;?php if (function_exists('user_submitted_posts')) user_submitted_posts(); ?&gt;</span></p>
1474
<br>
1475
+
1476
<h3><?php esc_html_e('Login/Register Form', 'usp'); ?></h3>
1477
<p><?php esc_html_e('You also can display a form that enables users to log in, register, or reset their password.', 'usp'); ?></p>
1478
<p><?php esc_html_e('Use the shortcode to display the form on any WP Post or Page:', 'usp'); ?></p>
1479
+ <p><span class="code mm-code">[usp-login-form]</span></p>
1480
+
1481
<p><?php esc_html_e('Or, use the template tag to display the form anywhere in your theme template:', 'usp'); ?></p>
1482
+ <p><span class="code mm-code">&lt;?php if (function_exists('usp_login_form')) usp_login_form(); ?&gt;</span></p>
1483
<br>
1484
+
1485
<h3><?php esc_html_e('Display Submitted Posts', 'usp'); ?></h3>
1486
<p><?php esc_html_e('Use this shortcode to display a list of submitted posts on any WP Post or Page:', 'usp'); ?></p>
1487
+ <p><span class="code mm-code">[usp_display_posts]</span></p>
1488
+
1489
<p><?php esc_html_e('Or, use the template tag to display a list of submitted posts anywhere in your theme template:', 'usp'); ?></p>
1490
+ <p><span class="code mm-code">&lt;?php if (function_exists('usp_display_posts')) usp_display_posts(); ?&gt;</span></p>
1491
+
1492
<p><?php esc_html_e('Here are some examples showing how to configure this shortcode:', 'usp'); ?></p>
1493
<pre>[usp_display_posts] : default displays all submitted posts by all authors
1494
[usp_display_posts userid="1"] : displays all submitted posts by registered user with ID = 1
1496
[usp_display_posts userid="all"] : displays all submitted posts by all users/authors
1497
[usp_display_posts userid="all" numposts="5"] : limit to 5 posts from all users</pre>
1498
<br>
1499
+
1500
<h3><?php esc_html_e('Display Image Gallery', 'usp'); ?></h3>
1501
<p><?php esc_html_e('Use this shortcode to display a gallery of uploaded images for each submitted post:', 'usp'); ?></p>
1502
+ <p><span class="code mm-code">[usp_gallery]</span></p>
1503
+
1504
<p><?php esc_html_e('Or, use the template tag to display an image gallery anywhere in your theme template:', 'usp'); ?></p>
1505
+ <p><span class="code mm-code">&lt;?php if (function_exists('usp_get_images')) $images = usp_get_images(); foreach ($images as $image) echo $image; ?&gt;</span></p>
1506
+
1507
<p><?php esc_html_e('You can customize using any of the follwing attributes:', 'usp'); ?></p>
1508
<pre>$size = image size as thumbnail, medium, large or full -> default = thumbnail
1509
$before = text/markup displayed before the image URL -> default = {a href='%%url%%'}{img src='
1518
Check out the source code inline notes for more info
1519
</pre>
1520
<br>
1521
+
1522
<h3><?php esc_html_e('Reset Form Button', 'usp'); ?></h3>
1523
<p><?php esc_html_e('This shortcode displays a link that resets the form to its original state:', 'usp'); ?></p>
1524
+ <p><span class="code mm-code">[usp-reset-button]</span></p>
1525
+
1526
<p><?php esc_html_e('This shortcode accepts the following attributes:', 'usp'); ?></p>
1527
<pre>class = classes for the parent element (optional, default: none)
1528
value = link text (optional, default: "Reset form")
1529
url = the URL where your form is displayed (required, default: none)
1530
custom = any attributes or custom code for the link element (optional, default: none)</pre>
1531
+
1532
<p><?php esc_html_e('Note that the url attribute accepts', 'usp'); ?> <code>%%current%%</code> <?php esc_html_e('to get the current URL.', 'usp'); ?></p>
1533
<br>
1534
+
1535
<h3><?php esc_html_e('Access Control', 'usp'); ?></h3>
1536
<p><?php esc_html_e('USP provides three shortcodes to control access and restrict content.', 'usp'); ?></p>
1537
<p><?php esc_html_e('Display content only to users with a specific capability:', 'usp'); ?></p>
1538
+ <p><span class="code mm-code">[usp_access cap="read" deny="Message for users without read capability"][/usp_access]</span></p>
1539
+
1540
<p><?php esc_html_e('Display content to logged-in users:', 'usp'); ?></p>
1541
+ <p><span class="code mm-code">[usp_member deny="Message for users who are not logged in"][/usp_member]</span></p>
1542
+
1543
<p><?php esc_html_e('Display content to visitors only:', 'usp'); ?></p>
1544
+ <p><span class="code mm-code">[usp_visitor deny="Message for users who are logged in"][/usp_visitor]</span></p>
1545
+
1546
<p><strong><?php esc_html_e('Tip:', 'usp'); ?></strong> <?php esc_html_e('to include markup in the deny message, you can use', 'usp'); ?> <code>{tag}</code> <?php esc_html_e('to output', 'usp'); ?> <code>&lt;tag&gt;</code>.</p>
1547
<br>
1548
+
1549
<h3><?php esc_html_e('Example', 'usp'); ?></h3>
1550
<p><?php esc_html_e('If the user is logged in, display the post-submit form; or if the user is not logged in, display the login form:', 'usp'); ?></p>
1551
<pre>[usp_member]
1582
</div>
1583
1584
<div id="mm-credit-info">
1585
+ <a target="_blank" rel="noopener noreferrer" href="https://perishablepress.com/user-submitted-posts/" title="<?php esc_attr_e('Plugin Homepage', 'usp'); ?>"><?php echo USP_PLUGIN; ?></a> <?php esc_html_e('by', 'usp'); ?>
1586
+ <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/perishable" title="<?php esc_attr_e('Jeff Starr on Twitter', 'usp'); ?>">Jeff Starr</a> @
1587
+ <a target="_blank" rel="noopener noreferrer" href="https://monzillamedia.com/" title="<?php esc_attr_e('Obsessive Web Design &amp; Development', 'usp'); ?>">Monzilla Media</a>
1588
</div>
1589
</form>
1590
</div>
library/support-panel.php CHANGED
@@ -8,32 +8,32 @@ $plugin_url = plugin_dir_url(dirname(__FILE__)); // <--- note!
8
9
$array = array(
10
11
- 0 => '<a target="_blank" href="https://plugin-planet.com/bbq-pro/" title="Premium WP Plugin: BBQ Pro">
12
<img width="125" height="125" src="'. $plugin_url .'images/250x250-bbq-pro.jpg" alt="BBQ Pro - Block Bad Queries" />
13
</a>',
14
- 1 => '<a target="_blank" href="https://plugin-planet.com/banhammer-pro/" title="Premium WP Plugin: Banhammer Pro">
15
<img width="125" height="125" src="'. $plugin_url .'images/250x250-banhammer-pro.jpg" alt="Banhammer Pro - Drop the hammer." />
16
</a>',
17
- 2 => '<a target="_blank" href="https://plugin-planet.com/blackhole-pro/" title="Premium WP Plugin: Blackhole Pro">
18
<img width="125" height="125" src="'. $plugin_url .'images/250x250-blackhole-pro.jpg" alt="Blackhole Pro - Block Bad Bots" />
19
</a>',
20
- 3 => '<a target="_blank" href="https://plugin-planet.com/ses-pro/" title="Premium WP Plugin: SES Pro">
21
<img width="125" height="125" src="'. $plugin_url .'images/250x250-ses-pro.jpg" alt="SES Pro - Ajax-Powered Email Signup Forms" />
22
</a>',
23
- 4 => '<a target="_blank" href="https://plugin-planet.com/usp-pro/" title="Premium WP Plugin: USP Pro">
24
<img width="125" height="125" src="'. $plugin_url .'images/250x250-usp-pro.jpg" alt="USP Pro - Unlimited Front-End Forms" />
25
</a>',
26
27
- 5 => '<a target="_blank" href="https://digwp.com/" title="Take your WordPress Skills to the Next Level">
28
<img width="125" height="125" src="'. $plugin_url .'images/250x250-digging-into-wordpress.jpg" alt="Digging Into WordPress" />
29
</a>',
30
- 6 => '<a target="_blank" href="https://wp-tao.com/" title="Learn the Way of WordPress">
31
<img width="125" height="125" src="'. $plugin_url .'images/250x250-tao-of-wordpress.jpg" alt="The Tao of WordPress" />
32
</a>',
33
- 7 => '<a target="_blank" href="https://wp-tao.com/wordpress-themes-book/" title="WordPress Themes In Depth">
34
<img width="125" height="125" src="'. $plugin_url .'images/250x250-wp-themes-in-depth.jpg" alt="WordPress Themes In Depth" />
35
</a>',
36
- 8 => '<a target="_blank" href="https://htaccessbook.com/" title="Optimize and Secure with .htaccess">
37
<img width="125" height="125" src="'. $plugin_url .'images/250x250-htaccess-made-easy.jpg" alt=".htaccess made easy" />
38
</a>',
39
@@ -47,20 +47,20 @@ $item3 = isset($array[$items[2]]) ? $array[$items[2]] : 2;
47
48
$url1 = esc_url('https://wp-tao.com/store/');
49
$url2 = esc_url('https://plugin-planet.com/store/');
50
- $url3 = esc_url('https://m0n.co/donate');
51
52
$title1 = esc_html__('Perishable Press Books', 'usp');
53
$title2 = esc_html__('Plugin Planet', 'usp');
54
$title3 = esc_html__('Donate via PayPal', 'usp');
55
56
- $link1 = ' <a target="_blank" href="'. $url1 .'" title="'. $title1 .'">'. esc_html__('books', 'usp') .'</a> ';
57
- $link2 = ' <a target="_blank" href="'. $url2 .'" title="'. $title2 .'">'. esc_html__('plugins', 'usp') .'</a>, ';
58
- $link3 = ' <a target="_blank" href="'. $url3 .'" title="'. $title3 .'">'. esc_html__('donation', 'usp') .'</a>. ';
59
60
$message = esc_html__('Thank you for using', 'usp') .' '. $plugin_project .'! ';
61
$message .= esc_html__('Please show support by purchasing one of my', 'usp') . $link1;
62
$message .= esc_html__('or', 'usp') . $link2 . esc_html__('or by making a', 'usp') . $link3;
63
- $message .= esc_html__('Your generous support helps to ensure future development of', 'usp') .' '. $plugin_project .' ';
64
$message .= esc_html__('and is greatly appreciated.', 'usp');
65
66
$donate = esc_html__('Any size donation helps me to continue developing this free plugin and other awesome WordPress resources.', 'usp');
@@ -105,8 +105,7 @@ $donate = esc_html__('Any size donation helps me to continue developing this fre
105
<p><strong>Please Donate</strong></p>
106
<p><?php echo $donate; ?></p>
107
<ul>
108
- <li><a target="_blank" href="https://m0n.co/donate">Donate via PayPal &raquo;</a></li>
109
- <li><a target="_blank" href="https://m0n.co/bitcoin">Donate via Bitcoin &raquo;</a></li>
110
</ul>
111
</div>
112
</div>
8
9
$array = array(
10
11
+ 0 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/bbq-pro/" title="Premium WP Plugin: BBQ Pro">
12
<img width="125" height="125" src="'. $plugin_url .'images/250x250-bbq-pro.jpg" alt="BBQ Pro - Block Bad Queries" />
13
</a>',
14
+ 1 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/banhammer-pro/" title="Premium WP Plugin: Banhammer Pro">
15
<img width="125" height="125" src="'. $plugin_url .'images/250x250-banhammer-pro.jpg" alt="Banhammer Pro - Drop the hammer." />
16
</a>',
17
+ 2 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/blackhole-pro/" title="Premium WP Plugin: Blackhole Pro">
18
<img width="125" height="125" src="'. $plugin_url .'images/250x250-blackhole-pro.jpg" alt="Blackhole Pro - Block Bad Bots" />
19
</a>',
20
+ 3 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/ses-pro/" title="Premium WP Plugin: SES Pro">
21
<img width="125" height="125" src="'. $plugin_url .'images/250x250-ses-pro.jpg" alt="SES Pro - Ajax-Powered Email Signup Forms" />
22
</a>',
23
+ 4 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/usp-pro/" title="Premium WP Plugin: USP Pro">
24
<img width="125" height="125" src="'. $plugin_url .'images/250x250-usp-pro.jpg" alt="USP Pro - Unlimited Front-End Forms" />
25
</a>',
26
27
+ 5 => '<a target="_blank" rel="noopener noreferrer" href="https://digwp.com/" title="Take your WordPress Skills to the Next Level">
28
<img width="125" height="125" src="'. $plugin_url .'images/250x250-digging-into-wordpress.jpg" alt="Digging Into WordPress" />
29
</a>',
30
+ 6 => '<a target="_blank" rel="noopener noreferrer" href="https://wp-tao.com/" title="Learn the Way of WordPress">
31
<img width="125" height="125" src="'. $plugin_url .'images/250x250-tao-of-wordpress.jpg" alt="The Tao of WordPress" />
32
</a>',
33
+ 7 => '<a target="_blank" rel="noopener noreferrer" href="https://wp-tao.com/wordpress-themes-book/" title="WordPress Themes In Depth">
34
<img width="125" height="125" src="'. $plugin_url .'images/250x250-wp-themes-in-depth.jpg" alt="WordPress Themes In Depth" />
35
</a>',
36
+ 8 => '<a target="_blank" rel="noopener noreferrer" href="https://htaccessbook.com/" title="Optimize and Secure with .htaccess">
37
<img width="125" height="125" src="'. $plugin_url .'images/250x250-htaccess-made-easy.jpg" alt=".htaccess made easy" />
38
</a>',
39
47
48
$url1 = esc_url('https://wp-tao.com/store/');
49
$url2 = esc_url('https://plugin-planet.com/store/');
50
+ $url3 = esc_url('https://monzillamedia.com/donate.html');
51
52
$title1 = esc_html__('Perishable Press Books', 'usp');
53
$title2 = esc_html__('Plugin Planet', 'usp');
54
$title3 = esc_html__('Donate via PayPal', 'usp');
55
56
+ $link1 = ' <a target="_blank" rel="noopener noreferrer" href="'. $url1 .'" title="'. $title1 .'">'. esc_html__('books', 'usp') .'</a> ';
57
+ $link2 = ' <a target="_blank" rel="noopener noreferrer" href="'. $url2 .'" title="'. $title2 .'">'. esc_html__('plugins', 'usp') .'</a>, ';
58
+ $link3 = ' <a target="_blank" rel="noopener noreferrer" href="'. $url3 .'" title="'. $title3 .'">'. esc_html__('donation', 'usp') .'</a>. ';
59
60
$message = esc_html__('Thank you for using', 'usp') .' '. $plugin_project .'! ';
61
$message .= esc_html__('Please show support by purchasing one of my', 'usp') . $link1;
62
$message .= esc_html__('or', 'usp') . $link2 . esc_html__('or by making a', 'usp') . $link3;
63
+ $message .= esc_html__('Your generous support helps future development of', 'usp') .' '. $plugin_project .' ';
64
$message .= esc_html__('and is greatly appreciated.', 'usp');
65
66
$donate = esc_html__('Any size donation helps me to continue developing this free plugin and other awesome WordPress resources.', 'usp');
105
<p><strong>Please Donate</strong></p>
106
<p><?php echo $donate; ?></p>
107
<ul>
108
+ <li><a target="_blank" rel="noopener noreferrer" href="https://monzillamedia.com/donate.html">Make a donation&nbsp;&raquo;</a></li>
109
</ul>
110
</div>
111
</div>
readme.txt CHANGED
@@ -6,12 +6,12 @@ Description: Enables your visitors to submit posts and images from anywhere on y
6
Tags: guest post, user post, anonymous post, frontend post, guest author, frontend content, frontend post, frontend upload, generated content, guest blog, guest blogging, guest publish, guest upload, post sharing, post submission, public post, share posts, submit post, user generated, user submit, user submitted post, visitor post
7
Author: Jeff Starr
8
Author URI: https://plugin-planet.com/
9
- Donate link: https://m0n.co/donate
10
Contributors: specialk
11
Requires at least: 4.1
12
Tested up to: 4.9
13
- Stable tag: 20180511
14
- Version: 20180511
15
Requires PHP: 5.2
16
Text Domain: usp
17
Domain Path: /languages
@@ -27,9 +27,6 @@ Easily submit posts and images from the front-end of your site.
27
28
*Enable visitors to submit posts from the frontend of your site.*
29
30
- > GDPR-compliant: now featuring new data control settings
31
- > Gutenberg-compliant: works perfectly with or without Gutenberg
32
-
33
User Submitted Posts (USP) adds a frontend form via template tag or shortcode that enables your visitors to submit posts and upload images. Just add the following shortcode to any Post, Page, or Widget:
34
35
`[user-submitted-posts]`
@@ -168,9 +165,16 @@ User Submitted Posts supports translation into any language. Current translation
168
Need a translation into your language? [Let me know!](https://perishablepress.com/contact/)
169
170
171
**Pro Version**
172
173
- **USP Pro** now available at [Plugin Planet](https://plugin-planet.com/usp-pro/)!
174
175
Pro version includes many, many more features and settings, with unlimited custom forms, infinite custom fields, multimedia file uploads, and much more. [Check it out &raquo;](https://plugin-planet.com/usp-pro/)
176
@@ -669,7 +673,7 @@ Send any questions or feedback via my [contact form](https://perishablepress.com
669
670
== Support development of this plugin ==
671
672
- I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a cash donation](https://m0n.co/donate), [bitcoin donation](https://m0n.co/bitcoin), or purchase one of my books:
673
674
* [The Tao of WordPress](https://wp-tao.com/)
675
* [Digging into WordPress](https://digwp.com/)
@@ -691,6 +695,17 @@ Links, tweets and likes also appreciated. Thanks! :)
691
692
*Thank you to everyone who shares feedback for User Submitted Posts!*
693
694
**20180511**
695
696
* Adds new GDPR settings, including custom checkbox
6
Tags: guest post, user post, anonymous post, frontend post, guest author, frontend content, frontend post, frontend upload, generated content, guest blog, guest blogging, guest publish, guest upload, post sharing, post submission, public post, share posts, submit post, user generated, user submit, user submitted post, visitor post
7
Author: Jeff Starr
8
Author URI: https://plugin-planet.com/
9
+ Donate link: https://monzillamedia.com/donate.html
10
Contributors: specialk
11
Requires at least: 4.1
12
Tested up to: 4.9
13
+ Stable tag: 20180822
14
+ Version: 20180822
15
Requires PHP: 5.2
16
Text Domain: usp
17
Domain Path: /languages
27
28
*Enable visitors to submit posts from the frontend of your site.*
29
30
User Submitted Posts (USP) adds a frontend form via template tag or shortcode that enables your visitors to submit posts and upload images. Just add the following shortcode to any Post, Page, or Widget:
31
32
`[user-submitted-posts]`
165
Need a translation into your language? [Let me know!](https://perishablepress.com/contact/)
166
167
168
+ **GDPR**
169
+
170
+ User Submitted Posts (USP) enables users to submit post content. It collects data _only_ from users who submit content via the USP form. There is an option to disable collection of the submitter's IP address. So this plugin does _not_ do anything to make your site _less_ compliant with GDPR. I have done my best to ensure that this plugin is 100% GDPR compliant, but I'm not a lawyer so can't guarantee anything. To determine if your site is GDPR compliant, please consult an attorney.
171
+
172
+ > Works perfectly with or without Gutenberg
173
+
174
+
175
**Pro Version**
176
177
+ __USP Pro__ now available at [Plugin Planet](https://plugin-planet.com/usp-pro/)!
178
179
Pro version includes many, many more features and settings, with unlimited custom forms, infinite custom fields, multimedia file uploads, and much more. [Check it out &raquo;](https://plugin-planet.com/usp-pro/)
180
673
674
== Support development of this plugin ==
675
676
+ I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a donation](https://monzillamedia.com/donate.html) or purchase one of my books:
677
678
* [The Tao of WordPress](https://wp-tao.com/)
679
* [Digging into WordPress](https://digwp.com/)
695
696
*Thank you to everyone who shares feedback for User Submitted Posts!*
697
698
+ **20180822**
699
+
700
+ * Tweaks appearance of plugin settings page
701
+ * Tweaks USP form styles (checkbox alignment)
702
+ * Fixes incorrect class name in USP forms
703
+ * Makes "Incorrect response." a translatable string
704
+ * Adds `rel="noopener noreferrer"` to all [blank-target links](https://perishablepress.com/wordpress-blank-target-vulnerability/)
705
+ * Updates GDPR blurb and donate link
706
+ * Regenerates default translation template
707
+ * Further tests on WP versions 4.9 and 5.0 (alpha)
708
+
709
**20180511**
710
711
* Adds new GDPR settings, including custom checkbox
resources/jquery.usp.core.js CHANGED
@@ -52,7 +52,7 @@ jQuery(document).ready(function($) {
52
} else {
53
if (e) e.preventDefault();
54
$('.usp-captcha-error').remove();
55
- $('.usp-captcha').append('<ul class="usp-captcha-error parsley-errors-list filled"><li class="parsley-required">Incorrect response.</li></ul>');
56
$('.usp-captcha .usp-input').removeClass('parsley-success');
57
$('.usp-captcha .usp-input').addClass('parsley-error');
58
}
52
} else {
53
if (e) e.preventDefault();
54
$('.usp-captcha-error').remove();
55
+ $('.usp-captcha').append('<ul class="usp-captcha-error parsley-errors-list filled"><li class="parsley-required">'+ usp_parsley_error +'</li></ul>');
56
$('.usp-captcha .usp-input').removeClass('parsley-success');
57
$('.usp-captcha .usp-input').addClass('parsley-error');
58
}
resources/usp-admin.css CHANGED
@@ -66,6 +66,7 @@
66
/* Code & Captions */
67
.mm-item-desc { font-size: 13px; color: #777; }
68
.mm-item-caption { margin: 1px 0 0 3px; font-size: 11px; color: #777; }
69
.mm-item-caption code { font-size: 10px; }
70
.mm-code { padding: 5px; background-color: #fafae0; color: #333; font-size: 14px; }
71
66
/* Code & Captions */
67
.mm-item-desc { font-size: 13px; color: #777; }
68
.mm-item-caption { margin: 1px 0 0 3px; font-size: 11px; color: #777; }
69
+ textarea + .mm-item-caption { margin: 0 0 0 3px; }
70
.mm-item-caption code { font-size: 10px; }
71
.mm-code { padding: 5px; background-color: #fafae0; color: #333; font-size: 14px; }
72
resources/usp.css CHANGED
@@ -28,7 +28,7 @@ div#user-submitted-posts div#usp-error-message.usp-callout-failure { color: #cc3
28
div#user-submitted-posts div#usp-success-message { margin: 0 0 20px 0; font-weight: bold; }
29
30
div#user-submitted-posts fieldset.usp-checkbox { padding: 5px 0; }
31
- div#user-submitted-posts fieldset.usp-checkbox input,
32
div#user-submitted-posts fieldset.usp-checkbox label { display: inline-block; vertical-align: middle; }
33
34
.usp-hidden, .usp-no-js { display: none; }
28
div#user-submitted-posts div#usp-success-message { margin: 0 0 20px 0; font-weight: bold; }
29
30
div#user-submitted-posts fieldset.usp-checkbox { padding: 5px 0; }
31
+ div#user-submitted-posts fieldset.usp-checkbox input { display: inline-block; vertical-align: middle; position: relative; top: -2px; }
32
div#user-submitted-posts fieldset.usp-checkbox label { display: inline-block; vertical-align: middle; }
33
34
.usp-hidden, .usp-no-js { display: none; }
user-submitted-posts.php CHANGED
@@ -6,12 +6,12 @@
6
Tags: guest post, user post, anonymous post, frontend post, guest author, frontend content, frontend post, frontend upload, generated content, guest blog, guest blogging, guest publish, guest upload, post sharing, post submission, public post, share posts, submit post, user generated, user submit, user submitted post, visitor post
7
Author: Jeff Starr
8
Author URI: https://plugin-planet.com/
9
- Donate link: https://m0n.co/donate
10
Contributors: specialk
11
Requires at least: 4.1
12
Tested up to: 4.9
13
- Stable tag: 20180511
14
- Version: 20180511
15
Requires PHP: 5.2
16
Text Domain: usp
17
Domain Path: /languages
@@ -40,7 +40,7 @@ if (!defined('ABSPATH')) die();
40
41
42
define('USP_WP_VERSION', '4.1');
43
- define('USP_VERSION', '20180511');
44
define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
45
define('USP_PATH', plugin_basename(__FILE__));
46
6
Tags: guest post, user post, anonymous post, frontend post, guest author, frontend content, frontend post, frontend upload, generated content, guest blog, guest blogging, guest publish, guest upload, post sharing, post submission, public post, share posts, submit post, user generated, user submit, user submitted post, visitor post
7
Author: Jeff Starr
8
Author URI: https://plugin-planet.com/
9
+ Donate link: https://monzillamedia.com/donate.html
10
Contributors: specialk
11
Requires at least: 4.1
12
Tested up to: 4.9
13
+ Stable tag: 20180822
14
+ Version: 20180822
15
Requires PHP: 5.2
16
Text Domain: usp
17
Domain Path: /languages
40
41
42
define('USP_WP_VERSION', '4.1');
43
+ define('USP_VERSION', '20180822');
44
define('USP_PLUGIN', esc_html__('User Submitted Posts', 'usp'));
45
define('USP_PATH', plugin_basename(__FILE__));
46
views/submission-form-alt.php CHANGED
@@ -144,8 +144,8 @@ else :
144
</fieldset>
145
<?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
146
147
- <label for="user-submitted-category"><?php esc_html_e('Verification', 'usp'); ?></label>
148
- <div class="g-recaptcha" data-sitekey="<?php echo esc_attr($usp_data_sitekey); ?>"></div>
149
150
<?php } if ($usp_options['usp_images'] == 'show') { ?>
151
<?php if ($usp_options['max-images'] !== 0) { ?>
144
</fieldset>
145
<?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
146
147
+ <label for="g-recaptcha"><?php esc_html_e('Verification', 'usp'); ?></label>
148
+ <div id="g-recaptcha" class="g-recaptcha" data-sitekey="<?php echo esc_attr($usp_data_sitekey); ?>"></div>
149
150
<?php } if ($usp_options['usp_images'] == 'show') { ?>
151
<?php if ($usp_options['max-images'] !== 0) { ?>
views/submission-form.php CHANGED
@@ -139,8 +139,8 @@ else :
139
</fieldset>
140
<?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
141
142
- <label for="user-submitted-category"><?php esc_html_e('Verification', 'usp'); ?></label>
143
- <div class="g-recaptcha" data-sitekey="<?php echo esc_attr($usp_data_sitekey); ?>"></div>
144
145
<?php } if ($usp_options['usp_images'] == 'show') { ?>
146
<?php if ($usp_options['max-images'] !== 0) { ?>
139
</fieldset>
140
<?php } if ($usp_recaptcha_public && $usp_recaptcha_private && $usp_options['usp_recaptcha'] == 'show') { ?>
141
142
+ <label for="g-recaptcha"><?php esc_html_e('Verification', 'usp'); ?></label>
143
+ <div id="g-recaptcha" class="g-recaptcha" data-sitekey="<?php echo esc_attr($usp_data_sitekey); ?>"></div>
144
145
<?php } if ($usp_options['usp_images'] == 'show') { ?>
146
<?php if ($usp_options['max-images'] !== 0) { ?>