- Repo for opensource odoo website theme (since V13.0)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
3.9 KiB

5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Some snippets are always included with theme_common -->
  4. <template id="snippets" inherit_id="website.snippets">
  5. <xpath expr="//div[@id='snippet_feature']/div[hasclass('o_panel_body')]/t" position="before">
  6. <t t-snippet="theme_common.s_google_map" t-thumbnail="/theme_common/static/src/img/snippets/s_google_map.png"/>
  7. </xpath>
  8. </template>
  9. <!-- Extend customize modal to suggest more colors, more fonts -->
  10. <template id="theme_customize" inherit_id="website.theme_customize">
  11. <!-- Add color suggestions -->
  12. <xpath expr="//content[@id='theme_customize_content_colors']/*" position="before">
  13. <list data-depends="theme_color_suggestions">
  14. <opt data-xmlid=""/>
  15. <!-- Only allow 9 (but most themes have 6) -->
  16. <t t-set="_nb_colors" t-value="6"/>
  17. <t t-foreach="_nb_colors - 1" t-as="i">
  18. <t t-set="number" t-value="i + 2"/>
  19. <opt t-attf-data-xmlid="theme_common.option_colors_0#{number}_variables"/>
  20. </t>
  21. </list>
  22. </xpath>
  23. </template>
  24. <!-- Those are independant from the user palette and act as default for it -->
  25. <template id="option_colors_02_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  26. <xpath expr="//link[last()]" position="after">
  27. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_02_variables.scss"/>
  28. </xpath>
  29. </template>
  30. <template id="option_colors_03_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  31. <xpath expr="//link[last()]" position="after">
  32. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_03_variables.scss"/>
  33. </xpath>
  34. </template>
  35. <template id="option_colors_04_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  36. <xpath expr="//link[last()]" position="after">
  37. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_04_variables.scss"/>
  38. </xpath>
  39. </template>
  40. <template id="option_colors_05_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  41. <xpath expr="//link[last()]" position="after">
  42. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_05_variables.scss"/>
  43. </xpath>
  44. </template>
  45. <template id="option_colors_06_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  46. <xpath expr="//link[last()]" position="after">
  47. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_06_variables.scss"/>
  48. </xpath>
  49. </template>
  50. <template id="option_colors_07_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  51. <xpath expr="//link[last()]" position="after">
  52. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_07_variables.scss"/>
  53. </xpath>
  54. </template>
  55. <template id="option_colors_08_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  56. <xpath expr="//link[last()]" position="after">
  57. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_08_variables.scss"/>
  58. </xpath>
  59. </template>
  60. <template id="option_colors_09_variables" inherit_id="theme_common._assets_primary_variables" active="False">
  61. <xpath expr="//link[last()]" position="after">
  62. <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/options/colors/option_colors_09_variables.scss"/>
  63. </xpath>
  64. </template>
  65. </odoo>