snippets.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <openerp>
  2. <data>
  3. <template id="website_less.snippets" inherit_id="website.snippets">
  4. <!-- Add name attributes to snippets -->
  5. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Banner']]" position="attributes">
  6. <attribute name="name">Banner</attribute>
  7. </xpath>
  8. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Text-Image']]" position="attributes">
  9. <attribute name="name">Text-Image</attribute>
  10. </xpath>
  11. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image-Text']]" position="attributes">
  12. <attribute name="name">Image-Text</attribute>
  13. </xpath>
  14. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image-Floating']]" position="attributes">
  15. <attribute name="name">Image-Floating</attribute>
  16. </xpath>
  17. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Big Message']]" position="attributes">
  18. <attribute name="name">Big Message</attribute>
  19. </xpath>
  20. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Text Block']]" position="attributes">
  21. <attribute name="name">Text Block</attribute>
  22. </xpath>
  23. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Title']]" position="attributes">
  24. <attribute name="name">Title</attribute>
  25. </xpath>
  26. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Features']]" position="attributes">
  27. <attribute name="name">Features</attribute>
  28. </xpath>
  29. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Big Picture']]" position="attributes">
  30. <attribute name="name">Big Picture</attribute>
  31. </xpath>
  32. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Three Columns']]" position="attributes">
  33. <attribute name="name">Three Columns</attribute>
  34. </xpath>
  35. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Well']]" position="attributes">
  36. <attribute name="name">Well</attribute>
  37. </xpath>
  38. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Quote']]" position="attributes">
  39. <attribute name="name">Quote</attribute>
  40. </xpath>
  41. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Panel']]" position="attributes">
  42. <attribute name="name">Panel</attribute>
  43. </xpath>
  44. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image Floating']]" position="attributes">
  45. <attribute name="name">Image Floating</attribute>
  46. </xpath>
  47. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Separator']]" position="attributes">
  48. <attribute name="name">Separator</attribute>
  49. </xpath>
  50. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Share']]" position="attributes">
  51. <attribute name="name">Share</attribute>
  52. </xpath>
  53. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Image Gallery']]" position="attributes">
  54. <attribute name="name">Image Gallery</attribute>
  55. </xpath>
  56. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Comparisons']]" position="attributes">
  57. <attribute name="name">Comparisons</attribute>
  58. </xpath>
  59. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Button']]" position="attributes">
  60. <attribute name="name">Button</attribute>
  61. </xpath>
  62. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='FAQ']]" position="attributes">
  63. <attribute name="name">FAQ</attribute>
  64. </xpath>
  65. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='References']]" position="attributes">
  66. <attribute name="name">References</attribute>
  67. </xpath>
  68. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Quotes Slider']]" position="attributes">
  69. <attribute name="name">Quotes Slider</attribute>
  70. </xpath>
  71. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Feature Grid']]" position="attributes">
  72. <attribute name="name">Feature Grid</attribute>
  73. </xpath>
  74. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Parallax']]" position="attributes">
  75. <attribute name="name">Parallax</attribute>
  76. </xpath>
  77. <xpath expr="//div[div[span[@class='oe_snippet_thumbnail_title']][span='Parallax Slider']]" position="attributes">
  78. <attribute name="name">Parallax Slider</attribute>
  79. </xpath>
  80. <!-- Add class names on snippets and remove margins classes -->
  81. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Banner']/following-sibling::*[1]" position="attributes">
  82. <attribute name="class">oe_snippet_body carousel slide s_banner</attribute>
  83. </xpath>
  84. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Text-Image']/following-sibling::*[1]" position="attributes">
  85. <attribute name="class">oe_snippet_body s_text_image</attribute>
  86. </xpath>
  87. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image-Text']/following-sibling::*[1]" position="attributes">
  88. <attribute name="class">oe_snippet_body s_image_text</attribute>
  89. </xpath>
  90. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image-Floating']/following-sibling::*[1]" position="attributes">
  91. <attribute name="class">oe_snippet_body para_large s_image_floating</attribute>
  92. </xpath>
  93. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Big Message']/following-sibling::*[1]" position="attributes">
  94. <attribute name="class">oe_snippet_body jumbotron s_big_message</attribute>
  95. </xpath>
  96. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Text Block']/following-sibling::*[1]" position="attributes">
  97. <attribute name="class">oe_snippet_body s_text_block</attribute>
  98. </xpath>
  99. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Title']/following-sibling::*[1]" position="attributes">
  100. <attribute name="class">oe_snippet_body s_title</attribute>
  101. </xpath>
  102. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Features']/following-sibling::*[1]" position="attributes">
  103. <attribute name="class">oe_snippet_body s_features</attribute>
  104. </xpath>
  105. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Big Picture']/following-sibling::*[1]" position="attributes">
  106. <attribute name="class">oe_snippet_body oe_dark s_big_picture</attribute>
  107. </xpath>
  108. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Three Columns']/following-sibling::*[1]" position="attributes">
  109. <attribute name="class">oe_snippet_body s_three_columns</attribute>
  110. </xpath>
  111. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Well']/following-sibling::*[1]" position="attributes">
  112. <attribute name="class">oe_snippet_body well s_well</attribute>
  113. </xpath>
  114. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Quote']/following-sibling::*[1]" position="attributes">
  115. <attribute name="class">oe_snippet_body s_quote</attribute>
  116. </xpath>
  117. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Panel']/following-sibling::*[1]" position="attributes">
  118. <attribute name="class">oe_snippet_body panel panel-default s_panel</attribute>
  119. </xpath>
  120. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image Floating']/following-sibling::*[1]" position="attributes">
  121. <attribute name="class">oe_snippet_body o_image_floating o_margin_l pull-right s_image_floating</attribute>
  122. </xpath>
  123. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Separator']/following-sibling::*[1]" position="attributes">
  124. <attribute name="class">oe_snippet_body s_separator</attribute>
  125. </xpath>
  126. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Share']/following-sibling::*[1]" position="attributes">
  127. <attribute name="class">oe_snippet_body oe_share s_share</attribute>
  128. </xpath>
  129. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Image Gallery']/following-sibling::*[1]" position="attributes">
  130. <attribute name="class">oe_snippet_body s_image_gallery</attribute>
  131. </xpath>
  132. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Comparisons']/following-sibling::*[1]" position="attributes">
  133. <attribute name="class">oe_snippet_body s_comparisons</attribute>
  134. </xpath>
  135. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Button']/following-sibling::*[1]" position="attributes">
  136. <attribute name="class">oe_snippet_body jumbotron s_button</attribute>
  137. </xpath>
  138. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='FAQ']/following-sibling::*[1]" position="attributes">
  139. <attribute name="class">oe_snippet_body s_faq</attribute>
  140. </xpath>
  141. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='References']/following-sibling::*[1]" position="attributes">
  142. <attribute name="class">oe_snippet_body s_references</attribute>
  143. </xpath>
  144. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Quotes Slider']/following-sibling::*[1]" position="attributes">
  145. <attribute name="class">oe_snippet_body carousel quotecarousel slide s_quotes_slider</attribute>
  146. </xpath>
  147. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Feature Grid']/following-sibling::*[1]" position="attributes">
  148. <attribute name="class">oe_snippet_body s_feature_grid</attribute>
  149. </xpath>
  150. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Parallax']/following-sibling::*[1]" position="attributes">
  151. <attribute name="class">oe_snippet_body parallax s_parallax</attribute>
  152. </xpath>
  153. <xpath expr="//div[span[@class='oe_snippet_thumbnail_title']][span='Parallax Slider']/following-sibling::*[1]" position="attributes">
  154. <attribute name="class">oe_snippet_body parallax s_parallax_slider</attribute>
  155. </xpath>
  156. </template>
  157. <template id="website_less.snippet_options" inherit_id="website.snippet_options">
  158. <!-- Add new snippet options API attributes to old snippet options -->
  159. <xpath expr="//div[@data-snippet-option-id='blog-style']" position="attributes">
  160. <attribute name="data-js">blog-style</attribute>
  161. </xpath>
  162. <xpath expr="//div[@data-snippet-option-id='background']" position="attributes">
  163. <attribute name="data-js">background</attribute>
  164. </xpath>
  165. <xpath expr="//div[@data-snippet-option-id='carousel']" position="attributes">
  166. <attribute name="data-js">carousel</attribute>
  167. </xpath>
  168. <xpath expr="//div[@data-snippet-option-id='margin-y']" position="attributes">
  169. <attribute name="data-js">margin-y</attribute>
  170. </xpath>
  171. <xpath expr="//div[@data-snippet-option-id='resize']" position="attributes">
  172. <attribute name="data-js">resize</attribute>
  173. </xpath>
  174. <xpath expr="//div[@data-snippet-option-id='margin-x']" position="attributes">
  175. <attribute name="data-js">margin-x</attribute>
  176. </xpath>
  177. <xpath expr="//div[@data-snippet-option-id='content']" position="attributes">
  178. <attribute name="data-js">content</attribute>
  179. </xpath>
  180. <xpath expr="//div[@data-snippet-option-id='separator']" position="attributes">
  181. <attribute name="data-js">separator</attribute>
  182. </xpath>
  183. <xpath expr="//div[@data-snippet-option-id='image_floating_margin']" position="attributes">
  184. <attribute name="data-js">image_floating_margin</attribute>
  185. </xpath>
  186. <xpath expr="//div[@data-snippet-option-id='image_floating_hidelink']" position="attributes">
  187. <attribute name="data-js">image_floating_hidelink</attribute>
  188. </xpath>
  189. <xpath expr="//div[@data-snippet-option-id='image_floating_side']" position="attributes">
  190. <attribute name="data-js">image_floating_side</attribute>
  191. </xpath>
  192. <xpath expr="//div[@data-snippet-option-id='parallax']" position="attributes">
  193. <attribute name="data-js">parallax</attribute>
  194. </xpath>
  195. <xpath expr="//div[@data-snippet-option-id='media']" position="attributes">
  196. <attribute name="data-js">media</attribute>
  197. </xpath>
  198. <xpath expr="//div[@data-snippet-option-id='transform']" position="attributes">
  199. <attribute name="data-js">transform</attribute>
  200. </xpath>
  201. <xpath expr="//div[@data-js='background']//ul[@class='dropdown-menu']" position="replace">
  202. <ul class="dropdown-menu">
  203. <li data-background="/website/static/src/img/parallax/parallax_bg.jpg"><a>Sunflower</a></li>
  204. <li data-background="/website/static/src/img/banner/business_guy.jpg"><a>Business Guy</a></li>
  205. <li data-background="/website/static/src/img/banner/flower_field.jpg"><a>Flowers Field</a></li>
  206. <li data-background="/website/static/src/img/banner/landscape.jpg"><a>Landscape</a></li>
  207. <li data-background="/website/static/src/img/banner/mountains.jpg"><a>Mountains</a></li>
  208. <li data-background="/website/static/src/img/banner/greenfields.jpg"><a>Greenfields</a></li>
  209. <li data-background="/website/static/src/img/banner/aqua.jpg"><a>Aqua</a></li>
  210. <li data-background="/website/static/src/img/banner/baby_blue.jpg"><a>Baby Blue</a></li>
  211. <li data-background="/website/static/src/img/banner/black.jpg"><a>Black</a></li>
  212. <li data-background="/website/static/src/img/banner/color_splash.jpg"><a>Color Splash</a></li>
  213. <li data-background="/website/static/src/img/banner/mango.jpg"><a>Mango</a></li>
  214. <li data-background="/website/static/src/img/banner/orange_red.jpg"><a>Orange Red</a></li>
  215. <li data-background="/website/static/src/img/banner/flower.jpg"><a>Purple</a></li>
  216. <li data-background="/website/static/src/img/banner/velour.jpg"><a>Velour</a></li>
  217. <li data-background="/website/static/src/img/banner/wood.jpg"><a>Wood</a></li>
  218. <li data-background="/website/static/src/img/banner/yellow_green.jpg"><a>Yellow Green</a></li>
  219. <li data-background="/website/static/src/img/parallax/quote.png"><a>Quote</a></li>
  220. <li data-background=""><a>None</a></li>
  221. <li><a style="background: none; padding: 5px; border-top: 1px solid #ddd;"></a></li>
  222. <li data-choose_image="choose_image"><a><b>Choose an image...</b></a></li>
  223. </ul>
  224. </xpath>
  225. <xpath expr="." position="inside">
  226. <div data-js='colorpicker' data-selector="section, .carousel, .parallax">
  227. <li class="dropdown-submenu">
  228. <a tabindex="-1" href="#">Color</a>
  229. <ul class="dropdown-menu">
  230. <li></li>
  231. </ul>
  232. </li>
  233. </div>
  234. </xpath>
  235. </template>
  236. </data>
  237. </openerp>