- 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.

143 lines
6.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- ======== TITLE ======== -->
  4. <template id="s_title" inherit_id="website.s_title" name="Avantgarde s_title">
  5. <xpath expr="//section" position="attributes">
  6. <attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/05","flip":[]}</attribute>
  7. </xpath>
  8. <xpath expr="//div[hasclass('container')]" position="before">
  9. <div class="o_we_shape o_web_editor_Blobs_05"/>
  10. </xpath>
  11. <xpath expr="//h1" position="replace">
  12. <h1>A Sense of Sharpness</h1>
  13. </xpath>
  14. </template>
  15. <!-- ======== COVER ======== -->
  16. <template id="s_cover" inherit_id="website.s_cover" name="Avantgarde s_cover">
  17. <xpath expr="//section" position="attributes">
  18. <attribute name="class" add="s_parallax_no_overflow_hidden" remove="s_parallax_is_fixed s_parallax" separator=" "/>
  19. </xpath>
  20. <xpath expr="//span[hasclass('s_parallax_bg')]" position="attributes">
  21. <attribute name="style" remove="background-position: 50% 0;" add="background-position: 50% 80%;" separator=";"/>
  22. </xpath>
  23. <xpath expr="//a[hasclass('btn')]" position="attributes">
  24. <attribute name="class" add="btn-lg" separator=" "/>
  25. </xpath>
  26. </template>
  27. <!-- ======== BANNER ======== -->
  28. <template id="s_cover" inherit_id="website.s_cover" name="Avantgarde s_cover">
  29. <xpath expr="//a[hasclass('btn')]" position="attributes">
  30. <attribute name="class" add="btn-lg" separator=" "/>
  31. </xpath>
  32. </template>
  33. <!-- ======== TEXT-IMAGE ======== -->
  34. <template id="s_text_image" inherit_id="website.s_text_image" name="Avantgarde s_text_image">
  35. <xpath expr="//a[hasclass('btn')]" position="attributes">
  36. <attribute name="class" add="btn-lg" separator=" "/>
  37. </xpath>
  38. <xpath expr="//div[hasclass('col-lg-6')][1]" position="attributes">
  39. <attribute name="class" add="col-lg-4 offset-lg-1" remove="col-lg-6" separator=" "/>
  40. </xpath>
  41. <xpath expr="//div[hasclass('col-lg-6')][1]" position="attributes">
  42. <attribute name="class" add="col-lg-5 offset-lg-1" remove="col-lg-6" separator=" "/>
  43. </xpath>
  44. </template>
  45. <!-- ======== IMAGE-TEXT ======== -->
  46. <template id="s_image_text" inherit_id="website.s_image_text" name="Avantgarde s_image_text">
  47. <xpath expr="//section" position="attributes">
  48. <attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/05","flip":[]}</attribute>
  49. </xpath>
  50. <xpath expr="//div[hasclass('container')]" position="before">
  51. <div class="o_we_shape o_web_editor_Blobs_05"/>
  52. </xpath>
  53. <xpath expr="//div[hasclass('col-lg-6')][1]" position="attributes">
  54. <attribute name="class" add="col-lg-5 offset-lg-1" remove="col-lg-6" separator=" "/>
  55. </xpath>
  56. <xpath expr="//div[hasclass('col-lg-6')][1]" position="attributes">
  57. <attribute name="class" add="col-lg-4 offset-lg-1" remove="col-lg-6" separator=" "/>
  58. </xpath>
  59. <xpath expr="//a[hasclass('btn')]" position="attributes">
  60. <attribute name="class" add="btn-lg" separator=" "/>
  61. </xpath>
  62. </template>
  63. <!-- ======== IMAGES WALL ======== -->
  64. <template id="s_images_wall" inherit_id="website.s_images_wall" name="Avantgarde s_images_wall">
  65. <xpath expr="//section" position="attributes">
  66. <attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/06","flip":[]}</attribute>
  67. </xpath>
  68. <xpath expr="//div[hasclass('container')]" position="before">
  69. <div class="o_we_shape o_web_editor_Blobs_06"/>
  70. </xpath>
  71. </template>
  72. <!-- ======== REFERENCES ======== -->
  73. <template id="s_references" inherit_id="website.s_references" name="Avantgarde s_references">
  74. <xpath expr="//section" position="attributes">
  75. <attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/01","colors":{"c2":"o-color-3"},"flip":[]}</attribute>
  76. </xpath>
  77. <xpath expr="//div[hasclass('container')]" position="before">
  78. <div class="o_we_shape o_web_editor_Blobs_01" style="background-image: url(&quot;/web_editor/shape/web_editor/Blobs/01.svg?c2=%23F7F7F7&quot;);"/>
  79. </xpath>
  80. </template>
  81. <!-- ======== CAROUSEL ======== -->
  82. <template id="s_carousel" inherit_id="website.s_carousel" name="Avantgarde s_carousel">
  83. <!-- Assign slide3 as 'active' and move it in first position -->
  84. <xpath expr="//div[hasclass('carousel-inner')]/div" position="attributes">
  85. <attribute name="class" remove="active" separator=" "/>
  86. </xpath>
  87. <xpath expr="//div[hasclass('carousel-inner')]/div[3]" position="attributes">
  88. <attribute name="class" add="active" separator=" "/>
  89. </xpath>
  90. <xpath expr="//div[hasclass('carousel-inner')]/div" position="before">
  91. <xpath expr="//div[hasclass('carousel-inner')]/div[3]" position="move"/>
  92. </xpath>
  93. <xpath expr="//h2/font" position="replace">
  94. <font style="font-size: 62px; background-color: rgb(255, 255, 255);" class="o_default_snippet_text">Making Simple</font>
  95. </xpath>
  96. </template>
  97. <!-- ======== QUOTES ======== -->
  98. <template id="s_quotes_carousel" inherit_id="website.s_quotes_carousel" name="Avantgarde s_quotes_carousel">
  99. <!-- Assign slide2 as 'active' and move it in first position -->
  100. <xpath expr="//div[hasclass('carousel-inner')]/div" position="attributes">
  101. <attribute name="class" remove="active" separator=" "/>
  102. </xpath>
  103. <xpath expr="//div[hasclass('carousel-inner')]/div[2]" position="attributes">
  104. <attribute name="class" add="active" separator=" "/>
  105. </xpath>
  106. <xpath expr="//div[hasclass('carousel-inner')]/div" position="before">
  107. <xpath expr="//div[hasclass('carousel-inner')]/div[2]" position="move"/>
  108. </xpath>
  109. </template>
  110. <!-- ======== CALL TO ACTION ======== -->
  111. <template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Avantgarde s_call_to_action">
  112. <xpath expr="//h3" position="replace">
  113. <h3 style="text-align: right;"><b>50,000+ visitors</b> can't be wrong.</h3>
  114. </xpath>
  115. <xpath expr="//div[hasclass('col-lg-9')]" position="attributes">
  116. <attribute name="class" add="col-lg-8" remove="col-lg-9" separator=" "/>
  117. </xpath>
  118. <xpath expr="//div[hasclass('col-lg-8')]/p" position="attributes">
  119. <attribute name="style" add="text-align: right;" separator=" "/>
  120. </xpath>
  121. <xpath expr="//div[hasclass('col-lg-3')]" position="attributes">
  122. <attribute name="class" add="col-lg-4" remove="col-lg-3" separator=" "/>
  123. </xpath>
  124. <xpath expr="//div[hasclass('col-lg-4')]/p" position="attributes">
  125. <attribute name="style" add="text-align: left;" remove="text-align: right;" separator=";"/>
  126. </xpath>
  127. <xpath expr="//a[hasclass('btn')]" position="attributes">
  128. <attribute name="class" add="btn-lg" separator=" "/>
  129. </xpath>
  130. </template>
  131. </odoo>