diff --git a/addons/website/models/website.py b/addons/website/models/website.py index 87dbb5b16ad..8703c6c5f32 100644 --- a/addons/website/models/website.py +++ b/addons/website/models/website.py @@ -78,7 +78,11 @@ def is_multilang_url(path, langs=None): def slugify(s, max_length=None): if slugify_lib: - return slugify_lib.slugify(s, max_length) + # There are 2 different libraries only python-slugify is supported + try: + return slugify_lib.slugify(s, max_length=max_length) + except TypeError: + pass spaceless = re.sub(r'\s+', '-', s) specialless = re.sub(r'[^-_A-Za-z0-9]', '', spaceless) return specialless[:max_length] diff --git a/addons/website_mail/static/src/img/blocks/block_three_columns.png b/addons/website_mail/static/src/img/blocks/block_three_columns.png new file mode 100644 index 00000000000..dd50e0336d3 Binary files /dev/null and b/addons/website_mail/static/src/img/blocks/block_three_columns.png differ diff --git a/addons/website_mail/static/src/img/blocks/block_two_columns.png b/addons/website_mail/static/src/img/blocks/block_two_columns.png new file mode 100644 index 00000000000..55a3f0c1c99 Binary files /dev/null and b/addons/website_mail/static/src/img/blocks/block_two_columns.png differ diff --git a/addons/website_mail/views/snippets.xml b/addons/website_mail/views/snippets.xml index 89bac693437..35932f6f7c3 100644 --- a/addons/website_mail/views/snippets.xml +++ b/addons/website_mail/views/snippets.xml @@ -5,7 +5,7 @@
@@ -13,6 +13,56 @@
+
+
+ + Text Block +
+
+ + + + + + + + + +
+

+ A Great Headline +

+

+ A good subtitle +

+
+
+

+ A great way to catch your reader's attention is to tell a story. + Everything you consider writing can be told as a story. +

+

+ Great stories have personality. Consider telling + a great story that provides personality. Writing a story + with personality for potential clients will asist with + making a relationship connection. This shows up in small + quirks like word choices or phrases. Write from your point + of view, not from someone else's experience. +

+

+ Great stories are for everyone even when only written for + just one person. If you try to write with a wide general + audience in mind, your story will ring false and be bland. + No one will be interested. Write for one person. If it’s genuine + for the one, it’s genuine for the rest. +

+ +
+
+
+
+ +
@@ -95,125 +145,34 @@
-
+
- - Big Message -
-
- - - - - - -
-
-

Sell Online. Easily.

-

- Write one sentence to convince visitor about your message. -

-
-
-
-
- - -
-
- - Text Block -
-
- - - - - - - - - -
-

- A Great Headline -

-

- A good subtitle -

-
-
-

- A great way to catch your reader's attention is to tell a story. - Everything you consider writing can be told as a story. -

-

- Great stories have personality. Consider telling - a great story that provides personality. Writing a story - with personality for potential clients will asist with - making a relationship connection. This shows up in small - quirks like word choices or phrases. Write from your point - of view, not from someone else's experience. -

-

- Great stories are for everyone even when only written for - just one person. If you try to write with a wide general - audience in mind, your story will ring false and be bland. - No one will be interested. Write for one person. If it’s genuine - for the one, it’s genuine for the rest. -

- -
-
-
-
- - -
-
- - Separator + + Two Columns
- - - -
-
-
-
+
+
-
-
- - -
-
- - Big Picture -
-
- - - - - - - - +
-

A Punchy Headline

+
+
- -
-

-

A Small Subtitle

+
+

Feature One

+

+ Choose a vibrant image and write an inspiring paragraph + about it. It does not have to be long, but it should + reinforce your image.

-

+

+

Feature Two

+

Choose a vibrant image and write an inspiring paragraph about it. It does not have to be long, but it should reinforce your image. @@ -228,7 +187,7 @@

- + Three Columns
@@ -276,12 +235,69 @@
+ +
+
+ + Separator +
+
+ + + + + + +
+
+
+
+
+
+
+
+
+
+ + Big Picture +
+
+ + + + + + + + + + + + +
+

A Punchy Headline

+
+ +
+

+

A Small Subtitle

+

+

+ Choose a vibrant image and write an inspiring paragraph + about it. It does not have to be long, but it should + reinforce your image. +

+
+
+
+ +
@@ -373,6 +389,30 @@
+
+
+ + Big Message +
+
+ + + + + + +
+
+

Sell Online. Easily.

+

+ Write one sentence to convince visitor about your message. +

+
+
+
+
+ +