Skip to content

Commit c1c5bce

Browse files
shinde-rahuljos0405nickveenhofRCheesley
authored
TPROD-224: Confirmme theme back into mautic/mautic (mautic#10047)
* add mjml theme confirmme * Corrected theme name. * Corrected theme name. * Updated .gitignore file and added composer file for confirmme theme. * Fix incorrect specification of supported builders Co-authored-by: jos0405 <[email protected]> Co-authored-by: Nick Veenhof <[email protected]> Co-authored-by: Ruth Cheesley <[email protected]>
1 parent e95dee5 commit c1c5bce

File tree

7 files changed

+88
-0
lines changed

7 files changed

+88
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
!/themes/blank
102102
!/themes/cards
103103
!/themes/coffee
104+
!/themes/confirmme
104105
!/themes/fresh-center
105106
!/themes/fresh-fixed
106107
!/themes/fresh-left

themes/confirmme/composer.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "mautic/theme-confirmme",
3+
"description": "Mautic Confirmme Theme",
4+
"type": "mautic-theme",
5+
"version": "1.0",
6+
"keywords": ["mautic","theme"],
7+
"extra": {
8+
"install-directory-name": "confirmme"
9+
},
10+
"minimum-stability": "dev",
11+
"require": {
12+
"php": ">=7.4.0 <8.1",
13+
"mautic/core-lib": "^4.0"
14+
}
15+
}

themes/confirmme/config.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Confirm Me",
3+
"author": "Friendly Automate",
4+
"authorUrl": "https://friendly.is",
5+
"builder": ["grapesjsbuilder"],
6+
"features": [
7+
"email"
8+
]
9+
}

themes/confirmme/html/base.html.twig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
{% if page is defined %}
6+
<title>{pagetitle}</title>
7+
<meta name="description" content="{pagemetadescription}">
8+
{% endif %}
9+
{% block stylesheets %}{% endblock %}
10+
{{ outputHeadDeclarations() }}
11+
</head>
12+
<body>
13+
{{ outputScripts('bodyOpen') }}
14+
{% block content %}{% endblock %}
15+
{{ outputScripts('bodyClose') }}
16+
</body>
17+
</html>

themes/confirmme/html/email.mjml.twig

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<mjml>
2+
<mj-body>
3+
<mj-raw>
4+
<!-- Company Header -->
5+
</mj-raw>
6+
<mj-section background-color="#f0f0f0">
7+
<mj-column>
8+
<mj-text font-style="bold" font-size="24px" color="#6f6f6f">My Company</mj-text>
9+
</mj-column>
10+
</mj-section>
11+
<mj-raw>
12+
<!-- Confirm text -->
13+
</mj-raw>
14+
<mj-section background-color="#fafafa">
15+
<mj-column width="400px">
16+
<mj-text font-style="bold" font-size="22px" font-family="Helvetica Neue" color="#626262">Please confirm your subscription!</mj-text>
17+
<mj-button background-color="#F45E43" font-style="bold" href="#">Yes, subscribe me to the list</mj-button>
18+
<mj-text color="#525252" font-size="16" line-height="1.5">If you received this email by mistake, simply delete it. You won't be subscribed if you don't click the confirmation link above.<br/><br/>For questions about this list, please contact:
19+
20+
</mj-column>
21+
</mj-section>
22+
<mj-raw>
23+
<!-- Confirm text -->
24+
</mj-raw>
25+
<mj-section background-color="#fafafa">
26+
<mj-column width="400px">
27+
<mj-text color="#525252" line-height="1.2">
28+
<p>Company Name<br/>111 Amazing Street<br/>
29+
Beautiful City</p></mj-text>
30+
31+
</mj-column>
32+
</mj-section>
33+
</mj-body>
34+
</mjml>
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends ":"~template~":base.html.twig" %}
2+
{% block stylesheets %}
3+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css" />
4+
{% endblock %}
5+
{% block content %}
6+
<div>
7+
{{ message|raw }}
8+
{% if content is defined %}
9+
<div>{{ content|raw }}</div>
10+
{% endif %}
11+
</div>
12+
{% endblock %}

themes/confirmme/thumbnail.png

17.7 KB
Loading

0 commit comments

Comments
 (0)