├── LICENSE.md
├── README.md
├── UPGRADE.md
├── composer.json
├── config
├── services.yaml
└── services
│ ├── parser.yaml
│ ├── service.yaml
│ └── twig.yaml
├── public
└── css
│ └── foundation-for-emails
│ ├── foundation.css
│ └── foundation.min.css
├── src
├── Collector
│ └── CssCollector.php
├── DependencyInjection
│ └── EmailizrExtension.php
├── EmailizrBundle.php
├── Parser
│ ├── InkyParser.php
│ └── InlineStyleParser.php
├── Service
│ └── ContentService.php
└── Twig
│ ├── Extension
│ └── InlineStyleExtension.php
│ ├── Node
│ └── InlineStyleNode.php
│ └── Parser
│ └── InlineStyleTokenParser.php
└── templates
└── layout.html.twig
/LICENSE.md:
--------------------------------------------------------------------------------
1 | # License
2 | Copyright (C) DACHCOM.DIGITAL
3 |
4 | This software is available under two different licenses:
5 | * GNU General Public License version 3 (GPLv3) as Pimcore Community Edition
6 | * DACHCOM Commercial License (DCL)
7 |
8 | The default Emailizr Bundle license, without a valid DACHCOM Commercial License agreement, is the Open-Source GPLv3 license.
9 |
10 | ## GNU General Public License version 3 (GPLv3)
11 | If you decide to choose the GPLv3 license, you must comply with the following terms:
12 |
13 | This program is free software: you can redistribute it and/or modify
14 | it under the terms of the GNU General Public License as published by
15 | the Free Software Foundation, either version 3 of the License, or
16 | (at your option) any later version.
17 |
18 | This program is distributed in the hope that it will be useful,
19 | but WITHOUT ANY WARRANTY; without even the implied warranty of
20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 | GNU General Public License for more details.
22 |
23 | You should have received a copy of the GNU General Public License
24 | along with this program. If not, see .
25 |
26 | ## DACHCOM Commercial License (DCL)
27 | Alternatively, commercial and supported versions of the program - also known as
28 | Commercial Distributions - must be used in accordance with the terms and conditions
29 | contained in a separate written agreement between you and DACHCOM.DIGITAL AG.
30 | For more information about the Emailizr Bundle Commercial License (DCL) please contact dcdi@dachcom.ch.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Pimcore Emailizr
2 |
3 | [](LICENSE.md)
4 | [](LICENSE.md)
5 | [](https://packagist.org/packages/dachcom-digital/emailizr)
6 | [](https://github.com/dachcom-digital/pimcore-emailizr/actions?query=workflow%3A%22Codeception%22)
7 | [](https://github.com/dachcom-digital/pimcore-emailizr/actions?query=workflow%3A%22PHP%20Stan%22)
8 |
9 | ### Requirements
10 | - Pimcore ^11.4
11 | - PHP >= 8.1
12 | - Twig >= 3.9
13 |
14 | ### Release Plan
15 |
16 | | Release | Supported Pimcore Versions | Supported Symfony Versions | Release Date | Maintained | Branch |
17 | |-----------|----------------------------|----------------------------|--------------|----------------|---------------------------------------------------------------------|
18 | | **>=3.1** | `11.4` | `^6.4` | 08.01.2025 | Feature Branch | master |
19 | | **3.x** | `11.0` | `^6.2` | 30.08.2023 | Feature Branch | master |
20 | | **2.x** | `10.1` - `10.6` | `^5.4` | 21.09.2021 | No | [2.x](https://github.com/dachcom-digital/pimcore-emailizr/tree/2.x) |
21 | | **1.x** | `6.0` - `6.9` | `3.4`, `^4.4` | 06.12.2017 | No | [1.x](https://github.com/dachcom-digital/pimcore-emailizr/tree/1.x) |
22 |
23 | ## Installation
24 |
25 | ```json
26 | "require" : {
27 | "dachcom-digital/emailizr" : "~3.2.0",
28 | }
29 | ```
30 |
31 | Add Bundle to `bundles.php`:
32 | ```php
33 | return [
34 | EmailizrBundle\EmailizrBundle::class => ['all' => true],
35 | ];
36 | ```
37 |
38 | - Create valid email markup with inky and inline styles.
39 | - Respect editables in pimcore edit mode.
40 |
41 | ## Usage
42 | Just extend the emailizr layout:
43 |
44 | ```twig
45 | {% extends '@Emailizr/layout.html.twig' %}
46 | ```
47 |
48 | This will include a markup like this. You may want to change it:
49 | ```twig
50 | {% apply spaceless %}
51 | {{ emailizr_style_collector.add('@EmailizrBundle/public/css/foundation-for-emails/foundation.min.css') }}
52 | {% emailizr_inline_style %}
53 |
54 |
55 |
56 |
70 |
71 |
72 |
73 | {% block content %}
74 | {% endblock %}
75 |
76 | |
77 |
78 |
79 |
80 |