Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager - Version 2.3.6

Version Description

Added translation support

Download this release

Release Info

Developer galdub
Plugin Icon wp plugin Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager
Version 2.3.6
Comparing to
See all releases

Code changes from version 2.3.5 to 2.3.6

folders.php CHANGED
@@ -2,7 +2,9 @@
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
- * Version: 2.3.5
 
 
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  */
@@ -28,7 +30,7 @@ if(!defined("WCP_FOLDER_URL")) {
28
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
29
  }
30
  if(!defined("WCP_FOLDER_VERSION")) {
31
- define('WCP_FOLDER_VERSION', "2.3.5");
32
  }
33
 
34
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
+ * Text Domain: folders
6
+ * Domain Path: /languages
7
+ * Version: 2.3.6
8
  * Author: Premio
9
  * Author URI: https://premio.io/downloads/folders/
10
  */
30
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
31
  }
32
  if(!defined("WCP_FOLDER_VERSION")) {
33
+ define('WCP_FOLDER_VERSION', "2.3.6");
34
  }
35
 
36
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
includes/folders.class.php CHANGED
@@ -25,6 +25,9 @@ class WCP_Folders
25
  add_filter('plugin_action_links_' . WCP_FOLDERS_PLUGIN_BASE, [$this, 'plugin_action_links']);
26
  add_action('admin_footer', array($this, 'admin_footer'));
27
 
 
 
 
28
  /* check for polygon media */
29
  $polylang_options = get_option("polylang");
30
  if(is_array($polylang_options) && isset($polylang_options['media_support']) && $polylang_options['media_support'] == 1) {
@@ -119,8 +122,10 @@ class WCP_Folders
119
  }
120
 
121
  add_action("wp_ajax_folder_update_status", array($this, 'folder_update_status'));
 
122
 
123
-
 
124
  }
125
 
126
  public function admin_footer_for_media(){
@@ -249,14 +254,14 @@ class WCP_Folders
249
  }
250
  /* Free/Pro Class name change */
251
  $options = WCP_Tree::get_folder_option_data($post_type);?>
252
- <p class="attachments-category"><?php esc_html_e("Select a folder (Optional)", WCP_FOLDER) ?></p>
253
- <p class="attachments-category"><?php esc_html_e("First select the folder, and the upload the files", WCP_FOLDER) ?><br/></p>
254
  <p>
255
  <select name="folder_for_media" class="folder_for_media">
256
- <option value="-1">- <?php esc_html_e('Uncategorized', WCP_FOLDER) ?></option>
257
  <?php echo $options ?>
258
  <?php if($typenow == "attachment" && isset($current_screen->base) && $current_screen->base == "upload") {?>
259
- <option value="add-folder"><?php esc_html_e('+ Create a New Folder', WCP_FOLDER) ?></option>
260
  <?php } ?>
261
  </select>
262
  </p>
@@ -274,25 +279,25 @@ class WCP_Folders
274
  $postData = filter_input_array(INPUT_POST);
275
  $errorCounter = 0;
276
  if (!isset($postData['status']) || empty($postData['status'])) {
277
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
278
  $errorCounter++;
279
  } else if (!isset($postData['type']) || empty($postData['type'])) {
280
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
281
  $errorCounter++;
282
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
283
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
284
  $errorCounter++;
285
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
286
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
287
  $errorCounter++;
288
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
289
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
290
  $errorCounter++;
291
  } else {
292
  $type = self::sanitize_options($postData['type']);
293
  $nonce = self::sanitize_options($postData['nonce']);
294
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
295
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
296
  $errorCounter++;
297
  }
298
  }
@@ -317,25 +322,25 @@ class WCP_Folders
317
  $postData = filter_input_array(INPUT_POST);
318
  $errorCounter = 0;
319
  if (!isset($postData['status']) || empty($postData['status'])) {
320
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
321
  $errorCounter++;
322
  } else if (!isset($postData['type']) || empty($postData['type'])) {
323
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
324
  $errorCounter++;
325
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
326
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
327
  $errorCounter++;
328
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
329
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
330
  $errorCounter++;
331
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
332
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
333
  $errorCounter++;
334
  } else {
335
  $type = self::sanitize_options($postData['type']);
336
  $nonce = self::sanitize_options($postData['nonce']);
337
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
338
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
339
  $errorCounter++;
340
  }
341
  }
@@ -359,16 +364,16 @@ class WCP_Folders
359
  $postData = filter_input_array(INPUT_POST);
360
  $errorCounter = 0;
361
  if (!isset($postData['post_id']) || empty($postData['post_id'])) {
362
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
363
  $errorCounter++;
364
  } else if (!isset($postData['type']) || empty($postData['type'])) {
365
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
366
  $errorCounter++;
367
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
368
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
369
  $errorCounter++;
370
  } else if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$postData['type'])) {
371
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
372
  $errorCounter++;
373
  }
374
  if ($errorCounter == 0) {
@@ -715,8 +720,8 @@ class WCP_Folders
715
  }
716
 
717
  wp_dropdown_categories( array(
718
- 'show_option_all' => esc_attr__( 'All Folders', WCP_FOLDER),
719
- 'show_option_none' => esc_attr__( '(Unassigned)', WCP_FOLDER),
720
  'option_none_value' => -1,
721
  'orderby' => 'meta_value_num',
722
  'order' => 'ASC',
@@ -766,19 +771,19 @@ class WCP_Folders
766
  $response['errors'] = array();
767
  $response['message'] = "";
768
  $errorArray = [];
769
- $errorMessage = esc_attr__("%s is required", WCP_FOLDER);
770
  $postData = filter_input_array(INPUT_POST);
771
  if(!isset($postData['textarea_text']) || trim($postData['textarea_text']) == "") {
772
  $error = array(
773
  "key" => "textarea_text",
774
- "message" => esc_attr__("Please enter your message",WCP_FOLDER)
775
  );
776
  $errorArray[] = $error;
777
  }
778
  if(!isset($postData['user_email']) || trim($postData['user_email']) == "") {
779
  $error = array(
780
  "key" => "user_email",
781
- "message" => sprintf($errorMessage,__("Email",WCP_FOLDER))
782
  );
783
  $errorArray[] = $error;
784
  } else if(!filter_var($postData['user_email'], FILTER_VALIDATE_EMAIL)) {
@@ -792,14 +797,14 @@ class WCP_Folders
792
  if(!isset($postData['folder_help_nonce']) || trim($postData['folder_help_nonce']) == "") {
793
  $error = array(
794
  "key" => "nonce",
795
- "message" => esc_attr__("Your request is not valid", WCP_FOLDER)
796
  );
797
  $errorArray[] = $error;
798
  } else {
799
  if(!wp_verify_nonce($postData['folder_help_nonce'], 'wcp_folder_help_nonce')) {
800
  $error = array(
801
  "key" => "nonce",
802
- "message" => esc_attr__("Your request is not valid", WCP_FOLDER)
803
  );
804
  $errorArray[] = $error;
805
  }
@@ -862,13 +867,13 @@ class WCP_Folders
862
  $errorCounter++;
863
  $response['message'] = "Please provide reason";
864
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
865
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
866
  $errorCounter++;
867
  $response['valid'] = 0;
868
  } else {
869
  $nonce = self::sanitize_options($postData['nonce']);
870
  if(!wp_verify_nonce($nonce, 'wcp_folder_deactivate_nonce')) {
871
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
872
  $errorCounter++;
873
  $response['valid'] = 0;
874
  }
@@ -968,22 +973,22 @@ class WCP_Folders
968
  $postData = filter_input_array(INPUT_POST);
969
  $errorCounter = 0;
970
  if (!isset($postData['type']) || empty($postData['type'])) {
971
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
972
  $errorCounter++;
973
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
974
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
975
  $errorCounter++;
976
  } else if (!current_user_can("manage_categories") || ($postData['type'] == "page" && !current_user_can("edit_pages"))) {
977
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
978
  $errorCounter++;
979
  } else if (!current_user_can("manage_categories") || ($postData['type'] != "page" && !current_user_can("edit_posts"))) {
980
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
981
  $errorCounter++;
982
  } else {
983
  $type = self::sanitize_options($postData['type']);
984
  $nonce = self::sanitize_options($postData['nonce']);
985
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
986
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
987
  $errorCounter++;
988
  }
989
  }
@@ -1014,25 +1019,25 @@ class WCP_Folders
1014
  $postData = filter_input_array(INPUT_POST);
1015
  $errorCounter = 0;
1016
  if (!isset($postData['width']) || empty($postData['width'])) {
1017
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1018
  $errorCounter++;
1019
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1020
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1021
  $errorCounter++;
1022
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1023
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1024
  $errorCounter++;
1025
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
1026
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
1027
  $errorCounter++;
1028
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
1029
- $response['message'] = esc_attr__("You have not permission to update width", WCP_FOLDER);
1030
  $errorCounter++;
1031
  } else {
1032
  $type = self::sanitize_options($postData['type']);
1033
  $nonce = self::sanitize_options($postData['nonce']);
1034
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
1035
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1036
  $errorCounter++;
1037
  }
1038
  }
@@ -1057,27 +1062,27 @@ class WCP_Folders
1057
  $postData = filter_input_array(INPUT_POST);
1058
  $errorCounter = 0;
1059
  if (!isset($postData['post_ids']) || empty($postData['post_ids'])) {
1060
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1061
  $errorCounter++;
1062
  } else if (!isset($postData['folder_id']) || empty($postData['folder_id'])) {
1063
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1064
  $errorCounter++;
1065
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1066
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1067
  $errorCounter++;
1068
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1069
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1070
  $errorCounter++;
1071
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
1072
- $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1073
  $errorCounter++;
1074
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
1075
- $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1076
  $errorCounter++;
1077
  } else {
1078
  $folder_id = self::sanitize_options($postData['folder_id']);
1079
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$folder_id)) {
1080
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1081
  $errorCounter++;
1082
  }
1083
  }
@@ -1128,26 +1133,26 @@ class WCP_Folders
1128
  $errorCounter = 0;
1129
  if (!isset($postData['post_id']) || empty($postData['post_id'])) {
1130
  $errorCounter++;
1131
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1132
  } else if (!isset($postData['folder_id']) || empty($postData['folder_id'])) {
1133
  $errorCounter++;
1134
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1135
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1136
  $errorCounter++;
1137
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1138
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1139
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1140
  $errorCounter++;
1141
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
1142
- $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1143
  $errorCounter++;
1144
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
1145
- $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1146
  $errorCounter++;
1147
  } else {
1148
  $term_id = self::sanitize_options($postData['folder_id']);
1149
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$term_id)) {
1150
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1151
  $errorCounter++;
1152
  }
1153
  }
@@ -1190,18 +1195,18 @@ class WCP_Folders
1190
  $postData = filter_input_array(INPUT_POST);
1191
  $errorCounter = 0;
1192
  if (!current_user_can("manage_categories")) {
1193
- $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1194
  $errorCounter++;
1195
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1196
  $errorCounter++;
1197
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1198
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1199
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1200
  $errorCounter++;
1201
  } else {
1202
  $term_id = self::sanitize_options($postData['term_id']);
1203
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_highlight_term_'.$term_id)) {
1204
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1205
  $errorCounter++;
1206
  }
1207
  }
@@ -1233,21 +1238,21 @@ class WCP_Folders
1233
  $postData = filter_input_array(INPUT_POST);
1234
  $errorCounter = 0;
1235
  if (!current_user_can("manage_categories")) {
1236
- $response['message'] = esc_attr__("You have not permission to update folder order", WCP_FOLDER);
1237
  $errorCounter++;
1238
  } else if (!isset($postData['term_ids']) || empty($postData['term_ids'])) {
1239
  $errorCounter++;
1240
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1241
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1242
  $errorCounter++;
1243
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1244
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1245
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1246
  $errorCounter++;
1247
  } else {
1248
  $type = self::sanitize_options($postData['type']);
1249
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$type)) {
1250
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1251
  $errorCounter++;
1252
  }
1253
  }
@@ -1282,18 +1287,18 @@ class WCP_Folders
1282
  $postData = filter_input_array(INPUT_POST);
1283
  $errorCounter = 0;
1284
  if (!current_user_can("manage_categories")) {
1285
- $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1286
  $errorCounter++;
1287
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1288
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1289
  $errorCounter++;
1290
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1291
- $response['message'] = esc_attr__("Unable to create folder, Your request is not valid", WCP_FOLDER);
1292
  $errorCounter++;
1293
  } else {
1294
  $term_id = self::sanitize_options($postData['term_id']);
1295
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$term_id)) {
1296
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1297
  $errorCounter++;
1298
  }
1299
  }
@@ -1322,24 +1327,24 @@ class WCP_Folders
1322
  $postData = filter_input_array(INPUT_POST);
1323
  $errorCounter = 0;
1324
  if (!current_user_can("manage_categories")) {
1325
- $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1326
  $errorCounter++;
1327
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1328
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1329
  $errorCounter++;
1330
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1331
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1332
  $errorCounter++;
1333
  } else if (!isset($postData['parent_id'])) {
1334
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1335
  $errorCounter++;
1336
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1337
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1338
  $errorCounter++;
1339
  } else {
1340
  $term_id = self::sanitize_options($postData['term_id']);
1341
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$term_id)) {
1342
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1343
  $errorCounter++;
1344
  }
1345
  }
@@ -1368,15 +1373,15 @@ class WCP_Folders
1368
  $postData = filter_input_array(INPUT_POST);
1369
  $errorCounter = 0;
1370
  if (!isset($postData['type']) || empty($postData['type'])) {
1371
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1372
  $errorCounter++;
1373
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1374
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1375
  $errorCounter++;
1376
  } else {
1377
  $type = self::sanitize_options($postData['type']);
1378
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$type)) {
1379
- $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1380
  $errorCounter++;
1381
  }
1382
  }
@@ -1405,13 +1410,13 @@ class WCP_Folders
1405
  $postData = filter_input_array(INPUT_POST);
1406
  $errorCounter = 0;
1407
  if (!current_user_can("manage_categories")) {
1408
- $error = esc_attr__("You have not permission to remove folder", WCP_FOLDER);
1409
  $errorCounter++;
1410
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1411
- $error = esc_attr__("Your request is not valid", WCP_FOLDER);
1412
  $errorCounter++;
1413
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1414
- $error = esc_attr__("Your request is not valid", WCP_FOLDER);
1415
  $errorCounter++;
1416
  }
1417
  if ($errorCounter == 0) {
@@ -1453,21 +1458,21 @@ class WCP_Folders
1453
  $postData = filter_input_array(INPUT_POST);
1454
  $errorCounter = 0;
1455
  if (!current_user_can("manage_categories")) {
1456
- $error = esc_attr__("You have not permission to remove folder", WCP_FOLDER);
1457
  $errorCounter++;
1458
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1459
- $error = esc_attr__("Your request is not valid", WCP_FOLDER);
1460
  $errorCounter++;
1461
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1462
- $error = esc_attr__("Your request is not valid", WCP_FOLDER);
1463
  $errorCounter++;
1464
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1465
- $error = esc_attr__("Unable to delete folder, Your request is not valid", WCP_FOLDER);
1466
  $errorCounter++;
1467
  } else {
1468
  $term_id = self::sanitize_options($postData['term_id']);
1469
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_delete_term_'.$term_id)) {
1470
- $error = esc_attr__("Unable to delete folder, Your request is not valid", WCP_FOLDER);
1471
  $errorCounter++;
1472
  }
1473
  }
@@ -1520,24 +1525,24 @@ class WCP_Folders
1520
  $postData = $_REQUEST;
1521
  $errorCounter = 0;
1522
  if (!current_user_can("manage_categories")) {
1523
- $error = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1524
  $errorCounter++;
1525
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1526
- $error = esc_attr__("Unable to rename folder, Your request is not valid", WCP_FOLDER);
1527
  $errorCounter++;
1528
  } else if (!isset($postData['name']) || empty($postData['name'])) {
1529
- $error = esc_attr__("Folder name can no be empty", WCP_FOLDER);
1530
  $errorCounter++;
1531
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1532
- $error = esc_attr__("Your request is not valid", WCP_FOLDER);
1533
  $errorCounter++;
1534
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1535
- $error = esc_attr__("Unable to rename folder, Your request is not valid", WCP_FOLDER);
1536
  $errorCounter++;
1537
  } else {
1538
  $term_id = self::sanitize_options($postData['term_id']);
1539
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_rename_term_'.$term_id)) {
1540
- $error = esc_attr__("Unable to rename folder, Your request is not valid", WCP_FOLDER);
1541
  $errorCounter++;
1542
  }
1543
  }
@@ -1558,7 +1563,7 @@ class WCP_Folders
1558
  $response['status'] = 1;
1559
  $response['term_title'] = $postData['name'];
1560
  } else {
1561
- $response['message'] = esc_attr__("Unable to rename folder", WCP_FOLDER);
1562
  }
1563
  } else {
1564
  $response['error'] = 1;
@@ -1598,23 +1603,23 @@ class WCP_Folders
1598
  $postData = $_REQUEST;
1599
  $errorCounter = 0;
1600
  if (!current_user_can("manage_categories")) {
1601
- $error = esc_attr__("You have not permission to add folder", WCP_FOLDER);
1602
  $errorCounter++;
1603
  } else if (!isset($postData['name']) || empty($postData['name'])) {
1604
- $error = esc_attr__("Folder name can no be empty", WCP_FOLDER);
1605
  $errorCounter++;
1606
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1607
- $error = esc_attr__("Your request is not valid", WCP_FOLDER);
1608
  $errorCounter++;
1609
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1610
  $response['login'] = 0;
1611
- $error = esc_attr__("Unable to create folder, Your request is not valid", WCP_FOLDER);
1612
  $errorCounter++;
1613
  } else {
1614
  $type = self::sanitize_options($postData['type']);
1615
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$type)) {
1616
  $response['login'] = 0;
1617
- $error = esc_attr__("Unable to create folder, Your request is not valid", WCP_FOLDER);
1618
  $errorCounter++;
1619
  }
1620
  }
@@ -1664,11 +1669,11 @@ class WCP_Folders
1664
  $response['is_key_active'] = $is_active;
1665
  $response['folders'] = $folders;
1666
  } else {
1667
- $response['message'] = esc_attr__("Error during server request", WCP_FOLDER);
1668
  }
1669
  } else {
1670
  $response['error'] = 1;
1671
- $response['message'] = esc_attr__("Folder name already exists", WCP_FOLDER);
1672
  }
1673
  } else {
1674
  $response['error'] = 1;
@@ -1833,20 +1838,20 @@ class WCP_Folders
1833
  if (!empty($posts)) {
1834
  foreach ($posts as $post_type) {
1835
  $labels = array(
1836
- 'name' => esc_html__('Folders', WCP_FOLDER),
1837
- 'singular_name' => esc_html__('Folder', WCP_FOLDER),
1838
- 'all_items' => esc_html__('All Folders', WCP_FOLDER),
1839
- 'edit_item' => esc_html__('Edit Folder', WCP_FOLDER),
1840
- 'update_item' => esc_html__('Update Folder', WCP_FOLDER),
1841
- 'add_new_item' => esc_html__('Add New Folder', WCP_FOLDER),
1842
- 'new_item_name' => esc_html__('Add Folder Name', WCP_FOLDER),
1843
- 'menu_name' => esc_html__('Folders', WCP_FOLDER),
1844
- 'search_items' => esc_html__('Search Folders', WCP_FOLDER),
1845
- 'parent_item' => esc_html__('Parent Folder', WCP_FOLDER),
1846
  );
1847
 
1848
  $args = array(
1849
- 'label' => esc_html__('Folder', WCP_FOLDER),
1850
  'labels' => $labels,
1851
  'show_tagcloud' => false,
1852
  'hierarchical' => true,
@@ -2191,11 +2196,11 @@ class WCP_Folders
2191
 
2192
  public function plugin_action_links($links)
2193
  {
2194
- array_unshift($links, '<a href="' . admin_url("admin.php?page=wcp_folders_settings") . '" >' . esc_html__('Settings', WCP_FOLDER) . '</a>');
2195
- $links['need_help'] = '<a target="_blank" href="https://premio.io/help/folders/?utm_source=pluginspage" >'.__( 'Need help?', WCP_FOLDER).'</a>';
2196
 
2197
  /* PRO link for only for FREE*/
2198
- $links['pro'] = '<a class="wcp-folder-upgrade-button" href="'.admin_url("admin.php?page=wcp_folders_upgrade").'" >'.__( 'Upgrade', WCP_FOLDER).'</a>';
2199
  return $links;
2200
  }
2201
 
@@ -2277,7 +2282,7 @@ class WCP_Folders
2277
  $options = get_option("folders_settings");
2278
  if (is_array($options) && in_array($type, $options)) {
2279
  $columns = array(
2280
- 'wcp_move' => '<div class="wcp-move-multiple wcp-col" title="' . esc_attr__('Move selected items', WCP_FOLDER) . '"><span class="dashicons dashicons-move"></span><div class="wcp-items"></div></div>',
2281
  ) + $defaults;
2282
  return $columns;
2283
  }
@@ -2334,8 +2339,8 @@ class WCP_Folders
2334
  public function admin_menu()
2335
  {
2336
  // Add menu item for settings page
2337
- $page_title = esc_attr__('Folders', WCP_FOLDER);
2338
- $menu_title = esc_attr__('Folders Settings', WCP_FOLDER);
2339
  $capability = 'manage_options';
2340
  $menu_slug = 'wcp_folders_settings';
2341
  $callback = array($this, "wcp_folders_settings");
@@ -2347,8 +2352,8 @@ class WCP_Folders
2347
  /* Do not Change Free/Pro Change for menu */
2348
  add_submenu_page(
2349
  $menu_slug,
2350
- esc_html__('Upgrade to Pro', WCP_FOLDER),
2351
- esc_html__('Upgrade to Pro', WCP_FOLDER),
2352
  'manage_options',
2353
  'wcp_folders_upgrade',
2354
  array($this, 'wcp_folders_upgrade_or_register')
25
  add_filter('plugin_action_links_' . WCP_FOLDERS_PLUGIN_BASE, [$this, 'plugin_action_links']);
26
  add_action('admin_footer', array($this, 'admin_footer'));
27
 
28
+ /* load language files */
29
+ add_action( 'plugins_loaded', array( $this, 'folders_text' ) );
30
+
31
  /* check for polygon media */
32
  $polylang_options = get_option("polylang");
33
  if(is_array($polylang_options) && isset($polylang_options['media_support']) && $polylang_options['media_support'] == 1) {
122
  }
123
 
124
  add_action("wp_ajax_folder_update_status", array($this, 'folder_update_status'));
125
+ }
126
 
127
+ public function folders_text() {
128
+ load_plugin_textdomain(WCP_FOLDER, FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
129
  }
130
 
131
  public function admin_footer_for_media(){
254
  }
255
  /* Free/Pro Class name change */
256
  $options = WCP_Tree::get_folder_option_data($post_type);?>
257
+ <p class="attachments-category"><?php esc_html_e("Select a folder (Optional)", "folders") ?></p>
258
+ <p class="attachments-category"><?php esc_html_e("First select the folder, and the upload the files", "folders") ?><br/></p>
259
  <p>
260
  <select name="folder_for_media" class="folder_for_media">
261
+ <option value="-1">- <?php esc_html_e('Uncategorized', "folders") ?></option>
262
  <?php echo $options ?>
263
  <?php if($typenow == "attachment" && isset($current_screen->base) && $current_screen->base == "upload") {?>
264
+ <option value="add-folder"><?php esc_html_e('+ Create a New Folder', "folders") ?></option>
265
  <?php } ?>
266
  </select>
267
  </p>
279
  $postData = filter_input_array(INPUT_POST);
280
  $errorCounter = 0;
281
  if (!isset($postData['status']) || empty($postData['status'])) {
282
+ $response['message'] = esc_html__("Your request is not valid", "folders");
283
  $errorCounter++;
284
  } else if (!isset($postData['type']) || empty($postData['type'])) {
285
+ $response['message'] = esc_html__("Your request is not valid", "folders");
286
  $errorCounter++;
287
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
288
+ $response['message'] = esc_html__("Your request is not valid", "folders");
289
  $errorCounter++;
290
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
291
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
292
  $errorCounter++;
293
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
294
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
295
  $errorCounter++;
296
  } else {
297
  $type = self::sanitize_options($postData['type']);
298
  $nonce = self::sanitize_options($postData['nonce']);
299
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
300
+ $response['message'] = esc_html__("Your request is not valid", "folders");
301
  $errorCounter++;
302
  }
303
  }
322
  $postData = filter_input_array(INPUT_POST);
323
  $errorCounter = 0;
324
  if (!isset($postData['status']) || empty($postData['status'])) {
325
+ $response['message'] = esc_html__("Your request is not valid", "folders");
326
  $errorCounter++;
327
  } else if (!isset($postData['type']) || empty($postData['type'])) {
328
+ $response['message'] = esc_html__("Your request is not valid", "folders");
329
  $errorCounter++;
330
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
331
+ $response['message'] = esc_html__("Your request is not valid", "folders");
332
  $errorCounter++;
333
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
334
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
335
  $errorCounter++;
336
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
337
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
338
  $errorCounter++;
339
  } else {
340
  $type = self::sanitize_options($postData['type']);
341
  $nonce = self::sanitize_options($postData['nonce']);
342
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
343
+ $response['message'] = esc_html__("Your request is not valid", "folders");
344
  $errorCounter++;
345
  }
346
  }
364
  $postData = filter_input_array(INPUT_POST);
365
  $errorCounter = 0;
366
  if (!isset($postData['post_id']) || empty($postData['post_id'])) {
367
+ $response['message'] = esc_html__("Your request is not valid", "folders");
368
  $errorCounter++;
369
  } else if (!isset($postData['type']) || empty($postData['type'])) {
370
+ $response['message'] = esc_html__("Your request is not valid", "folders");
371
  $errorCounter++;
372
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
373
+ $response['message'] = esc_html__("Your request is not valid", "folders");
374
  $errorCounter++;
375
  } else if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$postData['type'])) {
376
+ $response['message'] = esc_html__("Your request is not valid", "folders");
377
  $errorCounter++;
378
  }
379
  if ($errorCounter == 0) {
720
  }
721
 
722
  wp_dropdown_categories( array(
723
+ 'show_option_all' => esc_html__( 'All Folders', "folders"),
724
+ 'show_option_none' => esc_html__( '(Unassigned)', "folders"),
725
  'option_none_value' => -1,
726
  'orderby' => 'meta_value_num',
727
  'order' => 'ASC',
771
  $response['errors'] = array();
772
  $response['message'] = "";
773
  $errorArray = [];
774
+ $errorMessage = esc_html__("%s is required", "folders");
775
  $postData = filter_input_array(INPUT_POST);
776
  if(!isset($postData['textarea_text']) || trim($postData['textarea_text']) == "") {
777
  $error = array(
778
  "key" => "textarea_text",
779
+ "message" => esc_html__("Please enter your message","folders")
780
  );
781
  $errorArray[] = $error;
782
  }
783
  if(!isset($postData['user_email']) || trim($postData['user_email']) == "") {
784
  $error = array(
785
  "key" => "user_email",
786
+ "message" => sprintf($errorMessage,__("Email","folders"))
787
  );
788
  $errorArray[] = $error;
789
  } else if(!filter_var($postData['user_email'], FILTER_VALIDATE_EMAIL)) {
797
  if(!isset($postData['folder_help_nonce']) || trim($postData['folder_help_nonce']) == "") {
798
  $error = array(
799
  "key" => "nonce",
800
+ "message" => esc_html__("Your request is not valid", "folders")
801
  );
802
  $errorArray[] = $error;
803
  } else {
804
  if(!wp_verify_nonce($postData['folder_help_nonce'], 'wcp_folder_help_nonce')) {
805
  $error = array(
806
  "key" => "nonce",
807
+ "message" => esc_html__("Your request is not valid", "folders")
808
  );
809
  $errorArray[] = $error;
810
  }
867
  $errorCounter++;
868
  $response['message'] = "Please provide reason";
869
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
870
+ $response['message'] = esc_html__("Your request is not valid", "folders");
871
  $errorCounter++;
872
  $response['valid'] = 0;
873
  } else {
874
  $nonce = self::sanitize_options($postData['nonce']);
875
  if(!wp_verify_nonce($nonce, 'wcp_folder_deactivate_nonce')) {
876
+ $response['message'] = esc_html__("Your request is not valid", "folders");
877
  $errorCounter++;
878
  $response['valid'] = 0;
879
  }
973
  $postData = filter_input_array(INPUT_POST);
974
  $errorCounter = 0;
975
  if (!isset($postData['type']) || empty($postData['type'])) {
976
+ $response['message'] = esc_html__("Your request is not valid", "folders");
977
  $errorCounter++;
978
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
979
+ $response['message'] = esc_html__("Your request is not valid", "folders");
980
  $errorCounter++;
981
  } else if (!current_user_can("manage_categories") || ($postData['type'] == "page" && !current_user_can("edit_pages"))) {
982
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
983
  $errorCounter++;
984
  } else if (!current_user_can("manage_categories") || ($postData['type'] != "page" && !current_user_can("edit_posts"))) {
985
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
986
  $errorCounter++;
987
  } else {
988
  $type = self::sanitize_options($postData['type']);
989
  $nonce = self::sanitize_options($postData['nonce']);
990
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
991
+ $response['message'] = esc_html__("Your request is not valid", "folders");
992
  $errorCounter++;
993
  }
994
  }
1019
  $postData = filter_input_array(INPUT_POST);
1020
  $errorCounter = 0;
1021
  if (!isset($postData['width']) || empty($postData['width'])) {
1022
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1023
  $errorCounter++;
1024
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1025
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1026
  $errorCounter++;
1027
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1028
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1029
  $errorCounter++;
1030
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
1031
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
1032
  $errorCounter++;
1033
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
1034
+ $response['message'] = esc_html__("You have not permission to update width", "folders");
1035
  $errorCounter++;
1036
  } else {
1037
  $type = self::sanitize_options($postData['type']);
1038
  $nonce = self::sanitize_options($postData['nonce']);
1039
  if(!wp_verify_nonce($nonce, 'wcp_folder_nonce_'.$type)) {
1040
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1041
  $errorCounter++;
1042
  }
1043
  }
1062
  $postData = filter_input_array(INPUT_POST);
1063
  $errorCounter = 0;
1064
  if (!isset($postData['post_ids']) || empty($postData['post_ids'])) {
1065
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1066
  $errorCounter++;
1067
  } else if (!isset($postData['folder_id']) || empty($postData['folder_id'])) {
1068
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1069
  $errorCounter++;
1070
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1071
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1072
  $errorCounter++;
1073
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1074
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1075
  $errorCounter++;
1076
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
1077
+ $response['message'] = esc_html__("You have not permission to update folder", "folders");
1078
  $errorCounter++;
1079
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
1080
+ $response['message'] = esc_html__("You have not permission to update folder", "folders");
1081
  $errorCounter++;
1082
  } else {
1083
  $folder_id = self::sanitize_options($postData['folder_id']);
1084
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$folder_id)) {
1085
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1086
  $errorCounter++;
1087
  }
1088
  }
1133
  $errorCounter = 0;
1134
  if (!isset($postData['post_id']) || empty($postData['post_id'])) {
1135
  $errorCounter++;
1136
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1137
  } else if (!isset($postData['folder_id']) || empty($postData['folder_id'])) {
1138
  $errorCounter++;
1139
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1140
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1141
  $errorCounter++;
1142
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1143
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1144
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1145
  $errorCounter++;
1146
  } else if ($postData['type'] == "page" && !current_user_can("edit_pages")) {
1147
+ $response['message'] = esc_html__("You have not permission to update folder", "folders");
1148
  $errorCounter++;
1149
  } else if ($postData['type'] != "page" && !current_user_can("edit_posts")) {
1150
+ $response['message'] = esc_html__("You have not permission to update folder", "folders");
1151
  $errorCounter++;
1152
  } else {
1153
  $term_id = self::sanitize_options($postData['folder_id']);
1154
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$term_id)) {
1155
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1156
  $errorCounter++;
1157
  }
1158
  }
1195
  $postData = filter_input_array(INPUT_POST);
1196
  $errorCounter = 0;
1197
  if (!current_user_can("manage_categories")) {
1198
+ $response['message'] = esc_html__("You have not permission to update folder", "folders");
1199
  $errorCounter++;
1200
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1201
  $errorCounter++;
1202
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1203
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1204
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1205
  $errorCounter++;
1206
  } else {
1207
  $term_id = self::sanitize_options($postData['term_id']);
1208
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_highlight_term_'.$term_id)) {
1209
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1210
  $errorCounter++;
1211
  }
1212
  }
1238
  $postData = filter_input_array(INPUT_POST);
1239
  $errorCounter = 0;
1240
  if (!current_user_can("manage_categories")) {
1241
+ $response['message'] = esc_html__("You have not permission to update folder order", "folders");
1242
  $errorCounter++;
1243
  } else if (!isset($postData['term_ids']) || empty($postData['term_ids'])) {
1244
  $errorCounter++;
1245
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1246
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1247
  $errorCounter++;
1248
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1249
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1250
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1251
  $errorCounter++;
1252
  } else {
1253
  $type = self::sanitize_options($postData['type']);
1254
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$type)) {
1255
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1256
  $errorCounter++;
1257
  }
1258
  }
1287
  $postData = filter_input_array(INPUT_POST);
1288
  $errorCounter = 0;
1289
  if (!current_user_can("manage_categories")) {
1290
+ $response['message'] = esc_html__("You have not permission to update folder", "folders");
1291
  $errorCounter++;
1292
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1293
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1294
  $errorCounter++;
1295
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1296
+ $response['message'] = esc_html__("Unable to create folder, Your request is not valid", "folders");
1297
  $errorCounter++;
1298
  } else {
1299
  $term_id = self::sanitize_options($postData['term_id']);
1300
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$term_id)) {
1301
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1302
  $errorCounter++;
1303
  }
1304
  }
1327
  $postData = filter_input_array(INPUT_POST);
1328
  $errorCounter = 0;
1329
  if (!current_user_can("manage_categories")) {
1330
+ $response['message'] = esc_html__("You have not permission to update folder", "folders");
1331
  $errorCounter++;
1332
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1333
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1334
  $errorCounter++;
1335
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1336
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1337
  $errorCounter++;
1338
  } else if (!isset($postData['parent_id'])) {
1339
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1340
  $errorCounter++;
1341
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1342
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1343
  $errorCounter++;
1344
  } else {
1345
  $term_id = self::sanitize_options($postData['term_id']);
1346
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_term_'.$term_id)) {
1347
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1348
  $errorCounter++;
1349
  }
1350
  }
1373
  $postData = filter_input_array(INPUT_POST);
1374
  $errorCounter = 0;
1375
  if (!isset($postData['type']) || empty($postData['type'])) {
1376
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1377
  $errorCounter++;
1378
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1379
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1380
  $errorCounter++;
1381
  } else {
1382
  $type = self::sanitize_options($postData['type']);
1383
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$type)) {
1384
+ $response['message'] = esc_html__("Your request is not valid", "folders");
1385
  $errorCounter++;
1386
  }
1387
  }
1410
  $postData = filter_input_array(INPUT_POST);
1411
  $errorCounter = 0;
1412
  if (!current_user_can("manage_categories")) {
1413
+ $error = esc_html__("You have not permission to remove folder", "folders");
1414
  $errorCounter++;
1415
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1416
+ $error = esc_html__("Your request is not valid", "folders");
1417
  $errorCounter++;
1418
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1419
+ $error = esc_html__("Your request is not valid", "folders");
1420
  $errorCounter++;
1421
  }
1422
  if ($errorCounter == 0) {
1458
  $postData = filter_input_array(INPUT_POST);
1459
  $errorCounter = 0;
1460
  if (!current_user_can("manage_categories")) {
1461
+ $error = esc_html__("You have not permission to remove folder", "folders");
1462
  $errorCounter++;
1463
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1464
+ $error = esc_html__("Your request is not valid", "folders");
1465
  $errorCounter++;
1466
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1467
+ $error = esc_html__("Your request is not valid", "folders");
1468
  $errorCounter++;
1469
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1470
+ $error = esc_html__("Unable to delete folder, Your request is not valid", "folders");
1471
  $errorCounter++;
1472
  } else {
1473
  $term_id = self::sanitize_options($postData['term_id']);
1474
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_delete_term_'.$term_id)) {
1475
+ $error = esc_html__("Unable to delete folder, Your request is not valid", "folders");
1476
  $errorCounter++;
1477
  }
1478
  }
1525
  $postData = $_REQUEST;
1526
  $errorCounter = 0;
1527
  if (!current_user_can("manage_categories")) {
1528
+ $error = esc_html__("You have not permission to update folder", "folders");
1529
  $errorCounter++;
1530
  } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1531
+ $error = esc_html__("Unable to rename folder, Your request is not valid", "folders");
1532
  $errorCounter++;
1533
  } else if (!isset($postData['name']) || empty($postData['name'])) {
1534
+ $error = esc_html__("Folder name can no be empty", "folders");
1535
  $errorCounter++;
1536
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1537
+ $error = esc_html__("Your request is not valid", "folders");
1538
  $errorCounter++;
1539
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1540
+ $error = esc_html__("Unable to rename folder, Your request is not valid", "folders");
1541
  $errorCounter++;
1542
  } else {
1543
  $term_id = self::sanitize_options($postData['term_id']);
1544
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_rename_term_'.$term_id)) {
1545
+ $error = esc_html__("Unable to rename folder, Your request is not valid", "folders");
1546
  $errorCounter++;
1547
  }
1548
  }
1563
  $response['status'] = 1;
1564
  $response['term_title'] = $postData['name'];
1565
  } else {
1566
+ $response['message'] = esc_html__("Unable to rename folder", "folders");
1567
  }
1568
  } else {
1569
  $response['error'] = 1;
1603
  $postData = $_REQUEST;
1604
  $errorCounter = 0;
1605
  if (!current_user_can("manage_categories")) {
1606
+ $error = esc_html__("You have not permission to add folder", "folders");
1607
  $errorCounter++;
1608
  } else if (!isset($postData['name']) || empty($postData['name'])) {
1609
+ $error = esc_html__("Folder name can no be empty", "folders");
1610
  $errorCounter++;
1611
  } else if (!isset($postData['type']) || empty($postData['type'])) {
1612
+ $error = esc_html__("Your request is not valid", "folders");
1613
  $errorCounter++;
1614
  } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1615
  $response['login'] = 0;
1616
+ $error = esc_html__("Unable to create folder, Your request is not valid", "folders");
1617
  $errorCounter++;
1618
  } else {
1619
  $type = self::sanitize_options($postData['type']);
1620
  if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$type)) {
1621
  $response['login'] = 0;
1622
+ $error = esc_html__("Unable to create folder, Your request is not valid", "folders");
1623
  $errorCounter++;
1624
  }
1625
  }
1669
  $response['is_key_active'] = $is_active;
1670
  $response['folders'] = $folders;
1671
  } else {
1672
+ $response['message'] = esc_html__("Error during server request", "folders");
1673
  }
1674
  } else {
1675
  $response['error'] = 1;
1676
+ $response['message'] = esc_html__("Folder name already exists", "folders");
1677
  }
1678
  } else {
1679
  $response['error'] = 1;
1838
  if (!empty($posts)) {
1839
  foreach ($posts as $post_type) {
1840
  $labels = array(
1841
+ 'name' => esc_html__('Folders', "folders"),
1842
+ 'singular_name' => esc_html__('Folder', "folders"),
1843
+ 'all_items' => esc_html__('All Folders', "folders"),
1844
+ 'edit_item' => esc_html__('Edit Folder', "folders"),
1845
+ 'update_item' => esc_html__('Update Folder', "folders"),
1846
+ 'add_new_item' => esc_html__('Add New Folder', "folders"),
1847
+ 'new_item_name' => esc_html__('Add Folder Name', "folders"),
1848
+ 'menu_name' => esc_html__('Folders', "folders"),
1849
+ 'search_items' => esc_html__('Search Folders', "folders"),
1850
+ 'parent_item' => esc_html__('Parent Folder', "folders"),
1851
  );
1852
 
1853
  $args = array(
1854
+ 'label' => esc_html__('Folder', "folders"),
1855
  'labels' => $labels,
1856
  'show_tagcloud' => false,
1857
  'hierarchical' => true,
2196
 
2197
  public function plugin_action_links($links)
2198
  {
2199
+ array_unshift($links, '<a href="' . admin_url("admin.php?page=wcp_folders_settings") . '" >' . esc_html__('Settings', "folders") . '</a>');
2200
+ $links['need_help'] = '<a target="_blank" href="https://premio.io/help/folders/?utm_source=pluginspage" >'.__( 'Need help?', "folders").'</a>';
2201
 
2202
  /* PRO link for only for FREE*/
2203
+ $links['pro'] = '<a class="wcp-folder-upgrade-button" href="'.admin_url("admin.php?page=wcp_folders_upgrade").'" >'.__( 'Upgrade', "folders").'</a>';
2204
  return $links;
2205
  }
2206
 
2282
  $options = get_option("folders_settings");
2283
  if (is_array($options) && in_array($type, $options)) {
2284
  $columns = array(
2285
+ 'wcp_move' => '<div class="wcp-move-multiple wcp-col" title="' . esc_html__('Move selected items', "folders") . '"><span class="dashicons dashicons-move"></span><div class="wcp-items"></div></div>',
2286
  ) + $defaults;
2287
  return $columns;
2288
  }
2339
  public function admin_menu()
2340
  {
2341
  // Add menu item for settings page
2342
+ $page_title = esc_html__('Folders', "folders");
2343
+ $menu_title = esc_html__('Folders Settings', "folders");
2344
  $capability = 'manage_options';
2345
  $menu_slug = 'wcp_folders_settings';
2346
  $callback = array($this, "wcp_folders_settings");
2352
  /* Do not Change Free/Pro Change for menu */
2353
  add_submenu_page(
2354
  $menu_slug,
2355
+ esc_html__('Upgrade to Pro', "folders"),
2356
+ esc_html__('Upgrade to Pro', "folders"),
2357
  'manage_options',
2358
  'wcp_folders_upgrade',
2359
  array($this, 'wcp_folders_upgrade_or_register')
includes/form.class.php CHANGED
@@ -11,8 +11,8 @@ class WCP_Forms {
11
 
12
  <div class="wcp-custom-form">
13
  <div class="form-title">
14
- <?php esc_html_e("Folders", WCP_FOLDER ) ?>
15
- <a href="javascript:;" class="add-new-folder" id="add-new-folder"><span class="folder-icon-create_new_folder"></span> <span><?php esc_html_e("New Folder", WCP_FOLDER ) ?></span></a>
16
  <span class="folder-loader-ajax">
17
  <img class="active" src="<?php echo esc_url(admin_url('/images/spinner.gif')); ?>" alt="">
18
  <svg id="successAnimation" fill="#F51366" class="animated" xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
@@ -26,10 +26,10 @@ class WCP_Forms {
26
  <div class="form-options">
27
  <ul>
28
  <li>
29
- <a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text"><?php esc_html_e("Rename", WCP_FOLDER ) ?></span> </a>
30
  </li>
31
  <li>
32
- <a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text"><?php esc_html_e("Delete", WCP_FOLDER ) ?></span> </a>
33
  </li>
34
  <li class="last">
35
  <a href="javascript:;" id="expand-collapse-list"><span class="icon folder-icon-expand_more"></span></a>
@@ -49,7 +49,7 @@ class WCP_Forms {
49
  $total_folders = $total;
50
  }
51
  ?>
52
- <span class="upgrade-message">You have used <span class='pink' id='current-folder'><?php echo esc_attr($total) ?></span>/<span id='total-folder'><?php echo esc_attr($total_folders) ?></span> Folders. <a class="pink" href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>"><?php esc_html_e("Upgrade", WCP_FOLDER) ?></a></span>
53
  <script>
54
  folderLimitation = <?php echo esc_attr($total_folders); ?>;
55
  </script>
11
 
12
  <div class="wcp-custom-form">
13
  <div class="form-title">
14
+ <?php esc_html_e("Folders", "folders") ?>
15
+ <a href="javascript:;" class="add-new-folder" id="add-new-folder"><span class="folder-icon-create_new_folder"></span> <span><?php esc_html_e("New Folder", "folders") ?></span></a>
16
  <span class="folder-loader-ajax">
17
  <img class="active" src="<?php echo esc_url(admin_url('/images/spinner.gif')); ?>" alt="">
18
  <svg id="successAnimation" fill="#F51366" class="animated" xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
26
  <div class="form-options">
27
  <ul>
28
  <li>
29
+ <a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text"><?php esc_html_e("Rename", "folders") ?></span> </a>
30
  </li>
31
  <li>
32
+ <a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text"><?php esc_html_e("Delete", "folders") ?></span> </a>
33
  </li>
34
  <li class="last">
35
  <a href="javascript:;" id="expand-collapse-list"><span class="icon folder-icon-expand_more"></span></a>
49
  $total_folders = $total;
50
  }
51
  ?>
52
+ <span class="upgrade-message">You have used <span class='pink' id='current-folder'><?php echo esc_attr($total) ?></span>/<span id='total-folder'><?php echo esc_attr($total_folders) ?></span> Folders. <a class="pink" href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>"><?php esc_html_e("Upgrade", "folders") ?></a></span>
53
  <script>
54
  folderLimitation = <?php echo esc_attr($total_folders); ?>;
55
  </script>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.3
6
- Stable tag: 2.3.5
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
@@ -138,6 +138,9 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
138
 
139
  == Changelog ==
140
 
 
 
 
141
  = 2.3.5 =
142
  Folder order when adding a media library file to posts/pages fix, and infrastructure improvments
143
 
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.3
6
+ Stable tag: 2.3.6
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
138
 
139
  == Changelog ==
140
 
141
+ = 2.3.6 =
142
+ Added translation support
143
+
144
  = 2.3.5 =
145
  Folder order when adding a media library file to posts/pages fix, and infrastructure improvments
146
 
templates/admin/admin-content.php CHANGED
@@ -122,10 +122,10 @@ if(!empty($post_type)) {
122
  <div class="sticky-wcp-custom-form">
123
  <?php echo $form_html ?>
124
  <div class="header-posts">
125
- <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_attr_e("All ".$title, WCP_FOLDER ) ?> <span class="total-count"><?php echo $total_posts ?></span></a>
126
  </div>
127
  <div class="un-categorised-items <?php echo esc_attr($active) ?>">
128
- <a href="javascript:;" class="un-categorized-posts"><?php esc_attr_e("Unassigned ".$title, WCP_FOLDER) ?> <span class="total-count total-empty"><?php echo $total_empty ?></span> </a>
129
  </div>
130
  </div>
131
  <div id="custom-scroll-menu">
@@ -144,17 +144,17 @@ if(!empty($post_type)) {
144
  <div class="popup-form-content">
145
  <form action="" method="post" id="save-folder-form">
146
  <div id="add-update-folder-title" class="add-update-folder-title">
147
- Add Folder
148
  </div>
149
  <div class="folder-form-input">
150
  <input id="add-update-folder-name" autocomplete="off" placeholder="Folder name">
151
  </div>
152
  <div class="folder-form-errors">
153
- <span class="dashicons dashicons-info"></span> Please enter folder name
154
  </div>
155
  <div class="folder-form-buttons">
156
- <button type="submit" class="form-submit-btn" id="save-folder-data" style="width: 106px">Submit</button>
157
- <a href="javascript:;" class="form-cancel-btn">Cancel</a>
158
  </div>
159
  </form>
160
  </div>
@@ -164,17 +164,17 @@ if(!empty($post_type)) {
164
  <div class="popup-form-content">
165
  <form action="" method="post" id="update-folder-form">
166
  <div id="update-folder-title" class="add-update-folder-title">
167
- Rename Folder
168
  </div>
169
  <div class="folder-form-input">
170
  <input id="update-folder-item-name" autocomplete="off" placeholder="Folder name">
171
  </div>
172
  <div class="folder-form-errors">
173
- <span class="dashicons dashicons-info"></span> Please enter folder name
174
  </div>
175
  <div class="folder-form-buttons">
176
- <button type="submit" class="form-submit-btn" id="update-folder-data" style="width: 106px">Submit</button>
177
- <a href="javascript:;" class="form-cancel-btn">Cancel</a>
178
  </div>
179
  </form>
180
  </div>
@@ -183,14 +183,14 @@ if(!empty($post_type)) {
183
  <div class="folder-popup-form" id="confirm-remove-folder">
184
  <div class="popup-form-content">
185
  <div class="add-update-folder-title" id="remove-folder-message">
186
- Are you sure you want to delete the selected folder?
187
  </div>
188
  <div class="folder-form-message" id="remove-folder-notice">
189
- Items in the folder will not be deleted.
190
  </div>
191
  <div class="folder-form-buttons">
192
- <a href="javascript:;" class="form-cancel-btn">No, Keep it</a>
193
- <a href="javascript:;" class="form-submit-btn" id="remove-folder-item">Yes, Delete it!</a>
194
  </div>
195
  </div>
196
  </div>
@@ -201,11 +201,11 @@ if(!empty($post_type)) {
201
 
202
  </div>
203
  <div class="folder-form-message">
204
- Unlock unlimited amount of folders by upgrading to one of our pro plans.
205
  </div>
206
  <div class="folder-form-buttons">
207
  <a href="javascript:;" class="form-cancel-btn">Cancel</a>
208
- <a href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>" target="_blank" class="form-submit-btn">See Pro Plans</a>
209
  </div>
210
  </div>
211
  </div>
@@ -216,7 +216,7 @@ if(!empty($post_type)) {
216
 
217
  </div>
218
  <div class="folder-form-buttons">
219
- <a href="javascript:;" class="form-cancel-btn">Close</a>
220
  </div>
221
  </div>
222
  </div>
122
  <div class="sticky-wcp-custom-form">
123
  <?php echo $form_html ?>
124
  <div class="header-posts">
125
+ <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_attr_e("All ".$title, "folders") ?> <span class="total-count"><?php echo $total_posts ?></span></a>
126
  </div>
127
  <div class="un-categorised-items <?php echo esc_attr($active) ?>">
128
+ <a href="javascript:;" class="un-categorized-posts"><?php esc_attr_e("Unassigned ".$title, "folders") ?> <span class="total-count total-empty"><?php echo $total_empty ?></span> </a>
129
  </div>
130
  </div>
131
  <div id="custom-scroll-menu">
144
  <div class="popup-form-content">
145
  <form action="" method="post" id="save-folder-form">
146
  <div id="add-update-folder-title" class="add-update-folder-title">
147
+ <?php esc_html_e("Add Folder", "folders") ?>
148
  </div>
149
  <div class="folder-form-input">
150
  <input id="add-update-folder-name" autocomplete="off" placeholder="Folder name">
151
  </div>
152
  <div class="folder-form-errors">
153
+ <span class="dashicons dashicons-info"></span> <?php esc_html_e("Please enter folder name", "folders") ?>
154
  </div>
155
  <div class="folder-form-buttons">
156
+ <button type="submit" class="form-submit-btn" id="save-folder-data" style="width: 106px"><?php esc_html_e("Submit", "folders") ?></button>
157
+ <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", "folders") ?></a>
158
  </div>
159
  </form>
160
  </div>
164
  <div class="popup-form-content">
165
  <form action="" method="post" id="update-folder-form">
166
  <div id="update-folder-title" class="add-update-folder-title">
167
+ <?php esc_html_e("Rename Folder", "folders") ?>
168
  </div>
169
  <div class="folder-form-input">
170
  <input id="update-folder-item-name" autocomplete="off" placeholder="Folder name">
171
  </div>
172
  <div class="folder-form-errors">
173
+ <span class="dashicons dashicons-info"></span> <?php esc_html_e("Please enter folder name", "folders") ?>
174
  </div>
175
  <div class="folder-form-buttons">
176
+ <button type="submit" class="form-submit-btn" id="update-folder-data" style="width: 106px"><?php esc_html_e("Submit", "folders") ?></button>
177
+ <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", "folders") ?></a>
178
  </div>
179
  </form>
180
  </div>
183
  <div class="folder-popup-form" id="confirm-remove-folder">
184
  <div class="popup-form-content">
185
  <div class="add-update-folder-title" id="remove-folder-message">
186
+ <?php esc_html_e("Are you sure you want to delete the selected folder?", "folders") ?>
187
  </div>
188
  <div class="folder-form-message" id="remove-folder-notice">
189
+ <?php esc_html_e("Items in the folder will not be deleted.", "folders") ?>
190
  </div>
191
  <div class="folder-form-buttons">
192
+ <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("No, Keep it", "folders") ?></a>
193
+ <a href="javascript:;" class="form-submit-btn" id="remove-folder-item"><?php esc_html_e("Yes, Delete it!", "folders") ?></a>
194
  </div>
195
  </div>
196
  </div>
201
 
202
  </div>
203
  <div class="folder-form-message">
204
+ <?php esc_html_e("Unlock unlimited amount of folders by upgrading to one of our pro plans.", "folders") ?>
205
  </div>
206
  <div class="folder-form-buttons">
207
  <a href="javascript:;" class="form-cancel-btn">Cancel</a>
208
+ <a href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>" target="_blank" class="form-submit-btn"><?php esc_html_e("See Pro Plans", "folders") ?></a>
209
  </div>
210
  </div>
211
  </div>
216
 
217
  </div>
218
  <div class="folder-form-buttons">
219
+ <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Close", "folders") ?></a>
220
  </div>
221
  </div>
222
  </div>
templates/admin/folder-deactivate-form.php CHANGED
@@ -305,21 +305,21 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
305
  <div class="folder-serveypanel">
306
  <form action="#" method="post" id="folder-deactivate-form">
307
  <div class="folder-popup-header">
308
- <h2><?php esc_html_e('Quick feedback about Folders', WCP_FOLDER); ?> 🙏</h2>
309
  </div>
310
  <div class="folder-popup-body">
311
- <h3><?php esc_html_e('Your feedback will help us improve the product, please tell us why did you decide to deactivate Folders :)', WCP_FOLDER); ?></h3>
312
  <div class="form-control">
313
- <input type="email" value="<?php echo get_option( 'admin_email' ) ?>" placeholder="<?php echo _e("Email address", WCP_FOLDER) ?>" id="folder-deactivate-email_id">
314
  </div>
315
  <div class="form-control">
316
  <label></label>
317
- <textarea placeholder="<?php esc_html_e("Your comment", WCP_FOLDER) ?>" id="folder-comment"></textarea>
318
  </div>
319
- <?php esc_html_e("Having any problem with the Folders plugins?", WCP_FOLDER) ?><a class='folder-deactivate-button' href='javascript:;'><?php esc_html_e("Click here", WCP_FOLDER) ?></a><?php esc_html_e(" to contact our support now", WCP_FOLDER) ?>
320
  </div>
321
  <div class="folder-popup-footer">
322
- <label class="folder-anonymous"><input type="checkbox"/><?php esc_html_e('Anonymous feedback', WCP_FOLDER); ?>
323
  </label>
324
  <input type="button" class="button button-secondary button-skip folder-popup-skip-feedback" value="Skip &amp; Deactivate">
325
 
@@ -327,8 +327,8 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
327
  <span class="folder-spinner">
328
  <img src="<?php echo esc_url(admin_url('/images/spinner.gif')); ?>" alt="">
329
  </span>
330
- <input type="submit" class="button button-secondary button-deactivate folder-popup-allow-deactivate" value="Submit &amp; Deactivate" disabled="disabled">
331
- <a href="#" class="button button-primary folder-popup-button-close"><?php esc_attr_e('Cancel', WCP_FOLDER); ?></a>
332
  </div>
333
  </div>
334
  </form>
305
  <div class="folder-serveypanel">
306
  <form action="#" method="post" id="folder-deactivate-form">
307
  <div class="folder-popup-header">
308
+ <h2><?php esc_html_e('Quick feedback about Folders', "folders"); ?> 🙏</h2>
309
  </div>
310
  <div class="folder-popup-body">
311
+ <h3><?php esc_html_e('Your feedback will help us improve the product, please tell us why did you decide to deactivate Folders :)', "folders"); ?></h3>
312
  <div class="form-control">
313
+ <input type="email" value="<?php echo get_option( 'admin_email' ) ?>" placeholder="<?php esc_html_e("Email address", "folders") ?>" id="folder-deactivate-email_id">
314
  </div>
315
  <div class="form-control">
316
  <label></label>
317
+ <textarea placeholder="<?php esc_html_e("Your comment", "folders") ?>" id="folder-comment"></textarea>
318
  </div>
319
+ <?php esc_html_e("Having any problem with the Folders plugins?", "folders") ?><a class='folder-deactivate-button' href='javascript:;'><?php esc_html_e("Click here", "folders") ?></a><?php esc_html_e(" to contact our support now", "folders") ?>
320
  </div>
321
  <div class="folder-popup-footer">
322
+ <label class="folder-anonymous"><input type="checkbox"/><?php esc_html_e('Anonymous feedback', "folders"); ?>
323
  </label>
324
  <input type="button" class="button button-secondary button-skip folder-popup-skip-feedback" value="Skip &amp; Deactivate">
325
 
327
  <span class="folder-spinner">
328
  <img src="<?php echo esc_url(admin_url('/images/spinner.gif')); ?>" alt="">
329
  </span>
330
+ <input type="submit" class="button button-secondary button-deactivate folder-popup-allow-deactivate" value="<?php esc_attr_e('Submit & Deactivate', "folders"); ?>" disabled="disabled">
331
+ <a href="#" class="button button-primary folder-popup-button-close"><?php esc_attr_e('Cancel', "folders"); ?></a>
332
  </div>
333
  </div>
334
  </form>
templates/admin/general-settings.php CHANGED
@@ -90,7 +90,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
90
 
91
  </div>
92
  <div class="wrap">
93
- <h1><?php esc_attr_e( 'Folders Settings', WCP_FOLDER ); ?></h1>
94
  <form action="options.php" method="post" id="setting-form">
95
  <?php
96
  settings_fields('folders_settings');
@@ -119,13 +119,13 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
119
  ?>
120
  <tr>
121
  <th width="220px">
122
- <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?></label>
123
  </th>
124
  <td>
125
  <input type="checkbox" class="folder-select" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
126
  </td>
127
  <th class="default-folder">
128
- <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', WCP_FOLDER ) ?></label>
129
  </th>
130
  <td>
131
  <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
@@ -145,17 +145,17 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
145
  } else { ?>
146
  <tr>
147
  <th>
148
- <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?></label>
149
  </th>
150
  <td>
151
  <input type="checkbox" class="folder-select" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
152
  </td>
153
  <th class="default-folder">
154
- <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', WCP_FOLDER ) ?></label>
155
  </th>
156
  <td>
157
  <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
158
- <option value="">All <?php echo esc_attr($post_type->label) ?> Folder</option>
159
  <option value="-1" <?php echo ($selected_id == -1)?"selected":"" ?>>Unassigned <?php echo esc_attr($post_type->label) ?></option>
160
  <?php
161
  if(isset($terms_data[$post_type->name]) && !empty($terms_data[$post_type->name])) {
@@ -170,7 +170,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
170
  <?php } endforeach; ?>
171
  <tr>
172
  <th>
173
- <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Show Folders in Menu:', WCP_FOLDER ); ?></label>
174
  </th>
175
  <td>
176
  <?php $val = get_option("folders_show_in_menu"); ?>
@@ -192,7 +192,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
192
  $total_folders = $total;
193
  }
194
  ?>
195
- <span class="upgrade-message">You have used <span class='pink'><?php echo esc_attr($total) ?></span>/<?php echo esc_attr($total_folders) ?> Folders. <a class="pink" href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>"><?php esc_html_e("Upgrade", WCP_FOLDER) ?></a></span>
196
  </td>
197
  </tr>
198
 
@@ -210,7 +210,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
210
  </div>
211
  </div>
212
  <div class="accordion">
213
- <div class="accordion-header">Customize Folders <span class="dashicons dashicons-arrow-down-alt2"></span></div>
214
  <div class="accordion-content">
215
  <div class="accordion-left">
216
  <table class="form-table">
@@ -219,7 +219,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
219
  ?>
220
  <tr>
221
  <th width="220px">
222
- <label for="new_folder_color" >New Folder button color</label>
223
  </th>
224
  <td width="32px">
225
  <input type="text" class="color-field" name="customize_folders[new_folder_color]" id="new_folder_color" value="<?php echo esc_attr($color) ?>" />
@@ -233,7 +233,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
233
  ?>
234
  <tr>
235
  <th>
236
- <label for="bulk_organize_button_color" >Bulk Organize button color</label>
237
  </th>
238
  <td>
239
  <input type="text" class="color-field" name="customize_folders[bulk_organize_button_color]" id="bulk_organize_button_color" value="<?php echo esc_attr($color) ?>" />
@@ -244,7 +244,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
244
  ?>
245
  <tr>
246
  <th>
247
- <label for="dropdown_color" >Dropdown color</label>
248
  </th>
249
  <td>
250
  <input type="text" class="color-field" name="customize_folders[dropdown_color]" id="dropdown_color" value="<?php echo esc_attr($color) ?>" />
@@ -255,7 +255,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
255
  ?>
256
  <tr>
257
  <th>
258
- <label for="folder_bg_color" >Folders background color</label>
259
  </th>
260
  <td>
261
  <input type="text" class="color-field" name="customize_folders[folder_bg_color]" id="folder_bg_color" value="<?php echo esc_attr($color) ?>" />
@@ -263,7 +263,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
263
  </tr>
264
  <tr>
265
  <th>
266
- <label for="folder_font" >Folders font</label>
267
  </th>
268
  <td colspan="2">
269
  <?php
@@ -290,7 +290,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
290
  </tr>
291
  <tr>
292
  <th>
293
- <label for="folder_size" >Folders size</label>
294
  </th>
295
  <td colspan="2">
296
  <?php
@@ -315,27 +315,27 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
315
  </div>
316
  <div class="accordion-right">
317
  <div class="preview-text">
318
- Preview
319
- <div class="preview-text-info">See the full functionality on your media library, posts, pages, and custom posts</div>
320
  </div>
321
  <div class="preview-inner-box">
322
  <div class="preview-box">
323
  <div class="wcp-custom-form">
324
  <div class="form-title">
325
- Folders
326
  <a href="javascript:;" class="add-new-folder" id="add-new-folder">
327
  <span class="folder-icon-create_new_folder"></span>
328
- <span>New Folder</span>
329
  </a>
330
  <div class="clear"></div>
331
  </div>
332
  <div class="form-options">
333
  <ul>
334
  <li>
335
- <a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text">Rename</span> </a>
336
  </li>
337
  <li>
338
- <a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text">Delete</span> </a>
339
  </li>
340
  <li class="last">
341
  <a href="javascript:;" id="expand-collapse-list" class="folder-tooltip" data-tooltip="Expand"><span class="icon folder-icon-expand_more"></span></a>
@@ -344,26 +344,26 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
344
  </div>
345
  </div>
346
  <div class="header-posts">
347
- <a href="javascript:;" class="all-posts active-item"><span class="wcp-icon folder-icon-insert_drive_file"></span> All Files <span class="total-count">0</span></a>
348
  </div>
349
  <div class="un-categorised-items ui-droppable">
350
- <a href="javascript:;" class="un-categorized-posts">Unassigned Files <span class="total-count total-empty">0</span> </a>
351
  </div>
352
 
353
  <ul class="folder-list">
354
- <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span>Folder 1</span></a></li>
355
- <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span>Folder 2</span></a></li>
356
- <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span>Folder 3</span></a></li>
357
  </ul>
358
  </div>
359
  <div class="media-buttons">
360
  <select class="media-select">
361
- <option>All Files</option>
362
- <option>Folder 1</option>
363
- <option>Folder 2</option>
364
- <option>Folder 3</option>
365
  </select>
366
- <button type="button" class="button organize-button">Bulk Organize</button>
367
  <div style="clear: both;"></div>
368
  </div>
369
  </div>
90
 
91
  </div>
92
  <div class="wrap">
93
+ <h1><?php esc_attr_e( 'Folders Settings', "folders"); ?></h1>
94
  <form action="options.php" method="post" id="setting-form">
95
  <?php
96
  settings_fields('folders_settings');
119
  ?>
120
  <tr>
121
  <th width="220px">
122
+ <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', "folders")." ".esc_html_e($post_type->label); ?></label>
123
  </th>
124
  <td>
125
  <input type="checkbox" class="folder-select" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
126
  </td>
127
  <th class="default-folder">
128
+ <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', "folders") ?></label>
129
  </th>
130
  <td>
131
  <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
145
  } else { ?>
146
  <tr>
147
  <th>
148
+ <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', "folders")." ".esc_html_e($post_type->label); ?></label>
149
  </th>
150
  <td>
151
  <input type="checkbox" class="folder-select" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
152
  </td>
153
  <th class="default-folder">
154
+ <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', "folders") ?></label>
155
  </th>
156
  <td>
157
  <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
158
+ <option value="">All <?php echo esc_attr($post_type->label) ?> <?php esc_html_e( 'Folder:', "folders"); ?></option>
159
  <option value="-1" <?php echo ($selected_id == -1)?"selected":"" ?>>Unassigned <?php echo esc_attr($post_type->label) ?></option>
160
  <?php
161
  if(isset($terms_data[$post_type->name]) && !empty($terms_data[$post_type->name])) {
170
  <?php } endforeach; ?>
171
  <tr>
172
  <th>
173
+ <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Show Folders in Menu:', "folders"); ?></label>
174
  </th>
175
  <td>
176
  <?php $val = get_option("folders_show_in_menu"); ?>
192
  $total_folders = $total;
193
  }
194
  ?>
195
+ <span class="upgrade-message">You have used <span class='pink'><?php echo esc_attr($total) ?></span>/<?php echo esc_attr($total_folders) ?> Folders. <a class="pink" href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>"><?php esc_html_e("Upgrade", "folders") ?></a></span>
196
  </td>
197
  </tr>
198
 
210
  </div>
211
  </div>
212
  <div class="accordion">
213
+ <div class="accordion-header"><?php esc_html_e( 'Customize Folders', "folders"); ?> <span class="dashicons dashicons-arrow-down-alt2"></span></div>
214
  <div class="accordion-content">
215
  <div class="accordion-left">
216
  <table class="form-table">
219
  ?>
220
  <tr>
221
  <th width="220px">
222
+ <label for="new_folder_color" ><?php esc_html_e( 'New Folder button color', "folders"); ?></label>
223
  </th>
224
  <td width="32px">
225
  <input type="text" class="color-field" name="customize_folders[new_folder_color]" id="new_folder_color" value="<?php echo esc_attr($color) ?>" />
233
  ?>
234
  <tr>
235
  <th>
236
+ <label for="bulk_organize_button_color" ><?php esc_html_e( 'Bulk Organize button color', "folders"); ?></label>
237
  </th>
238
  <td>
239
  <input type="text" class="color-field" name="customize_folders[bulk_organize_button_color]" id="bulk_organize_button_color" value="<?php echo esc_attr($color) ?>" />
244
  ?>
245
  <tr>
246
  <th>
247
+ <label for="dropdown_color" ><?php esc_html_e( 'Dropdown color', "folders"); ?></label>
248
  </th>
249
  <td>
250
  <input type="text" class="color-field" name="customize_folders[dropdown_color]" id="dropdown_color" value="<?php echo esc_attr($color) ?>" />
255
  ?>
256
  <tr>
257
  <th>
258
+ <label for="folder_bg_color" ><?php esc_html_e( 'Folders background color', "folders"); ?></label>
259
  </th>
260
  <td>
261
  <input type="text" class="color-field" name="customize_folders[folder_bg_color]" id="folder_bg_color" value="<?php echo esc_attr($color) ?>" />
263
  </tr>
264
  <tr>
265
  <th>
266
+ <label for="folder_font" ><?php esc_html_e( 'Folders font', "folders"); ?></label>
267
  </th>
268
  <td colspan="2">
269
  <?php
290
  </tr>
291
  <tr>
292
  <th>
293
+ <label for="folder_size" ><?php esc_html_e( 'Folders size', "folders"); ?></label>
294
  </th>
295
  <td colspan="2">
296
  <?php
315
  </div>
316
  <div class="accordion-right">
317
  <div class="preview-text">
318
+ <?php esc_html_e( 'Preview', "folders"); ?>
319
+ <div class="preview-text-info"><?php esc_html_e( 'See the full functionality on your media library, posts, pages, and custom posts', "folders"); ?></div>
320
  </div>
321
  <div class="preview-inner-box">
322
  <div class="preview-box">
323
  <div class="wcp-custom-form">
324
  <div class="form-title">
325
+ <?php esc_html_e( 'Folders', "folders"); ?>
326
  <a href="javascript:;" class="add-new-folder" id="add-new-folder">
327
  <span class="folder-icon-create_new_folder"></span>
328
+ <span><?php esc_html_e( 'New Folder', "folders"); ?></span>
329
  </a>
330
  <div class="clear"></div>
331
  </div>
332
  <div class="form-options">
333
  <ul>
334
  <li>
335
+ <a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text"><?php esc_html_e( 'Rename', "folders"); ?></span> </a>
336
  </li>
337
  <li>
338
+ <a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text"><?php esc_html_e( 'Delete', "folders"); ?></span> </a>
339
  </li>
340
  <li class="last">
341
  <a href="javascript:;" id="expand-collapse-list" class="folder-tooltip" data-tooltip="Expand"><span class="icon folder-icon-expand_more"></span></a>
344
  </div>
345
  </div>
346
  <div class="header-posts">
347
+ <a href="javascript:;" class="all-posts active-item"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_html_e( 'All Files', "folders"); ?> <span class="total-count">0</span></a>
348
  </div>
349
  <div class="un-categorised-items ui-droppable">
350
+ <a href="javascript:;" class="un-categorized-posts"><?php esc_html_e( 'Unassigned Files', "folders"); ?> <span class="total-count total-empty">0</span> </a>
351
  </div>
352
 
353
  <ul class="folder-list">
354
+ <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span><?php esc_html_e( 'Folder 1', "folders"); ?></span></a></li>
355
+ <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span><?php esc_html_e( 'Folder 2', "folders"); ?></span></a></li>
356
+ <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span><?php esc_html_e( 'Folder 3', "folders"); ?></span></a></li>
357
  </ul>
358
  </div>
359
  <div class="media-buttons">
360
  <select class="media-select">
361
+ <option><?php esc_html_e( 'All Files', "folders"); ?></option>
362
+ <option><?php esc_html_e( 'Folder 1', "folders"); ?></option>
363
+ <option><?php esc_html_e( 'Folder 2', "folders"); ?></option>
364
+ <option><?php esc_html_e( 'Folder 3', "folders"); ?></option>
365
  </select>
366
+ <button type="button" class="button organize-button"><?php esc_html_e( 'Bulk Organize:', "folders"); ?></button>
367
  <div style="clear: both;"></div>
368
  </div>
369
  </div>
templates/admin/help.php CHANGED
@@ -7,15 +7,15 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
7
  <b>Gal Dubinski</b> Co-Founder at Premio
8
  </div>
9
  <div class="folder-help-content">
10
- <p><?php esc_html_e("Hello! Are you experiencing any problems with Folders? Please let me know :)", WCP_FOLDER) ?></p>
11
  <div class="folder-form-field">
12
- <input type="text" name="user_email" id="user_email" placeholder="<?php esc_html_e("Email", WCP_FOLDER) ?>">
13
  </div>
14
  <div class="folder-form-field">
15
- <textarea type="text" name="textarea_text" id="textarea_text" placeholder="<?php esc_html_e("How can I help you?", WCP_FOLDER) ?>"></textarea>
16
  </div>
17
  <div class="form-button">
18
- <button type="submit" class="folder-help-button" ><?php esc_html_e("Chat") ?></button>
19
  <input type="hidden" name="action" value="wcp_folder_send_message_to_owner" >
20
  <input type="hidden" id="folder_help_nonce" name="folder_help_nonce" value="<?php echo esc_attr(wp_create_nonce('wcp_folder_help_nonce')) ?>" >
21
  </div>
@@ -24,13 +24,13 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
24
  </div>
25
  <div class="folder-help-btn">
26
  <!-- Free/Pro Only URL Change -->
27
- <a class="folder-help-tooltip" href="javascript:;"><img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/owner.png") ?>" alt="<?php esc_html_e("Need help?", WCP_FOLDER) ?>" /></a>
28
  </div>
29
  <script>
30
  jQuery(document).ready(function(){
31
  jQuery("#folder-help-form").submit(function(){
32
  jQuery(".folder-help-button").attr("disabled",true);
33
- jQuery(".folder-help-button").text("<?php esc_html_e("Sending Request...") ?>");
34
  formData = jQuery(this).serialize();
35
  jQuery.ajax({
36
  url: "<?php echo esc_url(admin_url( 'admin-ajax.php' )) ?>",
@@ -43,19 +43,19 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
43
  responseArray = jQuery.parseJSON(responseText);
44
  if(responseArray.error == 1) {
45
  jQuery(".folder-help-button").attr("disabled",false);
46
- jQuery(".folder-help-button").text("<?php esc_html_e("Chat", WCP_FOLDER) ?>");
47
  for(i=0;i<responseArray.errors.length;i++) {
48
  jQuery("#"+responseArray.errors[i]['key']).addClass("input-error");
49
  jQuery("#"+responseArray.errors[i]['key']).after('<span class="error-message">'+responseArray.errors[i]['message']+'</span>');
50
  }
51
  } else if(responseArray.status == 1) {
52
- jQuery(".folder-help-button").text("<?php esc_html_e("Done!", WCP_FOLDER) ?>");
53
  setTimeout(function(){
54
  jQuery(".folder-help-header").remove();
55
- jQuery(".folder-help-content").html("<p class='success-p'><?php esc_html_e("Your message is sent successfully.", WCP_FOLDER) ?></p>");
56
  },1000);
57
  } else if(responseArray.status == 0) {
58
- jQuery(".folder-help-content").html("<p class='error-p'><?php esc_html_e("There is some problem in sending request. Please send us mail on <a href='mailto:contact@premio.io'>contact@premio.io</a>", WCP_FOLDER) ?></p>");
59
  }
60
  }
61
  });
7
  <b>Gal Dubinski</b> Co-Founder at Premio
8
  </div>
9
  <div class="folder-help-content">
10
+ <p><?php esc_html_e("Hello! Are you experiencing any problems with Folders? Please let me know :)", "folders") ?></p>
11
  <div class="folder-form-field">
12
+ <input type="text" name="user_email" id="user_email" placeholder="<?php esc_html_e("Email", "folders") ?>">
13
  </div>
14
  <div class="folder-form-field">
15
+ <textarea type="text" name="textarea_text" id="textarea_text" placeholder="<?php esc_html_e("How can I help you?", "folders") ?>"></textarea>
16
  </div>
17
  <div class="form-button">
18
+ <button type="submit" class="folder-help-button" ><?php esc_html_e("Chat", "folders") ?></button>
19
  <input type="hidden" name="action" value="wcp_folder_send_message_to_owner" >
20
  <input type="hidden" id="folder_help_nonce" name="folder_help_nonce" value="<?php echo esc_attr(wp_create_nonce('wcp_folder_help_nonce')) ?>" >
21
  </div>
24
  </div>
25
  <div class="folder-help-btn">
26
  <!-- Free/Pro Only URL Change -->
27
+ <a class="folder-help-tooltip" href="javascript:;"><img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/owner.png") ?>" alt="<?php esc_html_e("Need help?", "folders") ?>" /></a>
28
  </div>
29
  <script>
30
  jQuery(document).ready(function(){
31
  jQuery("#folder-help-form").submit(function(){
32
  jQuery(".folder-help-button").attr("disabled",true);
33
+ jQuery(".folder-help-button").text("<?php esc_html_e("Sending Request...", "folders") ?>");
34
  formData = jQuery(this).serialize();
35
  jQuery.ajax({
36
  url: "<?php echo esc_url(admin_url( 'admin-ajax.php' )) ?>",
43
  responseArray = jQuery.parseJSON(responseText);
44
  if(responseArray.error == 1) {
45
  jQuery(".folder-help-button").attr("disabled",false);
46
+ jQuery(".folder-help-button").text("<?php esc_html_e("Chat", "folders") ?>");
47
  for(i=0;i<responseArray.errors.length;i++) {
48
  jQuery("#"+responseArray.errors[i]['key']).addClass("input-error");
49
  jQuery("#"+responseArray.errors[i]['key']).after('<span class="error-message">'+responseArray.errors[i]['message']+'</span>');
50
  }
51
  } else if(responseArray.status == 1) {
52
+ jQuery(".folder-help-button").text("<?php esc_html_e("Done!", "folders") ?>");
53
  setTimeout(function(){
54
  jQuery(".folder-help-header").remove();
55
+ jQuery(".folder-help-content").html("<p class='success-p'><?php esc_html_e("Your message is sent successfully.", "folders") ?></p>");
56
  },1000);
57
  } else if(responseArray.status == 0) {
58
+ jQuery(".folder-help-content").html("<p class='error-p'><?php esc_html_e("There is some problem in sending request. Please send us mail on", "folders") ?> <a href='mailto:contact@premio.io'>contact@premio.io</a></p>");
59
  }
60
  }
61
  });
templates/admin/update.php CHANGED
@@ -65,14 +65,14 @@
65
  <div class="updates-form-form" >
66
  <div class="popup-form-content">
67
  <div id="add-update-title" class="add-update-title">
68
- Would you like to get feature updates for Folders in real-time?
69
  </div>
70
  <div class="folder-update-input">
71
  <input id="folder_update_email" autocomplete="off" value="<?php echo get_option( 'admin_email' ) ?>" placeholder="Email address">
72
  </div>
73
  <div class="updates-content-buttons">
74
- <button href="javascript:;" class="button button-primary form-submit-btn yes">Yes, I want</button>
75
- <button href="javascript:;" class="button button-secondary form-cancel-btn no">Skip</button>
76
  <div style="clear: both"></div>
77
  </div>
78
  <input type="hidden" id="folder_update_status" value="<?php echo wp_create_nonce("folder_update_status") ?>">
65
  <div class="updates-form-form" >
66
  <div class="popup-form-content">
67
  <div id="add-update-title" class="add-update-title">
68
+ <?php esc_html_e("Would you like to get feature updates for Folders in real-time?", "folders"); ?>
69
  </div>
70
  <div class="folder-update-input">
71
  <input id="folder_update_email" autocomplete="off" value="<?php echo get_option( 'admin_email' ) ?>" placeholder="Email address">
72
  </div>
73
  <div class="updates-content-buttons">
74
+ <button href="javascript:;" class="button button-primary form-submit-btn yes"><?php esc_html_e("Yes, I want", "folders") ?></button>
75
+ <button href="javascript:;" class="button button-secondary form-cancel-btn no"><?php esc_html_e("Skip", "folders") ?></button>
76
  <div style="clear: both"></div>
77
  </div>
78
  <input type="hidden" id="folder_update_status" value="<?php echo wp_create_nonce("folder_update_status") ?>">
templates/admin/upgrade-to-pro.php CHANGED
@@ -8,25 +8,25 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
8
  <div class="modal-upgrade upgrade-block" id="folder-modal">
9
  <div class="easy-modal-inner">
10
  <div class="modal__wrap">
11
- <p class="udner-title"> <strong class="text-primary"><?php esc_html_e('Unlock All Features', WCP_FOLDER); ?></strong> </p>
12
  <div id="rpt_pricr" class="rpt_plans rpt_3_plans rpt_style_basic">
13
  <div class="">
14
  <div class="rpt_plan rpt_plan_0 ">
15
- <div style="text-align:left;" class="rpt_title rpt_title_0">Basic</div>
16
  <div class="rpt_head rpt_head_0">
17
  <div class="rpt_description rpt_description_0">
18
- <?php esc_html_e('For small website owners', WCP_FOLDER); ?>
19
  </div>
20
  <div class="rpt_price rpt_price_0">$25</div>
21
  <div class="rpt_description rpt_description_0 rpt_desc">
22
- <?php esc_html_e('Per year. Renewals for 25% off', WCP_FOLDER); ?>
23
  </div>
24
  <div style="clear:both;"></div>
25
  </div>
26
  <div class="rpt_features rpt_features_0">
27
- <div class="rpt_feature rpt_feature_0-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 1 domain', WCP_FOLDER); ?></span><?php esc_html_e('1 website', WCP_FOLDER); ?> <span class="rpt_tooltip_plus"> +</span></a> </div>
28
  <div class="rpt_feature rpt_feature_1-1">
29
- <?php esc_html_e('Organize Pages, Posts and Media files', WCP_FOLDER); ?>
30
  </div>
31
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
32
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
@@ -34,38 +34,38 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
34
  <div class="rpt_feature rpt_feature_0-5">
35
  <select data-key="0" class="multiple-options">
36
  <option data-header="Renewals for 25% off" data-price="25" value="<?php echo esc_url($pro_url."1") ?>">
37
- <?php esc_html_e("Updates & support for 1 year") ?>
38
  </option>
39
  <option data-header="For 3 years" data-price="49" value="<?php echo esc_url($pro_url."4") ?>">
40
- <?php esc_html_e("Updates & support for 3 years") ?>
41
  </option>
42
  <option data-header="For lifetime" data-price="79" value="<?php echo esc_url($pro_url."5") ?>">
43
- <?php esc_html_e("Updates & support for lifetime") ?>
44
  </option>
45
  </select>
46
  </div>
47
  </div>
48
  <div style="clear:both;"></div>
49
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=1" class="rpt_foot rpt_foot_0">
50
- <?php esc_html_e('Buy now', WCP_FOLDER); ?>
51
  </a>
52
  </div>
53
  <div class="rpt_plan rpt_plan_1 rpt_recommended_plan ">
54
- <div style="text-align:left;" class="rpt_title rpt_title_1">Plus<img class="rpt_recommended" src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/rpt_recommended.png") ?>" style="top: 27px;"></div>
55
  <div class="rpt_head rpt_head_1">
56
  <div class="rpt_description rpt_description_1">
57
- <?php esc_html_e('For businesses with multiple websites', WCP_FOLDER); ?>
58
  </div>
59
  <div class="rpt_price rpt_price_1">$59</div>
60
  <div class="rpt_description rpt_description_0 rpt_desc">
61
- <?php esc_html_e('Per year. Renewals for 25% off', WCP_FOLDER); ?>
62
  </div>
63
  <div style="clear:both;"></div>
64
  </div>
65
  <div class="rpt_features rpt_features_1">
66
- <div class="rpt_feature rpt_feature_1-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 5 domains', WCP_FOLDER); ?></span><?php esc_html_e('5 website', WCP_FOLDER); ?><span class="rpt_tooltip_plus"> +</span></a> </div>
67
  <div class="rpt_feature rpt_feature_1-1">
68
- <?php esc_html_e('Organize Pages, Posts and Media files', WCP_FOLDER); ?>
69
  </div>
70
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
71
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
@@ -73,40 +73,40 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
73
  <div class="rpt_feature rpt_feature_0-5">
74
  <select data-key="0" class="multiple-options">
75
  <option data-header="Renewals for 25% off" data-price="59" value="<?php echo esc_url($pro_url."2") ?>">
76
- <?php esc_html_e("Updates & support for 1 year") ?>
77
  </option>
78
  <option data-header="For 3 years" data-price="99" value="<?php echo esc_url($pro_url."6") ?>">
79
- <?php esc_html_e("Updates & support for 3 years") ?>
80
  </option>
81
  <option data-header="For lifetime" data-price="149" value="<?php echo esc_url($pro_url."7") ?>">
82
- <?php esc_html_e("Updates & support for lifetime") ?>
83
  </option>
84
  </select>
85
  </div>
86
  </div>
87
  <div style="clear:both;"></div>
88
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=2" class="rpt_foot rpt_foot_1">
89
- <?php esc_html_e('Buy now', WCP_FOLDER); ?>
90
  </a>
91
  </div>
92
  <div class="rpt_plan rpt_plan_2 ">
93
  <div style="text-align:left;" class="rpt_title rpt_title_2">
94
- <?php esc_html_e('Agency', WCP_FOLDER); ?>
95
  </div>
96
  <div class="rpt_head rpt_head_2">
97
  <div class="rpt_description rpt_description_2">
98
- <?php esc_html_e('For agencies who manage clients', WCP_FOLDER); ?>
99
  </div>
100
  <div class="rpt_price rpt_price_2">$99</div>
101
  <div class="rpt_description rpt_description_0 rpt_desc">
102
- <?php esc_html_e('Per year. Renewals for 25% off', WCP_FOLDER); ?>
103
  </div>
104
  <div style="clear:both;"></div>
105
  </div>
106
  <div class="rpt_features rpt_features_2">
107
- <div class="rpt_feature rpt_feature_2-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 50 domains', WCP_FOLDER); ?></span><?php esc_html_e('50 website', WCP_FOLDER); ?><span class="rpt_tooltip_plus"> +</span></a> </div>
108
  <div class="rpt_feature rpt_feature_1-1">
109
- <?php esc_html_e('Organize Pages, Posts and Media files', WCP_FOLDER); ?>
110
  </div>
111
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
112
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
@@ -114,20 +114,20 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
114
  <div class="rpt_feature rpt_feature_0-5">
115
  <select data-key="0" class="multiple-options">
116
  <option data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">
117
- <?php esc_html_e("Updates & support for 1 year") ?>
118
  </option>
119
  <option data-header="For 3 years" data-price="179" value="<?php echo esc_url($pro_url."11") ?>">
120
- <?php esc_html_e("Updates & support for 3 years") ?>
121
  </option>
122
  <option data-header="For lifetime" data-price="249" value="<?php echo esc_url($pro_url."12") ?>">
123
- <?php esc_html_e("Updates & support for lifetime") ?>
124
  </option>
125
  </select>
126
  </div>
127
  </div>
128
  <div style="clear:both;"></div>
129
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=10" class="rpt_foot rpt_foot_2">
130
- <?php esc_html_e('Buy now', WCP_FOLDER); ?>
131
  </a>
132
  </div>
133
  </div>
@@ -136,10 +136,10 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
136
  <div class="text-center">
137
  <form method="post" action="https://www.paypal.com/cgi-bin/webscr">
138
  <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
139
- <?php esc_html_e("30 days money back guaranteed", WCP_FOLDER); ?>
140
  </p>
141
  <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
142
- <?php esc_html_e("The plugin will always keep working even if you don't renew your license", WCP_FOLDER); ?>
143
  </p>
144
  </form>
145
  <div class="payments">
@@ -150,9 +150,9 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
150
  <div class="folder-testimonial">
151
  <div class="testimonial-image"> <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/client-image.jpg") ?>"> </div>
152
  <div class="testimonial-data">
153
- <div class="testimonial-title">A brilliant solution!</div>
154
- <div class="testimonial-desc">I’ve used other folder plug-ins for my WordPress media files, but Folders is better than any of them. An uncluttered interface, intuitive to use, allows drag-and-drop and allows subfolders: exactly what I needed in a media library folder plug-in. I can’t believe it’s free!</div>
155
- <div class="testimonial-author">- Trevor Jordan</div>
156
  </div>
157
  </div>
158
  </div>
8
  <div class="modal-upgrade upgrade-block" id="folder-modal">
9
  <div class="easy-modal-inner">
10
  <div class="modal__wrap">
11
+ <p class="udner-title"> <strong class="text-primary"><?php esc_html_e('Unlock All Features', "folders"); ?></strong> </p>
12
  <div id="rpt_pricr" class="rpt_plans rpt_3_plans rpt_style_basic">
13
  <div class="">
14
  <div class="rpt_plan rpt_plan_0 ">
15
+ <div style="text-align:left;" class="rpt_title rpt_title_0"><?php esc_html_e("Basic", "folders") ?></div>
16
  <div class="rpt_head rpt_head_0">
17
  <div class="rpt_description rpt_description_0">
18
+ <?php esc_html_e('For small website owners', "folders"); ?>
19
  </div>
20
  <div class="rpt_price rpt_price_0">$25</div>
21
  <div class="rpt_description rpt_description_0 rpt_desc">
22
+ <?php esc_html_e('Per year. Renewals for 25% off', "folders"); ?>
23
  </div>
24
  <div style="clear:both;"></div>
25
  </div>
26
  <div class="rpt_features rpt_features_0">
27
+ <div class="rpt_feature rpt_feature_0-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 1 domain', "folders"); ?></span><?php esc_html_e('1 website', "folders"); ?> <span class="rpt_tooltip_plus"> +</span></a> </div>
28
  <div class="rpt_feature rpt_feature_1-1">
29
+ <?php esc_html_e('Organize Pages, Posts and Media files', "folders"); ?>
30
  </div>
31
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
32
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
34
  <div class="rpt_feature rpt_feature_0-5">
35
  <select data-key="0" class="multiple-options">
36
  <option data-header="Renewals for 25% off" data-price="25" value="<?php echo esc_url($pro_url."1") ?>">
37
+ <?php esc_html_e("Updates & support for 1 year", "folders") ?>
38
  </option>
39
  <option data-header="For 3 years" data-price="49" value="<?php echo esc_url($pro_url."4") ?>">
40
+ <?php esc_html_e("Updates & support for 3 years", "folders") ?>
41
  </option>
42
  <option data-header="For lifetime" data-price="79" value="<?php echo esc_url($pro_url."5") ?>">
43
+ <?php esc_html_e("Updates & support for lifetime", "folders") ?>
44
  </option>
45
  </select>
46
  </div>
47
  </div>
48
  <div style="clear:both;"></div>
49
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=1" class="rpt_foot rpt_foot_0">
50
+ <?php esc_html_e('Buy now', "folders"); ?>
51
  </a>
52
  </div>
53
  <div class="rpt_plan rpt_plan_1 rpt_recommended_plan ">
54
+ <div style="text-align:left;" class="rpt_title rpt_title_1"><?php esc_html_e("Plus", "folders") ?><img class="rpt_recommended" src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/rpt_recommended.png") ?>" style="top: 27px;"></div>
55
  <div class="rpt_head rpt_head_1">
56
  <div class="rpt_description rpt_description_1">
57
+ <?php esc_html_e('For businesses with multiple websites', "folders"); ?>
58
  </div>
59
  <div class="rpt_price rpt_price_1">$59</div>
60
  <div class="rpt_description rpt_description_0 rpt_desc">
61
+ <?php esc_html_e('Per year. Renewals for 25% off', "folders"); ?>
62
  </div>
63
  <div style="clear:both;"></div>
64
  </div>
65
  <div class="rpt_features rpt_features_1">
66
+ <div class="rpt_feature rpt_feature_1-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 5 domains', "folders"); ?></span><?php esc_html_e('5 website', "folders"); ?><span class="rpt_tooltip_plus"> +</span></a> </div>
67
  <div class="rpt_feature rpt_feature_1-1">
68
+ <?php esc_html_e('Organize Pages, Posts and Media files', "folders"); ?>
69
  </div>
70
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
71
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
73
  <div class="rpt_feature rpt_feature_0-5">
74
  <select data-key="0" class="multiple-options">
75
  <option data-header="Renewals for 25% off" data-price="59" value="<?php echo esc_url($pro_url."2") ?>">
76
+ <?php esc_html_e("Updates & support for 1 year", "folders") ?>
77
  </option>
78
  <option data-header="For 3 years" data-price="99" value="<?php echo esc_url($pro_url."6") ?>">
79
+ <?php esc_html_e("Updates & support for 3 years", "folders") ?>
80
  </option>
81
  <option data-header="For lifetime" data-price="149" value="<?php echo esc_url($pro_url."7") ?>">
82
+ <?php esc_html_e("Updates & support for lifetime", "folders") ?>
83
  </option>
84
  </select>
85
  </div>
86
  </div>
87
  <div style="clear:both;"></div>
88
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=2" class="rpt_foot rpt_foot_1">
89
+ <?php esc_html_e('Buy now', "folders"); ?>
90
  </a>
91
  </div>
92
  <div class="rpt_plan rpt_plan_2 ">
93
  <div style="text-align:left;" class="rpt_title rpt_title_2">
94
+ <?php esc_html_e('Agency', "folders"); ?>
95
  </div>
96
  <div class="rpt_head rpt_head_2">
97
  <div class="rpt_description rpt_description_2">
98
+ <?php esc_html_e('For agencies who manage clients', "folders"); ?>
99
  </div>
100
  <div class="rpt_price rpt_price_2">$99</div>
101
  <div class="rpt_description rpt_description_0 rpt_desc">
102
+ <?php esc_html_e('Per year. Renewals for 25% off', "folders"); ?>
103
  </div>
104
  <div style="clear:both;"></div>
105
  </div>
106
  <div class="rpt_features rpt_features_2">
107
+ <div class="rpt_feature rpt_feature_2-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 50 domains', "folders"); ?></span><?php esc_html_e('50 website', "folders"); ?><span class="rpt_tooltip_plus"> +</span></a> </div>
108
  <div class="rpt_feature rpt_feature_1-1">
109
+ <?php esc_html_e('Organize Pages, Posts and Media files', "folders"); ?>
110
  </div>
111
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
112
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
114
  <div class="rpt_feature rpt_feature_0-5">
115
  <select data-key="0" class="multiple-options">
116
  <option data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">
117
+ <?php esc_html_e("Updates & support for 1 year", "folders") ?>
118
  </option>
119
  <option data-header="For 3 years" data-price="179" value="<?php echo esc_url($pro_url."11") ?>">
120
+ <?php esc_html_e("Updates & support for 3 years", "folders") ?>
121
  </option>
122
  <option data-header="For lifetime" data-price="249" value="<?php echo esc_url($pro_url."12") ?>">
123
+ <?php esc_html_e("Updates & support for lifetime", "folders") ?>
124
  </option>
125
  </select>
126
  </div>
127
  </div>
128
  <div style="clear:both;"></div>
129
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=10" class="rpt_foot rpt_foot_2">
130
+ <?php esc_html_e('Buy now', "folders"); ?>
131
  </a>
132
  </div>
133
  </div>
136
  <div class="text-center">
137
  <form method="post" action="https://www.paypal.com/cgi-bin/webscr">
138
  <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
139
+ <?php esc_html_e("30 days money back guaranteed", "folders"); ?>
140
  </p>
141
  <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
142
+ <?php esc_html_e("The plugin will always keep working even if you don't renew your license", "folders"); ?>
143
  </p>
144
  </form>
145
  <div class="payments">
150
  <div class="folder-testimonial">
151
  <div class="testimonial-image"> <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/client-image.jpg") ?>"> </div>
152
  <div class="testimonial-data">
153
+ <div class="testimonial-title"><?php esc_html_e("A brilliant solution!", "folders") ?></div>
154
+ <div class="testimonial-desc"><?php esc_html_e("I’ve used other folder plug-ins for my WordPress media files, but Folders is better than any of them. An uncluttered interface, intuitive to use, allows drag-and-drop and allows subfolders: exactly what I needed in a media library folder plug-in. I can’t believe it’s free!", "folders") ?></div>
155
+ <div class="testimonial-author"><?php esc_html_e("- Trevor Jordan", "folders") ?></div>
156
  </div>
157
  </div>
158
  </div>