WordPress File Upload - Version 2.7.6

Version Description

  • added functionality in Dashboard to add the plugin to a page automatically
  • fixed bug that was not showing the Shortcode Composer because the plugin could not find the plugin instance when the shortcode was nested in other shortcodes
Download this release

Release Info

Developer nickboss
Plugin Icon 128x128 WordPress File Upload
Version 2.7.6
Comparing to
See all releases

Code changes from version 2.7.5 to 2.7.6

languages/wordpress-file-upload-de_DE.mo CHANGED
Binary file
languages/wordpress-file-upload-de_DE.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-06-22 02:03+0200\n"
6
- "PO-Revision-Date: 2015-06-22 02:03+0200\n"
7
  "Last-Translator: nickboss <info@iptanus.com>\n"
8
  "Language-Team: Iptanus Team <info@iptanus.com>\n"
9
  "Language: de_DE\n"
@@ -429,13 +429,22 @@ msgstr "Datei testfile 2 Admin-Nachricht"
429
 
430
  #: lib/wfu_constants.php:131
431
  msgid ""
 
 
 
 
 
 
 
 
 
432
  "Failed to edit the shortcode because the contents of the page changed. Try "
433
  "again to edit the shortcode."
434
  msgstr ""
435
  "Der Shortcode konnte nicht bearbeitet, da sich der Inhalt der Seite geändert "
436
  "hat. Versuchen Sie erneut den Shortcode zu bearbeiten."
437
 
438
- #: lib/wfu_constants.php:132
439
  msgid ""
440
  "Failed to delete the shortcode because the contents of the page changed. Try "
441
  "again to delete it."
@@ -443,7 +452,7 @@ msgstr ""
443
  "Der Shortcode konnte nicht gelöscht werden, da sich der Inhalt der Seite "
444
  "geändert hat. Versuchen Sie erneut den Shortcode zu löschen."
445
 
446
- #: lib/wfu_constants.php:133
447
  msgid ""
448
  "The page containing the shortcode has been modified and it is no longer "
449
  "valid. Please go back to reload the shortcode."
@@ -451,7 +460,7 @@ msgstr ""
451
  "Die Seite mit dem Shortcode wurde modifiziert und ist nicht mehr gültig. "
452
  "Bitte gehen Sie zurück um zu den Shortcode zu laden."
453
 
454
- #: lib/wfu_constants.php:134
455
  msgid ""
456
  "Failed to update the shortcode because the contents of the page changed. Go "
457
  "back to reload the shortcode."
@@ -459,7 +468,7 @@ msgstr ""
459
  "Der Shortcode konnte nicht aktualisiert werden, da sich der Inhalt der Seite "
460
  "geändert geändert hat. Gehen Sie zurück um zu den Shortcode neu zu laden."
461
 
462
- #: lib/wfu_constants.php:135
463
  msgid ""
464
  "Failed to update the shortcode. Please try again. If the problem persists, "
465
  "go back and reload the shortcode."
@@ -468,7 +477,7 @@ msgstr ""
468
  "Wenn das Problem weiterhin besteht, gehen Sie zurück und laden Sie den "
469
  "Shortcode neu."
470
 
471
- #: lib/wfu_constants.php:138
472
  msgid ""
473
  "Insert variable %userid% inside text. It will be replaced by the id of the "
474
  "current user."
@@ -476,7 +485,7 @@ msgstr ""
476
  "Fügen Sie die Variable %userid% in den Text ein. Sie wird durch die ID des "
477
  "aktuellen Benutzers ersetzt."
478
 
479
- #: lib/wfu_constants.php:139
480
  msgid ""
481
  "Insert variable %username% inside text. It will be replaced by the username "
482
  "of the current user."
@@ -484,7 +493,7 @@ msgstr ""
484
  "Fügen Sie die Variable %username% in den Text ein. Sie wird durch den "
485
  "Benutzernamen des aktuellen Benutzers ersetzt."
486
 
487
- #: lib/wfu_constants.php:140
488
  msgid ""
489
  "Insert variable %useremail% inside text. It will be replaced by the email of "
490
  "the current user."
@@ -492,7 +501,7 @@ msgstr ""
492
  "Fügen Sie die Variable %useremail% in den Text ein. Sie wird durch die E-"
493
  "Mail-Adresse des aktuellen Benutzers ersetzt."
494
 
495
- #: lib/wfu_constants.php:141
496
  msgid ""
497
  "Insert variable %filename% inside text. It will be replaced by the filename "
498
  "of the uploaded file."
@@ -500,7 +509,7 @@ msgstr ""
500
  "Fügen Sie die Variable %filename% in den Text. Sie wird durch den Dateinamen "
501
  "der hochgeladenen Dateien ersetzt."
502
 
503
- #: lib/wfu_constants.php:142
504
  msgid ""
505
  "Insert variable %filepath% inside text. It will be replaced by the full "
506
  "filepath of the uploaded file."
@@ -508,7 +517,7 @@ msgstr ""
508
  "Fügen Sie die Variable %filepath% in den Text ein. Sie wird durch die "
509
  "vollständige Dateipfad der hochgeladenen Dateien ersetzt."
510
 
511
- #: lib/wfu_constants.php:143
512
  msgid ""
513
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
514
  "the website."
@@ -516,7 +525,7 @@ msgstr ""
516
  "Fügen Sie die Variable %blogid% in den Text ein. Sie wird durch die Blog-ID "
517
  "der Website ersetzt werden."
518
 
519
- #: lib/wfu_constants.php:144
520
  msgid ""
521
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
522
  "current page."
@@ -524,7 +533,7 @@ msgstr ""
524
  "Fügen Sie die Variable %pageid% in den Text ein. Sie wird durch die ID der "
525
  "aktuellen Seite ersetzt."
526
 
527
- #: lib/wfu_constants.php:145
528
  msgid ""
529
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
530
  "the current page."
@@ -532,7 +541,7 @@ msgstr ""
532
  "Fügen Sie die Variable %pagetitle% in den Text ein. Sie wird durch dden "
533
  "Title des aktuellen Benutzers ersetzt."
534
 
535
- #: lib/wfu_constants.php:146
536
  msgid ""
537
  "Insert variable %userdataXXX% inside text. Select the user field from the "
538
  "drop-down list. It will be replaced by the value that the user entered in "
@@ -542,73 +551,73 @@ msgstr ""
542
  "Feld \"Benutzer\" aus der Dropdown Liste. Die Variable wird durch den Wert "
543
  "ersetzt, die der Benutzer in dieses Feld eingetragen hat."
544
 
545
- #: lib/wfu_constants.php:147
546
  msgid "Insert variable %n% inside text to denote a line change."
547
  msgstr ""
548
  "Fügen Sie die Variable %n% in den Text ein, um eine Änderung der Zeile zu "
549
  "kennzeichnen."
550
 
551
- #: lib/wfu_constants.php:150
552
  msgid "Upload in progress"
553
  msgstr "Upload läuft"
554
 
555
- #: lib/wfu_constants.php:151
556
  msgid "Upload in progress with warnings!"
557
  msgstr "Upload läuft mit Warnhinweisen!"
558
 
559
- #: lib/wfu_constants.php:152
560
  msgid "Upload in progress but some files already failed!"
561
  msgstr "Upload läuft, aber einige Dateien bereits gescheitert!"
562
 
563
- #: lib/wfu_constants.php:153
564
  msgid "Upload in progress but no files uploaded so far!"
565
  msgstr "Upload läuft aber keine Dateien hochgeladen bis jetzt!"
566
 
567
- #: lib/wfu_constants.php:154
568
  msgid "All files uploaded successfully"
569
  msgstr "Alle Dateien erfolgreich hochgeladen"
570
 
571
- #: lib/wfu_constants.php:155
572
  msgid "All files uploaded successfully but there are warnings!"
573
  msgstr "Alle Dateien erfolgreich hochgeladen, aber es gibt Warnhinweise!"
574
 
575
- #: lib/wfu_constants.php:156
576
  msgid "File uploaded successfully but there are warnings!"
577
  msgstr "Datei erfolgreich hochgeladen, aber es gibt Warnhinweise!"
578
 
579
- #: lib/wfu_constants.php:157
580
  msgid "Some files failed to upload!"
581
  msgstr "Einige Dateien konnten nicht hochgeladen werden!"
582
 
583
- #: lib/wfu_constants.php:158
584
  msgid "All files failed to upload"
585
  msgstr "Alle Dateien konnten nicht hochgeladen werden"
586
 
587
- #: lib/wfu_constants.php:159
588
  msgid "File failed to upload"
589
  msgstr "Datei konnte nicht hochgeladen werden"
590
 
591
- #: lib/wfu_constants.php:160
592
  msgid "There are no files to upload!"
593
  msgstr "Es gibt keine Dateien zum Hochladen!"
594
 
595
- #: lib/wfu_constants.php:161
596
  msgid "Test upload message"
597
  msgstr "Test-Upload-Nachricht"
598
 
599
- #: lib/wfu_constants.php:162
600
  msgid "JSON parse warning!"
601
  msgstr "JSON parse Warnung!"
602
 
603
- #: lib/wfu_constants.php:163
604
  msgid "please wait while redirecting..."
605
  msgstr "Bitte warten Sie, Sie werden umgeleitet ..."
606
 
607
- #: lib/wfu_constants.php:164
608
  msgid "Open visual shortcode editor in new window"
609
  msgstr "Offenen des visuellen Shortcode-Editor in neuem Fenster"
610
 
611
- #: lib/wfu_constants.php:165
612
  msgid "loading visual editor"
613
  msgstr "visueller Editor laden"
614
 
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-06-25 14:29+0200\n"
6
+ "PO-Revision-Date: 2015-06-25 14:30+0200\n"
7
  "Last-Translator: nickboss <info@iptanus.com>\n"
8
  "Language-Team: Iptanus Team <info@iptanus.com>\n"
9
  "Language: de_DE\n"
429
 
430
  #: lib/wfu_constants.php:131
431
  msgid ""
432
+ "Failed to add the shortcode to the page/post. Please try again. If the "
433
+ "message persists, contact administrator."
434
+ msgstr ""
435
+ "Fehler beim Abrufen der Shortcode zu der Seite / Beitrag hinzuzufügen. Bitte "
436
+ "versuche es erneut. Wenn die Meldung weiterhin, wenden Sie sich "
437
+ "Administrator."
438
+
439
+ #: lib/wfu_constants.php:132
440
+ msgid ""
441
  "Failed to edit the shortcode because the contents of the page changed. Try "
442
  "again to edit the shortcode."
443
  msgstr ""
444
  "Der Shortcode konnte nicht bearbeitet, da sich der Inhalt der Seite geändert "
445
  "hat. Versuchen Sie erneut den Shortcode zu bearbeiten."
446
 
447
+ #: lib/wfu_constants.php:133
448
  msgid ""
449
  "Failed to delete the shortcode because the contents of the page changed. Try "
450
  "again to delete it."
452
  "Der Shortcode konnte nicht gelöscht werden, da sich der Inhalt der Seite "
453
  "geändert hat. Versuchen Sie erneut den Shortcode zu löschen."
454
 
455
+ #: lib/wfu_constants.php:134
456
  msgid ""
457
  "The page containing the shortcode has been modified and it is no longer "
458
  "valid. Please go back to reload the shortcode."
460
  "Die Seite mit dem Shortcode wurde modifiziert und ist nicht mehr gültig. "
461
  "Bitte gehen Sie zurück um zu den Shortcode zu laden."
462
 
463
+ #: lib/wfu_constants.php:135
464
  msgid ""
465
  "Failed to update the shortcode because the contents of the page changed. Go "
466
  "back to reload the shortcode."
468
  "Der Shortcode konnte nicht aktualisiert werden, da sich der Inhalt der Seite "
469
  "geändert geändert hat. Gehen Sie zurück um zu den Shortcode neu zu laden."
470
 
471
+ #: lib/wfu_constants.php:136
472
  msgid ""
473
  "Failed to update the shortcode. Please try again. If the problem persists, "
474
  "go back and reload the shortcode."
477
  "Wenn das Problem weiterhin besteht, gehen Sie zurück und laden Sie den "
478
  "Shortcode neu."
479
 
480
+ #: lib/wfu_constants.php:139
481
  msgid ""
482
  "Insert variable %userid% inside text. It will be replaced by the id of the "
483
  "current user."
485
  "Fügen Sie die Variable %userid% in den Text ein. Sie wird durch die ID des "
486
  "aktuellen Benutzers ersetzt."
487
 
488
+ #: lib/wfu_constants.php:140
489
  msgid ""
490
  "Insert variable %username% inside text. It will be replaced by the username "
491
  "of the current user."
493
  "Fügen Sie die Variable %username% in den Text ein. Sie wird durch den "
494
  "Benutzernamen des aktuellen Benutzers ersetzt."
495
 
496
+ #: lib/wfu_constants.php:141
497
  msgid ""
498
  "Insert variable %useremail% inside text. It will be replaced by the email of "
499
  "the current user."
501
  "Fügen Sie die Variable %useremail% in den Text ein. Sie wird durch die E-"
502
  "Mail-Adresse des aktuellen Benutzers ersetzt."
503
 
504
+ #: lib/wfu_constants.php:142
505
  msgid ""
506
  "Insert variable %filename% inside text. It will be replaced by the filename "
507
  "of the uploaded file."
509
  "Fügen Sie die Variable %filename% in den Text. Sie wird durch den Dateinamen "
510
  "der hochgeladenen Dateien ersetzt."
511
 
512
+ #: lib/wfu_constants.php:143
513
  msgid ""
514
  "Insert variable %filepath% inside text. It will be replaced by the full "
515
  "filepath of the uploaded file."
517
  "Fügen Sie die Variable %filepath% in den Text ein. Sie wird durch die "
518
  "vollständige Dateipfad der hochgeladenen Dateien ersetzt."
519
 
520
+ #: lib/wfu_constants.php:144
521
  msgid ""
522
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
523
  "the website."
525
  "Fügen Sie die Variable %blogid% in den Text ein. Sie wird durch die Blog-ID "
526
  "der Website ersetzt werden."
527
 
528
+ #: lib/wfu_constants.php:145
529
  msgid ""
530
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
531
  "current page."
533
  "Fügen Sie die Variable %pageid% in den Text ein. Sie wird durch die ID der "
534
  "aktuellen Seite ersetzt."
535
 
536
+ #: lib/wfu_constants.php:146
537
  msgid ""
538
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
539
  "the current page."
541
  "Fügen Sie die Variable %pagetitle% in den Text ein. Sie wird durch dden "
542
  "Title des aktuellen Benutzers ersetzt."
543
 
544
+ #: lib/wfu_constants.php:147
545
  msgid ""
546
  "Insert variable %userdataXXX% inside text. Select the user field from the "
547
  "drop-down list. It will be replaced by the value that the user entered in "
551
  "Feld \"Benutzer\" aus der Dropdown Liste. Die Variable wird durch den Wert "
552
  "ersetzt, die der Benutzer in dieses Feld eingetragen hat."
553
 
554
+ #: lib/wfu_constants.php:148
555
  msgid "Insert variable %n% inside text to denote a line change."
556
  msgstr ""
557
  "Fügen Sie die Variable %n% in den Text ein, um eine Änderung der Zeile zu "
558
  "kennzeichnen."
559
 
560
+ #: lib/wfu_constants.php:151
561
  msgid "Upload in progress"
562
  msgstr "Upload läuft"
563
 
564
+ #: lib/wfu_constants.php:152
565
  msgid "Upload in progress with warnings!"
566
  msgstr "Upload läuft mit Warnhinweisen!"
567
 
568
+ #: lib/wfu_constants.php:153
569
  msgid "Upload in progress but some files already failed!"
570
  msgstr "Upload läuft, aber einige Dateien bereits gescheitert!"
571
 
572
+ #: lib/wfu_constants.php:154
573
  msgid "Upload in progress but no files uploaded so far!"
574
  msgstr "Upload läuft aber keine Dateien hochgeladen bis jetzt!"
575
 
576
+ #: lib/wfu_constants.php:155
577
  msgid "All files uploaded successfully"
578
  msgstr "Alle Dateien erfolgreich hochgeladen"
579
 
580
+ #: lib/wfu_constants.php:156
581
  msgid "All files uploaded successfully but there are warnings!"
582
  msgstr "Alle Dateien erfolgreich hochgeladen, aber es gibt Warnhinweise!"
583
 
584
+ #: lib/wfu_constants.php:157
585
  msgid "File uploaded successfully but there are warnings!"
586
  msgstr "Datei erfolgreich hochgeladen, aber es gibt Warnhinweise!"
587
 
588
+ #: lib/wfu_constants.php:158
589
  msgid "Some files failed to upload!"
590
  msgstr "Einige Dateien konnten nicht hochgeladen werden!"
591
 
592
+ #: lib/wfu_constants.php:159
593
  msgid "All files failed to upload"
594
  msgstr "Alle Dateien konnten nicht hochgeladen werden"
595
 
596
+ #: lib/wfu_constants.php:160
597
  msgid "File failed to upload"
598
  msgstr "Datei konnte nicht hochgeladen werden"
599
 
600
+ #: lib/wfu_constants.php:161
601
  msgid "There are no files to upload!"
602
  msgstr "Es gibt keine Dateien zum Hochladen!"
603
 
604
+ #: lib/wfu_constants.php:162
605
  msgid "Test upload message"
606
  msgstr "Test-Upload-Nachricht"
607
 
608
+ #: lib/wfu_constants.php:163
609
  msgid "JSON parse warning!"
610
  msgstr "JSON parse Warnung!"
611
 
612
+ #: lib/wfu_constants.php:164
613
  msgid "please wait while redirecting..."
614
  msgstr "Bitte warten Sie, Sie werden umgeleitet ..."
615
 
616
+ #: lib/wfu_constants.php:165
617
  msgid "Open visual shortcode editor in new window"
618
  msgstr "Offenen des visuellen Shortcode-Editor in neuem Fenster"
619
 
620
+ #: lib/wfu_constants.php:166
621
  msgid "loading visual editor"
622
  msgstr "visueller Editor laden"
623
 
languages/wordpress-file-upload-el_GR.mo CHANGED
Binary file
languages/wordpress-file-upload-el_GR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-06-22 02:03+0200\n"
6
- "PO-Revision-Date: 2015-06-22 02:03+0200\n"
7
  "Last-Translator: nickboss <info@iptanus.com>\n"
8
  "Language-Team: Iptanus Team <info@iptanus.com>\n"
9
  "Language: el\n"
@@ -415,13 +415,21 @@ msgstr "Μήνυμα διαχειριστή αρχείου testfile 2"
415
 
416
  #: lib/wfu_constants.php:131
417
  msgid ""
 
 
 
 
 
 
 
 
418
  "Failed to edit the shortcode because the contents of the page changed. Try "
419
  "again to edit the shortcode."
420
  msgstr ""
421
  "Δεν ήταν δυνατή η επεξεργασία του shortcode διότι τα περιεχόμενα της σελίδας "
422
  "άλλαξαν. Παρακαλούμε δοκιμάστε ξανά να επεξεργαστείτε το shortcode."
423
 
424
- #: lib/wfu_constants.php:132
425
  msgid ""
426
  "Failed to delete the shortcode because the contents of the page changed. Try "
427
  "again to delete it."
@@ -429,7 +437,7 @@ msgstr ""
429
  "Δεν ήταν δυνατή η διαγραφή του shortcode διότι τα περιεχόμενα της σελίδας "
430
  "άλλαξαν. Παρακαλούμε δοκιμάστε ξανά να διαγράψετε το shortcode."
431
 
432
- #: lib/wfu_constants.php:133
433
  msgid ""
434
  "The page containing the shortcode has been modified and it is no longer "
435
  "valid. Please go back to reload the shortcode."
@@ -437,7 +445,7 @@ msgstr ""
437
  "Η σελίδα που περιέχει το shortcode τροποποιήθηκε και δεν είναι πλέον σε "
438
  "ισχύ. Παρακαλούμε πηγαίνετε πίσω και ξαναφορτώστε το shortcode."
439
 
440
- #: lib/wfu_constants.php:134
441
  msgid ""
442
  "Failed to update the shortcode because the contents of the page changed. Go "
443
  "back to reload the shortcode."
@@ -445,7 +453,7 @@ msgstr ""
445
  "Δεν ήταν δυνατή η ενημέρωση του shortcode διότι τα περιεχόμενα της σελίδας "
446
  "άλλαξαν. Πηγαίνετε πίσω και ξαναφορτώστε το shortcode."
447
 
448
- #: lib/wfu_constants.php:135
449
  msgid ""
450
  "Failed to update the shortcode. Please try again. If the problem persists, "
451
  "go back and reload the shortcode."
@@ -453,7 +461,7 @@ msgstr ""
453
  "Δεν ήταν δυνατή η ενημέρωση του shortcode. Παρακαλούμε ξαναδοκιμάστε. Αν το "
454
  "πρόβλημα παραμείνει, πηγαίνετε πίσω και ξαναφορτώστε το shortcode."
455
 
456
- #: lib/wfu_constants.php:138
457
  msgid ""
458
  "Insert variable %userid% inside text. It will be replaced by the id of the "
459
  "current user."
@@ -461,7 +469,7 @@ msgstr ""
461
  "Εισάγετε τη μεταβλητή %userid% στο κείμενο. Θα αντικατασταθεί από το id του "
462
  "τρέχοντος χρήστη."
463
 
464
- #: lib/wfu_constants.php:139
465
  msgid ""
466
  "Insert variable %username% inside text. It will be replaced by the username "
467
  "of the current user."
@@ -469,7 +477,7 @@ msgstr ""
469
  "Εισάγετε τη μεταβλητή %username% στο κείμενο. Θα αντικατασταθεί από το όνομα "
470
  "του τρέχοντος χρήστη."
471
 
472
- #: lib/wfu_constants.php:140
473
  msgid ""
474
  "Insert variable %useremail% inside text. It will be replaced by the email of "
475
  "the current user."
@@ -477,7 +485,7 @@ msgstr ""
477
  "Εισάγετε τη μεταβλητή %useremail% στο κείμενο. Θα αντικατασταθεί από το "
478
  "email του τρέχοντος χρήστη."
479
 
480
- #: lib/wfu_constants.php:141
481
  msgid ""
482
  "Insert variable %filename% inside text. It will be replaced by the filename "
483
  "of the uploaded file."
@@ -485,7 +493,7 @@ msgstr ""
485
  "Εισάγετε τη μεταβλητή %filename% στο κείμενο. Θα αντικατασταθεί από το όνομα "
486
  "του αποστελλομένου αρχείου."
487
 
488
- #: lib/wfu_constants.php:142
489
  msgid ""
490
  "Insert variable %filepath% inside text. It will be replaced by the full "
491
  "filepath of the uploaded file."
@@ -493,7 +501,7 @@ msgstr ""
493
  "Εισάγετε τη μεταβλητή %filepath% στο κείμενο. Θα αντικατασταθεί από την "
494
  "πλήρη διαδρομή του αποστελλομένου αρχείου."
495
 
496
- #: lib/wfu_constants.php:143
497
  msgid ""
498
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
499
  "the website."
@@ -501,7 +509,7 @@ msgstr ""
501
  "Εισάγετε τη μεταβλητή %blogid% στο κείμενο. Θα αντικατασταθεί από το blog id "
502
  "της ιστοσελίδας."
503
 
504
- #: lib/wfu_constants.php:144
505
  msgid ""
506
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
507
  "current page."
@@ -509,7 +517,7 @@ msgstr ""
509
  "Εισάγετε τη μεταβλητή %pageid% στο κείμενο. Θα αντικατασταθεί από το id της "
510
  "τρέχουσας σελίδας."
511
 
512
- #: lib/wfu_constants.php:145
513
  msgid ""
514
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
515
  "the current page."
@@ -517,7 +525,7 @@ msgstr ""
517
  "Εισάγετε τη μεταβλητή %pagetitle% στο κείμενο. Θα αντικατασταθεί από τον "
518
  "τίτλο της τρέχουσας σελίδας."
519
 
520
- #: lib/wfu_constants.php:146
521
  msgid ""
522
  "Insert variable %userdataXXX% inside text. Select the user field from the "
523
  "drop-down list. It will be replaced by the value that the user entered in "
@@ -527,72 +535,72 @@ msgstr ""
527
  "από την εμφανιζόμενη dropdown λίστα. Θα αντικατασταθεί από την τιμή που "
528
  "εισήγαγε ο χρήστης σε αυτό το πεδίο."
529
 
530
- #: lib/wfu_constants.php:147
531
  msgid "Insert variable %n% inside text to denote a line change."
532
  msgstr ""
533
  "Εισάγετε τη μεταβλητή %n% στο κείμενο για να υποδείξετε αλλαγή γραμμής."
534
 
535
- #: lib/wfu_constants.php:150
536
  msgid "Upload in progress"
537
  msgstr "Αποστολή σε εξέλιξη"
538
 
539
- #: lib/wfu_constants.php:151
540
  msgid "Upload in progress with warnings!"
541
  msgstr "Αποστολή σε εξέλιξη με προειδοποιήσεις!"
542
 
543
- #: lib/wfu_constants.php:152
544
  msgid "Upload in progress but some files already failed!"
545
  msgstr "Αποστολή σε εξέλιξη αλλά κάποια αρχεία ήδη απέτυχαν!"
546
 
547
- #: lib/wfu_constants.php:153
548
  msgid "Upload in progress but no files uploaded so far!"
549
  msgstr "Αποστολή σε εξέλιξη αλλά δεν απεστάλη κανένα αρχείο μέχρι τώρα!"
550
 
551
- #: lib/wfu_constants.php:154
552
  msgid "All files uploaded successfully"
553
  msgstr "Όλα τα αρχεία απεστάλησαν επιτυχώς"
554
 
555
- #: lib/wfu_constants.php:155
556
  msgid "All files uploaded successfully but there are warnings!"
557
  msgstr "Όλα τα αρχεία απεστάλησαν επιτυχώς αλλά υπάρχουν προειδοποιήσεις!"
558
 
559
- #: lib/wfu_constants.php:156
560
  msgid "File uploaded successfully but there are warnings!"
561
  msgstr "Το αρχείο απεστάλη επιτυχώς αλλά υπάρχουν προειδοποιήσεις!"
562
 
563
- #: lib/wfu_constants.php:157
564
  msgid "Some files failed to upload!"
565
  msgstr "Μερικά αρχεία απέτυχαν να αποσταλούν!"
566
 
567
- #: lib/wfu_constants.php:158
568
  msgid "All files failed to upload"
569
  msgstr "Όλα τα αρχεία απέτυχαν να αποσταλούν"
570
 
571
- #: lib/wfu_constants.php:159
572
  msgid "File failed to upload"
573
  msgstr "Το αρχείο απέτυχε να αποσταλεί"
574
 
575
- #: lib/wfu_constants.php:160
576
  msgid "There are no files to upload!"
577
  msgstr "Δεν υπάρχουν αρχεία για αποστολή!"
578
 
579
- #: lib/wfu_constants.php:161
580
  msgid "Test upload message"
581
  msgstr "Μήνυμα αποστολής ελέγχου"
582
 
583
- #: lib/wfu_constants.php:162
584
  msgid "JSON parse warning!"
585
  msgstr "Προειδοποίηση μετατροπής JSON!"
586
 
587
- #: lib/wfu_constants.php:163
588
  msgid "please wait while redirecting..."
589
  msgstr "παρακαλούμε περιμένετε ενώ γίνεται αναδρομολόγηση..."
590
 
591
- #: lib/wfu_constants.php:164
592
  msgid "Open visual shortcode editor in new window"
593
  msgstr "Ανοίξτε τη γραφική επεξεργασία του shortcode σε νέο παράθυρο"
594
 
595
- #: lib/wfu_constants.php:165
596
  msgid "loading visual editor"
597
  msgstr "φόρτωση του γραφικού επεξεργαστή"
598
 
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-06-25 14:30+0200\n"
6
+ "PO-Revision-Date: 2015-06-25 14:30+0200\n"
7
  "Last-Translator: nickboss <info@iptanus.com>\n"
8
  "Language-Team: Iptanus Team <info@iptanus.com>\n"
9
  "Language: el\n"
415
 
416
  #: lib/wfu_constants.php:131
417
  msgid ""
418
+ "Failed to add the shortcode to the page/post. Please try again. If the "
419
+ "message persists, contact administrator."
420
+ msgstr ""
421
+ "Δεν κατέστη δυνατή η προσθήκη του shortcode στη σελίδα / άρθρο. Παρακαλώ "
422
+ "προσπάθησε ξανά. Αν το μήνυμα συνεχίζει, επικοινωνήστε με το διαχειριστή."
423
+
424
+ #: lib/wfu_constants.php:132
425
+ msgid ""
426
  "Failed to edit the shortcode because the contents of the page changed. Try "
427
  "again to edit the shortcode."
428
  msgstr ""
429
  "Δεν ήταν δυνατή η επεξεργασία του shortcode διότι τα περιεχόμενα της σελίδας "
430
  "άλλαξαν. Παρακαλούμε δοκιμάστε ξανά να επεξεργαστείτε το shortcode."
431
 
432
+ #: lib/wfu_constants.php:133
433
  msgid ""
434
  "Failed to delete the shortcode because the contents of the page changed. Try "
435
  "again to delete it."
437
  "Δεν ήταν δυνατή η διαγραφή του shortcode διότι τα περιεχόμενα της σελίδας "
438
  "άλλαξαν. Παρακαλούμε δοκιμάστε ξανά να διαγράψετε το shortcode."
439
 
440
+ #: lib/wfu_constants.php:134
441
  msgid ""
442
  "The page containing the shortcode has been modified and it is no longer "
443
  "valid. Please go back to reload the shortcode."
445
  "Η σελίδα που περιέχει το shortcode τροποποιήθηκε και δεν είναι πλέον σε "
446
  "ισχύ. Παρακαλούμε πηγαίνετε πίσω και ξαναφορτώστε το shortcode."
447
 
448
+ #: lib/wfu_constants.php:135
449
  msgid ""
450
  "Failed to update the shortcode because the contents of the page changed. Go "
451
  "back to reload the shortcode."
453
  "Δεν ήταν δυνατή η ενημέρωση του shortcode διότι τα περιεχόμενα της σελίδας "
454
  "άλλαξαν. Πηγαίνετε πίσω και ξαναφορτώστε το shortcode."
455
 
456
+ #: lib/wfu_constants.php:136
457
  msgid ""
458
  "Failed to update the shortcode. Please try again. If the problem persists, "
459
  "go back and reload the shortcode."
461
  "Δεν ήταν δυνατή η ενημέρωση του shortcode. Παρακαλούμε ξαναδοκιμάστε. Αν το "
462
  "πρόβλημα παραμείνει, πηγαίνετε πίσω και ξαναφορτώστε το shortcode."
463
 
464
+ #: lib/wfu_constants.php:139
465
  msgid ""
466
  "Insert variable %userid% inside text. It will be replaced by the id of the "
467
  "current user."
469
  "Εισάγετε τη μεταβλητή %userid% στο κείμενο. Θα αντικατασταθεί από το id του "
470
  "τρέχοντος χρήστη."
471
 
472
+ #: lib/wfu_constants.php:140
473
  msgid ""
474
  "Insert variable %username% inside text. It will be replaced by the username "
475
  "of the current user."
477
  "Εισάγετε τη μεταβλητή %username% στο κείμενο. Θα αντικατασταθεί από το όνομα "
478
  "του τρέχοντος χρήστη."
479
 
480
+ #: lib/wfu_constants.php:141
481
  msgid ""
482
  "Insert variable %useremail% inside text. It will be replaced by the email of "
483
  "the current user."
485
  "Εισάγετε τη μεταβλητή %useremail% στο κείμενο. Θα αντικατασταθεί από το "
486
  "email του τρέχοντος χρήστη."
487
 
488
+ #: lib/wfu_constants.php:142
489
  msgid ""
490
  "Insert variable %filename% inside text. It will be replaced by the filename "
491
  "of the uploaded file."
493
  "Εισάγετε τη μεταβλητή %filename% στο κείμενο. Θα αντικατασταθεί από το όνομα "
494
  "του αποστελλομένου αρχείου."
495
 
496
+ #: lib/wfu_constants.php:143
497
  msgid ""
498
  "Insert variable %filepath% inside text. It will be replaced by the full "
499
  "filepath of the uploaded file."
501
  "Εισάγετε τη μεταβλητή %filepath% στο κείμενο. Θα αντικατασταθεί από την "
502
  "πλήρη διαδρομή του αποστελλομένου αρχείου."
503
 
504
+ #: lib/wfu_constants.php:144
505
  msgid ""
506
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
507
  "the website."
509
  "Εισάγετε τη μεταβλητή %blogid% στο κείμενο. Θα αντικατασταθεί από το blog id "
510
  "της ιστοσελίδας."
511
 
512
+ #: lib/wfu_constants.php:145
513
  msgid ""
514
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
515
  "current page."
517
  "Εισάγετε τη μεταβλητή %pageid% στο κείμενο. Θα αντικατασταθεί από το id της "
518
  "τρέχουσας σελίδας."
519
 
520
+ #: lib/wfu_constants.php:146
521
  msgid ""
522
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
523
  "the current page."
525
  "Εισάγετε τη μεταβλητή %pagetitle% στο κείμενο. Θα αντικατασταθεί από τον "
526
  "τίτλο της τρέχουσας σελίδας."
527
 
528
+ #: lib/wfu_constants.php:147
529
  msgid ""
530
  "Insert variable %userdataXXX% inside text. Select the user field from the "
531
  "drop-down list. It will be replaced by the value that the user entered in "
535
  "από την εμφανιζόμενη dropdown λίστα. Θα αντικατασταθεί από την τιμή που "
536
  "εισήγαγε ο χρήστης σε αυτό το πεδίο."
537
 
538
+ #: lib/wfu_constants.php:148
539
  msgid "Insert variable %n% inside text to denote a line change."
540
  msgstr ""
541
  "Εισάγετε τη μεταβλητή %n% στο κείμενο για να υποδείξετε αλλαγή γραμμής."
542
 
543
+ #: lib/wfu_constants.php:151
544
  msgid "Upload in progress"
545
  msgstr "Αποστολή σε εξέλιξη"
546
 
547
+ #: lib/wfu_constants.php:152
548
  msgid "Upload in progress with warnings!"
549
  msgstr "Αποστολή σε εξέλιξη με προειδοποιήσεις!"
550
 
551
+ #: lib/wfu_constants.php:153
552
  msgid "Upload in progress but some files already failed!"
553
  msgstr "Αποστολή σε εξέλιξη αλλά κάποια αρχεία ήδη απέτυχαν!"
554
 
555
+ #: lib/wfu_constants.php:154
556
  msgid "Upload in progress but no files uploaded so far!"
557
  msgstr "Αποστολή σε εξέλιξη αλλά δεν απεστάλη κανένα αρχείο μέχρι τώρα!"
558
 
559
+ #: lib/wfu_constants.php:155
560
  msgid "All files uploaded successfully"
561
  msgstr "Όλα τα αρχεία απεστάλησαν επιτυχώς"
562
 
563
+ #: lib/wfu_constants.php:156
564
  msgid "All files uploaded successfully but there are warnings!"
565
  msgstr "Όλα τα αρχεία απεστάλησαν επιτυχώς αλλά υπάρχουν προειδοποιήσεις!"
566
 
567
+ #: lib/wfu_constants.php:157
568
  msgid "File uploaded successfully but there are warnings!"
569
  msgstr "Το αρχείο απεστάλη επιτυχώς αλλά υπάρχουν προειδοποιήσεις!"
570
 
571
+ #: lib/wfu_constants.php:158
572
  msgid "Some files failed to upload!"
573
  msgstr "Μερικά αρχεία απέτυχαν να αποσταλούν!"
574
 
575
+ #: lib/wfu_constants.php:159
576
  msgid "All files failed to upload"
577
  msgstr "Όλα τα αρχεία απέτυχαν να αποσταλούν"
578
 
579
+ #: lib/wfu_constants.php:160
580
  msgid "File failed to upload"
581
  msgstr "Το αρχείο απέτυχε να αποσταλεί"
582
 
583
+ #: lib/wfu_constants.php:161
584
  msgid "There are no files to upload!"
585
  msgstr "Δεν υπάρχουν αρχεία για αποστολή!"
586
 
587
+ #: lib/wfu_constants.php:162
588
  msgid "Test upload message"
589
  msgstr "Μήνυμα αποστολής ελέγχου"
590
 
591
+ #: lib/wfu_constants.php:163
592
  msgid "JSON parse warning!"
593
  msgstr "Προειδοποίηση μετατροπής JSON!"
594
 
595
+ #: lib/wfu_constants.php:164
596
  msgid "please wait while redirecting..."
597
  msgstr "παρακαλούμε περιμένετε ενώ γίνεται αναδρομολόγηση..."
598
 
599
+ #: lib/wfu_constants.php:165
600
  msgid "Open visual shortcode editor in new window"
601
  msgstr "Ανοίξτε τη γραφική επεξεργασία του shortcode σε νέο παράθυρο"
602
 
603
+ #: lib/wfu_constants.php:166
604
  msgid "loading visual editor"
605
  msgstr "φόρτωση του γραφικού επεξεργαστή"
606
 
languages/wordpress-file-upload-fr_FR.mo CHANGED
Binary file
languages/wordpress-file-upload-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-06-05 18:03+0200\n"
6
- "PO-Revision-Date: 2015-06-05 18:03+0200\n"
7
  "Last-Translator: nickboss <nickboss@iptanus.com>\n"
8
  "Language-Team: \n"
9
  "Language: fr_FR\n"
@@ -420,13 +420,21 @@ msgstr "Message administrateur File testfile 2"
420
 
421
  #: lib/wfu_constants.php:131
422
  msgid ""
 
 
 
 
 
 
 
 
423
  "Failed to edit the shortcode because the contents of the page changed. Try "
424
  "again to edit the shortcode."
425
  msgstr ""
426
  "Impossible de modifier le shortcode parce que le contenu de la page changé. "
427
  "Essayez à nouveau de modifier le shortcode."
428
 
429
- #: lib/wfu_constants.php:132
430
  msgid ""
431
  "Failed to delete the shortcode because the contents of the page changed. Try "
432
  "again to delete it."
@@ -434,7 +442,7 @@ msgstr ""
434
  "Impossible de supprimer le shortcode parce que le contenu de la page changé. "
435
  "Essayez à nouveau de le supprimer."
436
 
437
- #: lib/wfu_constants.php:133
438
  msgid ""
439
  "The page containing the shortcode has been modified and it is no longer "
440
  "valid. Please go back to reload the shortcode."
@@ -442,7 +450,7 @@ msgstr ""
442
  "La page contenant le shortcode a été modifié et il est plus valide. S'il "
443
  "vous plaît revenir à recharger le shortcode."
444
 
445
- #: lib/wfu_constants.php:134
446
  msgid ""
447
  "Failed to update the shortcode because the contents of the page changed. Go "
448
  "back to reload the shortcode."
@@ -450,7 +458,7 @@ msgstr ""
450
  "Impossible de mettre à jour le shortcode parce que le contenu de la page "
451
  "changé. Retour à recharger le shortcode."
452
 
453
- #: lib/wfu_constants.php:135
454
  msgid ""
455
  "Failed to update the shortcode. Please try again. If the problem persists, "
456
  "go back and reload the shortcode."
@@ -458,7 +466,7 @@ msgstr ""
458
  "Impossible de mettre à jour le shortcode. S'il vous plaît essayer à nouveau. "
459
  "Si le problème persiste, revenir en arrière et recharger le shortcode."
460
 
461
- #: lib/wfu_constants.php:138
462
  msgid ""
463
  "Insert variable %userid% inside text. It will be replaced by the id of the "
464
  "current user."
@@ -466,7 +474,7 @@ msgstr ""
466
  "Insérez %userid% variable dans le texte. Il sera remplacé par l'id de "
467
  "l'utilisateur courant."
468
 
469
- #: lib/wfu_constants.php:139
470
  msgid ""
471
  "Insert variable %username% inside text. It will be replaced by the username "
472
  "of the current user."
@@ -474,7 +482,7 @@ msgstr ""
474
  "Insérez la variable %username% dans le texte. Il sera remplacé par le "
475
  "username de l'utilisateur courant."
476
 
477
- #: lib/wfu_constants.php:140
478
  msgid ""
479
  "Insert variable %useremail% inside text. It will be replaced by the email of "
480
  "the current user."
@@ -482,7 +490,7 @@ msgstr ""
482
  "Insérez la variable %useremail% dans le texte. Il sera remplacé par l'email "
483
  "de l'utilisateur courant."
484
 
485
- #: lib/wfu_constants.php:141
486
  msgid ""
487
  "Insert variable %filename% inside text. It will be replaced by the filename "
488
  "of the uploaded file."
@@ -490,7 +498,7 @@ msgstr ""
490
  "Insérez la variable %filename% dans le texte. Il sera remplacé par le nom du "
491
  "fichier à envoyer."
492
 
493
- #: lib/wfu_constants.php:142
494
  msgid ""
495
  "Insert variable %filepath% inside text. It will be replaced by the full "
496
  "filepath of the uploaded file."
@@ -498,7 +506,7 @@ msgstr ""
498
  "Insérez la variable %filepath% dans le texte. Il sera remplacé par le chemin "
499
  "complet du fichier envoyé."
500
 
501
- #: lib/wfu_constants.php:143
502
  msgid ""
503
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
504
  "the website."
@@ -506,7 +514,7 @@ msgstr ""
506
  "Insérez la variable %blogid% dans le texte. Il sera remplacé par l'id du "
507
  "blog du site web."
508
 
509
- #: lib/wfu_constants.php:144
510
  msgid ""
511
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
512
  "current page."
@@ -514,7 +522,7 @@ msgstr ""
514
  "Insérez %pageid% variable dans le texte. Il sera remplacé par l'id de la "
515
  "page en cours."
516
 
517
- #: lib/wfu_constants.php:145
518
  msgid ""
519
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
520
  "the current page."
@@ -522,7 +530,7 @@ msgstr ""
522
  "Insérez %pagetitle% variable dans le texte. Il sera remplacé par le titre de "
523
  "la page courante."
524
 
525
- #: lib/wfu_constants.php:146
526
  msgid ""
527
  "Insert variable %userdataXXX% inside text. Select the user field from the "
528
  "drop-down list. It will be replaced by the value that the user entered in "
@@ -532,74 +540,74 @@ msgstr ""
532
  "l'utilisateur dans la liste déroulante. Il sera remplacé par la valeur que "
533
  "l'utilisateur aura entré dans ce champs."
534
 
535
- #: lib/wfu_constants.php:147
536
  msgid "Insert variable %n% inside text to denote a line change."
537
  msgstr ""
538
  "Insérez la variable %n% à l'intérieur du texte pour indiquer un changement "
539
  "de ligne."
540
 
541
- #: lib/wfu_constants.php:150
542
  msgid "Upload in progress"
543
  msgstr "Envoi en cours"
544
 
545
- #: lib/wfu_constants.php:151
546
  msgid "Upload in progress with warnings!"
547
  msgstr "Envoi en cours mais avec des avertissements!"
548
 
549
- #: lib/wfu_constants.php:152
550
  msgid "Upload in progress but some files already failed!"
551
  msgstr "Envoi en cours mais certains fichiers ont échoués!"
552
 
553
- #: lib/wfu_constants.php:153
554
  msgid "Upload in progress but no files uploaded so far!"
555
  msgstr "Envoi en cours mais aucun fichiers n'a été envoyé pour le moment!"
556
 
557
- #: lib/wfu_constants.php:154
558
  msgid "All files uploaded successfully"
559
  msgstr "Tous les fichiers ont été envoyés avec succès"
560
 
561
- #: lib/wfu_constants.php:155
562
  msgid "All files uploaded successfully but there are warnings!"
563
  msgstr ""
564
  "Tous les fichiers ont été envoyer avec succès mais avec des avertissements!"
565
 
566
- #: lib/wfu_constants.php:156
567
  msgid "File uploaded successfully but there are warnings!"
568
  msgstr "Fichiers envoyés avec succès mais certain avec un avertissement."
569
 
570
- #: lib/wfu_constants.php:157
571
  msgid "Some files failed to upload!"
572
  msgstr "Certains fichiers n'ont pas été envoyé"
573
 
574
- #: lib/wfu_constants.php:158
575
  msgid "All files failed to upload"
576
  msgstr "Impossible d'envoyer les fichiers"
577
 
578
- #: lib/wfu_constants.php:159
579
  msgid "File failed to upload"
580
  msgstr "Impossible d'envoyer le fichier"
581
 
582
- #: lib/wfu_constants.php:160
583
  msgid "There are no files to upload!"
584
  msgstr "Il n'y a pas de fichiers à envoyer"
585
 
586
- #: lib/wfu_constants.php:161
587
  msgid "Test upload message"
588
  msgstr "Message de test d'upload"
589
 
590
- #: lib/wfu_constants.php:162
591
  msgid "JSON parse warning!"
592
  msgstr "Avertisements d'analyse JSON."
593
 
594
- #: lib/wfu_constants.php:163
595
  msgid "please wait while redirecting..."
596
  msgstr "merci de patienter pendans la redirection..."
597
 
598
- #: lib/wfu_constants.php:164
599
  msgid "Open visual shortcode editor in new window"
600
  msgstr "Ouvrez l'éditeur de shortcode visuelle dans une nouvelle fenêtre"
601
 
602
- #: lib/wfu_constants.php:165
603
  msgid "loading visual editor"
604
  msgstr "chargement éditeur visuel"
605
 
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-06-25 14:30+0200\n"
6
+ "PO-Revision-Date: 2015-06-25 14:30+0200\n"
7
  "Last-Translator: nickboss <nickboss@iptanus.com>\n"
8
  "Language-Team: \n"
9
  "Language: fr_FR\n"
420
 
421
  #: lib/wfu_constants.php:131
422
  msgid ""
423
+ "Failed to add the shortcode to the page/post. Please try again. If the "
424
+ "message persists, contact administrator."
425
+ msgstr ""
426
+ "Impossible d' ajouter le shortcode à la page / poste. S' il vous plaît "
427
+ "essayer à nouveau. Si le message persiste, contactez l' administrateur."
428
+
429
+ #: lib/wfu_constants.php:132
430
+ msgid ""
431
  "Failed to edit the shortcode because the contents of the page changed. Try "
432
  "again to edit the shortcode."
433
  msgstr ""
434
  "Impossible de modifier le shortcode parce que le contenu de la page changé. "
435
  "Essayez à nouveau de modifier le shortcode."
436
 
437
+ #: lib/wfu_constants.php:133
438
  msgid ""
439
  "Failed to delete the shortcode because the contents of the page changed. Try "
440
  "again to delete it."
442
  "Impossible de supprimer le shortcode parce que le contenu de la page changé. "
443
  "Essayez à nouveau de le supprimer."
444
 
445
+ #: lib/wfu_constants.php:134
446
  msgid ""
447
  "The page containing the shortcode has been modified and it is no longer "
448
  "valid. Please go back to reload the shortcode."
450
  "La page contenant le shortcode a été modifié et il est plus valide. S'il "
451
  "vous plaît revenir à recharger le shortcode."
452
 
453
+ #: lib/wfu_constants.php:135
454
  msgid ""
455
  "Failed to update the shortcode because the contents of the page changed. Go "
456
  "back to reload the shortcode."
458
  "Impossible de mettre à jour le shortcode parce que le contenu de la page "
459
  "changé. Retour à recharger le shortcode."
460
 
461
+ #: lib/wfu_constants.php:136
462
  msgid ""
463
  "Failed to update the shortcode. Please try again. If the problem persists, "
464
  "go back and reload the shortcode."
466
  "Impossible de mettre à jour le shortcode. S'il vous plaît essayer à nouveau. "
467
  "Si le problème persiste, revenir en arrière et recharger le shortcode."
468
 
469
+ #: lib/wfu_constants.php:139
470
  msgid ""
471
  "Insert variable %userid% inside text. It will be replaced by the id of the "
472
  "current user."
474
  "Insérez %userid% variable dans le texte. Il sera remplacé par l'id de "
475
  "l'utilisateur courant."
476
 
477
+ #: lib/wfu_constants.php:140
478
  msgid ""
479
  "Insert variable %username% inside text. It will be replaced by the username "
480
  "of the current user."
482
  "Insérez la variable %username% dans le texte. Il sera remplacé par le "
483
  "username de l'utilisateur courant."
484
 
485
+ #: lib/wfu_constants.php:141
486
  msgid ""
487
  "Insert variable %useremail% inside text. It will be replaced by the email of "
488
  "the current user."
490
  "Insérez la variable %useremail% dans le texte. Il sera remplacé par l'email "
491
  "de l'utilisateur courant."
492
 
493
+ #: lib/wfu_constants.php:142
494
  msgid ""
495
  "Insert variable %filename% inside text. It will be replaced by the filename "
496
  "of the uploaded file."
498
  "Insérez la variable %filename% dans le texte. Il sera remplacé par le nom du "
499
  "fichier à envoyer."
500
 
501
+ #: lib/wfu_constants.php:143
502
  msgid ""
503
  "Insert variable %filepath% inside text. It will be replaced by the full "
504
  "filepath of the uploaded file."
506
  "Insérez la variable %filepath% dans le texte. Il sera remplacé par le chemin "
507
  "complet du fichier envoyé."
508
 
509
+ #: lib/wfu_constants.php:144
510
  msgid ""
511
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
512
  "the website."
514
  "Insérez la variable %blogid% dans le texte. Il sera remplacé par l'id du "
515
  "blog du site web."
516
 
517
+ #: lib/wfu_constants.php:145
518
  msgid ""
519
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
520
  "current page."
522
  "Insérez %pageid% variable dans le texte. Il sera remplacé par l'id de la "
523
  "page en cours."
524
 
525
+ #: lib/wfu_constants.php:146
526
  msgid ""
527
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
528
  "the current page."
530
  "Insérez %pagetitle% variable dans le texte. Il sera remplacé par le titre de "
531
  "la page courante."
532
 
533
+ #: lib/wfu_constants.php:147
534
  msgid ""
535
  "Insert variable %userdataXXX% inside text. Select the user field from the "
536
  "drop-down list. It will be replaced by the value that the user entered in "
540
  "l'utilisateur dans la liste déroulante. Il sera remplacé par la valeur que "
541
  "l'utilisateur aura entré dans ce champs."
542
 
543
+ #: lib/wfu_constants.php:148
544
  msgid "Insert variable %n% inside text to denote a line change."
545
  msgstr ""
546
  "Insérez la variable %n% à l'intérieur du texte pour indiquer un changement "
547
  "de ligne."
548
 
549
+ #: lib/wfu_constants.php:151
550
  msgid "Upload in progress"
551
  msgstr "Envoi en cours"
552
 
553
+ #: lib/wfu_constants.php:152
554
  msgid "Upload in progress with warnings!"
555
  msgstr "Envoi en cours mais avec des avertissements!"
556
 
557
+ #: lib/wfu_constants.php:153
558
  msgid "Upload in progress but some files already failed!"
559
  msgstr "Envoi en cours mais certains fichiers ont échoués!"
560
 
561
+ #: lib/wfu_constants.php:154
562
  msgid "Upload in progress but no files uploaded so far!"
563
  msgstr "Envoi en cours mais aucun fichiers n'a été envoyé pour le moment!"
564
 
565
+ #: lib/wfu_constants.php:155
566
  msgid "All files uploaded successfully"
567
  msgstr "Tous les fichiers ont été envoyés avec succès"
568
 
569
+ #: lib/wfu_constants.php:156
570
  msgid "All files uploaded successfully but there are warnings!"
571
  msgstr ""
572
  "Tous les fichiers ont été envoyer avec succès mais avec des avertissements!"
573
 
574
+ #: lib/wfu_constants.php:157
575
  msgid "File uploaded successfully but there are warnings!"
576
  msgstr "Fichiers envoyés avec succès mais certain avec un avertissement."
577
 
578
+ #: lib/wfu_constants.php:158
579
  msgid "Some files failed to upload!"
580
  msgstr "Certains fichiers n'ont pas été envoyé"
581
 
582
+ #: lib/wfu_constants.php:159
583
  msgid "All files failed to upload"
584
  msgstr "Impossible d'envoyer les fichiers"
585
 
586
+ #: lib/wfu_constants.php:160
587
  msgid "File failed to upload"
588
  msgstr "Impossible d'envoyer le fichier"
589
 
590
+ #: lib/wfu_constants.php:161
591
  msgid "There are no files to upload!"
592
  msgstr "Il n'y a pas de fichiers à envoyer"
593
 
594
+ #: lib/wfu_constants.php:162
595
  msgid "Test upload message"
596
  msgstr "Message de test d'upload"
597
 
598
+ #: lib/wfu_constants.php:163
599
  msgid "JSON parse warning!"
600
  msgstr "Avertisements d'analyse JSON."
601
 
602
+ #: lib/wfu_constants.php:164
603
  msgid "please wait while redirecting..."
604
  msgstr "merci de patienter pendans la redirection..."
605
 
606
+ #: lib/wfu_constants.php:165
607
  msgid "Open visual shortcode editor in new window"
608
  msgstr "Ouvrez l'éditeur de shortcode visuelle dans une nouvelle fenêtre"
609
 
610
+ #: lib/wfu_constants.php:166
611
  msgid "loading visual editor"
612
  msgstr "chargement éditeur visuel"
613
 
languages/wordpress-file-upload.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-05-09 22:52+0200\n"
6
- "PO-Revision-Date: 2015-05-09 22:52+0200\n"
7
  "Last-Translator: nickboss <info@iptanus.com>\n"
8
  "Language-Team: Iptanus Team <info@iptanus.com>\n"
9
  "Language: en\n"
@@ -357,153 +357,159 @@ msgstr ""
357
 
358
  #: lib/wfu_constants.php:131
359
  msgid ""
 
 
 
 
 
 
360
  "Failed to edit the shortcode because the contents of the page changed. Try "
361
  "again to edit the shortcode."
362
  msgstr ""
363
 
364
- #: lib/wfu_constants.php:132
365
  msgid ""
366
  "Failed to delete the shortcode because the contents of the page changed. Try "
367
  "again to delete it."
368
  msgstr ""
369
 
370
- #: lib/wfu_constants.php:133
371
  msgid ""
372
  "The page containing the shortcode has been modified and it is no longer "
373
  "valid. Please go back to reload the shortcode."
374
  msgstr ""
375
 
376
- #: lib/wfu_constants.php:134
377
  msgid ""
378
  "Failed to update the shortcode because the contents of the page changed. Go "
379
  "back to reload the shortcode."
380
  msgstr ""
381
 
382
- #: lib/wfu_constants.php:135
383
  msgid ""
384
  "Failed to update the shortcode. Please try again. If the problem persists, "
385
  "go back and reload the shortcode."
386
  msgstr ""
387
 
388
- #: lib/wfu_constants.php:138
389
  msgid ""
390
  "Insert variable %userid% inside text. It will be replaced by the id of the "
391
  "current user."
392
  msgstr ""
393
 
394
- #: lib/wfu_constants.php:139
395
  msgid ""
396
  "Insert variable %username% inside text. It will be replaced by the username "
397
  "of the current user."
398
  msgstr ""
399
 
400
- #: lib/wfu_constants.php:140
401
  msgid ""
402
  "Insert variable %useremail% inside text. It will be replaced by the email of "
403
  "the current user."
404
  msgstr ""
405
 
406
- #: lib/wfu_constants.php:141
407
  msgid ""
408
  "Insert variable %filename% inside text. It will be replaced by the filename "
409
  "of the uploaded file."
410
  msgstr ""
411
 
412
- #: lib/wfu_constants.php:142
413
  msgid ""
414
  "Insert variable %filepath% inside text. It will be replaced by the full "
415
  "filepath of the uploaded file."
416
  msgstr ""
417
 
418
- #: lib/wfu_constants.php:143
419
  msgid ""
420
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
421
  "the website."
422
  msgstr ""
423
 
424
- #: lib/wfu_constants.php:144
425
  msgid ""
426
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
427
  "current page."
428
  msgstr ""
429
 
430
- #: lib/wfu_constants.php:145
431
  msgid ""
432
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
433
  "the current page."
434
  msgstr ""
435
 
436
- #: lib/wfu_constants.php:146
437
  msgid ""
438
  "Insert variable %userdataXXX% inside text. Select the user field from the "
439
  "drop-down list. It will be replaced by the value that the user entered in "
440
  "this field."
441
  msgstr ""
442
 
443
- #: lib/wfu_constants.php:147
444
  msgid "Insert variable %n% inside text to denote a line change."
445
  msgstr ""
446
 
447
- #: lib/wfu_constants.php:150
448
  msgid "Upload in progress"
449
  msgstr ""
450
 
451
- #: lib/wfu_constants.php:151
452
  msgid "Upload in progress with warnings!"
453
  msgstr ""
454
 
455
- #: lib/wfu_constants.php:152
456
  msgid "Upload in progress but some files already failed!"
457
  msgstr ""
458
 
459
- #: lib/wfu_constants.php:153
460
  msgid "Upload in progress but no files uploaded so far!"
461
  msgstr ""
462
 
463
- #: lib/wfu_constants.php:154
464
  msgid "All files uploaded successfully"
465
  msgstr ""
466
 
467
- #: lib/wfu_constants.php:155
468
  msgid "All files uploaded successfully but there are warnings!"
469
  msgstr ""
470
 
471
- #: lib/wfu_constants.php:156
472
  msgid "File uploaded successfully but there are warnings!"
473
  msgstr ""
474
 
475
- #: lib/wfu_constants.php:157
476
  msgid "Some files failed to upload!"
477
  msgstr ""
478
 
479
- #: lib/wfu_constants.php:158
480
  msgid "All files failed to upload"
481
  msgstr ""
482
 
483
- #: lib/wfu_constants.php:159
484
  msgid "File failed to upload"
485
  msgstr ""
486
 
487
- #: lib/wfu_constants.php:160
488
  msgid "There are no files to upload!"
489
  msgstr ""
490
 
491
- #: lib/wfu_constants.php:161
492
  msgid "Test upload message"
493
  msgstr ""
494
 
495
- #: lib/wfu_constants.php:162
496
  msgid "JSON parse warning!"
497
  msgstr ""
498
 
499
- #: lib/wfu_constants.php:163
500
  msgid "please wait while redirecting..."
501
  msgstr ""
502
 
503
- #: lib/wfu_constants.php:164
504
  msgid "Open visual shortcode editor in new window"
505
  msgstr ""
506
 
507
- #: lib/wfu_constants.php:165
508
  msgid "loading visual editor"
509
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress File Upload\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-06-25 14:29+0200\n"
6
+ "PO-Revision-Date: 2015-06-25 14:29+0200\n"
7
  "Last-Translator: nickboss <info@iptanus.com>\n"
8
  "Language-Team: Iptanus Team <info@iptanus.com>\n"
9
  "Language: en\n"
357
 
358
  #: lib/wfu_constants.php:131
359
  msgid ""
360
+ "Failed to add the shortcode to the page/post. Please try again. If the "
361
+ "message persists, contact administrator."
362
+ msgstr ""
363
+
364
+ #: lib/wfu_constants.php:132
365
+ msgid ""
366
  "Failed to edit the shortcode because the contents of the page changed. Try "
367
  "again to edit the shortcode."
368
  msgstr ""
369
 
370
+ #: lib/wfu_constants.php:133
371
  msgid ""
372
  "Failed to delete the shortcode because the contents of the page changed. Try "
373
  "again to delete it."
374
  msgstr ""
375
 
376
+ #: lib/wfu_constants.php:134
377
  msgid ""
378
  "The page containing the shortcode has been modified and it is no longer "
379
  "valid. Please go back to reload the shortcode."
380
  msgstr ""
381
 
382
+ #: lib/wfu_constants.php:135
383
  msgid ""
384
  "Failed to update the shortcode because the contents of the page changed. Go "
385
  "back to reload the shortcode."
386
  msgstr ""
387
 
388
+ #: lib/wfu_constants.php:136
389
  msgid ""
390
  "Failed to update the shortcode. Please try again. If the problem persists, "
391
  "go back and reload the shortcode."
392
  msgstr ""
393
 
394
+ #: lib/wfu_constants.php:139
395
  msgid ""
396
  "Insert variable %userid% inside text. It will be replaced by the id of the "
397
  "current user."
398
  msgstr ""
399
 
400
+ #: lib/wfu_constants.php:140
401
  msgid ""
402
  "Insert variable %username% inside text. It will be replaced by the username "
403
  "of the current user."
404
  msgstr ""
405
 
406
+ #: lib/wfu_constants.php:141
407
  msgid ""
408
  "Insert variable %useremail% inside text. It will be replaced by the email of "
409
  "the current user."
410
  msgstr ""
411
 
412
+ #: lib/wfu_constants.php:142
413
  msgid ""
414
  "Insert variable %filename% inside text. It will be replaced by the filename "
415
  "of the uploaded file."
416
  msgstr ""
417
 
418
+ #: lib/wfu_constants.php:143
419
  msgid ""
420
  "Insert variable %filepath% inside text. It will be replaced by the full "
421
  "filepath of the uploaded file."
422
  msgstr ""
423
 
424
+ #: lib/wfu_constants.php:144
425
  msgid ""
426
  "Insert variable %blogid% inside text. It will be replaced by the blog id of "
427
  "the website."
428
  msgstr ""
429
 
430
+ #: lib/wfu_constants.php:145
431
  msgid ""
432
  "Insert variable %pageid% inside text. It will be replaced by the id of the "
433
  "current page."
434
  msgstr ""
435
 
436
+ #: lib/wfu_constants.php:146
437
  msgid ""
438
  "Insert variable %pagetitle% inside text. It will be replaced by the title of "
439
  "the current page."
440
  msgstr ""
441
 
442
+ #: lib/wfu_constants.php:147
443
  msgid ""
444
  "Insert variable %userdataXXX% inside text. Select the user field from the "
445
  "drop-down list. It will be replaced by the value that the user entered in "
446
  "this field."
447
  msgstr ""
448
 
449
+ #: lib/wfu_constants.php:148
450
  msgid "Insert variable %n% inside text to denote a line change."
451
  msgstr ""
452
 
453
+ #: lib/wfu_constants.php:151
454
  msgid "Upload in progress"
455
  msgstr ""
456
 
457
+ #: lib/wfu_constants.php:152
458
  msgid "Upload in progress with warnings!"
459
  msgstr ""
460
 
461
+ #: lib/wfu_constants.php:153
462
  msgid "Upload in progress but some files already failed!"
463
  msgstr ""
464
 
465
+ #: lib/wfu_constants.php:154
466
  msgid "Upload in progress but no files uploaded so far!"
467
  msgstr ""
468
 
469
+ #: lib/wfu_constants.php:155
470
  msgid "All files uploaded successfully"
471
  msgstr ""
472
 
473
+ #: lib/wfu_constants.php:156
474
  msgid "All files uploaded successfully but there are warnings!"
475
  msgstr ""
476
 
477
+ #: lib/wfu_constants.php:157
478
  msgid "File uploaded successfully but there are warnings!"
479
  msgstr ""
480
 
481
+ #: lib/wfu_constants.php:158
482
  msgid "Some files failed to upload!"
483
  msgstr ""
484
 
485
+ #: lib/wfu_constants.php:159
486
  msgid "All files failed to upload"
487
  msgstr ""
488
 
489
+ #: lib/wfu_constants.php:160
490
  msgid "File failed to upload"
491
  msgstr ""
492
 
493
+ #: lib/wfu_constants.php:161
494
  msgid "There are no files to upload!"
495
  msgstr ""
496
 
497
+ #: lib/wfu_constants.php:162
498
  msgid "Test upload message"
499
  msgstr ""
500
 
501
+ #: lib/wfu_constants.php:163
502
  msgid "JSON parse warning!"
503
  msgstr ""
504
 
505
+ #: lib/wfu_constants.php:164
506
  msgid "please wait while redirecting..."
507
  msgstr ""
508
 
509
+ #: lib/wfu_constants.php:165
510
  msgid "Open visual shortcode editor in new window"
511
  msgstr ""
512
 
513
+ #: lib/wfu_constants.php:166
514
  msgid "loading visual editor"
515
  msgstr ""
lib/wfu_admin.php CHANGED
@@ -94,6 +94,8 @@ function wordpress_file_upload_manage_dashboard() {
94
  $dir = (!empty($_POST['dir']) ? $_POST['dir'] : (!empty($_GET['dir']) ? $_GET['dir'] : ''));
95
  $file = (!empty($_POST['file']) ? $_POST['file'] : (!empty($_GET['file']) ? $_GET['file'] : ''));
96
  $data_enc = (!empty($_POST['data']) ? $_POST['data'] : (!empty($_GET['data']) ? $_GET['data'] : ''));
 
 
97
  $echo_str = "";
98
 
99
  if ( $action == 'edit_settings' ) {
@@ -158,6 +160,12 @@ function wordpress_file_upload_manage_dashboard() {
158
  elseif ( $action == 'plugin_settings' ) {
159
  $echo_str = wfu_manage_settings();
160
  }
 
 
 
 
 
 
161
  elseif ( $action == 'edit_shortcode' && $data_enc != "" ) {
162
  $data = wfu_decode_array_from_string($data_enc);
163
  if ( wfu_check_edit_shortcode($data) ) wfu_shortcode_composer($data);
@@ -298,6 +306,86 @@ function wfu_manage_mainmenu($message = '') {
298
  echo $echo_str;
299
  }
300
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  function wfu_manage_instances() {
302
  $siteurl = site_url();
303
  $args = array( 'post_type' => array( "post", "page" ), 'post_status' => "publish,private,draft", 'posts_per_page' => -1 );
@@ -308,7 +396,36 @@ function wfu_manage_instances() {
308
  if ( $ret !== false ) $wfu_shortcodes = array_merge($wfu_shortcodes, $ret);
309
  }
310
 
 
 
 
 
 
311
  $echo_str = "\n\t\t".'<h3 style="margin-bottom: 10px; margin-top: 40px;">Plugin Instances</h3>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  $echo_str .= "\n\t\t".'<table class="widefat">';
313
  $echo_str .= "\n\t\t\t".'<thead>';
314
  $echo_str .= "\n\t\t\t\t".'<tr>';
@@ -363,31 +480,32 @@ function wfu_manage_instances() {
363
  }
364
 
365
  function wfu_get_content_shortcodes($post, $tag) {
366
- $ret = array();
367
  $content = $post->post_content;
368
- $hash = '';
369
- if ( false === strpos( $content, '[' ) ) {
370
- return false;
371
- }
372
-
373
- if ( shortcode_exists( $tag ) ) {
374
- preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE );
375
- if ( empty( $matches ) )
376
- return false;
377
-
378
- foreach ( $matches as $shortcode ) {
379
- if ( $tag === $shortcode[2][0] ) {
380
- $data['post_id'] = $post->ID;
381
- if ( $hash == '' ) $hash = hash('md5', $content);
382
- $data['post_hash'] = $hash;
383
- $data['shortcode'] = $shortcode[0][0];
384
- $data['position'] = $shortcode[0][1];
385
- array_push($ret, $data);
386
- }
 
387
  }
 
388
  }
389
- if ( count($ret) == 0 ) return false;
390
- return $ret;
391
  }
392
 
393
  function wfu_check_edit_shortcode($data) {
@@ -398,6 +516,13 @@ function wfu_check_edit_shortcode($data) {
398
  return ( $hash == $data['post_hash'] );
399
  }
400
 
 
 
 
 
 
 
 
401
  function wfu_replace_shortcode($data, $new_shortcode) {
402
  $post = get_post($data['post_id']);
403
  $new_content = substr($post->post_content, 0, $data['position']).$new_shortcode.substr($post->post_content, (int)$data['position'] + strlen($data['shortcode']));
94
  $dir = (!empty($_POST['dir']) ? $_POST['dir'] : (!empty($_GET['dir']) ? $_GET['dir'] : ''));
95
  $file = (!empty($_POST['file']) ? $_POST['file'] : (!empty($_GET['file']) ? $_GET['file'] : ''));
96
  $data_enc = (!empty($_POST['data']) ? $_POST['data'] : (!empty($_GET['data']) ? $_GET['data'] : ''));
97
+ $postid = (!empty($_POST['postid']) ? $_POST['postid'] : (!empty($_GET['postid']) ? $_GET['postid'] : ''));
98
+ $nonce = (!empty($_POST['nonce']) ? $_POST['nonce'] : (!empty($_GET['nonce']) ? $_GET['nonce'] : ''));
99
  $echo_str = "";
100
 
101
  if ( $action == 'edit_settings' ) {
160
  elseif ( $action == 'plugin_settings' ) {
161
  $echo_str = wfu_manage_settings();
162
  }
163
+ elseif ( $action == 'add_shortcode' && $postid != "" && $nonce != "" ) {
164
+ if ( $_SESSION['wfu_add_shortcode_ticket'] != $nonce ) $echo_str = wfu_manage_mainmenu();
165
+ elseif ( wfu_add_shortcode($postid) ) $echo_str = wfu_manage_mainmenu();
166
+ else $echo_str = wfu_manage_mainmenu(WFU_DASHBOARD_ADD_SHORTCODE_REJECTED);
167
+ $_SESSION['wfu_add_shortcode_ticket'] = 'noticket';
168
+ }
169
  elseif ( $action == 'edit_shortcode' && $data_enc != "" ) {
170
  $data = wfu_decode_array_from_string($data_enc);
171
  if ( wfu_check_edit_shortcode($data) ) wfu_shortcode_composer($data);
306
  echo $echo_str;
307
  }
308
 
309
+ function wfu_construct_post_list($posts) {
310
+ $ids = array();
311
+ $list = array();
312
+ $id_keys = array();
313
+ //construct item indices
314
+ foreach ( $posts as $key => $post ) {
315
+ if ( !array_key_exists($post->post_type, $ids) ) {
316
+ $ids[$post->post_type] = array();
317
+ $list[$post->post_type] = array();
318
+ }
319
+ array_push($ids[$post->post_type], $post->ID);
320
+ $id_keys[$post->ID] = $key;
321
+ }
322
+ //create post list in tree order; items are sorted by post status (publish, private, draft) and then by title
323
+ $i = 0;
324
+ while ( $i < count($posts) ) {
325
+ $post = $posts[$i];
326
+ //find topmost element in family tree
327
+ $tree = array( $post->ID );
328
+ $topmost = $post;
329
+ $par_id = $topmost->post_parent;
330
+ while ( in_array($par_id, $ids[$post->post_type]) ) {
331
+ $topmost = $posts[$id_keys[$par_id]];
332
+ array_splice($tree, 0, 0, $par_id);
333
+ $par_id = $topmost->post_parent;
334
+ }
335
+ //find which needs to be processed
336
+ $level = 0;
337
+ $host = &$list[$post->post_type];
338
+ foreach ( $tree as $process_id ) {
339
+ $found_key = -1;
340
+ foreach ( $host as $key => $item )
341
+ if ( $item['id'] == $process_id ) {
342
+ $found_key = $key;
343
+ break;
344
+ }
345
+ if ( $found_key == -1 ) break;
346
+ $level++;
347
+ $host = &$host[$found_key]['children'];
348
+ }
349
+ if ( $found_key == -1 ) {
350
+ $processed = $posts[$id_keys[$process_id]];
351
+ //add the processed item in the right position in children's list
352
+ $pos = 0;
353
+ $status = ( $processed->post_status == 'publish' ? 0 : ( $processed->post_status == 'private' ? 1 : 2 ) );
354
+ foreach ($host as $item) {
355
+ if ( $status < $item['status'] ) break;
356
+ if ( $status == $item['status'] && strcmp($processed->post_title, $item['title']) < 0 ) break;
357
+ $pos++;
358
+ }
359
+ $new_item = array(
360
+ 'id' => $process_id,
361
+ 'title' => $processed->post_title,
362
+ 'status' => $status,
363
+ 'level' => $level,
364
+ 'children' => array()
365
+ );
366
+ array_splice($host, $pos, 0, array($new_item));
367
+ }
368
+ //advance index if we have finished processing all the tree
369
+ if ( $process_id == $post->ID ) $i++;
370
+ }
371
+ return $list;
372
+ }
373
+
374
+ function wfu_flatten_post_list($list) {
375
+ $flat = array();
376
+ foreach( $list as $item ) {
377
+ $flat_item = array(
378
+ 'id' => $item['id'],
379
+ 'title' => $item['title'],
380
+ 'status' => $item['status'],
381
+ 'level' => $item['level']
382
+ );
383
+ array_push($flat, $flat_item);
384
+ $flat = array_merge($flat, wfu_flatten_post_list($item['children']));
385
+ }
386
+ return $flat;
387
+ }
388
+
389
  function wfu_manage_instances() {
390
  $siteurl = site_url();
391
  $args = array( 'post_type' => array( "post", "page" ), 'post_status' => "publish,private,draft", 'posts_per_page' => -1 );
396
  if ( $ret !== false ) $wfu_shortcodes = array_merge($wfu_shortcodes, $ret);
397
  }
398
 
399
+ $list = wfu_construct_post_list($posts);
400
+ $pagelist = wfu_flatten_post_list($list["page"]);
401
+ $postlist = wfu_flatten_post_list($list["post"]);
402
+ // echo '<pre>'; print_r ($list); echo '</pre>';
403
+
404
  $echo_str = "\n\t\t".'<h3 style="margin-bottom: 10px; margin-top: 40px;">Plugin Instances</h3>';
405
+ $onchange_js = 'document.getElementById(\'wfu_add_plugin_ok\').disabled = !((document.getElementById(\'wfu_page_type\').value == \'page\' && document.getElementById(\'wfu_page_list\').value != \'\') || (document.getElementById(\'wfu_page_type\').value == \'post\' && document.getElementById(\'wfu_post_list\').value != \'\'));';
406
+ $no_shortcodes = ( count($wfu_shortcodes) == 0 );
407
+ $echo_str .= "\n\t\t".'<div id="wfu_add_plugin_button" style="'. ( !$no_shortcodes ? '' : 'color:blue; font-weight:bold; font-size:larger;' ).'margin-bottom: 20px; margin-top: 10px;">';
408
+ $addbutton_pre = ( !$no_shortcodes ? '' : '<label>Press </label>');
409
+ $addbutton_post = ( !$no_shortcodes ? '' : '<label> to get started and add the plugin in a page</label>');
410
+ $echo_str .= "\n\t\t\t".$addbutton_pre.'<button onclick="document.getElementById(\'wfu_add_plugin_button\').style.display = \'none\'; document.getElementById(\'wfu_add_plugin\').style.display = \'inline-block\'; '.$onchange_js.'">'.( !$no_shortcodes ? 'Add Plugin Instance' : 'here' ).'</button>'.$addbutton_post;
411
+ $echo_str .= "\n\t\t".'</div>';
412
+ $echo_str .= "\n\t\t".'<div id="wfu_add_plugin" style="margin-bottom: 20px; margin-top: 10px; display:none;">';
413
+ $echo_str .= "\n\t\t\t".'<label>Add plugin to </label><select id="wfu_page_type" onchange="document.getElementById(\'wfu_page_list\').style.display = (this.value == \'page\' ? \'inline-block\' : \'none\'); document.getElementById(\'wfu_post_list\').style.display = (this.value == \'post\' ? \'inline-block\' : \'none\'); '.$onchange_js.'"><option value="page" selected="selected">Page</option><option value="post">Post</option></select>';
414
+ $echo_str .= "\n\t\t\t".'<select id="wfu_page_list" style="margin-bottom:6px;" onchange="'.$onchange_js.'">';
415
+ $echo_str .= "\n\t\t\t\t".'<option value=""></option>';
416
+ foreach ( $pagelist as $item )
417
+ $echo_str .= "\n\t\t\t\t".'<option value="'.$item['id'].'">'.str_repeat('&nbsp;', 4 * $item['level']).( $item['status'] == 1 ? '[Private]' : ( $item['status'] == 2 ? '[Draft]' : '' ) ).$item['title'].'</option>';
418
+ $echo_str .= "\n\t\t\t".'</select>';
419
+ $echo_str .= "\n\t\t\t".'<select id="wfu_post_list" style="display:none; margin-bottom:6px;" onchange="'.$onchange_js.'">';
420
+ $echo_str .= "\n\t\t\t\t".'<option value=""></option>';
421
+ foreach ( $postlist as $item )
422
+ $echo_str .= "\n\t\t\t\t".'<option value="'.$item['id'].'">'.str_repeat('&nbsp;', 4 * $item['level']).( $item['status'] == 1 ? '[Private]' : ( $item['status'] == 2 ? '[Draft]' : '' ) ).$item['title'].'</option>';
423
+ $echo_str .= "\n\t\t\t".'</select><br />';
424
+ $add_shortcode_ticket = wfu_create_random_string(16);
425
+ $_SESSION['wfu_add_shortcode_ticket'] = $add_shortcode_ticket;
426
+ $echo_str .= "\n\t\t".'<button id="wfu_add_plugin_ok" style="float:right; margin: 0 2px 0 4px;" disabled="disabled" onclick="document.getElementById(\'wfu_add_plugin\').style.display = \'none\'; window.location = \''.$siteurl.'/wp-admin/options-general.php?page=wordpress_file_upload&amp;action=add_shortcode&amp;postid=\' + (document.getElementById(\'wfu_page_type\').value == \'page\' ? document.getElementById(\'wfu_page_list\').value : document.getElementById(\'wfu_post_list\').value) + \'&amp;nonce='.$add_shortcode_ticket.'\';">Ok</button>';
427
+ $echo_str .= "\n\t\t".'<button style="float:right;" onclick="document.getElementById(\'wfu_page_type\').value = \'page\'; document.getElementById(\'wfu_page_list\').value = \'\'; document.getElementById(\'wfu_post_list\').value = \'\'; document.getElementById(\'wfu_add_plugin\').style.display = \'none\'; document.getElementById(\'wfu_add_plugin_button\').style.display = \'inline-block\';">Cancel</button>';
428
+ $echo_str .= "\n\t\t".'</div>';
429
  $echo_str .= "\n\t\t".'<table class="widefat">';
430
  $echo_str .= "\n\t\t\t".'<thead>';
431
  $echo_str .= "\n\t\t\t\t".'<tr>';
480
  }
481
 
482
  function wfu_get_content_shortcodes($post, $tag) {
483
+ $found_shortcodes = array();
484
  $content = $post->post_content;
485
+ if ( false === strpos( $content, '[' ) ) return false;
486
+ $hash = hash('md5', $content);
487
+
488
+ if ( shortcode_exists( $tag ) ) wfu_match_shortcode_nested($tag, $post, $hash, $content, 0, $found_shortcodes);
489
+
490
+ if ( count($found_shortcodes) == 0 ) return false;
491
+ return $found_shortcodes;
492
+ }
493
+
494
+ function wfu_match_shortcode_nested($tag, $post, $hash, $content, $position, &$found_shortcodes) {
495
+ if ( false === strpos( $content, '[' ) ) return false;
496
+ preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE );
497
+ if ( empty( $matches ) ) return false;
498
+ foreach ( $matches as $shortcode ) {
499
+ if ( $tag === $shortcode[2][0] ) {
500
+ $data['post_id'] = $post->ID;
501
+ $data['post_hash'] = $hash;
502
+ $data['shortcode'] = $shortcode[0][0];
503
+ $data['position'] = (int)$shortcode[0][1] + (int)$position;
504
+ array_push($found_shortcodes, $data);
505
  }
506
+ wfu_match_shortcode_nested($tag, $post, $hash, $shortcode[5][0], $shortcode[5][1] + (int)$position, $found_shortcodes);
507
  }
508
+ return false;
 
509
  }
510
 
511
  function wfu_check_edit_shortcode($data) {
516
  return ( $hash == $data['post_hash'] );
517
  }
518
 
519
+ function wfu_add_shortcode($postid) {
520
+ $post = get_post($postid);
521
+ $new_content = '[wordpress_file_upload]'.$post->post_content;
522
+ $new_post = array( 'ID' => $postid, 'post_content' => $new_content );
523
+ return ( wp_update_post( $new_post ) === 0 ? false : true );
524
+ }
525
+
526
  function wfu_replace_shortcode($data, $new_shortcode) {
527
  $post = get_post($data['post_id']);
528
  $new_content = substr($post->post_content, 0, $data['position']).$new_shortcode.substr($post->post_content, (int)$data['position'] + strlen($data['shortcode']));
lib/wfu_constants.php CHANGED
@@ -128,6 +128,7 @@ DEFINE("WFU_TESTMESSAGE_FILE2_MESSAGE", __('File testfile 2 message', 'wordpress
128
  DEFINE("WFU_TESTMESSAGE_FILE2_ADMINMESSAGE", __('File testfile 2 administrator message', 'wordpress-file-upload'));
129
 
130
  //define admin area messages
 
131
  DEFINE("WFU_DASHBOARD_EDIT_SHORTCODE_REJECTED", __("Failed to edit the shortcode because the contents of the page changed. Try again to edit the shortcode.", "wordpress-file-upload"));
132
  DEFINE("WFU_DASHBOARD_DELETE_SHORTCODE_REJECTED", __("Failed to delete the shortcode because the contents of the page changed. Try again to delete it.", "wordpress-file-upload"));
133
  DEFINE("WFU_DASHBOARD_PAGE_OBSOLETE", __("The page containing the shortcode has been modified and it is no longer valid. Please go back to reload the shortcode.", "wordpress-file-upload"));
128
  DEFINE("WFU_TESTMESSAGE_FILE2_ADMINMESSAGE", __('File testfile 2 administrator message', 'wordpress-file-upload'));
129
 
130
  //define admin area messages
131
+ DEFINE("WFU_DASHBOARD_ADD_SHORTCODE_REJECTED", __("Failed to add the shortcode to the page/post. Please try again. If the message persists, contact administrator.", "wordpress-file-upload"));
132
  DEFINE("WFU_DASHBOARD_EDIT_SHORTCODE_REJECTED", __("Failed to edit the shortcode because the contents of the page changed. Try again to edit the shortcode.", "wordpress-file-upload"));
133
  DEFINE("WFU_DASHBOARD_DELETE_SHORTCODE_REJECTED", __("Failed to delete the shortcode because the contents of the page changed. Try again to delete it.", "wordpress-file-upload"));
134
  DEFINE("WFU_DASHBOARD_PAGE_OBSOLETE", __("The page containing the shortcode has been modified and it is no longer valid. Please go back to reload the shortcode.", "wordpress-file-upload"));
readme.txt CHANGED
@@ -56,7 +56,7 @@ Please visit the **Other Notes** section for customization options of this plugi
56
 
57
  1. First install the plugin using Wordpress auto-installer or download the .zip file from wordpress.org and install it from the Plugins section of your Dashboard or copy wordpress_file_upload directory inside wp-contents/plugins directory of your wordpress site.
58
  1. Activate the plugin from Plugins section of your Dashboard.
59
- 1. In order to use the plugin simply put the shortcode [wordpress_file_upload] in the contents of any page.
60
  1. Open the page on your browser and you will see the upload form.
61
  1. You can change the upload directory or any other settings easily by pressing the small edit button found at the left-top corner of the upload form. A new window (or tab) with pop up with plugin options. If you do not see the new window, adjust your browser settings to allow pop-up windows.
62
  1. Full documentation about the plugin options can be found at https://wordpress.org/plugins/wp-file-upload/other_notes/ or at http://www.iptanus.com/wordpress-plugins/wordpress-file-upload/ (including the Pro version)
@@ -127,6 +127,10 @@ In the free version the upload will fail. However in the Pro version the upload
127
 
128
  == Changelog ==
129
 
 
 
 
 
130
  = 2.7.5 =
131
  * added German and Greek translation
132
 
@@ -433,6 +437,9 @@ Initial version.
433
 
434
  == Upgrade Notice ==
435
 
 
 
 
436
  = 2.7.5 =
437
  Upgrade to add some new features.
438
 
@@ -902,3 +909,4 @@ function wfu_after_file_upload_handler($file_unique_id, $upload_result, $error_m
902
 
903
  The plugin requires to have Javascript enabled in your browser. For Internet Explorer you also need to have Active-X enabled.
904
  Please note that old desktop browsers or mobile browsers may not support all of the plugin's features. In order to get full functionality use the latest versions of browsers, supporting HTML5, AJAX and CSS3.
 
56
 
57
  1. First install the plugin using Wordpress auto-installer or download the .zip file from wordpress.org and install it from the Plugins section of your Dashboard or copy wordpress_file_upload directory inside wp-contents/plugins directory of your wordpress site.
58
  1. Activate the plugin from Plugins section of your Dashboard.
59
+ 1. In order to use the plugin simply go to the Dashboard / Settings / Wordpress File Upload and follow the instructions in Plugin Instances or alternatively put the shortcode [wordpress_file_upload] in the contents of any page.
60
  1. Open the page on your browser and you will see the upload form.
61
  1. You can change the upload directory or any other settings easily by pressing the small edit button found at the left-top corner of the upload form. A new window (or tab) with pop up with plugin options. If you do not see the new window, adjust your browser settings to allow pop-up windows.
62
  1. Full documentation about the plugin options can be found at https://wordpress.org/plugins/wp-file-upload/other_notes/ or at http://www.iptanus.com/wordpress-plugins/wordpress-file-upload/ (including the Pro version)
127
 
128
  == Changelog ==
129
 
130
+ = 2.7.6 =
131
+ * added functionality in Dashboard to add the plugin to a page automatically
132
+ * fixed bug that was not showing the Shortcode Composer because the plugin could not find the plugin instance when the shortcode was nested in other shortcodes
133
+
134
  = 2.7.5 =
135
  * added German and Greek translation
136
 
437
 
438
  == Upgrade Notice ==
439
 
440
+ = 2.7.6 =
441
+ Upgrade to add some new features and address some bugs.
442
+
443
  = 2.7.5 =
444
  Upgrade to add some new features.
445
 
909
 
910
  The plugin requires to have Javascript enabled in your browser. For Internet Explorer you also need to have Active-X enabled.
911
  Please note that old desktop browsers or mobile browsers may not support all of the plugin's features. In order to get full functionality use the latest versions of browsers, supporting HTML5, AJAX and CSS3.
912
+
release_notes.txt CHANGED
@@ -1 +1 @@
1
- <span><strong>Latest release notes: </strong>This version introduces <!-- -->translation of the plugin in German and Greek language.</span>
1
+ <span><strong>Latest release notes: </strong>This version makes the plugin easier, even for people that do not have knowledge on how to use shortcodes. A button has been added in Plugin Instances below that can be used to add the plugin to a page or post quickly. What it does is that it inserts the plugin's shortcode at the beginning of the selected page or post. Furthermore, a bug was corrected where administrators could not open the Shortcode Composer or they could not see the plugin instance they created. This problem happened when the shortcode was added inside another shortcode or with some visual page editors.</span>
wordpress_file_upload.php CHANGED
@@ -4,7 +4,7 @@ if( !session_id() ) { session_start(); }
4
  /*
5
  Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
6
  Description: Simple interface to upload files from a page.
7
- Version: 2.7.5
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */
4
  /*
5
  Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
6
  Description: Simple interface to upload files from a page.
7
+ Version: 2.7.6
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */