mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
e78bd3fbbb
This commit switches the default image format from JPEG to WebP for all design-themes images. WebP offers superior compression compared to JPEG, resulting in smaller file sizes and faster website loading times. Additionally, this change helps avoid warnings from performance tools regarding image optimization. See also: odoo/odoo#168862 task-3167548 closes odoo/design-themes#805 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
30 lines
1.3 KiB
XML
30 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_text_image" inherit_id="website.s_text_image">
|
|
<!-- Section -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="class" add="o_cc o_cc1 pt16 pb16" remove="pt80 pb80" separator=" "/>
|
|
</xpath>
|
|
<!-- Title & Paragraphs -->
|
|
<xpath expr="//h2" position="replace" mode="inner">
|
|
Everything you need, <br/>totally free
|
|
</xpath>
|
|
<xpath expr="//p" position="replace" mode="inner">
|
|
<br/>
|
|
</xpath>
|
|
<xpath expr="//p[2]" position="replace" mode="inner">
|
|
Track every expenses, uncover new ways to save, choose the right credit cards. <br/>All those advices and much more are included and totally free of charge.
|
|
</xpath>
|
|
<!-- Image -->
|
|
<xpath expr="//img" position="attributes">
|
|
<attribute name="src">/web_editor/image_shape/website.s_text_image_default_image/web_editor/pattern/pattern_point.svg?c1=o-color-1</attribute>
|
|
<attribute name="data-shape">web_editor/pattern/pattern_point</attribute>
|
|
<attribute name="data-original-mimetype">image/webp</attribute>
|
|
<attribute name="data-file-name">image_content_19.svg</attribute>
|
|
<attribute name="data-shape-colors">o-color-1;;;;</attribute>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|