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

31 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="s_carousel" inherit_id="website.s_carousel">
  4. <!-- Carousel -->
  5. <xpath expr="//div[hasclass('s_carousel')]" position="attributes">
  6. <attribute name="class" add="s_carousel_bordered carousel-fade" remove="s_carousel_default" separator=" "/>
  7. </xpath>
  8. <!-- Slide #01 -->
  9. <xpath expr="//div[hasclass('carousel-item')][1]" position="attributes">
  10. <attribute name="class" remove="pt152 pb152" separator=" "/>
  11. <attribute name="style" add="background-position: 50% 50%;" separator=" "/>
  12. </xpath>
  13. <xpath expr="//div[hasclass('carousel-item')][1]//div[hasclass('carousel-content')]" position="attributes">
  14. <attribute name="class" add="col-lg-8 offset-lg-2 bg-white-50 pt200 pb192 text-center" remove="col-lg-6" separator=" "/>
  15. </xpath>
  16. <xpath expr="//div[hasclass('carousel-item')][1]//h2" position="replace">
  17. <h2><font style="font-size: 48px;">Creative Studio</font></h2>
  18. </xpath>
  19. <xpath expr="//div[hasclass('carousel-item')][1]//p" position="replace">
  20. <p class="lead">We combine smart design with rich technology <br/>to craft innovative products.</p>
  21. </xpath>
  22. <!-- Slide #02 -->
  23. <xpath expr="//div[hasclass('carousel-item')][2]//div[hasclass('carousel-content')]" position="attributes">
  24. <attribute name="class" add="bg-white-50" remove="bg-black-50" separator=" "/>
  25. </xpath>
  26. <xpath expr="//div[hasclass('carousel-item')][2]//div[hasclass('s_hr')]" position="replace"/>
  27. <!-- Slide #03 -->
  28. <xpath expr="//div[hasclass('carousel-item')][3]" position="replace"/>
  29. <xpath expr="//*[@data-slide-to='2']" position="replace"/>
  30. </template>
  31. </odoo>