summaryrefslogtreecommitdiff
path: root/addons/website/views/snippets/s_blockquote.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/website/views/snippets/s_blockquote.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/website/views/snippets/s_blockquote.xml')
-rw-r--r--addons/website/views/snippets/s_blockquote.xml59
1 files changed, 59 insertions, 0 deletions
diff --git a/addons/website/views/snippets/s_blockquote.xml b/addons/website/views/snippets/s_blockquote.xml
new file mode 100644
index 00000000..deeef9ad
--- /dev/null
+++ b/addons/website/views/snippets/s_blockquote.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+<template name="Blockquote" id="s_blockquote">
+ <blockquote class="s_blockquote s_blockquote_classic w-100 mx-auto o_animable blockquote">
+ <i class="s_blockquote_icon fa fa-1x fa-quote-left bg-o-color-2 rounded"/>
+ <div class="s_blockquote_content bg-100">
+ <p>Write a quote here from one of your customers. Quotes are a great way to build confidence in your products or services.</p>
+ <footer class="blockquote-footer">
+ <img src="/web/image/website.s_blockquote_default_image" class="s_blockquote_avatar img rounded-circle mr-2" alt=""/>
+ <span class="s_blockquote_author"><b>John DOE</b> • CEO of MyCompany</span>
+ </footer>
+ </div>
+ </blockquote>
+</template>
+
+<template id="s_blockquote_options" inherit_id="website.snippet_options">
+ <xpath expr="." position="inside">
+ <!-- Layout -->
+ <div data-js="Blockquote" data-selector=".s_blockquote">
+ <we-select string="Display">
+ <we-button data-select-class="s_blockquote_classic" data-display="classic">Classic</we-button>
+ <we-button data-select-class="s_blockquote_cover" data-display="cover" data-name="blockquote_cover_opt">Cover</we-button>
+ <we-button data-select-class="s_blockquote_minimalist" data-display="minimalist" data-name="blockquote_minimalist_opt">Minimalist</we-button>
+ </we-select>
+ </div>
+
+ <!-- Color and images -->
+ <t t-call="web_editor.snippet_options_background_options">
+ <t t-set="selector" t-value="'.s_blockquote'"/>
+ <t t-set="target" t-value="'.s_blockquote_content'"/>
+ <t t-set="with_colors" t-value="True"/>
+ <t t-set="with_images" t-value="True"/>
+ <t t-set="images_dependencies" t-value="'blockquote_cover_opt'"/>
+ </t>
+
+ <!-- Shadow -->
+ <div data-js="Box" data-selector=".s_blockquote" data-target=".s_blockquote_content">
+ <t t-call="website.snippet_options_shadow_widgets"/>
+ </div>
+
+ <!-- Border Color -->
+ <div data-selector="blockquote">
+ <we-colorpicker string="Border Color"
+ data-select-style="true"
+ data-css-property="border-color"
+ data-color-prefix="border-"
+ data-dependencies="blockquote_minimalist_opt"/>
+ </div>
+ </xpath>
+</template>
+
+<template id="assets_snippet_s_blockquote_css_000" inherit_id="website.assets_frontend">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/website/static/src/snippets/s_blockquote/000.scss"/>
+ </xpath>
+</template>
+
+</odoo>