Rodrigo Primo
55dc8ac902
Protect against fatal error when rendering e-mail styles
...
This commit protects the code that renders styles for e-mails against a
fatal error that could happen if the variable $styles passed to Renderer::renderStyles()
is not an array of arrays. To do that, the code will now check if each value
of the array is an array. If not, we move on to the next value instead of
calling StylesHelper::setStyle(). I also added type hints to
StylesHelper::setStyle() and some of the methods that it calls to make
it more explicit what it expects to receive and what it returns.
[MAILPOET-3731]
2021-08-16 14:36:15 +02:00
Pavel Dohnal
df7b961768
Fix 1px line rendering bug in Outlook 2016
...
[MAILPOET-3448]
2021-05-26 09:34:58 +02:00
Pavel Dohnal
deb4d7833d
Fix text align
...
[MAILPOET-3473]
2021-03-15 09:54:46 +01:00
Pavel Dohnal
658aa6a1d7
Use the correct type
...
[MAILPOET-2716]
2020-04-24 11:44:09 +02:00
Jan Jakeš
eae5c5010d
Fix properties with missing visibility
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
8c848cfa28
Convert property names to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01: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š
b22d9e1550
Fix conditional font-include comment for Outlook
...
[MAILPOET-2562]
2019-12-12 19:07:38 +00:00
Jan Jakeš
1b5b9d89ff
Autofix namespace declaration spacing
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Rostislav Wolny
fdb7dc971c
Get rid of removing !important flags in render post process
...
[MAILPOET-1891]
2019-04-10 03:05:22 -04:00
Jan Jakeš
35d39a6ac9
Implement adjustable line-height
...
[MAILPOET-1450]
2019-03-05 07:21:16 -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
Pavel Dohnal
82bdd343bd
Add new fonts
...
[MAILPOET-1733]
2019-02-10 18:39:59 -05:00
Amine Ben hammou
cca2a1923d
fix code typos and style
2018-11-06 12:38:39 +01:00
Amine Ben hammou
62e47dcf12
make small improvements and additional specs details.
2018-11-06 11:01:55 +01:00
Amine Ben hammou
8209facb5c
adding custom fonts
2018-11-06 10:59:20 +01:00
Vlad
2ad9ebf1d3
Uses full font-family name in element styles
2018-06-12 19:15:30 -04:00
Vlad
1db8626e35
- Fixes 'Cannot access self:: when no class scope is active' error in PHP 5.3
2016-11-06 18:55:20 -05:00
Vlad
31e082eb2b
- Removes space between IF and statement
2016-05-18 10:00:38 -04:00
Vlad
bf1ab3a593
- Removes space between (int) and variable
2016-05-18 10:00:38 -04:00
Vlad
f930b3303b
- Sets text-align to left when it's not center|justify|right
2016-04-08 20:37:00 -04:00
Vlad
ba40437eb9
- Enables dynamic line-height based on font-size
2016-04-08 15:19:14 -04:00
Vlad
813db1ae33
- Sets LI bottom margin to 10px
2016-04-08 08:45:09 -04:00
Vlad
9588397e4e
- Moves all styles logic to the StylesHelper class
...
- Sets margin-bottom on h1-4 to be 0.3*font-size
2016-04-07 19:39:09 -04:00
Vlad
33289342d3
- Implements dynamic margins on headings
2016-04-07 19:39:09 -04:00
Vlad
8a664aa7f1
- Set left text alignment on all elements when alignment is otherwise
...
absent
2016-04-07 19:38:15 -04:00
Vlad
4f30158722
- Updates button height calculation
...
- Removes background color when it's set to "transparent"
- Removes second line break from paragraphs
- Introduces other changes based on Becks's testing
- Updates unit tests
2016-03-31 19:19:58 -04:00
Vlad
3c77e5d25e
- Removes dynamic line-height based on column width
...
- Updates logic behind removing last element bottom padding
- Properly sets font size for H1-4 tags, header, footer and text
2016-03-30 20:09:06 -04:00
Vlad
3dce951e66
- Updates rendering engine based on Becs's comments
...
- Prevents removing of side padding
- Enables font size on output
- Sets line-height in footer
- Adds image height:auto
- Adds mobile styles for buttons
- Updates style sheet
2016-03-22 20:21:39 -04:00
Vlad
9e81c48bf8
- Adds new 'fontWeight' property
...
- Limits max button width to column width
- Adds bold option to buttons
2016-02-25 11:32:09 -05:00
Vlad
42ad7584d4
- Refactors ColumnsHelper class
2016-01-08 11:35:30 -05:00
Vlad
d1df94c759
- Addresses issues identified during code review
2016-01-07 17:24:46 -05:00
Vlad
bc80f69e41
- Updates the template
2016-01-07 17:24:43 -05:00
Vlad
2793e74858
- Rewrites the rendering engine
...
- Updates tests
Closes #280
2016-01-07 17:24:32 -05:00
MrCasual
a2494cfa1b
- Adds tests for newsletter renderer
2015-09-23 22:42:11 -04:00
MrCasual
b3e376cd01
- Refactored using @badshark's comments
...
- Integrated changes to JSON data
2015-09-23 11:24:08 -04:00
MrCasual
01b5416882
Refactors Newsletters as per @badshark's comments
2015-09-23 09:28:00 -04:00