Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Remove hampe/zurb-ink-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Gerig committed Sep 17, 2018
1 parent e620c9d commit 34f7ed4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -14,7 +14,7 @@
],
"require": {
"coreshop/registry": "^2.0",
"hampe/zurb-ink-bundle": "^2.2",
"dachcom-digital/emailizr" : "~1.0.0",
"w-vision/wvision-web-project": "^1.0"
},
"autoload": {
Expand Down
29 changes: 10 additions & 19 deletions docs/01_Email-Development.md
@@ -1,32 +1,23 @@
# Email development

A full-featured workflow for responsive emails comes with this bundle.
To use its functionality inside a pimcore email, simply add the bundle in your AppKernel.php
and extend the base layout.
Responsive emails are made possible with the awesome [Pimcore Emailizr](https://github.com/dachcom-digital/pimcore-emailizr).
To use its functionality inside a pimcore email, follow these simple steps.

```php
$collection->addBundle(new \Hampe\Bundle\ZurbInkBundle\HampeZurbInkBundle());
```
First extend your email template with the layout from Emailizr.

```twig
{% extends 'HampeZurbInkBundle:FoundationForEmails:2/base.html.twig' %}
{% extends '@Emailizr/layout.html.twig' %}
```

Usually this is done inside your own email layout.
Then the only thing left is that you have to include a link to a css file.
Now you can build your email within the following twig block.

```twig
{% block preHtml %}
{# add your css files here, please use a bundle relative path #}
{{ zurb_ink_styles.add('@WvisionBundle/Resources/public/static/css/mail.css') }}
{% block content %}
{# email contents go here #}
{% endblock %}
```

Now you can build your email within the following twig block.
The full documentation on what you can use can be found [here](http://foundation.zurb.com/emails/docs/sass-guide.html) (read carefully)!
Please read the [Foundation for Emails documentation](http://foundation.zurb.com/emails/docs/sass-guide.html) carefully!
By the way, Pimcore editables are fully supported!

```twig
{% block content %}
{# email contents go here #}
{% endblock %}
```
Further information can be found [here](https://github.com/dachcom-digital/pimcore-emailizr).

0 comments on commit 34f7ed4

Please sign in to comment.