Commit Graph

3270 Commits

Author SHA1 Message Date
Jonathan Labreuille
354d249e1d Moved current Router files to API
- updated Unit tests to reflect the change
2016-08-01 17:00:32 +02:00
Jonathan Labreuille
008fdb94c5 Moved lib/API to lib/Router
- renamed lib/API/API.php to lib/Router/Front.php
- updated namespaces in various file to account for namespace change
2016-08-01 17:00:32 +02:00
Tautvidas Sipavičius
cb5d7cb9a0 Fix incorrect post notification template logo URL 2016-07-29 16:52:55 +03:00
Tautvidas Sipavičius
a44d4ed0b5 Add new newsletter sample templates 2016-07-29 16:29:44 +03:00
Tautvidas Sipavičius
7bd23288f6 Add newsletter blank 1 column template 2016-07-29 16:28:44 +03:00
Tautvidas Sipavičius
c46ee07674 Change form editor page title, swap "New" to "Add New" 2016-07-29 13:30:17 +03:00
Tautvidas Sipavičius
18398a3bfb Finish changing segments to lists and columns to fields 2016-07-29 13:30:17 +03:00
Kiefer Conrad
c05a20cff9 Update 28 July 2016 2016-07-29 13:29:05 +03:00
Tautvidas Sipavičius
08cb994252 Merge pull request #573 from mailpoet/text_version_fix
Fixes link rendering in text version of the newsletter
2016-07-28 16:17:13 +03:00
Jonathan Labreuille
641ba04685 Added Newsletter::getArchives() in order to return proper archives
- Archives page: replaced created_at by processed_at as the issue date
2016-07-28 11:52:56 +02:00
Vlad
8e4d07c658 - Updates regex to not match http/ftp links as shortcodes
- Updates regex to properly replace links in text version of newsletter
2016-07-27 21:57:55 -04:00
Tautvidas Sipavičius
775f7faee4 Declare private properties and swap strings for named constants 2016-07-27 16:35:21 +03:00
Tautvidas Sipavičius
13b91ad051 Encapsulate showing WP notices into a separate Notice class 2016-07-27 15:07:09 +03:00
Tautvidas Sipavičius
2d3ec13473 Stringify exception to include the stack trace as well 2016-07-27 13:58:44 +03:00
Tautvidas Sipavičius
3094cfc076 Prevent plugin from disabling itself on error, display that error to
admin instead
2016-07-26 16:18:33 +03:00
Tautvidas Sipavičius
13589a4660 Merge pull request #552 from mailpoet/newsletter_listing
Post notification history listing
2016-07-22 16:20:00 +03:00
Vlad
5f124659d0 - Fixes PHP static standards error 2016-07-22 08:45:46 -04:00
Vlad
e83d01ff28 - Avoids sending duplicate posts 2016-07-21 20:54:32 -04:00
Jonathan Labreuille
3e746d1545 fixed API data decoding issue
- added missing features from issue #419
- removed isMailPoetPage() as the logic was flawed
2016-07-21 15:10:25 +02:00
Tautvidas Sipavičius
3cc43aa302 Merge pull request #566 from mailpoet/wp_users_fix
Deleting a WP user
2016-07-20 14:32:36 +03:00
Jonathan Labreuille
362ee49ce4 Let the statisticsForms model return the total signups instead of the form model
- added unit test for getTotalSignups() method
2016-07-19 17:38:45 +02:00
Jonathan Labreuille
ed7da1a8fe Deleting a WP user unlinks the subscriber and removes his subscription to the WP Segment 2016-07-19 17:13:20 +02:00
Jonathan Labreuille
12c036dbef refactored Models/Newsletter::getStatistics method to avoid duplication
- replaced "TO REFACTOR" with more conventional "TODO"
2016-07-19 15:34:14 +02:00
Jonathan Labreuille
1dd4ade04d added signups to forms listing 2016-07-19 13:44:32 +02:00
Jonathan Labreuille
0706450f9a Add children() method to Newsletter model to get child newsletters (history in case of post notif)
- added conditional display of "view history" link in Notification listing
- fixed indentation in duplicatePostNotif method according to code sniffer report
2016-07-18 16:47:12 +02:00
Jonathan Labreuille
b837a153d1 merged post_notification_update 2016-07-18 16:06:04 +02:00
Jonathan Labreuille
3d706414b7 Renamed tab to type
- renamed getExtraParams to getParams
- fixed issue with String.contains by replacing it with indexOf
- removed useless break; statement
2016-07-18 16:01:47 +02:00
Jonathan Labreuille
ef0cbb3e9f Added "params" to the $data in Listing Handler
- moved "tab" to params
- improved url generation in listing.jsx to allow more flexibility
- added "parent_id" filter in newsletter model to get children of a given newsletter id
2016-07-18 16:01:47 +02:00
Jonathan Labreuille
f5552847a3 Added parent_id to Newsletters table
- added NOTIFICATION_HISTORY Newsletter's type
- implement basic UI for notification_history
- TODO: implement passing extra parameters in order to handle the :id part
2016-07-18 16:01:47 +02:00
Jonathan Labreuille
101ef0cff4 Fixed stats for welcome emails
- re-added ORM logging in order to debug queries
- fixed subscription confirmation / unsubscribe due to API refactor
2016-07-18 16:01:47 +02:00
Vlad
9e70ba5e6e - Reverts back the duplicate method
- Updates post notification creation method with logic to duplicate the
  original newsletter
2016-07-15 13:07:00 -04:00
Vlad
8f1a7ed3de - Sets notification history status to "sent" upon completion
- Implements #548
2016-07-15 13:06:40 -04:00
Vlad
6aa976ba1f - Creates a new notification history when processing the queue 2016-07-15 13:06:40 -04:00
Vlad
db85604f18 - Removes scheduling of post notification during newsletter activation stage 2016-07-15 13:06:40 -04:00
Vlad
7605fc71ac - Adds a method to create a notification history newsletter 2016-07-15 13:00:47 -04:00
Vlad
2c98270084 - Adds new column to the newsletter table
- Adds new newsletter notification history type
2016-07-15 13:00:47 -04:00
Tautvidas Sipavičius
2714c7fa9a Merge pull request #563 from mailpoet/copy-edit
Copy edit - July 15 2016
2016-07-15 15:31:50 +03:00
Kiefer Conrad
49b65729db update 14 July 2016 2016-07-14 20:58:12 +02:00
Vlad
88113cf22e - Modifes task scheduler setting to include method type 2016-07-14 09:44:16 -04:00
Vlad
05848ce7aa - Adds task scheduler option to settings
- Closes #553
2016-07-13 19:49:18 -04:00
Jonathan Labreuille
b58d996ac7 Merge pull request #551 from mailpoet/newsletter_archive
Newsletter archive: link to browser version
2016-07-12 17:19:27 +02:00
Tautvidas Sipavičius
456deede14 Change newsletter archive to link to "View in brower" newsletter
versions
2016-07-12 17:55:36 +03:00
Tautvidas Sipavičius
4ef50ca551 Fix notices and warnings in newsletter preview when there's no template 2016-07-12 17:11:13 +03:00
Kiefer Conrad
3018dff1ff Edit July 12 2016 2016-07-12 11:07:36 +02:00
Vlad
9386fe8328 - Fixes post notifications not being sent 2016-07-11 18:56:01 -04:00
Tautvidas Sipavičius
386bdceed3 Merge pull request #543 from mailpoet/api_refactor
API refactor
2016-07-08 13:55:01 +03:00
Vlad
cef9f1dcf8 - Updates constant names 2016-07-07 14:32:05 -04:00
Vlad
c78b2088eb - Updates the check for invalid API endpoint 2016-07-07 14:20:27 -04:00
Vlad
150364de3a - Fixes API endpoint naming convention
- Generates/saves cron daemon token as soon as its executed
2016-07-07 14:00:07 -04:00
Vlad
1cd9f3eb67 - Removes counter from cron daemon
- Invokes token regeneration/comparion at a later stage
2016-07-07 10:24:24 -04:00