[ADD] theme 8.0
This commit is contained in:
@@ -0,0 +1,294 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<template id="website_less.snippets" inherit_id="website.snippets">
|
||||
|
||||
<!-- Add name attributes to snippets -->
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Banner']]" position="attributes">
|
||||
<attribute name="name">Banner</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Text-Image']]" position="attributes">
|
||||
<attribute name="name">Text-Image</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image-Text']]" position="attributes">
|
||||
<attribute name="name">Image-Text</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image-Floating']]" position="attributes">
|
||||
<attribute name="name">Image-Floating</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Big Message']]" position="attributes">
|
||||
<attribute name="name">Big Message</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Text Block']]" position="attributes">
|
||||
<attribute name="name">Text Block</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Title']]" position="attributes">
|
||||
<attribute name="name">Title</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Features']]" position="attributes">
|
||||
<attribute name="name">Features</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Big Picture']]" position="attributes">
|
||||
<attribute name="name">Big Picture</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Three Columns']]" position="attributes">
|
||||
<attribute name="name">Three Columns</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Well']]" position="attributes">
|
||||
<attribute name="name">Well</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Quote']]" position="attributes">
|
||||
<attribute name="name">Quote</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Panel']]" position="attributes">
|
||||
<attribute name="name">Panel</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image Floating']]" position="attributes">
|
||||
<attribute name="name">Image Floating</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Separator']]" position="attributes">
|
||||
<attribute name="name">Separator</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Share']]" position="attributes">
|
||||
<attribute name="name">Share</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image Gallery']]" position="attributes">
|
||||
<attribute name="name">Image Gallery</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Comparisons']]" position="attributes">
|
||||
<attribute name="name">Comparisons</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Button']]" position="attributes">
|
||||
<attribute name="name">Button</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='FAQ']]" position="attributes">
|
||||
<attribute name="name">FAQ</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='References']]" position="attributes">
|
||||
<attribute name="name">References</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Quotes Slider']]" position="attributes">
|
||||
<attribute name="name">Quotes Slider</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Feature Grid']]" position="attributes">
|
||||
<attribute name="name">Feature Grid</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Parallax']]" position="attributes">
|
||||
<attribute name="name">Parallax</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Parallax Slider']]" position="attributes">
|
||||
<attribute name="name">Parallax Slider</attribute>
|
||||
</xpath>
|
||||
|
||||
<!-- Add class names on snippets and remove margins classes -->
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Banner']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body carousel slide s_banner</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Text-Image']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_text_image</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image-Text']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_image_text</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image-Floating']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body para_large s_image_floating</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Big Message']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body jumbotron s_big_message</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Text Block']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_text_block</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Title']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_title</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Features']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_features</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Big Picture']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body oe_dark s_big_picture</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Three Columns']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_three_columns</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Well']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body well s_well</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Quote']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_quote</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Panel']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body panel panel-default s_panel</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image Floating']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body o_image_floating o_margin_l pull-right s_image_floating</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Separator']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_separator</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Share']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body oe_share s_share</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image Gallery']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_image_gallery</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Comparisons']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_comparisons</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Button']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body jumbotron s_button</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='FAQ']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_faq</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='References']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_references</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Quotes Slider']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body carousel quotecarousel slide s_quotes_slider</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Feature Grid']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body s_feature_grid</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Parallax']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body parallax s_parallax</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Parallax Slider']/following-sibling::*[1]" position="attributes">
|
||||
<attribute name="class">oe_snippet_body parallax s_parallax_slider</attribute>
|
||||
</xpath>
|
||||
|
||||
</template>
|
||||
|
||||
<template id="website_less.snippet_options" inherit_id="website.snippet_options">
|
||||
|
||||
<!-- Add new snippet options API attributes to old snippet options -->
|
||||
<xpath expr="//div[@data-snippet-option-id='blog-style']" position="attributes">
|
||||
<attribute name="data-js">blog-style</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='background']" position="attributes">
|
||||
<attribute name="data-js">background</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='carousel']" position="attributes">
|
||||
<attribute name="data-js">carousel</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='margin-y']" position="attributes">
|
||||
<attribute name="data-js">margin-y</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='resize']" position="attributes">
|
||||
<attribute name="data-js">resize</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='margin-x']" position="attributes">
|
||||
<attribute name="data-js">margin-x</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='content']" position="attributes">
|
||||
<attribute name="data-js">content</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='separator']" position="attributes">
|
||||
<attribute name="data-js">separator</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='image_floating_margin']" position="attributes">
|
||||
<attribute name="data-js">image_floating_margin</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='image_floating_hidelink']" position="attributes">
|
||||
<attribute name="data-js">image_floating_hidelink</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='image_floating_side']" position="attributes">
|
||||
<attribute name="data-js">image_floating_side</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='parallax']" position="attributes">
|
||||
<attribute name="data-js">parallax</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='media']" position="attributes">
|
||||
<attribute name="data-js">media</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-snippet-option-id='transform']" position="attributes">
|
||||
<attribute name="data-js">transform</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@data-js='background']//ul[@class='dropdown-menu']" position="replace">
|
||||
<ul class="dropdown-menu">
|
||||
<li data-background="/website/static/src/img/parallax/parallax_bg.jpg"><a>Sunflower</a></li>
|
||||
<li data-background="/website/static/src/img/banner/business_guy.jpg"><a>Business Guy</a></li>
|
||||
<li data-background="/website/static/src/img/banner/flower_field.jpg"><a>Flowers Field</a></li>
|
||||
<li data-background="/website/static/src/img/banner/landscape.jpg"><a>Landscape</a></li>
|
||||
<li data-background="/website/static/src/img/banner/mountains.jpg"><a>Mountains</a></li>
|
||||
<li data-background="/website/static/src/img/banner/greenfields.jpg"><a>Greenfields</a></li>
|
||||
<li data-background="/website/static/src/img/banner/aqua.jpg"><a>Aqua</a></li>
|
||||
<li data-background="/website/static/src/img/banner/baby_blue.jpg"><a>Baby Blue</a></li>
|
||||
<li data-background="/website/static/src/img/banner/black.jpg"><a>Black</a></li>
|
||||
<li data-background="/website/static/src/img/banner/color_splash.jpg"><a>Color Splash</a></li>
|
||||
<li data-background="/website/static/src/img/banner/mango.jpg"><a>Mango</a></li>
|
||||
<li data-background="/website/static/src/img/banner/orange_red.jpg"><a>Orange Red</a></li>
|
||||
<li data-background="/website/static/src/img/banner/flower.jpg"><a>Purple</a></li>
|
||||
<li data-background="/website/static/src/img/banner/velour.jpg"><a>Velour</a></li>
|
||||
<li data-background="/website/static/src/img/banner/wood.jpg"><a>Wood</a></li>
|
||||
<li data-background="/website/static/src/img/banner/yellow_green.jpg"><a>Yellow Green</a></li>
|
||||
<li data-background="/website/static/src/img/parallax/quote.png"><a>Quote</a></li>
|
||||
<li data-background=""><a>None</a></li>
|
||||
<li><a style="background: none; padding: 5px; border-top: 1px solid #ddd;"></a></li>
|
||||
<li data-choose_image="choose_image"><a><b>Choose an image...</b></a></li>
|
||||
</ul>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="." position="inside">
|
||||
<div data-js='colorpicker' data-selector="section, .carousel, .parallax">
|
||||
<li class="dropdown-submenu">
|
||||
<a tabindex="-1" href="#">Color</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li></li>
|
||||
</ul>
|
||||
</li>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,268 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!--
|
||||
Customize Themes
|
||||
|
||||
Use INPUT type 'checkbox' or 'radio' or use OPTION in select box
|
||||
'data-xmlid' (optional) xml id of the template to add if the input is checked.
|
||||
You can set a list of xml id separate by comma (all template is enable or
|
||||
disable in same time)
|
||||
'data-enable' (optional) to checked one or more HTML ids, or list separate by comma
|
||||
'data-disable' (optional) to unchecked one or more HTML ids, or list separate by comma
|
||||
'data-reload="/"' (optional) force the reloading of the page if the url match with
|
||||
the string ( = regexp).
|
||||
Otherwise, only the '/web/css/website.assets_frontend' is reloaded
|
||||
|
||||
For the sets (data-enable and/or data-disable without data-xmlid), the set is
|
||||
automatically checked if:
|
||||
- all related fields are enabled for data-enable
|
||||
- all related fields are disabled for data-disable
|
||||
else unchecked
|
||||
|
||||
HTML apply classes:
|
||||
- 'checked': on the parent label when input is checked
|
||||
- 'in': on the container (e.g.: bootstrap modal) after added in DOM (removed together
|
||||
out is added)
|
||||
- 'out': on the container 1 second before removed from ths DOM
|
||||
- 'loading': on the container/modal when the new css is loading
|
||||
-->
|
||||
|
||||
<template id="website_less.theme_customize" name="Theme Modal for Customization">
|
||||
<div id="theme_customize_modal" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<input id="less" data-xmlid="website_less.option_bootstrap_less" style="display: none;"/>
|
||||
|
||||
<div class="loading_backdrop"></div>
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close">×</button>
|
||||
<h4 class="modal-title" id="mySmallModalLabel">Customize your theme</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h5 class="modal-h5">LAYOUT</h5>
|
||||
<table name="layout">
|
||||
<tr>
|
||||
<td class=" text-center" width="50%">
|
||||
<label class=" center-block">
|
||||
<div class="text-center" style="background-image: url(/website_less/static/src/img/theme/layout-full.gif); background-size: 100%; line-height: 40px;">FULL WIDTH</div>
|
||||
<input name="layoutvar" type="radio" data-xmlid=""/>
|
||||
</label>
|
||||
</td>
|
||||
<td class=" text-center">
|
||||
<label class=" center-block">
|
||||
<div class="text-center" style="background-image: url(/website_less/static/src/img/theme/layout-boxed.gif); background-size: 100%; line-height: 40px;">BOXED</div>
|
||||
<input name="layoutvar" type="radio" data-xmlid="website_less.option_layout_boxed" data-enable="less"/>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h5 class="modal-h5">MAIN COLOR</h5>
|
||||
<table name="color">
|
||||
<tr>
|
||||
<td>
|
||||
<label class="chd-color-combi">
|
||||
<img src="/website_less/static/src/img/theme/variant-stone.gif" alt="Stone" class="chd-color-combi-img"/>
|
||||
<input name="colorvar" type="radio" data-xmlid="" data-disable="less"/>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="chd-color-combi">
|
||||
<img src="/website_less/static/src/img/theme/variant-emerald.gif" alt="Emerald" class="chd-color-combi-img"/>
|
||||
<input name="colorvar" type="radio" data-xmlid="website_less.option_color_emerald" data-enable="less"/>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="chd-color-combi">
|
||||
<img src="/website_less/static/src/img/theme/variant-cobalt.gif" alt="Cobalt" class="chd-color-combi-img"/>
|
||||
<input name="colorvar" type="radio" data-xmlid="website_less.option_color_cobalt" data-enable="less"/>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="chd-color-combi">
|
||||
<img src="/website_less/static/src/img/theme/variant-amethyst.gif" alt="Amethyst" class="chd-color-combi-img"/>
|
||||
<input name="colorvar" type="radio" data-xmlid="website_less.option_color_amethyst" data-enable="less"/>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="chd-color-combi">
|
||||
<img src="/website_less/static/src/img/theme/variant-ruby.gif" alt="Blue" class="chd-color-combi-img"/>
|
||||
<input name="colorvar" type="radio" data-xmlid="website_less.option_color_ruby" data-enable="less"/>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="chd-color-combi">
|
||||
<img src="/website_less/static/src/img/theme/variant-gold.gif" alt="Gold" class="chd-color-combi-img"/>
|
||||
<input name="colorvar" type="radio" data-xmlid="website_less.option_color_gold" data-enable="less"/>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h5 class="modal-h5">FONTS COMBINATIONS</h5>
|
||||
<table name="font">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<label>
|
||||
<div>
|
||||
<span style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:11px">Helvetica</span>
|
||||
<span style="font-family:Georgia, 'Times New Roman', Times, serif; font-size:11px" >/ Georgia</span>
|
||||
</div>
|
||||
<input name="theme" type="radio" data-xmlid=""/>
|
||||
</label>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<label>
|
||||
<div>
|
||||
<span style="font-family:Georgia, 'Times New Roman', Times, serif; font-size:11px" >Georgia</span>
|
||||
<span style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:11px">/ Helvetica</span>
|
||||
<input name="theme" type="radio" data-xmlid="website_less.option_font" data-enable="less"/>
|
||||
</div>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- color-picker -->
|
||||
<!-- HTML class to hide option for one mode : only-text, only-bg -->
|
||||
|
||||
<template id="website_less.colorpicker" name="Color-Picker">
|
||||
<table class="colorpicker">
|
||||
<tr>
|
||||
<td><button class="automatic-color" title="Automatic Color"/></td>
|
||||
<td><button class="bg-primary" title="Primary Color"/></td>
|
||||
<td><button class="bg-success" title="Success Color"/></td>
|
||||
<td><button class="bg-info" title="Info Color"/></td>
|
||||
<td><button class="bg-warning" title="Warning Color"/></td>
|
||||
<td><button class="bg-danger" title="Danger Color"/></td>
|
||||
</tr>
|
||||
<tr><td colspan="8"><hr style="width: 100%; height: 1px;"/></td></tr>
|
||||
<tr>
|
||||
<td><button class="bg-blue"/></td>
|
||||
<td><button class="bg-turquoise"/></td>
|
||||
<td><button class="bg-green"/></td>
|
||||
<td><button class="bg-yellow"/></td>
|
||||
<td><button class="bg-red"/></td>
|
||||
<td><button class="bg-pink"/></td>
|
||||
<td><button class="bg-purple"/></td>
|
||||
<td><button class="bg-brown"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</template>
|
||||
|
||||
<!-- Disable old themes before activating the less option -->
|
||||
<record id="website.theme_amelia" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_cerulean" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_cosmo" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_cyborg" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_flatly" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_journal" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_readable" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_simplex" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_slate" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_spacelab" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_united" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
<record id="website.theme_yeti" model="ir.ui.view">
|
||||
<field name="active" eval='False'/>
|
||||
</record>
|
||||
|
||||
<!-- Bootstrap Less File layout
|
||||
|
||||
Each theme module must override the following view to active bootstrap:
|
||||
<record id="website_less.option_bootstrap_less" model="ir.ui.view">
|
||||
<field name="active" eval='True'/>
|
||||
</record>
|
||||
-->
|
||||
<template id="website_less.option_bootstrap_less" name="option_bootstrap_less" inherit_id="website.theme" active="True" customize_show="False">
|
||||
<xpath expr="//link[@id='bootstrap_css']" position="replace">
|
||||
<link rel="stylesheet" href='/website_less/static/src/less/import_bootstrap.less'/>
|
||||
<link rel="stylesheet" href='/website_less/static/src/less/colors.less' t-ignore="true"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Default Options Toggle -->
|
||||
<template id="website_less.default_options" name="Default Customize Options" inherit_id="website.theme">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<!-- Default options inherit from this view so we can easily disable it to reset all options -->
|
||||
<t id="default_options" t-if="True"></t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Option layout -->
|
||||
|
||||
<template id="website_less.option_layout_boxed" name="option_layout_boxed" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_layout_boxed.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Option color -->
|
||||
|
||||
<template id="website_less.option_color_stone" name="option_color_stone" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_color_stone.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="website_less.option_color_emerald" name="option_color_emerald" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_color_emerald.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="website_less.option_color_cobalt" name="option_color_cobalt" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_color_cobalt.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="website_less.option_color_amethyst" name="option_color_amethyst" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_color_amethyst.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="website_less.option_color_ruby" name="option_color_ruby" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_color_ruby.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="website_less.option_color_gold" name="option_color_gold" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_color_gold.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="website_less.option_font" name="option_font" inherit_id="website_less.default_options" active="False" customize_show="True">
|
||||
<xpath expr="//t[@id='default_options']" position="inside">
|
||||
<link href="/website_less/static/src/less/option_font.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,16 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<template id="website_less.user_navbar" inherit_id="website.user_navbar">
|
||||
<xpath expr="//ul[@class='dropdown-menu' and @role='menu']" position="replace">
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li id="html_editor"><a href="#advanced-view-editor" data-action='ace'>HTML Editor</a></li>
|
||||
<li id="theme_customize"><a href="#">Customize Theme</a></li>
|
||||
<li id="install_apps"><a href="/web#return_label=Website&action=website.action_module_website">Install Apps</a></li>
|
||||
<li class="divider"></li>
|
||||
</ul>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,45 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<template id="website_less.theme" inherit_id="website.theme" name="Fix table-row in theme">
|
||||
<xpath expr='//link[@href="/website/static/src/css/website.css"]' position="after">
|
||||
<link rel="stylesheet" href='/website_less/static/src/less/website.less'/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="website_less.assets_editor" inherit_id="website.assets_editor" name="Editor assets for Less">
|
||||
<xpath expr='//link[@href="/website/static/src/css/editor.css"]' position="replace">
|
||||
<link rel='stylesheet' href='/website_less/static/src/css/editor.css'/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr='//link[@href="/website/static/src/css/snippets.css"]' position="replace">
|
||||
<link rel='stylesheet' href='/website_less/static/src/css/snippets.css'/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr='//script[@src="/website/static/src/js/website.editor.js"]' position="after">
|
||||
<script type="text/javascript" src="/website_less/static/src/js/website.editor.js"></script>
|
||||
</xpath>
|
||||
|
||||
<xpath expr='//script[@src="/website/static/src/js/website.snippets.editor.js"]' position="replace">
|
||||
<script type="text/javascript" src="/website_less/static/src/js/website.snippets.editor.js"></script>
|
||||
</xpath>
|
||||
|
||||
<xpath expr='//link[last()]' position="after">
|
||||
<script type="text/javascript" src="/website_less/static/src/js/website.theme.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="website_less.assets_frontend" inherit_id="website.assets_frontend">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/website_less/static/src/js/website.snippets.animation.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="website_less.footer_default" inherit_id="website.footer_default">
|
||||
<xpath expr='//div[@class="container hidden-print"]' position="attributes">
|
||||
<attribute name="id">footer</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user