theme.xml 98 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Logo -->
  5. <template id="website.layout_logo_show" inherit_id="website.layout" customize_show="True" name="Show Logo">
  6. <xpath expr="//header//a[@class='navbar-brand']" position="attributes">
  7. <attribute name="style">display:none;</attribute>
  8. </xpath>
  9. <xpath expr="//header//a[@class='navbar-brand']" position="before">
  10. <a href="/page/website.homepage" class="navbar-brand logo">
  11. <img src="/kingfisher_pro/static/src/img/kingfisher-logo.png" alt="Kingfisher Pro Fashion" title="Kingfisher Pro Fashion"/>
  12. </a>
  13. </xpath>
  14. <xpath expr="//footer" position="after">
  15. <a href="#0" class="cd-top"><i class="fa fa-chevron-up"></i></a>
  16. </xpath>
  17. </template>
  18. <!-- Total on hover -->
  19. <template id="hover_total">
  20. <div id="cart_total" t-if="website_sale_order">
  21. <div class="cart-content">
  22. <div class="product-desc">
  23. <t t-foreach="website_sale_order.website_order_line" t-as="line" >
  24. <div class="pd-row">
  25. <span class="product-img">
  26. <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
  27. <span t-field="line.product_id.image_small"
  28. t-field-options='{"widget": "image", "class": "img-rounded", "alt-field": "name"}'/>
  29. </a>
  30. </span>
  31. <div class="product-detail">
  32. <p class="product-name">
  33. <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
  34. <t t-esc="line.product_id.name"/>
  35. </a>
  36. </p>
  37. <p>
  38. <span class="king_pro_cart_quantity" t-esc="int(line.product_uom_qty)"/> x
  39. <span t-field="line.price_unit" t-field-options='{"widget": "monetary", "display_currency": "user_id.partner_id.property_product_pricelist.currency_id"}'/>
  40. <span class="price">
  41. <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">details</a>
  42. </span>
  43. </p>
  44. </div>
  45. </div>
  46. </t>
  47. <div id='king_cart' class="total">
  48. <p class="">
  49. <div class="row" id="order_total">
  50. <span class="col-xs-6 text-right h4">Subtotal:</span>
  51. <span class="col-xs-6 text-left h4" style="white-space: nowrap;">
  52. <span t-field="website.sale_get_order().amount_total" style="white-space: nowrap;" t-field-options='{
  53. "widget": "monetary",
  54. "from_currency": "website.sale_get_order().pricelist_id.currency_id",
  55. "display_currency": "website.currency_id"
  56. }'/>
  57. </span>
  58. </div>
  59. </p>
  60. </div>
  61. <div class="button-box">
  62. <a class="view-all btn" href="/shop/cart">View all</a>
  63. <a class="proceed btn" href="/shop/checkout">Proceed to checkout</a>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </template>
  69. <!-- Top header -->
  70. <template id="kingfisher_pro_header_layout" inherit_id="website.layout" name="Top Header">
  71. <xpath expr="//head//title" position="after">
  72. <t t-set="current_language" t-value="lang"/>
  73. </xpath>
  74. <xpath expr="//html/head" position="inside">
  75. <link href="/kingfisher_pro/static/src/img/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
  76. </xpath>
  77. <xpath expr="//header//li//a[@href='/shop/cart']" position="attributes">
  78. <attribute name='style'>display:none;</attribute>
  79. </xpath>
  80. <xpath expr="//div[@id='wrapwrap']//header//div[@class='container']" position="attributes">
  81. <attribute name="class">container header-middle header-nav</attribute>
  82. </xpath>
  83. <!-- Remove Administrator -->
  84. <xpath expr="//ul[@id='top_menu']/li[last()]" position="attributes">
  85. <attribute name='style'>display:none;</attribute>
  86. </xpath>
  87. <xpath expr="//div[@id='wrapwrap']//header//div[@class='container header-middle header-nav']" position="before">
  88. <div class="header-top">
  89. <div class="top-header">
  90. <div class="container">
  91. <div class="top-row">
  92. <div class="row">
  93. <div class="top-left col-md-6 col-sm-8 col-xs-8 text-left">
  94. <p class="call-us">
  95. <span>
  96. <a t-attf-href="tel: #{res_company.phone}">
  97. <i class="fa fa-mobile"></i><span t-field="res_company.phone"/>
  98. </a>
  99. </span>
  100. </p>
  101. <a t-att-href="'mailto:%s' % res_company.email">
  102. <p class="mail">
  103. <span>
  104. <i class="fa fa-envelope-o"></i>
  105. </span> <span t-ignore="true" t-field="res_company.email"/>
  106. </p>
  107. </a>
  108. </div>
  109. <div class="top-right col-md-6 col-sm-4 col-xs-4 text-right">
  110. <ul class="links">
  111. <li>
  112. <a title="Search" href="#" class="top-link-myaccount">
  113. <div class="search-toggle">
  114. <span class="st-toggle">
  115. <i class="fa fa-search"></i>
  116. </span>
  117. <div class="hsearch-block">
  118. <form action="/shop" method="get">
  119. <t t-set="search_text" t-value="search"/>
  120. <input class="form-control" placeholder="Search..." name="search" t-att-value="search" type="text"/>
  121. </form>
  122. </div>
  123. </div>
  124. </a>
  125. </li>
  126. <li class="configuration">
  127. <a title="Configure" class="top-link-wishlist" href="#">
  128. <i class="fa fa-cog"></i>
  129. </a>
  130. <div class="toggle-config">
  131. <div class="options" t-if="(request.website_multilang and len(languages) &gt; 1) or editable">
  132. <ul class="language-bar js_language_selector" id="lang">
  133. <label>LANGUAGE</label>
  134. <div class="btn-group">
  135. <button class="dropdown-toggle btn-default" data-caret="true" data-toggle="dropdown" type="button">
  136. <t t-foreach="languages" t-as="lgs">
  137. <t t-if="current_language and current_language==lgs[0]">
  138. <t t-esc="lgs[0].split('_')[0]"/>
  139. </t>
  140. </t>
  141. <span class="caret"/>
  142. </button>
  143. <ul class="dropdown-menu dropdown-menu-right js_language_selector" role="menu">
  144. <t t-as="lg" t-foreach="languages">
  145. <li t-att-class="'active' if current_language == lg[0] else None">
  146. <a t-att-data-default-lang="editable and 'true' if lg[0] == website.default_lang_code else None"
  147. t-att-data-lang="lg[0]"
  148. t-att-href="url_for(request.httprequest.path + '?' + keep_query(), lang=lg[0])"
  149. class="js_change_lang">
  150. <t t-esc="lg[0].split('_')[0]"/>
  151. </a>
  152. </li>
  153. </t>
  154. <li groups="base.group_website_publisher">
  155. <t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>
  156. <a t-attf-href="/web#action=base.action_view_base_language_install&amp;website_id=#{website.id}&amp;url_return=#{url_return}">Add...</a>
  157. </li>
  158. </ul>
  159. </div>
  160. </ul>
  161. </div>
  162. <div class="personal-info">
  163. <ul>
  164. <t t-if="website.user_id != user_id">
  165. <li>Welcome,
  166. <b>
  167. <t t-esc="user_id.name"/>
  168. </b>
  169. </li>
  170. <li>
  171. <a href="/web">My account</a>
  172. </li>
  173. <li>
  174. <a t-attf-href="/web/session/logout?redirect=/" role="menuitem">Logout</a>
  175. </li>
  176. </t>
  177. <t t-if="website.user_id == user_id">
  178. <li>
  179. <a href="/web/login">Login</a>
  180. </li>
  181. <li>
  182. <a href="/web/signup">Register</a>
  183. </li>
  184. </t>
  185. </ul>
  186. </div>
  187. </div>
  188. </li>
  189. <li class="item-no">
  190. <a title="Checkout" class="top-link-checkout" href="#">
  191. <i class="fa fa-shopping-cart"></i>x
  192. <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
  193. <span class="king_pro_cart_quantity" t-esc="website_sale_order and website_sale_order.cart_quantity or 0"/>
  194. </a>
  195. <div class="mini-cart-content dropdown-content left-hand block block-cart skip-content skip-content--style" id="header-cart">
  196. <div class="" t-if="not website_sale_order or not website_sale_order.website_order_line">
  197. Your cart is empty!
  198. </div>
  199. <div class="" t-if="website_sale_order and website_sale_order.website_order_line">
  200. <div class="block-subtitle">Recently added item(s)</div>
  201. <div id="king_hover_total">
  202. <t t-call="kingfisher_pro.hover_total"/>
  203. </div>
  204. </div>
  205. </div>
  206. </li>
  207. </ul>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </xpath>
  215. </template>
  216. <!-- Custom Footer -->
  217. <template id="kingfisher_pro_footer_customize" inherit_id="website_less.footer_default">
  218. <xpath expr="//div[@class='container hidden-print']" position="attributes">
  219. <attribute name="style">display:none;</attribute>
  220. </xpath>
  221. <xpath expr="//div[@class='container hidden-print']" position="before">
  222. <div class="footer-top hidden-print">
  223. <div class="container">
  224. <div class="row">
  225. <div class="footer-content">
  226. <div class="col-md-3 col-sm-4 footer-col">
  227. <div class="fot-col fot-address">
  228. <div class="address-list">
  229. <address itemscope="itemscope" itemtype="http://schema.org/Organization">
  230. <div t-field="res_company.partner_id" t-field-options='{
  231. "widget": "contact",
  232. "fields": ["address"]}'/>
  233. </address>
  234. <p class="call-us">
  235. <span>
  236. <a t-attf-href="tel: #{res_company.phone}">
  237. <i class="fa fa-phone"></i><span t-field="res_company.phone"/>
  238. </a>
  239. </span>
  240. </p>
  241. <a t-att-href="'mailto:%s' % res_company.email">
  242. <i class="fa fa-envelope-o"></i>
  243. <span t-ignore="true" t-field="res_company.email"/>
  244. </a>
  245. </div>
  246. </div>
  247. </div>
  248. <div class="col-md-2 col-sm-3 footer-col">
  249. <section class="fot-col fot-link">
  250. <ul>
  251. <li>
  252. <a href="#">Security</a>
  253. </li>
  254. <li>
  255. <a href="#">Privacy</a>
  256. </li>
  257. <li>
  258. <a href="#">Text Messaging</a>
  259. </li>
  260. <li>
  261. <a href="#"> Legal</a>
  262. </li>
  263. <li>
  264. <a href="#">Supply chain</a>
  265. </li>
  266. </ul>
  267. </section>
  268. </div>
  269. <div class="col-md-2 col-sm-3 footer-col">
  270. <section class="fot-col fot-link">
  271. <ul>
  272. <li>
  273. <a href="#">Help</a>
  274. </li>
  275. <li>
  276. <a href="#">Gift Cards</a>
  277. </li>
  278. <li>
  279. <a href="#">Order Status</a>
  280. </li>
  281. <li>
  282. <a href="#">Free Shipping</a>
  283. </li>
  284. <li>
  285. <a href="#">Returns &amp; Exchanges</a>
  286. </li>
  287. <li>
  288. <a href="#">International</a>
  289. </li>
  290. </ul>
  291. </section>
  292. </div>
  293. <div class="col-md-2 col-sm-2 footer-col">
  294. <section class="fot-col fot-link">
  295. <ul>
  296. <li>
  297. <a href="#">About Us</a>
  298. </li>
  299. <li>
  300. <a href="#">Jobs</a>
  301. </li>
  302. <li>
  303. <a href="#">Affiliates</a>
  304. </li>
  305. <li>
  306. <a href="#">Meet The Maker</a>
  307. </li>
  308. <li>
  309. <a href="#">Contact</a>
  310. </li>
  311. </ul>
  312. </section>
  313. </div>
  314. <div class="col-md-3 col-sm-12 newsletter-div">
  315. <section>
  316. <div class="newsletter">
  317. <h3>Newsletter!</h3>
  318. <p class="">Sign up for our newsletter!</p>
  319. <div class="oe_snippet_body input-group js_subscribe" data-list-id="1" data-subscribe="off">
  320. <input class="js_subscribe_email form-control" name="email" placeholder="your email..." type="email"/>
  321. <span class="btn-box">
  322. <a class="btn btn-primary js_subscribe_btn" href="#">SUBSCRIBE NOW <i class="fa fa-angle-right"></i></a>
  323. <a class="btn btn-success js_subscribed_btn hidden" disabled="disabled" href="#">Thanks</a>
  324. </span>
  325. <div class="alert alert-success hidden">Thanks for your subscription!</div>
  326. </div>
  327. </div>
  328. </section>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </xpath>
  335. </template>
  336. <!-- Copyright Footer -->
  337. <template id="footer_copyright" inherit_id="website.layout_footer_copyright">
  338. <xpath expr="//div[@class='container mt16 mb8']" position="attributes">
  339. <attribute name="style">display:none;</attribute>
  340. </xpath>
  341. <xpath expr="//div[@class='container mt16 mb8']" position="before">
  342. <div class="footer-btm">
  343. <div class="container">
  344. <div class="footer-bottom-div">
  345. <div class="row">
  346. <div class="col-md-6 col-sm-6">
  347. <p>© 2016 By
  348. <span>Kingfisher Pro Fashion.</span>
  349. All Rights Reserved.</p>
  350. </div>
  351. <div class="col-md-6 col-sm-6">
  352. <ul class="link">
  353. <li>
  354. <a href="#">About Us</a>
  355. </li>
  356. <li>
  357. <a href="#">Contact Us</a>
  358. </li>
  359. <li>
  360. <a href="#">Customer Service</a>
  361. </li>
  362. <li class="last-li">
  363. <a href="#">Privacy Policy</a>
  364. </li>
  365. </ul>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. </xpath>
  372. </template>
  373. <!-- Multi image feature for products -->
  374. <template id="website_multiple_image_product_slider" inherit_id="website_sale.product" name="Multi-Image Product" active="True" customize_show="True">
  375. <xpath expr="//section[@id='product_detail']//span[@itemprop='image']" position="attributes">
  376. <attribute name="style">display:none;</attribute>
  377. </xpath>
  378. <xpath expr="//section[@id='product_detail']//span[@itemprop='image']" position="before">
  379. <span itemprop="image">
  380. <t t-if="not product.multi_image and not product.is_flip_image">
  381. <img class="product_detail_img"
  382. t-att-name="product.name"
  383. t-att-alt="product.name"
  384. t-att-title="product.name"
  385. t-att-src="website.image_url(product, 'image')"/>
  386. </t>
  387. <t t-if="product.is_flip_image and not product.flip_image">
  388. <img class="product_detail_img"
  389. t-att-src="website.image_url(product, 'image')"
  390. t-att-alt="product.name"
  391. t-att-title="product.name"
  392. t-att-data-image="website.image_url(product, 'image')"/>
  393. </t>
  394. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.flip_image">
  395. <div id="gallery">
  396. <img class="product_detail_img"
  397. t-att-alt="product.name"
  398. t-att-title="product.name"
  399. t-att-src="website.image_url(product, 'image')"
  400. t-att-data-image="website.image_url(product, 'image')"/>
  401. <t t-if="product.is_flip_image and product.flip_image">
  402. <img t-att-alt="product.name"
  403. t-att-src="website.image_url(product, 'flip_image')"
  404. t-att-data-image="website.image_url(product, 'flip_image')"
  405. t-att-title="product.name"/>
  406. </t>
  407. </div>
  408. </t>
  409. <t t-if="not product.multi_image and product.flip_image">
  410. <div id="gallery">
  411. <img class="product_detail_img"
  412. t-att-alt="product.name"
  413. t-att-title="product.name"
  414. t-att-src="website.image_url(product, 'image')"
  415. t-att-data-image="website.image_url(product, 'image')"/>
  416. <t t-if="product.is_flip_image and product.flip_image">
  417. <img t-att-alt="product.name"
  418. t-att-src="website.image_url(product, 'flip_image')"
  419. t-att-data-image="website.image_url(product, 'flip_image')"
  420. t-att-title="product.name"/>
  421. </t>
  422. </div>
  423. </t>
  424. <t t-if="product.multi_image and website.get_multiple_images(product.id)">
  425. <div id="gallery">
  426. <img class="product_detail_img"
  427. t-att-alt="product.name"
  428. t-att-title="product.name"
  429. t-att-src="website.image_url(product, 'image')"
  430. t-att-data-image="website.image_url(product, 'image')"/>
  431. <t t-as="im" t-foreach="website.get_multiple_images(product.id)">
  432. <t t-if="im.attach_type == 'image'">
  433. <img t-att-src="website.image_url(im, 'image')"
  434. t-att-alt="im.alt if im.alt else im.name"
  435. t-att-data-image="website.image_url(im, 'image')"
  436. t-att-title="im.name if im.name else product.name"/>
  437. </t>
  438. <t t-if="im.attach_type == 'video'">
  439. <t t-if="im.video_type == 'youtube'">
  440. <img t-att-alt="im.alt if im.alt else im.name"
  441. data-type="youtube"
  442. t-att-data-videoid="im.video_id"
  443. t-att-data-description="im.name if im.name else product.name"/>
  444. </t>
  445. <t t-if="im.video_type == 'vimeo'">
  446. <img t-att-alt="im.alt if im.alt else im.name"
  447. data-type="vimeo"
  448. t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  449. t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  450. t-att-data-videoid="im.video_id"
  451. t-att-data-description="im.name if im.name else product.name"/>
  452. </t>
  453. <t t-if="im.video_type == 'html5video'">
  454. <img data-type="html5video"
  455. t-att-alt="im.alt if im.alt else im.name"
  456. t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  457. t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  458. t-att-data-videoogv="im.video_ogv if im.video_ogv else '' "
  459. t-att-data-videowebm="im.video_webm if im.video_webm else '' "
  460. t-att-data-videomp4="im.video_mp4 if im.video_mp4 else '' "
  461. t-att-data-description="im.name if im.name else product.name"/>
  462. </t>
  463. </t>
  464. </t>
  465. <t t-if="product.is_flip_image and product.flip_image">
  466. <img t-att-alt="product.name"
  467. t-att-src="website.image_url(product, 'flip_image')"
  468. t-att-data-image="website.image_url(product, 'flip_image')"
  469. t-att-title="product.name"/>
  470. </t>
  471. </div>
  472. </t>
  473. <t t-if="product.multi_image and not website.get_multiple_images(product.id)">
  474. <img class="product_detail_img"
  475. t-att-src="website.image_url(product, 'image')"
  476. t-att-alt="product.name"
  477. t-att-title="product.name"
  478. t-att-data-image="website.image_url(product, 'image')"/>
  479. </t>
  480. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.is_flip_image and product.flip_image">
  481. <div id="gallery">
  482. <img class="product_detail_img"
  483. t-att-src="website.image_url(product, 'image')"
  484. t-att-alt="product.name"
  485. t-att-title="product.name"
  486. t-att-data-image="website.image_url(product, 'image')"/>
  487. <t t-if="product.is_flip_image and product.flip_image">
  488. <img t-att-alt="product.name"
  489. t-att-src="website.image_url(product, 'flip_image')"
  490. t-att-data-image="website.image_url(product, 'flip_image')"
  491. t-att-title="product.name"/>
  492. </t>
  493. </div>
  494. </t>
  495. </span>
  496. </xpath>
  497. </template>
  498. <!-- Product detail page -->
  499. <template id="kingfisher_pro_product_details" inherit_id="website_sale.product" name="Product Details">
  500. <xpath expr="//div[@itemscope='itemscope']/section/div" position="attributes">
  501. <attribute name="style">display:none;</attribute>
  502. </xpath>
  503. <!-- Added class for main section in product detail page -->
  504. <xpath expr="//div[@itemscope='itemscope']/section" position="attributes">
  505. <attribute name="t-attf-class">container mt8 product-view oe_website_sale #{(compute_currency(product.lst_price) - product.price) &gt; 0.1 and 'discount'}</attribute>
  506. </xpath>
  507. <!-- Theme breadcrumb -->
  508. <xpath expr="//div[@itemscope='itemscope']/section" position="before">
  509. <section class="page-title">
  510. <div class="container">
  511. <div class="col-sm-8">
  512. <ul class="breadcrumb">
  513. <li>
  514. <a href="/page/homepage">Home</a>
  515. </li>
  516. <li>
  517. <a href="/shop">Products</a>
  518. </li>
  519. <li t-if="category">
  520. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  521. </li>
  522. <li class="active">
  523. <span t-field="product.name"/>
  524. </li>
  525. </ul>
  526. </div>
  527. <div class="col-sm-4 col-xs-6" groups="base.group_sale_manager">
  528. <t t-call="website.publish_management">
  529. <t t-set="object" t-value="product"/>
  530. <t t-set="publish_edit" t-value="True"/>
  531. <t t-set="action" t-value="'product.product_template_action'"/>
  532. </t>
  533. </div>
  534. </div>
  535. </section>
  536. </xpath>
  537. <!-- Product detail page right side design -->
  538. <xpath expr="//section[@id='product_detail']//div[@class='row']//div[@class='col-sm-5 col-md-5 col-lg-4 col-lg-offset-1']" position="attributes">
  539. <attribute name="style">display:none;</attribute>
  540. </xpath>
  541. <xpath expr="//section[@id='product_detail']//div[@class='row']//div[@class='col-sm-5 col-md-5 col-lg-4 col-lg-offset-1']" position="before">
  542. <div id="product_details" class="col-xs-12 col-md-5 col-lg-5 col-sm-5 product-detail">
  543. <div class="product-shop-info">
  544. <div class="product-title">
  545. <h1 itemprop="name" t-field="product.name">Product Name</h1>
  546. <p class="review">
  547. <a href="#">
  548. <span>
  549. <t t-esc="len(product.website_message_ids)"/>
  550. </span> review(s) | Add your review
  551. </a>
  552. </p>
  553. <span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
  554. </div>
  555. <div class="product-options-bottom">
  556. <form class="js_add_cart_variants" method="POST" t-att-action="keep('/shop/cart/update')">
  557. <div class="js_product">
  558. <div class="details">
  559. <div class="price-box">
  560. <t t-call="website_sale.product_price"/>
  561. </div>
  562. <t t-if="product.description_sale">
  563. <div class="pro-desc">
  564. <p t-field="product.description_sale"/>
  565. </div>
  566. </t>
  567. </div>
  568. <t t-placeholder="select">
  569. <input class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'" type="hidden"/>
  570. <t t-call="website_sale.variants">
  571. <t t-set="ul_class" t-value="'nav-stacked'"/>
  572. </t>
  573. </t>
  574. <p class="css_not_available_msg bg-danger" style="padding: 15px;" t-if="len(product.product_variant_ids) &gt; 1">Product not available</p>
  575. <div class="add-to-cart">
  576. <a class="btn cart-btn btn-lg js_check_product a-submit" href="#" id="add_to_cart">
  577. <i class="fa fa-shopping-cart"/>Add to Cart</a>
  578. </div>
  579. </div>
  580. </form>
  581. </div>
  582. </div>
  583. </div>
  584. </xpath>
  585. <!-- Product Description -->
  586. <xpath expr="//div[@itemprop='description']" position="attributes">
  587. <attribute name="style">display:none;</attribute>
  588. </xpath>
  589. <xpath expr="//div[@itemprop='description']" position="before">
  590. <div class="container" id="website_description">
  591. <div class="pd-more-info">
  592. <!-- Nav tabs -->
  593. <ul id="description_reviews_tabs" class="nav nav-tabs" role="tablist">
  594. <li role="presentation" class="active">
  595. <a href="#description" aria-controls="more_info" role="tab" data-toggle="tab">Description</a>
  596. </li>
  597. </ul>
  598. <div id="description_reviews_tabs_contents" class="tab-content">
  599. <div role="tabpanel" class="tab-pane active" id="description">
  600. <div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
  601. <div class="oe_structure"/>
  602. </div>
  603. </div>
  604. </div>
  605. </div>
  606. </xpath>
  607. </template>
  608. <!-- Removed Sign In -->
  609. <template id="website.show_sign_in" customize_show="False" inherit_id="website.layout" name="Show Sign In" groups="base.group_public">
  610. <xpath expr="//ul[@id='top_menu']" position="inside">
  611. <li class="divider" style="display:none"/>
  612. <li style="display:none">
  613. <a t-attf-href="/web/login">
  614. <b>Sign in</b>
  615. </a>
  616. </li>
  617. </xpath>
  618. </template>
  619. <!-- Select quantity inherited from website sale -->
  620. <template id="website_sale.product_quantity" inherit_id="website_sale.product" customize_show="True" name="Select Quantity">
  621. <xpath expr="//section[@id='product_detail']/div[@class='row']//div[2]//div[@class='js_product']" position="inside">
  622. <div class="css_quantity input-group oe_website_spinner" contenteditable="false">
  623. <a t-attf-href="#" class="mb8 input-group-addon js_add_cart_json">
  624. <i class="fa fa-minus"></i>
  625. </a>
  626. <input type="text" class="form-control" data-min="1" name="add_qty" value="1"/>
  627. <a t-attf-href="#" class="mb8 input-group-addon float_left js_add_cart_json">
  628. <i class="fa fa-plus"></i>
  629. </a>
  630. </div>
  631. </xpath>
  632. </template>
  633. <!-- Discussion inherited to display in tabs -->
  634. <template id="website_sale.product_comment" inherit_id="kingfisher_pro.kingfisher_pro_product_details" active="True" customize_show="True" name="Discussion">
  635. <!-- Will add review tab -->
  636. <xpath expr="//div[@id='website_description']/div/ul/li" position="after">
  637. <li role="presentation">
  638. <a href="#reviews" aria-controls="reviews" role="tab" data-toggle="tab">Reviews <t t-if="len(product.website_message_ids)" ><span class="review_label">(<t t-esc="len(product.website_message_ids)"/>)</span></t></a>
  639. </li>
  640. </xpath>
  641. <!-- Will add review tab contents -->
  642. <xpath expr="//div[@id='website_description']//div[@id='description']" position="after">
  643. <div role="tabpanel" class="tab-pane" id="reviews">
  644. <section class="container">
  645. <div class="row col-md-10 col-md-offset-1">
  646. <div class="text-muted">
  647. <h3 class="fa fa-comment-o">
  648. <a id="comments">
  649. <t t-if="len(product.website_message_ids) &lt;= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
  650. <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
  651. </a>
  652. </h3>
  653. </div>
  654. <ul class="media-list" id="comments-list" t-if="product.website_message_ids">
  655. <li t-foreach="product.website_message_ids" t-as="message" class="media">
  656. <div class="media-body oe_msg">
  657. <img class="media-object pull-left oe_msg_avatar" t-att-src="website.image_url(message.author_id, 'image_small')" style="width: 50px; margin-right: 10px;"/>
  658. <div class="media-body oe_msg_content">
  659. <t t-call="website.publish_short">
  660. <t t-set="object" t-value="message"/>
  661. </t>
  662. <h5 class="media-heading">
  663. <span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
  664. </h5>
  665. <div t-field="message.body"/>
  666. <div>
  667. <div class="oe_msg_attachment" t-foreach='message.attachment_ids' t-as='attachment'>
  668. <a t-att-href="'/mail/download_attachment?model=mail.message&amp;id='+str(message.id)+'&amp;method=download_attachment&amp;attachment_id='+str(attachment.id)" target="_blank">
  669. <t t-if="attachment.file_type_icon == 'webimage'">
  670. <img t-att-src="'/web/binary/image?model=ir.attachment&amp;field=datas&amp;id=' + str(attachment.id) + '&amp;resize=100,80'"
  671. class='oe_attachment_embedded'></img>
  672. </t>
  673. <t t-if="attachment.file_type_icon != 'webimage'">
  674. <img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
  675. class='oe_attachment_webimage'></img>
  676. </t>
  677. <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
  678. </a>
  679. </div>
  680. </div>
  681. </div>
  682. </div>
  683. </li>
  684. </ul>
  685. <div class="css_editable_mode_hidden">
  686. <form id="comment" t-attf-action="/shop/product/comment/#{product.id}" method="POST">
  687. <img class="img pull-left img-rounded" t-att-src="website.image_url(user_id.partner_id, 'image_small')" style="width: 50px; margin-right: 10px;"/>
  688. <div class="pull-left mb32" style="width: 75%%">
  689. <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
  690. <a class="btn btn-primary mt8 a-submit">Post</a>
  691. </div>
  692. </form>
  693. </div>
  694. </div>
  695. </section>
  696. </div>
  697. </xpath>
  698. </template>
  699. <!-- Suggested products -->
  700. <template id="website_sale.recommended_products" inherit_id="website_sale.product" customize_show="True" name="Alternative Products">
  701. <xpath expr="//div[@id='product_full_description']" position="after">
  702. <div class="related-products container" t-if="product.alternative_product_ids">
  703. <div class="left-title">
  704. <h3>Suggested alternatives:</h3><hr/>
  705. </div>
  706. <div id="recommended_products_slider" class="owl-carousel">
  707. <t t-foreach="product.alternative_product_ids" t-as="product">
  708. <div class="cs-product">
  709. <div class="pwp-img">
  710. <a t-att-href="'/shop/product/%s' % slug(product)">
  711. <img t-att-src="website.image_url(product, 'image')" t-att-title="product.name" t-att-alt="product.name"/>
  712. </a>
  713. </div>
  714. <div class="pink-box">
  715. <div class="view">
  716. <div class="shopping-cart">
  717. <a t-attf-href="/shop/product/#{ slug(product) }">
  718. <img src="/kingfisher_pro/static/src/img/cart2.png" alt="Shopping-cart" title="Shopping Cart" />
  719. </a>
  720. </div>
  721. </div>
  722. </div>
  723. <div class="pwp-info">
  724. <p class="pwpi-title">
  725. <a t-attf-href="/shop/product/#{ slug(product) }">
  726. <span t-field='product.name'/>
  727. </a>
  728. </p>
  729. <p class="price">
  730. <span class="price">
  731. <span t-field="product.lst_price"
  732. t-field-options='{
  733. "widget": "monetary",
  734. "display_currency": "website.pricelist_id.currency_id"
  735. }'></span>
  736. </span>
  737. </p>
  738. </div>
  739. </div>
  740. </t>
  741. </div>
  742. </div>
  743. </xpath>
  744. </template>
  745. <!-- Products Items -->
  746. <template id="king_pro_products_item" name="Kingfisher Product item">
  747. <form action="/shop/cart/update" method="post">
  748. <div itemscope="itemscope" itemtype="http://schema.org/Product">
  749. <div class="cs-product">
  750. <div class="pwp-img">
  751. <a itemprop="url" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))">
  752. <img class="img img-responsive" itemprop="image" t-att-alt="product.name" t-att-src="website.image_url(product, 'image', None if product_image_big else '300x300')"/>
  753. </a>
  754. </div>
  755. <div class="pwp-info">
  756. <p class="pwpi-title">
  757. <a itemprop="name" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))" t-field="product.name"/>
  758. </p>
  759. <p class="price">
  760. <span class="price" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" t-if="product.product_variant_ids">
  761. <b>
  762. <t t-if="(compute_currency(product.lst_price) - product.price) &gt; 0.1">
  763. <del class="text-danger" style="white-space: nowrap;" t-field="product.lst_price" t-field-options='{"widget": "monetary", "from_currency": "product.company_id.currency_id", "display_currency": "user_id.partner_id.property_product_pricelist.currency_id" }'/>&amp;nbsp;</t>
  764. <span style="white-space: nowrap;" t-field="product.price" t-field-options='{"widget": "monetary", "display_currency": "user_id.partner_id.property_product_pricelist.currency_id"}'/>
  765. <span itemprop="price" style="display:none;" t-esc="product.price"/>
  766. <span itemprop="priceCurrency" style="display:none;" t-esc="user_id.partner_id.property_product_pricelist.currency_id.name"/>
  767. </b>
  768. </span>
  769. </p>
  770. <div id='list_add_to_cart' class="hidden">
  771. <span t-field="product.description_sale"/>
  772. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  773. <t t-if="len(product.product_variant_ids) == 1">
  774. <a class="a-submit btn btn-primary">Add to cart</a>
  775. </t>
  776. <t t-if="len(product.product_variant_ids) &gt; 1">
  777. <a class="btn btn-primary" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))"> Add to cart</a>
  778. </t>
  779. </div>
  780. </div>
  781. </div>
  782. </div>
  783. </form>
  784. </template>
  785. <!-- Product Style Tag image -->
  786. <template id="kingfisher_pro_style_tags" inherit_id="kingfisher_pro.king_pro_products_item" name="Product Sale Tags" active="True" customize_show="True">
  787. <xpath expr="//div[@itemscope='itemscope']/div[@class='cs-product']/div" position="inside">
  788. <div t-if="product and product.product_style_tag_id" t-att-class="'%s' % product.product_style_tag_id.color if product and product.product_style_tag_id else ''">
  789. <t t-esc="product.product_style_tag_id.name"/>
  790. </div>
  791. </xpath>
  792. </template>
  793. <!-- Enable/Disable Flip image -->
  794. <template id="kingfisher_pro_flip_image" inherit_id="kingfisher_pro.king_pro_products_item" name="Flip Image" active="True" customize_show="True">
  795. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="attributes">
  796. <attribute name="class">front img img-responsive</attribute>
  797. </xpath>
  798. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="after">
  799. <img class="back img img-responsive" itemprop="image" t-att-alt="product.name" t-att-src="website.image_url(product, 'flip_image', None if product_image_big else '300x300')"/>
  800. </xpath>
  801. </template>
  802. <!-- Products page -->
  803. <template id="kingfisher_pro_sale_products" inherit_id="website_sale.products" name="Kingfisher Pro Products">
  804. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[3]" position="attributes">
  805. <attribute name="style">display:none;</attribute>
  806. </xpath>
  807. <!-- Brand Cover and description -->
  808. <xpath expr="//div[@id='products_grid']/table" position="before">
  809. <t t-if="brand_obj.brand_cover">
  810. <img height="300" class="mb16" t-att-src="website.image_url(brand_obj, 'brand_cover')" t-att-title="brand_obj.name" t-att-alt="brand_obj.name" style="width:100%; padding: 0 15px;"/>
  811. </t>
  812. <t t-if="brand_obj.brand_description">
  813. <div class="mb16" style="width:100%; padding: 0 15px;">
  814. <t t-raw="brand_obj.brand_description"/>
  815. </div>
  816. </t>
  817. </xpath>
  818. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[@class='products_pager']" position="attributes">
  819. <attribute name="style">display:none;</attribute>
  820. </xpath>
  821. <xpath expr="//div[@id='wrap']//div[@class='oe_structure']" position="before">
  822. <section class="page-title">
  823. <div class="container">
  824. <ul class="breadcrumb">
  825. <li>
  826. <a href="/page/homepage">Home</a>
  827. </li>
  828. <li t-att-class="'' if category else 'active'">
  829. <a href="/shop">Products</a>
  830. </li>
  831. <li t-if="category" t-att-class="'active' if category else ''">
  832. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  833. </li>
  834. </ul>
  835. </div>
  836. </section>
  837. </xpath>
  838. <!-- Category name, grid/list switching, pager, sort by -->
  839. <xpath expr="//div[@id='products_grid']/table" position="before">
  840. <div class="right-title">
  841. <t t-if="category">
  842. <h3 t-field='category.name'/>
  843. </t>
  844. <t t-if="not category">
  845. <h3>
  846. All Products
  847. </h3>
  848. </t>
  849. <hr/>
  850. </div>
  851. <div class="category-products category_products">
  852. <div class="toolbar">
  853. <div class="toolbar-pager">
  854. <div class="pager_left">
  855. <div class="view-mode">
  856. <button class="shift_grid_view active">
  857. <i class="fa fa-th-large"/>
  858. </button>
  859. <button class="shift_list_view">
  860. <i class="fa fa-bars"/>
  861. </button>
  862. </div>
  863. <div class="paging_sort">
  864. <!-- Product paging -->
  865. <t t-if="products and website.get_pager_selection()">
  866. <t t-set="website_ppp" t-value="website.get_pager_selection()"/>
  867. <span t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'simple_name' or 'hidden'}">
  868. <t t-esc="website_ppp['name']"/>
  869. <div t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'dropdown' or 'hidden'} btn-group">
  870. <t t-set="curr_ppp" t-value="website.get_current_pager_selection()"/>
  871. <a href="#" class="dropdown-toggle btn btn-default" data-toggle="dropdown">
  872. <t t-esc="curr_ppp or ' - '" />
  873. <span class="caret"></span>
  874. </a>
  875. <ul class="dropdown-menu" role="menu">
  876. <li t-foreach="website_ppp['page_no']" t-as="pl" >
  877. <a t-att-href="'/shop/pager_selection/%s' % pl.id">
  878. <span class='switcher_pricelist' t-att-data-pl_id="pl.id" t-esc="pl.name"/>
  879. </a>
  880. </li>
  881. </ul>
  882. </div>
  883. </span>
  884. </t>
  885. </div>
  886. </div>
  887. <div class="pager_right">
  888. <div class="products_pager">
  889. <t t-call="website.pager"/>
  890. </div>
  891. </div>
  892. </div>
  893. </div>
  894. </div>
  895. </xpath>
  896. <!-- Kingfisher Pro Prodcut Grid View -->
  897. <xpath expr="//div[@id='products_grid']/table" position="attributes">
  898. <attribute name="style">display:none;</attribute>
  899. </xpath>
  900. <xpath expr="//div[@id='products_grid']/table" position="before">
  901. <div id="kingfisher_pro_products_grid_view">
  902. <t t-as="tr_product" t-foreach="bins">
  903. <t t-as="td_product" t-foreach="tr_product">
  904. <t t-if="td_product">
  905. <t t-set="product" t-value="td_product['product']"/>
  906. <div t-if="website.product_display_grid == '2'" class="col-md-6 col-sm-6 list-items">
  907. <t t-call="kingfisher_pro.king_pro_products_item"/>
  908. </div>
  909. <div t-if="website.product_display_grid == '3'" class="col-md-4 col-sm-6 list-items">
  910. <t t-call="kingfisher_pro.king_pro_products_item"/>
  911. </div>
  912. <div t-if="website.product_display_grid == '4'" class="col-md-3 col-sm-6 list-items">
  913. <t t-call="kingfisher_pro.king_pro_products_item"/>
  914. </div>
  915. </t>
  916. </t>
  917. </t>
  918. </div>
  919. <!-- For not bins -->
  920. </xpath>
  921. </template>
  922. <!-- Kingfisher Pro Product list view -->
  923. <template id="website_sale.products_list_view" inherit_id="website_sale.products" name="List View" active="False" customize_show="False">
  924. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="attributes">
  925. <attribute name="style">display:none;</attribute>
  926. </xpath>
  927. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="before">
  928. <div id="kingfisher_pro_products_list_view">
  929. <t t-as="product" t-foreach="products">
  930. <div class="col-md-4 col-sm-6 oe_product oe_list oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
  931. <t t-call="kingfisher_pro.king_pro_products_item"/>
  932. </div>
  933. </t>
  934. </div>
  935. </xpath>
  936. </template>
  937. <!-- Remove main add to cart -->
  938. <template id="website_sale.products_add_to_cart" inherit_id="website_sale.products_item" active="False" customize_show="False" name="Add to Cart">
  939. <xpath expr="//div[@class='product_price']" position="inside">
  940. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  941. <t t-if="len(product.product_variant_ids) == 1">
  942. <a class="btn btn-default btn-xs a-submit"><span class="fa fa-shopping-cart"/></a>
  943. </t>
  944. <t t-if="len(product.product_variant_ids) &gt; 1">
  945. <a class="btn btn-default btn-xs" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))"><span class="fa fa-shopping-cart"/></a>
  946. </t>
  947. </xpath>
  948. </template>
  949. <!-- Inherited Add to cart -->
  950. <template id="kingfisher_pro_products_add_to_cart" inherit_id="kingfisher_pro.king_pro_products_item" name="Add to Cart" active="True" customize_show="True">
  951. <xpath expr="//div[@class='pwp-info']" position="before">
  952. <div class='pink-box'>
  953. <div class="view">
  954. <div class="shopping-cart">
  955. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  956. <t t-if="len(product.product_variant_ids) == 1">
  957. <a class="a-submit">
  958. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  959. </a>
  960. </t>
  961. <t t-if="len(product.product_variant_ids) &gt; 1">
  962. <a t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
  963. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  964. </a>
  965. </t>
  966. </div>
  967. </div>
  968. </div>
  969. </xpath>
  970. </template>
  971. <!-- Product Sorting -->
  972. <template id="kingfisher_pro_product_sorting" inherit_id="kingfisher_pro.kingfisher_pro_sale_products" name="Product Sorting" active="False" customize_show="True">
  973. <xpath expr="//div[@class='category-products category_products']//div[@class='pager_right']/div" position="before">
  974. <t t-if="website.enable_sort_by">
  975. <div class="sort-by">
  976. <div class="dropdown ">
  977. <button data-toggle="dropdown" aria-expanded="false" aria-haspopup="true" id="sort_by" type="button">
  978. <t t-set="cur_sort" t-value="website.set_current_sorting_data()"/>
  979. <t t-if="not cur_sort">
  980. Sort By
  981. </t>
  982. <t t-if="cur_sort">
  983. Sort By:
  984. </t>
  985. <t t-esc="cur_sort"/>
  986. <span class="caret"/>
  987. </button>
  988. <ul class="dropdown-menu" role="menu">
  989. <t t-if="not category">
  990. <t t-as="a" t-foreach="website.get_sort_by_data()">
  991. <li>
  992. <a t-att-href="'/shop?sort_id=%s' % a.id" t-field="a.name"/>
  993. </li>
  994. </t>
  995. </t>
  996. <t t-if="category">
  997. <t t-as="a" t-foreach="website.get_sort_by_data()">
  998. <li>
  999. <a t-att-href="'/shop/category/%s?sort_id=%s' % (slug(category), a.id)" t-field="a.name"/>
  1000. </li>
  1001. </t>
  1002. </t>
  1003. </ul>
  1004. </div>
  1005. </div>
  1006. </t>
  1007. </xpath>
  1008. </template>
  1009. <!-- Custom Filters -->
  1010. <template id="kingfisher_pro_custom_filterz" inherit_id="website_sale.products" active="False" customize_show="True" name="Custom Filters" priority="1">
  1011. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1012. <div t-if="request.session.get('tag') or request.session.get('sortid') or request.session.get('pricerange')" class="popular-tags">
  1013. <div class="left-title mb16">
  1014. <h3>Selected Filters</h3>
  1015. <hr/>
  1016. </div>
  1017. <ul id="selectedattr">
  1018. <t t-if="request.session.get('tag')">
  1019. <label id="tag" class="label label-info">
  1020. <span>Tag: <t t-esc="request.session['tag'][1]"/></span>
  1021. <a id="clear">X</a>
  1022. </label>
  1023. </t>
  1024. <t t-if="request.session.get('sortid')">
  1025. <label id="sortid" t-if="len(request.session['sortid']) &gt;1" class="label label-info">
  1026. <span>Sort By: <t t-esc="request.session['sortid'][2]"/></span>
  1027. <a id="clear">X</a>
  1028. </label>
  1029. </t>
  1030. <t t-if="request.session.get('pricerange')">
  1031. <label id="pricerange" class="label label-info">
  1032. <span>Price-Range: <t t-esc="request.session['pricerange']"/></span>
  1033. <a id="clear">X</a>
  1034. </label>
  1035. </t>
  1036. </ul>
  1037. </div>
  1038. </xpath>
  1039. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1040. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1041. </xpath>
  1042. <xpath expr="//div[@id='products_grid']" position="attributes">
  1043. <attribute name="class">col-md-9 col-sm-8</attribute>
  1044. </xpath>
  1045. </template>
  1046. <!-- Inherited Product Categories -->
  1047. <template id="website_sale.products_categories" inherit_id="website_sale.products" name="Product Categories" active="False" customize_show="True" priority="2">
  1048. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1049. <div class="left-title">
  1050. <h3>Categories</h3>
  1051. <hr/>
  1052. </div>
  1053. <ul class="nav nav-pills nav-stacked category_nav mb16">
  1054. <li t-att-class=" '' if category else 'active' ">
  1055. <a t-att-href="keep('/shop',category=0)">All Products</a>
  1056. </li>
  1057. <t t-as="c" t-foreach="categories">
  1058. <t t-call="website_sale.categories_recursive"/>
  1059. </t>
  1060. </ul>
  1061. </xpath>
  1062. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1063. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1064. </xpath>
  1065. <xpath expr="//div[@id='products_grid']" position="attributes">
  1066. <attribute name="class">col-md-9 col-sm-8</attribute>
  1067. </xpath>
  1068. </template>
  1069. <template id="king_pro_option_collapse_categories_recursive" name="Collapse Category Recursive">
  1070. <li t-att-class="'active' if categ.id == int(category or 0) else ''">
  1071. <i t-if="categ.child_id" t-attf-class="text-primary fa #{'fa-chevron-down' if categ.id in parent_category_ids else 'fa-chevron-right'}"/>
  1072. <a t-att-href="keep('/shop/category/' + slug(categ), category=0)" t-field="categ.name"></a>
  1073. <ul t-if="categ.child_id" class="nav nav-pills nav-stacked nav-hierarchy" t-att-style="'display:block;' if categ.id in parent_category_ids else 'display:none;'">
  1074. <t t-foreach="categ.child_id" t-as="categ">
  1075. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1076. </t>
  1077. </ul>
  1078. </li>
  1079. </template>
  1080. <template id="option_collapse_products_categories" name="Collapsible Category List" inherit_id="website_sale.products_categories" active="False" customize_show="True">
  1081. <xpath expr="//div[@id='products_grid_before']/ul" position="replace">
  1082. <ul class="nav nav-pills nav-stacked mb16" id="o_shop_collapse_category">
  1083. <li t-att-class=" '' if category else 'active' ">
  1084. <a t-att-href="keep('/shop',category=0)">All Products</a>
  1085. </li>
  1086. <t t-foreach="categories" t-as="categ">
  1087. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1088. </t>
  1089. </ul>
  1090. </xpath>
  1091. </template>
  1092. <!-- Inherited Product Attributes -->
  1093. <template id="website_sale.products_attributes" inherit_id="website_sale.products" name="Product Attribute's Filters" active="False" customize_show="True">
  1094. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1095. <div class="shop-by mb16">
  1096. <div class="left-title">
  1097. <h3>Shop by</h3>
  1098. <hr/>
  1099. </div>
  1100. <form class="js_attributes" method="get">
  1101. <input name="search" t-att-value="search" type="hidden"/>
  1102. <ul class="nav nav-pills nav-stacked mt16">
  1103. <t t-as="a" t-foreach="attributes">
  1104. <t t-if="a.type != 'hidden'">
  1105. <li t-if="a.value_ids and len(a.value_ids) &gt;1">
  1106. <div>
  1107. <strong t-field="a.name"/>
  1108. </div>
  1109. <t t-if="a.type == 'select'">
  1110. <select class="form-control" name="attrib">
  1111. <option value=""/>
  1112. <t t-as="v" t-foreach="a.value_ids">
  1113. <option t-att-selected="'selected' if v.id in attrib_set else ''" t-att-value="'%s-%s' % (a.id,v.id)" t-esc="v.name"/>
  1114. </t>
  1115. </select>
  1116. </t>
  1117. <t t-if="a.type == 'radio'">
  1118. <ul class="nav nav-pills nav-stacked">
  1119. <t t-as="v" t-foreach="a.value_ids">
  1120. <li t-att-class="'active' if v.id in attrib_set else ''">
  1121. <label style="margin: 0 20px;">
  1122. <input name="attrib" t-att-checked="'checked' if v.id in attrib_set else ''" t-att-value="'%s-%s' % (a.id,v.id)" type="checkbox"/>
  1123. <span style="font-weight: normal" t-field="v.name"/>
  1124. </label>
  1125. </li>
  1126. </t>
  1127. </ul>
  1128. </t>
  1129. <t t-if="a.type == 'color'">
  1130. <t t-as="v" t-foreach="a.value_ids">
  1131. <label t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}" t-attf-style="background-color:#{v.color or v.name}">
  1132. <input name="attrib" t-att-checked="'checked' if v.id in attrib_set else ''" t-att-title="v.name" t-att-value="'%s-%s' % (a.id,v.id)" type="checkbox"/>
  1133. </label>
  1134. </t>
  1135. </t>
  1136. </li>
  1137. </t>
  1138. </t>
  1139. </ul>
  1140. </form>
  1141. </div>
  1142. </xpath>
  1143. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1144. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1145. </xpath>
  1146. <xpath expr="//div[@id='products_grid']" position="attributes">
  1147. <attribute name="class">col-md-9 col-sm-8</attribute>
  1148. </xpath>
  1149. </template>
  1150. <!-- Product Tags -->
  1151. <template id="kingfisher_pro_product_tag" inherit_id="website_sale.products" active="False" customize_show="True" name="Product Tags">
  1152. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1153. <div class="popular-tags mb16">
  1154. <div class="left-title">
  1155. <h3>Popular Tags</h3>
  1156. <hr/>
  1157. </div>
  1158. <ul class="tags">
  1159. <t t-if="not category">
  1160. <t t-foreach="website.get_product_tags()" t-as="c">
  1161. <li>
  1162. <a t-att-href="'/shop?tag=%s'%c.id" t-field="c.name"></a>
  1163. </li>
  1164. </t>
  1165. </t>
  1166. <t t-if="category">
  1167. <t t-foreach="website.get_product_tags()" t-as="c">
  1168. <li>
  1169. <a t-att-href="'/shop/category/%s?tag=%s' % (slug(category), c.id)" t-field="c.name"></a>
  1170. </li>
  1171. </t>
  1172. </t>
  1173. </ul>
  1174. </div>
  1175. </xpath>
  1176. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1177. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1178. </xpath>
  1179. <xpath expr="//div[@id='products_grid']" position="attributes">
  1180. <attribute name="class">col-md-9 col-sm-8</attribute>
  1181. </xpath>
  1182. </template>
  1183. <!-- Price Slider -->
  1184. <template id="kingfisher_pro_slider_layout" inherit_id="website_sale.products" name="Product Price Slider" active="False" customize_show="True" >
  1185. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1186. <div class="popular-tags mb16">
  1187. <div class="left-title">
  1188. <h3>By Price</h3>
  1189. <hr/>
  1190. </div>
  1191. <div class="price-slider">
  1192. <form method="post" t-att-action="keep('/shop'+ ('/category/'+slug(category)) if category else '',search=0)">
  1193. <div id="priceslider"/>
  1194. <input id="king_pro_website_currency" name="website_currency" t-att-value="website.pricelist_id.currency_id.symbol" type="hidden"/>
  1195. <input id="m1" name="min1" t-att-value="min1" type="hidden"/>
  1196. <input id="m2" name="max1" t-att-value="max1" type="hidden"/>
  1197. <input id="ra1" name="range1" t-att-value="range1" type="hidden"/>
  1198. <input id="ra2" name="range2" t-att-value="range2" type="hidden"/>
  1199. </form>
  1200. </div>
  1201. </div>
  1202. </xpath>
  1203. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1204. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1205. </xpath>
  1206. <xpath expr="//div[@id='products_grid']" position="attributes">
  1207. <attribute name="class">col-md-9 col-sm-8</attribute>
  1208. </xpath>
  1209. </template>
  1210. <!-- Added class in 'continue shopping' button -->
  1211. <template id="kingfisher_pro_checkout" inherit_id="website_sale.checkout">
  1212. <xpath expr="//a[@class='btn btn-default btn-primary pull-right mb32 a-submit']" position="attributes">
  1213. <attribute name="class">btn btn-primary pull-right mb32 a-submit</attribute>
  1214. </xpath>
  1215. </template>
  1216. <!-- Kingfisher Pro Website Megamenu -->
  1217. <template id="kingfisher_pro_website_megamenu_submenu" inherit_id="website.submenu">
  1218. <xpath expr="//li[1]" position="attributes">
  1219. <attribute name="t-if">not submenu.child_id and not submenu.is_megamenu</attribute>
  1220. </xpath>
  1221. <xpath expr="//li" position='after'>
  1222. <li t-if="submenu.is_megamenu" t-att-class="'li-mega-menu mm_icon' if submenu.menu_icon and submenu.menu_icon_image else 'li-mega-menu'">
  1223. <a t-att-href="'%s' % (submenu.url) if submenu.url else ''" t-att-target="'_blank' if submenu.new_window else ''">
  1224. <t t-if="submenu.menu_icon and submenu.menu_icon_image">
  1225. <img t-att-src="website.image_url(submenu, 'menu_icon_image', '30x30')"
  1226. class="img-responsive icon"
  1227. t-att-alt="submenu.name"/>
  1228. </t>
  1229. <span t-field="submenu.name"/> <span class="fa fa-angle-down" t-ignore="true"></span>
  1230. </a>
  1231. <!-- 2 Column -->
  1232. <t t-if="submenu.megamenu_type == '2_col'">
  1233. <ul class="dropdown-menu mega-dropdown-menu row" t-att-style="'background: url(data:image/png;base64,%s); background-size: cover;' % (submenu.megamenu_bg_image) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_img' else '' 'background: %s !important;' % (submenu.megamenu_bg_color) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_color' else ''">
  1234. <div class="row">
  1235. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1236. <t t-if="not product_categories">
  1237. <li class="dropdown-header message" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1238. Still, No category assigned to this menu.!!!
  1239. </li>
  1240. </t>
  1241. <t t-if="product_categories">
  1242. <div t-att-class="'col-md-4 col-xs-12' if submenu.category_slider else ''"
  1243. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1244. <t t-if="submenu.category_slider">
  1245. <li>
  1246. <ul>
  1247. <li class="dropdown-header slider_header" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1248. <t t-esc="submenu.carousel_header_name"/>
  1249. </li>
  1250. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1251. <div class="carousel-inner">
  1252. <t t-value='0' t-set='a'/>
  1253. <t t-foreach="product_categories" t-as="categ">
  1254. <div t-att-class="'item active' if a == 0 else 'item'">
  1255. <t t-value='a+1' t-set='a'/>
  1256. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1257. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1258. t-att-alt="categ.name"
  1259. class="img-responsive"/>
  1260. </a>
  1261. <h4>
  1262. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1263. <t t-esc='categ.name'/>
  1264. </small>
  1265. </h4>
  1266. </div>
  1267. </t>
  1268. </div>
  1269. </div>
  1270. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1271. <i class="fa fa-chevron-left"></i>
  1272. </div>
  1273. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1274. <i class="fa fa-chevron-right"></i>
  1275. </div>
  1276. </ul>
  1277. </li>
  1278. </t>
  1279. </div>
  1280. <div t-att-class="'col-md-8 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1281. <t t-foreach="product_categories" t-as="category">
  1282. <li class="col-sm-6 inline-block">
  1283. <ul>
  1284. <li class="dropdown-header">
  1285. <a t-att-href="'/shop/category/%s' % slug(category)" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1286. <t t-esc="category.name"/>
  1287. </a>
  1288. </li>
  1289. <t t-if="category.child_id">
  1290. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1291. <li class="categories">
  1292. <a t-att-href="'/shop/category/%s' % slug(categ)" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1293. <t t-esc="categ.name"/>
  1294. </a>
  1295. </li>
  1296. </t>
  1297. </t>
  1298. </ul>
  1299. </li>
  1300. </t>
  1301. </div>
  1302. </t>
  1303. </div>
  1304. <div class='row' t-if="submenu.display_menu_footer" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1305. <div class="footer">
  1306. <t t-raw='submenu.menu_footer'/>
  1307. </div>
  1308. </div>
  1309. </ul>
  1310. </t>
  1311. <!-- 3 Column -->
  1312. <t t-if="submenu.megamenu_type == '3_col'">
  1313. <ul class="dropdown-menu mega-dropdown-menu row" t-att-style="'background: url(data:image/png;base64,%s); background-size: cover;' % (submenu.megamenu_bg_image) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_img' else '' 'background: %s !important;' % (submenu.megamenu_bg_color) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_color' else ''">
  1314. <div class="row">
  1315. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1316. <t t-if="not product_categories">
  1317. <li class="dropdown-header message" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1318. Still, No category assigned to this menu.!!!
  1319. </li>
  1320. </t>
  1321. <t t-if="product_categories">
  1322. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1323. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1324. <t t-if="submenu.category_slider">
  1325. <li class="margin">
  1326. <ul>
  1327. <li class="dropdown-header slider_header" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1328. <t t-esc="submenu.carousel_header_name"/>
  1329. </li>
  1330. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1331. <div class="carousel-inner">
  1332. <t t-value='0' t-set='a'/>
  1333. <t t-foreach="product_categories" t-as="categ">
  1334. <div t-att-class="'item active' if a == 0 else 'item'">
  1335. <t t-value='a+1' t-set='a'/>
  1336. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1337. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1338. t-att-alt="categ.name"
  1339. class="img-responsive"/>
  1340. </a>
  1341. <h4>
  1342. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1343. <t t-esc='categ.name'/>
  1344. </small>
  1345. </h4>
  1346. </div>
  1347. </t>
  1348. </div>
  1349. </div>
  1350. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1351. <i class="fa fa-chevron-left"></i>
  1352. </div>
  1353. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1354. <i class="fa fa-chevron-right"></i>
  1355. </div>
  1356. </ul>
  1357. </li>
  1358. </t>
  1359. </div>
  1360. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1361. <t t-foreach="product_categories" t-as="category">
  1362. <li class="col-sm-4 inline-block">
  1363. <ul>
  1364. <li class="dropdown-header">
  1365. <a t-att-href="'/shop/category/%s' % slug(category)" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1366. <t t-esc="category.name"/>
  1367. </a>
  1368. </li>
  1369. <t t-if="category.child_id">
  1370. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1371. <li class="categories">
  1372. <a t-att-href="'/shop/category/%s' % slug(categ)" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1373. <t t-esc="categ.name"/>
  1374. </a>
  1375. </li>
  1376. </t>
  1377. </t>
  1378. </ul>
  1379. </li>
  1380. </t>
  1381. </div>
  1382. </t>
  1383. </div>
  1384. <div class='row' t-if="submenu.display_menu_footer" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1385. <div class="footer">
  1386. <t t-raw='submenu.menu_footer'/>
  1387. </div>
  1388. </div>
  1389. </ul>
  1390. </t>
  1391. <!-- 4 Column -->
  1392. <t t-if="submenu.megamenu_type == '4_col'">
  1393. <ul class="dropdown-menu mega-dropdown-menu row" t-att-style="'background: url(data:image/png;base64,%s); background-size: cover;' % (submenu.megamenu_bg_image) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_img' else '' 'background: %s !important;' % (submenu.megamenu_bg_color) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_color' else ''">
  1394. <div class="row">
  1395. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1396. <t t-if="not product_categories">
  1397. <li class="dropdown-header message" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1398. Still, No category assigned to this menu.!!!
  1399. </li>
  1400. </t>
  1401. <t t-if="product_categories">
  1402. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1403. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1404. <t t-if="submenu.category_slider">
  1405. <li class="margin">
  1406. <ul>
  1407. <li class="dropdown-header slider_header" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1408. <t t-esc="submenu.carousel_header_name"/>
  1409. </li>
  1410. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1411. <div class="carousel-inner">
  1412. <t t-value='0' t-set='a'/>
  1413. <t t-foreach="product_categories" t-as="categ">
  1414. <div t-att-class="'item active' if a == 0 else 'item'">
  1415. <t t-value='a+1' t-set='a'/>
  1416. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1417. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1418. t-att-alt="categ.name"
  1419. class="img-responsive"/>
  1420. </a>
  1421. <h4>
  1422. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1423. <t t-esc='categ.name'/>
  1424. </small>
  1425. </h4>
  1426. </div>
  1427. </t>
  1428. </div>
  1429. </div>
  1430. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1431. <i class="fa fa-chevron-left"></i>
  1432. </div>
  1433. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1434. <i class="fa fa-chevron-right"></i>
  1435. </div>
  1436. </ul>
  1437. </li>
  1438. </t>
  1439. </div>
  1440. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1441. <t t-foreach="product_categories" t-as="category">
  1442. <li class="col-sm-3 inline-block">
  1443. <ul>
  1444. <li class="dropdown-header">
  1445. <a t-att-href="'/shop/category/%s' % slug(category)" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1446. <t t-esc="category.name"/>
  1447. </a>
  1448. </li>
  1449. <t t-if="category.child_id">
  1450. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1451. <li class="categories">
  1452. <a t-att-href="'/shop/category/%s' % slug(categ)" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1453. <t t-esc="categ.name"/>
  1454. </a>
  1455. </li>
  1456. </t>
  1457. </t>
  1458. </ul>
  1459. </li>
  1460. </t>
  1461. </div>
  1462. </t>
  1463. </div>
  1464. <div class='row' t-if="submenu.display_menu_footer" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1465. <div class="footer">
  1466. <t t-raw='submenu.menu_footer'/>
  1467. </div>
  1468. </div>
  1469. </ul>
  1470. </t>
  1471. </li>
  1472. </xpath>
  1473. </template>
  1474. <!-- First / Last pager -->
  1475. <template id="website_pager_addition" inherit_id="website.pager">
  1476. <xpath expr="//ul/li" position='before'>
  1477. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1478. <li t-att-class=" 'disabled' if pager['page']['num'] == 1 else '' ">
  1479. <a t-att-href=" pager['page_first']['url'] if pager['page']['num'] != 1 else ''">First</a>
  1480. </li>
  1481. </t>
  1482. </xpath>
  1483. <xpath expr="//ul/li[last()]" position='after'>
  1484. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1485. <li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else '' ">
  1486. <a t-att-href="pager['page_last']['url'] if pager['page']['num'] != pager['page_count'] else ''">Last</a>
  1487. </li>
  1488. </t>
  1489. </xpath>
  1490. </template>
  1491. <!-- 404 page -->
  1492. <template id="404_page_template" inherit_id="website.404" customize_show="True">
  1493. <xpath expr="//div[@id='wrap']" position="replace">
  1494. <div class="container">
  1495. <div class="row section-404 well">
  1496. <div class="col-md-12 text-center">
  1497. <div class="content-404">
  1498. <img src="/kingfisher_pro/static/src/img/kingfisher-pro-404.png"/>
  1499. <label>404</label>
  1500. </div>
  1501. <p class="text-center not-found-message">This is not the webpage you are looking for</p>
  1502. <p class="text-center try-pages">Please try one of the following pages
  1503. <span>
  1504. <a t-attf-href="/page/website.homepage" title="Writizmo">Home page</a>
  1505. </span>
  1506. </p>
  1507. </div>
  1508. </div>
  1509. </div>
  1510. </xpath>
  1511. </template>
  1512. </data>
  1513. </openerp>