Commit Graph

68 Commits

Author SHA1 Message Date
Amine Ben hammou
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
Amine Ben hammou
4ff8e4031a Move getImageInfo to PostTransformer 2019-03-07 08:30:14 -05:00
Pavel Dohnal
c8f2ff7f30 Update condition for better readability
[MAILPOET-1710]
2019-03-06 07:48:33 -05:00
Pavel Dohnal
6d3beaa45d Render post position
[MAILPOET-1710]
2019-03-06 07:48:33 -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áš
a935b091d3 Add space between elseif/else 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
Amine Ben hammou
8b602bd947 Move WPHooks methods to WPFunctions 2019-01-31 13:25:00 +01:00
M. Shull
59418efa99 Merge pull request #1746 from mailpoet/phpstan-cleanup
Raise PHPStan strictness level to 1
2019-01-28 10:47:24 -05:00
Ján Mikláš
eb1376eeef Fix post images detection in editor
MAILPOET-1756
2019-01-25 09:42:04 +01:00
Tautvidas Sipavičius
9f13f68e39 Fix "Access to undefined property" rule violations 2019-01-23 11:33:47 +02:00
Jan Jakeš
3a26049270 Add missing array & class typehints
[MAILPOET-1684]
2019-01-08 14:48:05 +01:00
Jan Jakeš
08a2fa8f8f Split transform tags code to multiple methods
[MAILPOET-1684]
2019-01-08 14:47:19 +01:00
Jan Jakeš
0d80d7492a Filter out <figure> tags without images
[MAILPOET-1684]
2019-01-08 09:34:03 +01:00
Jan Jakeš
88f14575dc Use image alignment from <figure> or <img>
[MAILPOET-1684]
2019-01-08 08:48:46 +01:00
Jan Jakeš
4d97a2f6a7 Extract nested img element more safely
[MAILPOET-1684]
2019-01-08 08:48:46 +01:00
Jan Jakeš
0c7c725629 Simplify code transforming images from posts
[MAILPOET-1684]
2019-01-08 08:48:46 +01:00
wxa
0573a7915e Merge pull request #1689 from mailpoet/wp-functions
Encapsulating WP calls
2018-12-27 11:05:08 +03:00
Jan Jakeš
28356a522a Fix images without dimensions being given size of 0
[MAILPOET-1680]
2018-12-12 17:32:41 +01:00
Amine Ben hammou
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
Rostislav Wolny
cb8d532d64 Fix ALC rendering of posts to have a padded title
[MAILPOET-1558]
2018-11-05 15:33:48 +01:00
Rostislav Wolny
35825c3432 Fix spacing between paragraphs in full post [MAILPOET-1455] 2018-07-10 14:26:36 +02:00
Rostislav Wolny
4fba615d30 Fix rendering of posts in newsletter [MAILPOET-1416] 2018-06-25 12:45:45 +02:00
Pavel Dohnal
bb579370a8 Fix list ALC preview
[MAILPOET-1404]
2018-06-14 15:28:08 +01:00
Rostislav Wolny
b36537a4e8 renderer: Processing Post without layout renders featured_image only for excerpt display type [MAILPOET-1409] 2018-06-08 17:05:37 +02:00
Rostislav Wolny
62fd56400b renderer: Fixed notice in PostTransformer for older data without 'withLayout' property [MAILPOET-1409] 2018-06-08 17:02:03 +02:00
Fred. P
b9ce9ecf28 Fix image fullwidth toggle [MAILPOET-1365]
Prevent WordPress $content_width global to override
mailpoet_image_size when calling wp_get_attachment_image_src()
in ACL generated posts.
2018-06-05 10:19:39 +02:00
Fred. P
ac47866295 Fix image fullwidth toggle [MAILPOET-1365]
Prevent WordPress $content_width global to override
mailpoet_image_size when calling wp_get_attachment_image_src()
in ACL generated posts.
2018-06-05 08:59:57 +02:00
Amine Ben hammou
67b66856f5 removing images and headings from the excerpt 2018-06-01 11:21:59 +00:00
Amine Ben hammou
6914a9c224 excerpt are now displayed 2018-05-30 09:15:14 +00:00
Amine Ben hammou
88be42fea1 fixing naming issues 2018-05-28 10:33:13 +00:00
Amine Ben hammou
2215b53141 removing top padding from excerpt text 2018-05-24 07:44:41 +00:00
Amine Ben hammou
5b077cfb54 adding styles to containers 2018-05-23 10:39:08 +00:00
Amine Ben hammou
0a298f5fad creating new ALC block and widget 2018-05-23 07:42:30 +00:00
Amine Ben hammou
d7ab03b1c7 rewrite PostTransformer to return old or new structure depending on the newVersion attribute 2018-05-23 05:15:40 +00:00
Vlad
72c3f763ec Removes shortcodes from full post content 2017-11-14 13:17:47 -05:00
Vlad
44c5d8490f Fixes shortcodes not being properly stripped on excerpts 2017-11-14 12:35:08 -05:00
Pavel Dohnal
893c6bd72b Remove tags from ALC display
[MAILPOET-1182]
2017-10-25 15:49:23 +01:00
Vlad
49318791fc Adds hook to modify max post excerpt 2017-08-14 20:55:49 -04:00
Vlad
a5abdd28e1 Removes unused constructor parameter 2017-08-14 20:55:42 -04:00
Tautvidas Sipavičius
6de746162e Update Posts transformer to extract images by splitting the DOM tree 2017-07-28 14:36:12 +03:00
Tautvidas Sipavičius
60b3c066a5 Allow rendering blockquote tags 2017-07-28 11:10:57 +03:00
Alexey Stoletniy
8507c77699 Fix categories not showing for posts in newsletter editor [MAILPOET-808] 2017-02-09 11:13:46 +03:00
Alexey Stoletniy
b7ef191641 Remove leading slashes in imports [MAILPOET-764] 2017-01-25 10:22:27 +03:00
Vlad
c291fada74 - Adds post ID data tag when ALC is configured to display posts as a
list
2017-01-05 13:24:41 -05:00
Vlad
698cdecbfe - Conditionally keeps margin/padding for ALC posts inside editor
- Adds line breaks for ALC posts in the renderer
2016-12-30 10:17:43 -05:00
Vlad
fb29800c7d - Replaces line breaks with empty paragraphs 2016-12-28 19:30:52 -05:00
Vlad
2634b606f6 - Fixes ALC transformer class to append style tags with semicolon 2016-12-13 19:32:50 -05:00
Tautvidas Sipavičius
b2f662c1d5 Fix displaying dividers in ALC blocks MAILPOET-721 2016-12-05 19:45:46 +02:00