[ADD] theme 13.0
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="_assets_utils" inherit_id="web._assets_utils">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/mixins.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="_assets_primary_variables" inherit_id="website._assets_primary_variables" priority="1">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/primary_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="_assets_secondary_variables" inherit_id="website._assets_secondary_variables" priority="1">
|
||||
<xpath expr="//link" position="before">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/secondary_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="_assets_frontend_helpers" inherit_id="website._assets_frontend_helpers" priority="1">
|
||||
<xpath expr="//link" position="before">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/bootstrap_overridden.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="assets_frontend" inherit_id="website.assets_frontend" priority="1">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_media_list.scss"/>
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_animated_boxes.scss"/>
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_showcase.scss"/>
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_masonry_block.scss"/>
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_showcase_slider.scss"/>
|
||||
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/images.scss"/>
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/main.scss"/>
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/main.font.scss"/>
|
||||
</xpath>
|
||||
<xpath expr="//script[last()]" position="after">
|
||||
<script type="text/javascript" src="/theme_common/static/src/js/s_animated_boxes_frontend.js"/>
|
||||
<script type="text/javascript" src="/theme_common/static/src/js/s_showcase_slider_frontend.js"/>
|
||||
<script type="text/javascript" src="/theme_common/static/lib/YTPlayer/jquery.mb.YTPlayer.js"/>
|
||||
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.frontend.js"/>
|
||||
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.ext.frontend.js"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="assets_editor" inherit_id="website.assets_editor">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/theme_common/static/src/js/s_showcase_editor.js"/>
|
||||
<script type="text/javascript" src="/theme_common/static/src/js/s_animated_boxes_editor.js"/>
|
||||
<script type="text/javascript" src="/theme_common/static/src/js/s_showcase_slider_editor.js"/>
|
||||
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.editor.js"/>
|
||||
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.ext.editor.js"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="theme_customize" inherit_id="theme_common.theme_customize">
|
||||
<!-- Set number of colors -->
|
||||
<xpath expr="//t[@t-set='_nb_colors']" position="attributes">
|
||||
<attribute name="t-value">4</attribute>
|
||||
</xpath>
|
||||
|
||||
<!-- Add serif / sans-serif sections -->
|
||||
<xpath expr="//content[@id='theme_customize_content_fonts']" position="inside">
|
||||
<list string="Sans-serif">
|
||||
<selection>
|
||||
<opt data-xmlid="theme_graphene.option_font_sourcesans" data-font="6"/>
|
||||
<opt data-xmlid="theme_graphene.option_font_abel" data-font="2"/>
|
||||
<opt data-xmlid="theme_graphene.option_font_sansserif" data-font="1"/>
|
||||
</selection>
|
||||
</list>
|
||||
<list string="Serif">
|
||||
<selection>
|
||||
<opt data-xmlid="theme_graphene.option_font_playfair" data-font="5"/>
|
||||
<opt data-xmlid="theme_graphene.option_font_oldstandard" data-font="4"/>
|
||||
<opt data-xmlid="theme_graphene.option_font_cinzel" data-font="3"/>
|
||||
</selection>
|
||||
</list>
|
||||
</xpath>
|
||||
|
||||
<!-- Add post card layout option -->
|
||||
<xpath expr="//opt[@id='option_layout_boxed']" position="after">
|
||||
<opt id="option_layout_postcard" string="Postcard" data-xmlid="theme_graphene.graphene_option_layout_postcard_variables" data-icon=""/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Sans-serif fonts -->
|
||||
<template id="option_font_sourcesans" inherit_id="theme_graphene._assets_primary_variables">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/source-sans.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_font_abel" inherit_id="theme_graphene._assets_primary_variables" active="False">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/abel.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_font_sansserif" inherit_id="theme_graphene._assets_primary_variables" active="False">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/sans-serif.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Serif fonts -->
|
||||
<template id="option_font_playfair" inherit_id="theme_graphene._assets_primary_variables">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/PlayfairDisplay.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_font_oldstandard" inherit_id="theme_graphene._assets_primary_variables" active="False">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/OldStandard.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_font_cinzel" inherit_id="theme_graphene._assets_primary_variables" active="False">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/Cinzel.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Layout Options -->
|
||||
<template id="graphene_option_layout_postcard_variables" inherit_id="theme_graphene._assets_primary_variables" active="False">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/layouts/postcard_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Theme logo -->
|
||||
<record id="image_content_logo" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_logo</field>
|
||||
<field name="name">theme_common.image_content_logo</field>
|
||||
<field name="url">/theme_graphene/static/src/img/theme_samples/image_content_logo.png</field>
|
||||
</record>
|
||||
|
||||
<!-- Image for img tags -->
|
||||
<record id="image_content_01" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_01</field>
|
||||
<field name="name">theme_common.image_content_01</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_01.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_02" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_02</field>
|
||||
<field name="name">theme_common.image_content_02</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_02.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_03" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_03</field>
|
||||
<field name="name">theme_common.image_content_03</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_03.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_04" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_04</field>
|
||||
<field name="name">theme_common.image_content_04</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_04.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_05" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_05</field>
|
||||
<field name="name">theme_common.image_content_05</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_05.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_06" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_06</field>
|
||||
<field name="name">theme_common.image_content_06</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_06.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_07" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_07</field>
|
||||
<field name="name">theme_common.image_content_07</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_07.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_08" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_08</field>
|
||||
<field name="name">theme_common.image_content_08</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_08.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_09" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_09</field>
|
||||
<field name="name">theme_common.image_content_09</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_09.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_10" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_10</field>
|
||||
<field name="name">theme_common.image_content_10</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_10.jpg</field>
|
||||
</record>
|
||||
|
||||
<record id="image_content_19" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_19</field>
|
||||
<field name="name">theme_common.image_content_19</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_01.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_20" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_20</field>
|
||||
<field name="name">theme_common.image_content_20</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_01.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_21" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_21</field>
|
||||
<field name="name">theme_common.image_content_21</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_02.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_22" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_22</field>
|
||||
<field name="name">theme_common.image_content_22</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_03.jpg</field>
|
||||
</record>
|
||||
<record id="image_content_23" model="theme.ir.attachment">
|
||||
<field name="key">theme_common.image_content_23</field>
|
||||
<field name="name">theme_common.image_content_23</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_03.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- Change default images of snippets -->
|
||||
<record id="s_cover_default_image" model="theme.ir.attachment">
|
||||
<field name="key">website.s_cover_default_image</field>
|
||||
<field name="name">website.s_cover_default_image</field>
|
||||
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_08.jpg</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Customize header -->
|
||||
<template id="graphene_header" inherit_id="website.layout" name="Graphene Header">
|
||||
<xpath expr="//div[@id='wrapwrap']/header" position="attributes">
|
||||
<attribute name="id">graph_header</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Graphene BG Effects -->
|
||||
<template id="graphene_bg_effects" inherit_id="website.snippet_options">
|
||||
<xpath expr="//div[@data-js='background']" position="before">
|
||||
<div data-js="bg_fx"
|
||||
data-selector="[class^='s_'], section"
|
||||
data-exclude=".s_google_map, .s_showcase_slider, .s_animated_boxes">
|
||||
<we-collapse-area>
|
||||
<we-toggler><i class="fa fa-fw fa-sliders"/> Background Effects</we-toggler>
|
||||
<we-collapse>
|
||||
<we-button data-select-class="insetShadow">Inset Shadow</we-button>
|
||||
<we-button data-select-class="insetShadowBig">Big Inset Shadow</we-button>
|
||||
<we-button data-select-class="glossy">Glossy</we-button>
|
||||
<we-button data-select-class="glossy-medium">Glossy Medium</we-button>
|
||||
<we-button data-select-class="glossy-soft">Glossy Soft</we-button>
|
||||
<we-divider/>
|
||||
<we-button data-select-class="">No effects</we-button>
|
||||
</we-collapse>
|
||||
</we-collapse-area>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Graphene Color Picker -->
|
||||
<template id="graphene_colorpicker_pattern" inherit_id="web_editor.colorpicker">
|
||||
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='alpha']" position="after">
|
||||
<button class="o_small" data-color="alpha-lighter"/>
|
||||
<button class="o_small" data-color="alpha-light"/>
|
||||
<button class="o_small" data-color="alpha-dark"/>
|
||||
<button class="o_small" data-color="alpha-darker"/>
|
||||
</xpath>
|
||||
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='beta']" position="after">
|
||||
<button class="o_small" data-color="beta-lighter"/>
|
||||
<button class="o_small" data-color="beta-light"/>
|
||||
<button class="o_small" data-color="beta-dark"/>
|
||||
<button class="o_small" data-color="beta-darker"/>
|
||||
</xpath>
|
||||
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='gamma']" position="after">
|
||||
<button class="o_small" data-color="gamma-lighter"/>
|
||||
<button class="o_small" data-color="gamma-light"/>
|
||||
<button class="o_small" data-color="gamma-dark"/>
|
||||
<button class="o_small" data-color="gamma-darker"/>
|
||||
</xpath>
|
||||
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='delta']" position="after">
|
||||
<button class="o_small" data-color="delta-lighter"/>
|
||||
<button class="o_small" data-color="delta-light"/>
|
||||
<button class="o_small" data-color="delta-dark"/>
|
||||
<button class="o_small" data-color="delta-darker"/>
|
||||
</xpath>
|
||||
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='epsilon']" position="after">
|
||||
<button class="o_small" data-color="epsilon-lighter"/>
|
||||
<button class="o_small" data-color="epsilon-light"/>
|
||||
<button class="o_small" data-color="epsilon-dark"/>
|
||||
<button class="o_small" data-color="epsilon-darker"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Graphene Typography -->
|
||||
<template id="graphene_typo_pattern" inherit_id="website.snippet_options">
|
||||
<xpath expr="//div[@data-js='background']" position="before">
|
||||
<div data-selector="h1, h2">
|
||||
<we-collapse-area>
|
||||
<we-toggler><i class="fa fa-fw fa-font"/> Font Family</we-toggler>
|
||||
<we-collapse>
|
||||
<we-button data-select-class="serif">Serif</we-button>
|
||||
<we-button data-select-class="sans-serif">Sans-Serif</we-button>
|
||||
<we-button data-select-class="">Default</we-button>
|
||||
</we-collapse>
|
||||
</we-collapse-area>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@data-js='background']" position="before">
|
||||
<div data-js='typo_style' data-selector="h1, h2">
|
||||
<we-collapse-area>
|
||||
<we-toggler><i class="fa fa-fw fa-paint-brush"/> Text Effects</we-toggler>
|
||||
<we-collapse>
|
||||
<we-button data-select-class="">No effects</we-button>
|
||||
<we-divider/>
|
||||
<we-button data-select-class="title-underlined">Underlined</we-button>
|
||||
<we-button data-select-class="title-boxed">Boxed</we-button>
|
||||
</we-collapse>
|
||||
</we-collapse-area>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Google Map Options -->
|
||||
<template id="graphene_google_map" inherit_id="theme_common.s_google_map_option">
|
||||
<xpath expr="//div[@data-js='map']" position="inside">
|
||||
<we-collapse-area>
|
||||
<we-toggler><i class="fa fa-fw fa-paint-brush"/> Style</we-toggler>
|
||||
<we-collapse data-no-preview="true">
|
||||
<we-button class="thumb stdMap-thumb" data-map-color="stdMap"></we-button>
|
||||
<we-button class="thumb lightMonoMap-thumb" data-map-color="lightMonoMap"></we-button>
|
||||
<we-button class="thumb cupertinoMap-thumb" data-map-color="cupertinoMap"></we-button>
|
||||
<we-button class="thumb retroMap-thumb" data-map-color="retroMap"></we-button>
|
||||
<we-button class="thumb cobaltMap-thumb" data-map-color="cobaltMap"></we-button>
|
||||
<we-button class="thumb flatMap-thumb" data-map-color="flatMap"></we-button>
|
||||
<we-button class="thumb blueMap-thumb" data-map-color="blueMap"></we-button>
|
||||
<we-button class="thumb lillaMap-thumb" data-map-color="lillaMap"></we-button>
|
||||
<we-button class="thumb carMap-thumb" data-map-color="carMap"></we-button>
|
||||
<we-button class="thumb bwMap-thumb" data-map-color="bwMap"></we-button>
|
||||
</we-collapse>
|
||||
</we-collapse-area>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Graphene Top Banner -->
|
||||
<template id="graphene_top_content_options" inherit_id="website.snippet_options">
|
||||
<xpath expr="//div[@data-js='background']" position="before">
|
||||
<div data-js='graphene_top_banner_options' data-selector=".s_parallax, .s_google_map">
|
||||
<we-collapse-area>
|
||||
<we-toggler><i class="fa fa-fw fa-magic"/> Position</we-toggler>
|
||||
<we-collapse data-no-preview="true">
|
||||
<we-button data-select-class="">Normal</we-button>
|
||||
<we-button data-select-class="move_to_top">Move to top</we-button>
|
||||
</we-collapse>
|
||||
</we-collapse-area>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- theme_common snippets -->
|
||||
<template id="snippet_selection" inherit_id="website.snippets">
|
||||
<xpath expr="//div[@id='snippet_structure']/div[hasclass('o_panel_body')]/t[@t-snippet='website.s_cover']" position="after">
|
||||
<t t-snippet="theme_common.s_animated_boxes" t-thumbnail="/theme_graphene/static/src/img/ui/s_animated_blocks.jpg"/>
|
||||
<t t-snippet="theme_common.s_showcase" t-thumbnail="/theme_graphene/static/src/img/ui/s_showcase.jpg"/>
|
||||
<t t-snippet="theme_common.s_numbers" t-thumbnail="/theme_common/static/src/img/snippets/s_numbers.png"/>
|
||||
<t t-snippet="theme_common.s_page_header" t-thumbnail="/theme_common/static/src/img/snippets/s_page_header.png"/>
|
||||
<t t-snippet="theme_common.s_media_list" t-thumbnail="/theme_common/static/src/img/snippets/s_media_list.png"/>
|
||||
<t t-snippet="theme_common.s_masonry_block" t-thumbnail="/theme_graphene/static/src/img/ui/s_masonry_block.jpg"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='snippet_feature']/div[hasclass('o_panel_body')]/t" position="before">
|
||||
<t t-snippet="theme_common.s_showcase_slider" t-thumbnail="/theme_graphene/static/src/img/ui/s_showcase_slider.jpg"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user