Commit Graph

135 Commits

Author SHA1 Message Date
Rodrigo Primo
030bd8c1c8 Fix PHPStan parameter type error introduced after update to version 0.12.83
This commit fixes the following PHPStan errors introduced after the update to version 0.12.83:

```
 ------ ----------------------------------------------------------------------
  Line   lib/Newsletter/Renderer/Blocks/Footer.php
 ------ ----------------------------------------------------------------------
  18     Parameter #1 $html of method MailPoet\Util\pQuery\pQuery::parseStr()
         expects string, array|string|null given.
 ------ ----------------------------------------------------------------------

 ------ ----------------------------------------------------------------------
  Line   lib/Newsletter/Renderer/Blocks/Header.php
 ------ ----------------------------------------------------------------------
  18     Parameter #1 $html of method MailPoet\Util\pQuery\pQuery::parseStr()
         expects string, array|string|null given.
 ------ ----------------------------------------------------------------------
```

[MAILPOET-3491]
2021-04-12 08:55:14 +02:00
Pavel Dohnal
deb4d7833d Fix text align
[MAILPOET-3473]
2021-03-15 09:54:46 +01:00
wxa
0dffed35e9 Extract ALC and ACC block classes out of block renderer [MAILPOET-2979] 2020-10-07 11:48:50 +02:00
wxa
52b84296b3 Add abandoned cart block rendering in email [MAILPOET-2979] 2020-10-07 11:48:50 +02:00
Rostislav Wolny
6cf0a1c04f Update block renderer to be reusable for multiple emails
[MAILPOET-2961]
2020-06-04 10:40:02 +02:00
Rostislav Wolny
36e3d2cae4 Change visibility of setPosts,getPosts in blocks renderer.
[MAILPOET-2961]
2020-06-04 10:40:02 +02:00
Rostislav Wolny
9f37ee4811 Use post notifications history parent to fetch latest sent post
[MAILPOET-2960]
2020-06-03 14:14:12 +02:00
Pavel Dohnal
c63c49af89 Use doctrine for latest post fetching
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
7b0c5e61fe Use Newsletter entity in renderer
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
be631bd549 Use DI for blocks rendering
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
5f73f9ee3e Use DI in block renderer
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
7561730407 Use DI in ALC
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Rostislav Wolny
6f4ad78536 Fix coding style in Text block renderer
[MAILPOET-2821]
2020-03-29 21:39:01 +02:00
Jan Jakeš
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Amine Ben hammou
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Jan Jakeš
9166f280d0 Move CSS to MailPoetVendor namespace
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00
Jan Jakeš
ade1cc4d8e Autofix alphabetically sorted use statements
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Rostislav Wolny
472662b106 Add test for text renderer
[MAILPOET-2086]
2019-05-20 13:14:43 -04:00
Rostislav Wolny
948d58e310 Add test for social icons renderer
[MAILPOET-2086]
2019-05-20 13:14:43 -04:00
Rostislav Wolny
9a2101f13f Add test for image renderer
[MAILPOET-2086]
2019-05-20 13:14:43 -04:00
Rostislav Wolny
48a6a842da Add test for header renderer
[MAILPOET-2086]
2019-05-20 13:14:43 -04:00
Rostislav Wolny
5055c53e2b Add test for footer
[MAILPOET-2086]
2019-05-20 13:14:43 -04:00
Rostislav Wolny
28c87b746c Add test for divider
[MAILPOET-2086]
2019-05-20 13:14:43 -04:00
Rostislav Wolny
9c0d39e74b Add test for spacer renderer
[MAILPOET-2086]
2019-05-20 13:14:43 -04:00
Pavel Dohnal
5d64ec168d Add rule for concatenation operator spacing
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Pavel Dohnal
12ff88ee21 Add rule for operator spacing
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Pavel Dohnal
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Rostislav Wolny
a27b224d8f Fix usage of content helpers to respect context
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Rostislav Wolny
e820d690b5 Refactor text renderer
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Rostislav Wolny
fbb015dc8c Refactor social renderer
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Rostislav Wolny
e345f7ead1 Refactor image renderer
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Rostislav Wolny
604583bbc8 Refactor footer and header renderer
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Rostislav Wolny
5a5cdf4fd1 Refactor divider and spacer renderers
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Rostislav Wolny
50386ba9ed Refactor button renderer
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Rostislav Wolny
756ebe673b Get rid of global & encoding in post process
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Jan Jakeš
51de087c01 Remove top padding for ALC & Post block titles
[MAILPOET-1701]
2019-03-29 11:44:22 -04:00
Jan Jakeš
1b5afa92da Change 20px bottom block margin to 10px top+bottom padding in Renderer
[MAILPOET-1701]
2019-03-29 11:44:22 -04:00
Pavel Dohnal
ff4d5be38a Add a non breaking space
Instead of a normal space that has been removed by outlook I added a non breaking space

[MAILPOET-1827]
2019-03-27 09:45:21 -04:00
Amine Ben hammou
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
Jan Jakeš
35d39a6ac9 Implement adjustable line-height
[MAILPOET-1450]
2019-03-05 07:21:16 -05:00
wxa
fb77167a1f Remove unused imports [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Rostislav Wolny
0cfc9055c4 Add support for social icons alignment to renderer
[MAILPOET-1731]
2019-02-11 12:28:04 -05:00
Rostislav Wolny
cd2ababade Refactor utils CSS so that it can be used as service in DI container
[MAILPOET-1730]
2019-01-31 14:36:26 +01:00
Rostislav Wolny
f1ab901e02 Preserve inlined link styles in header and footer
[MAILPOET-1730]
2019-01-31 14:36:26 +01:00
Rostislav Wolny
41404ee34e Fix full width images on mobile clients
[MAILPOET-1743]
2019-01-30 11:33:34 +01:00
wxa
c2955bdf35 Fix padded ALC images breaking out of width on mobile [MAILPOET-1693] 2018-12-17 18:06:16 +03:00
Jan Jakeš
28356a522a Fix images without dimensions being given size of 0
[MAILPOET-1680]
2018-12-12 17:32:41 +01:00