theme.xml 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565
  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="#" 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. <span itemprop="image" t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img", "alt-field": "name"}'/>
  382. </t>
  383. <t t-if="product.is_flip_image and not product.flip_image">
  384. <span itemprop="image" t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img", "alt-field": "name"}'/>
  385. </t>
  386. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.flip_image">
  387. <span itemprop="image">
  388. <div id="gallery">
  389. <img class="product_detail_img"
  390. t-att-alt="product.name"
  391. t-att-title="product.name"
  392. t-att-src="website.image_url(product, 'image')"
  393. t-att-data-image="website.image_url(product, 'image')"/>
  394. <t t-if="product.is_flip_image and product.flip_image">
  395. <img t-att-alt="product.name"
  396. t-att-src="website.image_url(product, 'flip_image')"
  397. t-att-data-image="website.image_url(product, 'flip_image')"
  398. t-att-title="product.name"/>
  399. </t>
  400. </div>
  401. </span>
  402. </t>
  403. <t t-if="not product.multi_image and product.flip_image">
  404. <span itemprop="image">
  405. <div id="gallery">
  406. <img class="product_detail_img"
  407. t-att-alt="product.name"
  408. t-att-title="product.name"
  409. t-att-src="website.image_url(product, 'image')"
  410. t-att-data-image="website.image_url(product, 'image')"/>
  411. <t t-if="product.is_flip_image and product.flip_image">
  412. <img t-att-alt="product.name"
  413. t-att-src="website.image_url(product, 'flip_image')"
  414. t-att-data-image="website.image_url(product, 'flip_image')"
  415. t-att-title="product.name"/>
  416. </t>
  417. </div>
  418. </span>
  419. </t>
  420. <t t-if="product.multi_image and website.get_multiple_images(product.id)">
  421. <span itemprop="image">
  422. <div id="gallery">
  423. <img class="product_detail_img"
  424. t-att-alt="product.name"
  425. t-att-title="product.name"
  426. t-att-src="website.image_url(product, 'image')"
  427. t-att-data-image="website.image_url(product, 'image')"/>
  428. <t t-as="im" t-foreach="website.get_multiple_images(product.id)">
  429. <t t-if="im.attach_type == 'image'">
  430. <img t-att-src="website.image_url(im, 'image')"
  431. t-att-alt="im.alt if im.alt else im.name"
  432. t-att-data-image="website.image_url(im, 'image')"
  433. t-att-title="im.name if im.name else product.name"/>
  434. </t>
  435. <t t-if="im.attach_type == 'video'">
  436. <t t-if="im.video_type == 'youtube'">
  437. <img t-att-alt="im.alt if im.alt else im.name"
  438. data-type="youtube"
  439. t-att-data-videoid="im.video_id"
  440. t-att-data-description="im.name if im.name else product.name"/>
  441. </t>
  442. <t t-if="im.video_type == 'vimeo'">
  443. <img t-att-alt="im.alt if im.alt else im.name"
  444. data-type="vimeo"
  445. t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  446. t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  447. t-att-data-videoid="im.video_id"
  448. t-att-data-description="im.name if im.name else product.name"/>
  449. </t>
  450. <t t-if="im.video_type == 'html5video'">
  451. <img data-type="html5video"
  452. t-att-alt="im.alt if im.alt else im.name"
  453. t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  454. t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  455. t-att-data-videoogv="im.video_ogv if im.video_ogv else '' "
  456. t-att-data-videowebm="im.video_webm if im.video_webm else '' "
  457. t-att-data-videomp4="im.video_mp4 if im.video_mp4 else '' "
  458. t-att-data-description="im.name if im.name else product.name"/>
  459. </t>
  460. </t>
  461. </t>
  462. <t t-if="product.is_flip_image and product.flip_image">
  463. <img t-att-alt="product.name"
  464. t-att-src="website.image_url(product, 'flip_image')"
  465. t-att-data-image="website.image_url(product, 'flip_image')"
  466. t-att-title="product.name"/>
  467. </t>
  468. </div>
  469. </span>
  470. </t>
  471. <t t-if="product.multi_image and not website.get_multiple_images(product.id)">
  472. <span itemprop="image" t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img", "alt-field": "name"}'/>
  473. </t>
  474. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.is_flip_image and product.flip_image">
  475. <span itemprop="image">
  476. <div id="gallery">
  477. <img class="product_detail_img"
  478. t-att-src="website.image_url(product, 'image')"
  479. t-att-alt="product.name"
  480. t-att-title="product.name"
  481. t-att-data-image="website.image_url(product, 'image')"/>
  482. <t t-if="product.is_flip_image and product.flip_image">
  483. <img t-att-alt="product.name"
  484. t-att-src="website.image_url(product, 'flip_image')"
  485. t-att-data-image="website.image_url(product, 'flip_image')"
  486. t-att-title="product.name"/>
  487. </t>
  488. </div>
  489. </span>
  490. </t>
  491. <!-- </span> -->
  492. </xpath>
  493. </template>
  494. <!-- Product detail page -->
  495. <template id="kingfisher_pro_product_details" inherit_id="website_sale.product" name="Product Details">
  496. <xpath expr="//div[@itemscope='itemscope']/section/div" position="attributes">
  497. <attribute name="style">display:none;</attribute>
  498. </xpath>
  499. <!-- Added class for main section in product detail page -->
  500. <xpath expr="//div[@itemscope='itemscope']/section" position="attributes">
  501. <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>
  502. </xpath>
  503. <!-- Theme breadcrumb -->
  504. <xpath expr="//div[@itemscope='itemscope']/section" position="before">
  505. <section class="page-title">
  506. <div class="container">
  507. <div class="col-sm-8">
  508. <ul class="breadcrumb">
  509. <li>
  510. <a href="/page/homepage">Home</a>
  511. </li>
  512. <li>
  513. <a href="/shop">Products</a>
  514. </li>
  515. <li t-if="category">
  516. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  517. </li>
  518. <li class="active">
  519. <span t-field="product.name"/>
  520. </li>
  521. </ul>
  522. </div>
  523. <div class="col-sm-4 col-xs-6" groups="base.group_sale_manager">
  524. <t t-call="website.publish_management">
  525. <t t-set="object" t-value="product"/>
  526. <t t-set="publish_edit" t-value="True"/>
  527. <t t-set="action" t-value="'product.product_template_action'"/>
  528. </t>
  529. </div>
  530. </div>
  531. </section>
  532. </xpath>
  533. <!-- Product detail page right side design -->
  534. <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">
  535. <attribute name="style">display:none;</attribute>
  536. </xpath>
  537. <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">
  538. <div id="product_details" class="col-xs-12 col-md-5 col-lg-5 col-sm-5 product-detail">
  539. <div class="product-shop-info">
  540. <div class="product-title">
  541. <h1 itemprop="name" t-field="product.name">Product Name</h1>
  542. <p class="review">
  543. <a href="#">
  544. <span>
  545. <t t-esc="len(product.website_message_ids)"/>
  546. </span> review(s) | Add your review
  547. </a>
  548. </p>
  549. <span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
  550. </div>
  551. <div class="product-options-bottom">
  552. <form class="js_add_cart_variants" method="POST" t-att-action="keep('/shop/cart/update')">
  553. <div class="js_product">
  554. <div class="details">
  555. <div class="price-box">
  556. <t t-call="website_sale.product_price"/>
  557. </div>
  558. <t t-if="product.description_sale">
  559. <div class="pro-desc">
  560. <p t-field="product.description_sale"/>
  561. </div>
  562. </t>
  563. </div>
  564. <t t-placeholder="select">
  565. <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"/>
  566. <t t-call="website_sale.variants">
  567. <t t-set="ul_class" t-value="'nav-stacked'"/>
  568. </t>
  569. </t>
  570. <p class="css_not_available_msg bg-danger" style="padding: 15px;" t-if="len(product.product_variant_ids) &gt; 1">Product not available</p>
  571. <div class="add-to-cart">
  572. <a class="btn cart-btn btn-lg js_check_product a-submit" href="#" id="add_to_cart">
  573. <i class="fa fa-shopping-cart"/>Add to Cart</a>
  574. </div>
  575. </div>
  576. </form>
  577. </div>
  578. </div>
  579. </div>
  580. </xpath>
  581. <!-- Product Description -->
  582. <xpath expr="//div[@itemprop='description']" position="attributes">
  583. <attribute name="style">display:none;</attribute>
  584. </xpath>
  585. <xpath expr="//div[@itemprop='description']" position="before">
  586. <div class="container" id="website_description">
  587. <div class="pd-more-info">
  588. <!-- Nav tabs -->
  589. <ul id="description_reviews_tabs" class="nav nav-tabs" role="tablist">
  590. <li role="presentation" class="active">
  591. <a href="#description" aria-controls="more_info" role="tab" data-toggle="tab">Description</a>
  592. </li>
  593. </ul>
  594. <div id="description_reviews_tabs_contents" class="tab-content">
  595. <div role="tabpanel" class="tab-pane active" id="description">
  596. <div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
  597. <div class="oe_structure"/>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </xpath>
  603. </template>
  604. <!-- Removed Sign In -->
  605. <template id="website.show_sign_in" customize_show="False" inherit_id="website.layout" name="Show Sign In" groups="base.group_public">
  606. <xpath expr="//ul[@id='top_menu']" position="inside">
  607. <li class="divider" style="display:none"/>
  608. <li style="display:none">
  609. <a t-attf-href="/web/login">
  610. <b>Sign in</b>
  611. </a>
  612. </li>
  613. </xpath>
  614. </template>
  615. <!-- Select quantity inherited from website sale -->
  616. <template id="website_sale.product_quantity" inherit_id="website_sale.product" customize_show="True" name="Select Quantity">
  617. <xpath expr="//div[contains(@class,'js_product')]" position="inside">
  618. <div class="css_quantity input-group oe_website_spinner">
  619. <span class="input-group-addon">
  620. <a t-attf-href="#" class="mb8 js_add_cart_json">
  621. <i class="fa fa-minus"></i>
  622. </a>
  623. </span>
  624. <input type="text" class="js_quantity form-control" data-min="1" name="add_qty" value="1"/>
  625. <span class="input-group-addon">
  626. <a t-attf-href="#" class="mb8 float_left js_add_cart_json">
  627. <i class="fa fa-plus"></i>
  628. </a>
  629. </span>
  630. </div>
  631. </xpath>
  632. </template>
  633. <template id="product_attributes" inherit_id="kingfisher_pro.kingfisher_pro_product_details" customize_show="True" name="Product attributes">
  634. <xpath expr="//p[@t-field='product.description_sale']" position="after">
  635. <hr style="border-top: 1px solid #eeeeee;" t-if="sum([(1 if len(l.value_ids)==1 else 0) for l in product.attribute_line_ids])"/>
  636. <p class="text-muted">
  637. <t t-foreach="product.attribute_line_ids" t-as="variant_id">
  638. <t t-if="len(variant_id.value_ids)==1">
  639. <span t-field="variant_id.attribute_id"/>: <span t-field="variant_id.value_ids[0].name"/><br/>
  640. </t>
  641. </t>
  642. </p>
  643. </xpath>
  644. </template>
  645. <!-- Discussion inherited to display in tabs -->
  646. <template id="website_sale.product_comment" inherit_id="kingfisher_pro.kingfisher_pro_product_details" active="True" customize_show="True" name="Discussion">
  647. <!-- Will add review tab -->
  648. <xpath expr="//div[@id='website_description']/div/ul/li" position="after">
  649. <li role="presentation">
  650. <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>
  651. </li>
  652. </xpath>
  653. <!-- Will add review tab contents -->
  654. <xpath expr="//div[@id='website_description']//div[@id='description']" position="after">
  655. <div role="tabpanel" class="tab-pane" id="reviews">
  656. <section class="container">
  657. <div class="row col-md-10 col-md-offset-1">
  658. <div class="text-muted">
  659. <h3 class="fa fa-comment-o">
  660. <a id="comments">
  661. <t t-if="len(product.website_message_ids) &lt;= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
  662. <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
  663. </a>
  664. </h3>
  665. </div>
  666. <ul class="media-list" id="comments-list" t-if="product.website_message_ids">
  667. <li t-foreach="product.website_message_ids" t-as="message" class="media">
  668. <div class="media-body oe_msg">
  669. <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;"/>
  670. <div class="media-body oe_msg_content">
  671. <t t-call="website.publish_short">
  672. <t t-set="object" t-value="message"/>
  673. </t>
  674. <h5 class="media-heading">
  675. <span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
  676. </h5>
  677. <div t-field="message.body"/>
  678. <div>
  679. <div class="oe_msg_attachment" t-foreach='message.attachment_ids' t-as='attachment'>
  680. <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">
  681. <t t-if="attachment.file_type_icon == 'webimage'">
  682. <img t-att-src="'/web/binary/image?model=ir.attachment&amp;field=datas&amp;id=' + str(attachment.id) + '&amp;resize=100,80'"
  683. class='oe_attachment_embedded'></img>
  684. </t>
  685. <t t-if="attachment.file_type_icon != 'webimage'">
  686. <img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
  687. class='oe_attachment_webimage'></img>
  688. </t>
  689. <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
  690. </a>
  691. </div>
  692. </div>
  693. </div>
  694. </div>
  695. </li>
  696. </ul>
  697. <div class="css_editable_mode_hidden">
  698. <form id="comment" t-attf-action="/shop/product/comment/#{product.id}" method="POST">
  699. <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;"/>
  700. <div class="pull-left mb32" style="width: 75%%">
  701. <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
  702. <a class="btn btn-primary mt8 a-submit">Post</a>
  703. </div>
  704. </form>
  705. </div>
  706. </div>
  707. </section>
  708. </div>
  709. </xpath>
  710. </template>
  711. <!-- Suggested products -->
  712. <template id="website_sale.recommended_products" inherit_id="website_sale.product" customize_show="True" name="Alternative Products">
  713. <xpath expr="//div[@id='product_full_description']" position="after">
  714. <div class="related-products container" t-if="product.alternative_product_ids">
  715. <div class="left-title">
  716. <h3>Suggested alternatives:</h3><hr/>
  717. </div>
  718. <div id="recommended_products_slider" class="owl-carousel">
  719. <t t-foreach="product.alternative_product_ids" t-as="product">
  720. <div class="cs-product">
  721. <div class="pwp-img">
  722. <a t-att-href="'/shop/product/%s' % slug(product)">
  723. <img t-att-src="website.image_url(product, 'image')" t-att-title="product.name" t-att-alt="product.name"/>
  724. </a>
  725. </div>
  726. <div class="pink-box">
  727. <div class="view">
  728. <div class="shopping-cart">
  729. <a t-attf-href="/shop/product/#{ slug(product) }">
  730. <img src="/kingfisher_pro/static/src/img/cart2.png" alt="Shopping-cart" title="Shopping Cart" />
  731. </a>
  732. </div>
  733. </div>
  734. </div>
  735. <div class="pwp-info">
  736. <p class="pwpi-title">
  737. <a t-attf-href="/shop/product/#{ slug(product) }">
  738. <span t-field='product.name'/>
  739. </a>
  740. </p>
  741. <p class="price">
  742. <span class="price">
  743. <span t-field="product.lst_price"
  744. t-field-options='{
  745. "widget": "monetary",
  746. "display_currency": "website.pricelist_id.currency_id"
  747. }'></span>
  748. </span>
  749. </p>
  750. </div>
  751. </div>
  752. </t>
  753. </div>
  754. </div>
  755. </xpath>
  756. </template>
  757. <!-- Products Items -->
  758. <template id="king_pro_products_item" name="Kingfisher Product item">
  759. <form action="/shop/cart/update" method="post">
  760. <div itemscope="itemscope" itemtype="http://schema.org/Product">
  761. <div class="cs-product">
  762. <div class="pwp-img">
  763. <a itemprop="url" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))">
  764. <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')"/>
  765. </a>
  766. </div>
  767. <div class="pwp-info">
  768. <p class="pwpi-title">
  769. <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"/>
  770. </p>
  771. <p class="price">
  772. <span class="price" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" t-if="product.product_variant_ids">
  773. <b>
  774. <t t-if="(compute_currency(product.lst_price) - product.price) &gt; 0.1">
  775. <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>
  776. <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"}'/>
  777. <span itemprop="price" style="display:none;" t-esc="product.price"/>
  778. <span itemprop="priceCurrency" style="display:none;" t-esc="user_id.partner_id.property_product_pricelist.currency_id.name"/>
  779. </b>
  780. </span>
  781. </p>
  782. <div id='list_add_to_cart' class="hidden">
  783. <span t-field="product.description_sale"/>
  784. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  785. <t t-if="len(product.product_variant_ids) == 1">
  786. <a class="a-submit btn btn-primary">Add to cart</a>
  787. </t>
  788. <t t-if="len(product.product_variant_ids) &gt; 1">
  789. <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>
  790. </t>
  791. </div>
  792. </div>
  793. </div>
  794. </div>
  795. </form>
  796. </template>
  797. <!-- Product Style Tag image -->
  798. <template id="kingfisher_pro_style_tags" inherit_id="kingfisher_pro.king_pro_products_item" name="Product Sale Tags" active="True" customize_show="True">
  799. <xpath expr="//div[@itemscope='itemscope']/div[@class='cs-product']/div" position="inside">
  800. <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 ''">
  801. <t t-esc="product.product_style_tag_id.name"/>
  802. </div>
  803. </xpath>
  804. </template>
  805. <!-- Enable/Disable Flip image -->
  806. <template id="kingfisher_pro_flip_image" inherit_id="kingfisher_pro.king_pro_products_item" name="Flip Image" active="True" customize_show="True">
  807. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="attributes">
  808. <attribute name="class">front img img-responsive</attribute>
  809. </xpath>
  810. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="after">
  811. <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')"/>
  812. </xpath>
  813. </template>
  814. <!-- Products page -->
  815. <template id="kingfisher_pro_sale_products" inherit_id="website_sale.products" name="Kingfisher Pro Products">
  816. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[3]" position="attributes">
  817. <attribute name="style">display:none;</attribute>
  818. </xpath>
  819. <!-- Brand Cover and description -->
  820. <xpath expr="//div[@id='products_grid']/table" position="before">
  821. <t t-if="brand_obj.brand_cover">
  822. <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;"/>
  823. </t>
  824. <t t-if="brand_obj.brand_description">
  825. <div class="mb16" style="width:100%; padding: 0 15px;">
  826. <t t-raw="brand_obj.brand_description"/>
  827. </div>
  828. </t>
  829. </xpath>
  830. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[@class='products_pager']" position="attributes">
  831. <attribute name="style">display:none;</attribute>
  832. </xpath>
  833. <xpath expr="//div[@id='wrap']//div[@class='oe_structure']" position="before">
  834. <section class="page-title">
  835. <div class="container">
  836. <ul class="breadcrumb">
  837. <li>
  838. <a href="/page/homepage">Home</a>
  839. </li>
  840. <li t-att-class="'' if category else 'active'">
  841. <a href="/shop">Products</a>
  842. </li>
  843. <li t-if="category" t-att-class="'active' if category else ''">
  844. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  845. </li>
  846. </ul>
  847. </div>
  848. </section>
  849. </xpath>
  850. <!-- Category name, grid/list switching, pager, sort by -->
  851. <xpath expr="//div[@id='products_grid']/table" position="before">
  852. <div class="right-title">
  853. <t t-if="category">
  854. <h3 t-field='category.name'/>
  855. </t>
  856. <t t-if="not category">
  857. <h3>
  858. All Products
  859. </h3>
  860. </t>
  861. <hr/>
  862. </div>
  863. <div class="category-products category_products">
  864. <div class="toolbar">
  865. <div class="toolbar-pager">
  866. <div class="pager_left">
  867. <div class="view-mode">
  868. <button class="shift_grid_view active">
  869. <i class="fa fa-th-large"/>
  870. </button>
  871. <button class="shift_list_view">
  872. <i class="fa fa-bars"/>
  873. </button>
  874. </div>
  875. <div class="paging_sort">
  876. <!-- Product paging -->
  877. <t t-if="products and website.get_pager_selection()">
  878. <t t-set="website_ppp" t-value="website.get_pager_selection()"/>
  879. <span t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'simple_name' or 'hidden'}">
  880. <t t-esc="website_ppp['name']"/>
  881. <div t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'dropdown' or 'hidden'} btn-group">
  882. <t t-set="curr_ppp" t-value="website.get_current_pager_selection()"/>
  883. <a href="#" class="dropdown-toggle btn btn-default" data-toggle="dropdown">
  884. <t t-esc="curr_ppp or ' - '" />
  885. <span class="caret"></span>
  886. </a>
  887. <ul class="dropdown-menu" role="menu">
  888. <li t-foreach="website_ppp['page_no']" t-as="pl" >
  889. <a t-att-href="'/shop/pager_selection/%s' % pl.id">
  890. <span class='switcher_pricelist' t-att-data-pl_id="pl.id" t-esc="pl.name"/>
  891. </a>
  892. </li>
  893. </ul>
  894. </div>
  895. </span>
  896. </t>
  897. </div>
  898. </div>
  899. <div class="pager_right">
  900. <div class="products_pager">
  901. <t t-call="website.pager"/>
  902. </div>
  903. </div>
  904. </div>
  905. </div>
  906. </div>
  907. </xpath>
  908. <!-- Kingfisher Pro Prodcut Grid View -->
  909. <xpath expr="//div[@id='products_grid']/table" position="attributes">
  910. <attribute name="style">display:none;</attribute>
  911. </xpath>
  912. <xpath expr="//div[@id='products_grid']/table" position="before">
  913. <div id="kingfisher_pro_products_grid_view">
  914. <t t-as="tr_product" t-foreach="bins">
  915. <t t-as="td_product" t-foreach="tr_product">
  916. <t t-if="td_product">
  917. <t t-set="product" t-value="td_product['product']"/>
  918. <div t-if="website.product_display_grid == '2'" class="col-md-6 col-sm-6 list-items">
  919. <t t-call="kingfisher_pro.king_pro_products_item"/>
  920. </div>
  921. <div t-if="website.product_display_grid == '3'" class="col-md-4 col-sm-6 list-items">
  922. <t t-call="kingfisher_pro.king_pro_products_item"/>
  923. </div>
  924. <div t-if="website.product_display_grid == '4'" class="col-md-3 col-sm-6 list-items">
  925. <t t-call="kingfisher_pro.king_pro_products_item"/>
  926. </div>
  927. </t>
  928. </t>
  929. </t>
  930. </div>
  931. <!-- For not bins -->
  932. </xpath>
  933. </template>
  934. <!-- Kingfisher Pro Product list view -->
  935. <template id="website_sale.products_list_view" inherit_id="website_sale.products" name="List View" active="False" customize_show="False">
  936. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="attributes">
  937. <attribute name="style">display:none;</attribute>
  938. </xpath>
  939. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="before">
  940. <div id="kingfisher_pro_products_list_view">
  941. <t t-as="product" t-foreach="products">
  942. <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'">
  943. <t t-call="kingfisher_pro.king_pro_products_item"/>
  944. </div>
  945. </t>
  946. </div>
  947. </xpath>
  948. </template>
  949. <!-- Remove main add to cart -->
  950. <template id="website_sale.products_add_to_cart" inherit_id="website_sale.products_item" active="False" customize_show="False" name="Add to Cart">
  951. <xpath expr="//div[@class='product_price']" position="inside">
  952. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  953. <t t-if="len(product.product_variant_ids) == 1">
  954. <a class="btn btn-default btn-xs a-submit"><span class="fa fa-shopping-cart"/></a>
  955. </t>
  956. <t t-if="len(product.product_variant_ids) &gt; 1">
  957. <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>
  958. </t>
  959. </xpath>
  960. </template>
  961. <!-- Inherited Add to cart -->
  962. <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">
  963. <xpath expr="//div[@class='pwp-info']" position="before">
  964. <div class='pink-box'>
  965. <div class="view">
  966. <div class="shopping-cart">
  967. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  968. <t t-if="len(product.product_variant_ids) == 1">
  969. <a class="a-submit">
  970. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  971. </a>
  972. </t>
  973. <t t-if="len(product.product_variant_ids) &gt; 1">
  974. <a t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
  975. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  976. </a>
  977. </t>
  978. </div>
  979. </div>
  980. </div>
  981. </xpath>
  982. </template>
  983. <!-- Product Sorting -->
  984. <template id="kingfisher_pro_product_sorting" inherit_id="kingfisher_pro.kingfisher_pro_sale_products" name="Product Sorting" active="False" customize_show="True">
  985. <xpath expr="//div[@class='category-products category_products']//div[@class='pager_right']/div" position="before">
  986. <t t-if="website.enable_sort_by">
  987. <div class="sort-by">
  988. <div class="dropdown ">
  989. <button data-toggle="dropdown" aria-expanded="false" aria-haspopup="true" id="sort_by" type="button">
  990. <t t-set="cur_sort" t-value="website.set_current_sorting_data()"/>
  991. <t t-if="not cur_sort">
  992. Sort By
  993. </t>
  994. <t t-if="cur_sort">
  995. Sort By:
  996. </t>
  997. <t t-esc="cur_sort"/>
  998. <span class="caret"/>
  999. </button>
  1000. <ul class="dropdown-menu" role="menu">
  1001. <t t-if="not category">
  1002. <t t-as="a" t-foreach="website.get_sort_by_data()">
  1003. <li>
  1004. <a t-att-href="'/shop?sort_id=%s' % a.id" t-field="a.name"/>
  1005. </li>
  1006. </t>
  1007. </t>
  1008. <t t-if="category">
  1009. <t t-as="a" t-foreach="website.get_sort_by_data()">
  1010. <li>
  1011. <a t-att-href="'/shop/category/%s?sort_id=%s' % (slug(category), a.id)" t-field="a.name"/>
  1012. </li>
  1013. </t>
  1014. </t>
  1015. </ul>
  1016. </div>
  1017. </div>
  1018. </t>
  1019. </xpath>
  1020. </template>
  1021. <!-- Custom Filters -->
  1022. <template id="kingfisher_pro_custom_filterz" inherit_id="website_sale.products" active="False" customize_show="True" name="Custom Filters" priority="1">
  1023. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1024. <div t-if="request.session.get('tag') or request.session.get('sortid') or request.session.get('pricerange')" class="popular-tags">
  1025. <div class="left-title mb16">
  1026. <h3>Selected Filters</h3>
  1027. <hr/>
  1028. </div>
  1029. <ul id="selectedattr">
  1030. <t t-if="request.session.get('tag')">
  1031. <label id="tag" class="label label-info">
  1032. <span>Tag: <t t-esc="request.session['tag'][1]"/></span>
  1033. <a id="clear">X</a>
  1034. </label>
  1035. </t>
  1036. <t t-if="request.session.get('sortid')">
  1037. <label id="sortid" t-if="len(request.session['sortid']) &gt;1" class="label label-info">
  1038. <span>Sort By: <t t-esc="request.session['sortid'][2]"/></span>
  1039. <a id="clear">X</a>
  1040. </label>
  1041. </t>
  1042. <t t-if="request.session.get('pricerange')">
  1043. <label id="pricerange" class="label label-info">
  1044. <span>Price-Range: <t t-esc="request.session['pricerange']"/></span>
  1045. <a id="clear">X</a>
  1046. </label>
  1047. </t>
  1048. </ul>
  1049. </div>
  1050. </xpath>
  1051. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1052. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1053. </xpath>
  1054. <xpath expr="//div[@id='products_grid']" position="attributes">
  1055. <attribute name="class">col-md-9 col-sm-8</attribute>
  1056. </xpath>
  1057. </template>
  1058. <!-- Inherited Product Categories -->
  1059. <template id="website_sale.products_categories" inherit_id="website_sale.products" name="Product Categories" active="False" customize_show="True" priority="2">
  1060. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1061. <div class="left-title">
  1062. <h3>Categories</h3>
  1063. <hr/>
  1064. </div>
  1065. <ul class="nav nav-pills nav-stacked category_nav mb16">
  1066. <li t-att-class=" '' if category else 'active' ">
  1067. <a t-att-href="keep('/shop',category=0)">All Products</a>
  1068. </li>
  1069. <t t-as="c" t-foreach="categories">
  1070. <t t-call="website_sale.categories_recursive"/>
  1071. </t>
  1072. </ul>
  1073. </xpath>
  1074. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1075. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1076. </xpath>
  1077. <xpath expr="//div[@id='products_grid']" position="attributes">
  1078. <attribute name="class">col-md-9 col-sm-8</attribute>
  1079. </xpath>
  1080. </template>
  1081. <template id="king_pro_option_collapse_categories_recursive" name="Collapse Category Recursive">
  1082. <li t-att-class="'active' if categ.id == int(category or 0) else ''">
  1083. <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'}"/>
  1084. <a t-att-href="keep('/shop/category/' + slug(categ), category=0)" t-field="categ.name"></a>
  1085. <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;'">
  1086. <t t-foreach="categ.child_id" t-as="categ">
  1087. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1088. </t>
  1089. </ul>
  1090. </li>
  1091. </template>
  1092. <template id="option_collapse_products_categories" name="Collapsible Category List" inherit_id="website_sale.products_categories" active="False" customize_show="True">
  1093. <xpath expr="//div[@id='products_grid_before']/ul" position="replace">
  1094. <ul class="nav nav-pills nav-stacked mb16" id="o_shop_collapse_category">
  1095. <li t-att-class=" '' if category else 'active' ">
  1096. <a t-att-href="keep('/shop',category=0)">All Products</a>
  1097. </li>
  1098. <t t-foreach="categories" t-as="categ">
  1099. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1100. </t>
  1101. </ul>
  1102. </xpath>
  1103. </template>
  1104. <!-- Inherited Product Attributes -->
  1105. <template id="website_sale.products_attributes" inherit_id="website_sale.products" name="Product Attribute's Filters" active="False" customize_show="True">
  1106. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1107. <div class="shop-by mb16">
  1108. <div class="left-title">
  1109. <h3>Shop by</h3>
  1110. <hr/>
  1111. </div>
  1112. <form class="js_attributes" method="get">
  1113. <input name="search" t-att-value="search" type="hidden"/>
  1114. <ul class="nav nav-pills nav-stacked mt16">
  1115. <t t-as="a" t-foreach="attributes">
  1116. <t t-if="a.type != 'hidden'">
  1117. <li t-if="a.value_ids and len(a.value_ids) &gt;1">
  1118. <div>
  1119. <strong t-field="a.name"/>
  1120. </div>
  1121. <t t-if="a.type == 'select'">
  1122. <select class="form-control" name="attrib">
  1123. <option value=""/>
  1124. <t t-as="v" t-foreach="a.value_ids">
  1125. <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"/>
  1126. </t>
  1127. </select>
  1128. </t>
  1129. <t t-if="a.type == 'radio'">
  1130. <ul class="nav nav-pills nav-stacked">
  1131. <t t-as="v" t-foreach="a.value_ids">
  1132. <li t-att-class="'active' if v.id in attrib_set else ''">
  1133. <label style="margin: 0 20px;">
  1134. <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"/>
  1135. <span style="font-weight: normal" t-field="v.name"/>
  1136. </label>
  1137. </li>
  1138. </t>
  1139. </ul>
  1140. </t>
  1141. <t t-if="a.type == 'color'">
  1142. <t t-as="v" t-foreach="a.value_ids">
  1143. <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}">
  1144. <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"/>
  1145. </label>
  1146. </t>
  1147. </t>
  1148. </li>
  1149. </t>
  1150. </t>
  1151. </ul>
  1152. </form>
  1153. </div>
  1154. </xpath>
  1155. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1156. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1157. </xpath>
  1158. <xpath expr="//div[@id='products_grid']" position="attributes">
  1159. <attribute name="class">col-md-9 col-sm-8</attribute>
  1160. </xpath>
  1161. </template>
  1162. <!-- Product Tags -->
  1163. <template id="kingfisher_pro_product_tag" inherit_id="website_sale.products" active="False" customize_show="True" name="Product Tags">
  1164. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1165. <div class="popular-tags mb16">
  1166. <div class="left-title">
  1167. <h3>Popular Tags</h3>
  1168. <hr/>
  1169. </div>
  1170. <ul class="tags">
  1171. <t t-if="not category">
  1172. <t t-foreach="website.get_product_tags()" t-as="c">
  1173. <li>
  1174. <a t-att-href="'/shop?tag=%s'%c.id" t-field="c.name"></a>
  1175. </li>
  1176. </t>
  1177. </t>
  1178. <t t-if="category">
  1179. <t t-foreach="website.get_product_tags()" t-as="c">
  1180. <li>
  1181. <a t-att-href="'/shop/category/%s?tag=%s' % (slug(category), c.id)" t-field="c.name"></a>
  1182. </li>
  1183. </t>
  1184. </t>
  1185. </ul>
  1186. </div>
  1187. </xpath>
  1188. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1189. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1190. </xpath>
  1191. <xpath expr="//div[@id='products_grid']" position="attributes">
  1192. <attribute name="class">col-md-9 col-sm-8</attribute>
  1193. </xpath>
  1194. </template>
  1195. <!-- Price Slider -->
  1196. <template id="kingfisher_pro_slider_layout" inherit_id="website_sale.products" name="Product Price Slider" active="False" customize_show="True" >
  1197. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1198. <div class="popular-tags mb16">
  1199. <div class="left-title">
  1200. <h3>By Price</h3>
  1201. <hr/>
  1202. </div>
  1203. <div class="price-slider">
  1204. <form method="post" t-att-action="keep('/shop'+ ('/category/'+slug(category)) if category else '',search=0)">
  1205. <div id="priceslider"/>
  1206. <input id="king_pro_website_currency" name="website_currency" t-att-value="website.pricelist_id.currency_id.symbol" type="hidden"/>
  1207. <input id="m1" name="min1" t-att-value="min1" type="hidden"/>
  1208. <input id="m2" name="max1" t-att-value="max1" type="hidden"/>
  1209. <input id="ra1" name="range1" t-att-value="range1" type="hidden"/>
  1210. <input id="ra2" name="range2" t-att-value="range2" type="hidden"/>
  1211. </form>
  1212. </div>
  1213. </div>
  1214. </xpath>
  1215. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1216. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1217. </xpath>
  1218. <xpath expr="//div[@id='products_grid']" position="attributes">
  1219. <attribute name="class">col-md-9 col-sm-8</attribute>
  1220. </xpath>
  1221. </template>
  1222. <!-- Added class in 'continue shopping' button -->
  1223. <template id="kingfisher_pro_checkout" inherit_id="website_sale.checkout">
  1224. <xpath expr="//a[@class='btn btn-default btn-primary pull-right mb32 a-submit']" position="attributes">
  1225. <attribute name="class">btn btn-primary pull-right mb32 a-submit</attribute>
  1226. </xpath>
  1227. </template>
  1228. <!-- Kingfisher Pro Website Megamenu -->
  1229. <template id="kingfisher_pro_website_megamenu_submenu" inherit_id="website.submenu">
  1230. <xpath expr="//li[1]" position="attributes">
  1231. <attribute name="t-if">not submenu.child_id and not submenu.is_megamenu</attribute>
  1232. </xpath>
  1233. <xpath expr="//li" position='after'>
  1234. <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'">
  1235. <a t-att-href="'%s' % (submenu.url) if submenu.url else ''" t-att-target="'_blank' if submenu.new_window else ''">
  1236. <t t-if="submenu.menu_icon and submenu.menu_icon_image">
  1237. <img t-att-src="website.image_url(submenu, 'menu_icon_image', '30x30')"
  1238. class="img-responsive icon"
  1239. t-att-alt="submenu.name"/>
  1240. </t>
  1241. <span t-field="submenu.name"/> <span class="fa fa-angle-down" t-ignore="true"></span>
  1242. </a>
  1243. <!-- 2 Column -->
  1244. <t t-if="submenu.megamenu_type == '2_col'">
  1245. <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 ''">
  1246. <div class="row">
  1247. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1248. <t t-if="not product_categories">
  1249. <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 ''">
  1250. Still, No category assigned to this menu.!!!
  1251. </li>
  1252. </t>
  1253. <t t-if="product_categories">
  1254. <div t-att-class="'col-md-4 col-xs-12' if submenu.category_slider else ''"
  1255. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1256. <t t-if="submenu.category_slider">
  1257. <li>
  1258. <ul>
  1259. <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 ''">
  1260. <t t-esc="submenu.carousel_header_name"/>
  1261. </li>
  1262. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1263. <div class="carousel-inner">
  1264. <t t-value='0' t-set='a'/>
  1265. <t t-foreach="product_categories" t-as="categ">
  1266. <div t-att-class="'item active' if a == 0 else 'item'">
  1267. <t t-value='a+1' t-set='a'/>
  1268. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1269. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1270. t-att-alt="categ.name"
  1271. class="img-responsive"/>
  1272. </a>
  1273. <h4>
  1274. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1275. <t t-esc='categ.name'/>
  1276. </small>
  1277. </h4>
  1278. </div>
  1279. </t>
  1280. </div>
  1281. </div>
  1282. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1283. <i class="fa fa-chevron-left"></i>
  1284. </div>
  1285. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1286. <i class="fa fa-chevron-right"></i>
  1287. </div>
  1288. </ul>
  1289. </li>
  1290. </t>
  1291. </div>
  1292. <div t-att-class="'col-md-8 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1293. <t t-foreach="product_categories" t-as="category">
  1294. <li class="col-sm-6 inline-block">
  1295. <ul>
  1296. <li class="dropdown-header">
  1297. <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 ''">
  1298. <t t-esc="category.name"/>
  1299. </a>
  1300. </li>
  1301. <t t-if="category.child_id">
  1302. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1303. <li class="categories">
  1304. <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 ''">
  1305. <t t-esc="categ.name"/>
  1306. </a>
  1307. </li>
  1308. </t>
  1309. </t>
  1310. </ul>
  1311. </li>
  1312. </t>
  1313. </div>
  1314. </t>
  1315. </div>
  1316. <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 ''">
  1317. <div class="footer">
  1318. <t t-raw='submenu.menu_footer'/>
  1319. </div>
  1320. </div>
  1321. </ul>
  1322. </t>
  1323. <!-- 3 Column -->
  1324. <t t-if="submenu.megamenu_type == '3_col'">
  1325. <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 ''">
  1326. <div class="row">
  1327. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1328. <t t-if="not product_categories">
  1329. <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 ''">
  1330. Still, No category assigned to this menu.!!!
  1331. </li>
  1332. </t>
  1333. <t t-if="product_categories">
  1334. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1335. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1336. <t t-if="submenu.category_slider">
  1337. <li class="margin">
  1338. <ul>
  1339. <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 ''">
  1340. <t t-esc="submenu.carousel_header_name"/>
  1341. </li>
  1342. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1343. <div class="carousel-inner">
  1344. <t t-value='0' t-set='a'/>
  1345. <t t-foreach="product_categories" t-as="categ">
  1346. <div t-att-class="'item active' if a == 0 else 'item'">
  1347. <t t-value='a+1' t-set='a'/>
  1348. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1349. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1350. t-att-alt="categ.name"
  1351. class="img-responsive"/>
  1352. </a>
  1353. <h4>
  1354. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1355. <t t-esc='categ.name'/>
  1356. </small>
  1357. </h4>
  1358. </div>
  1359. </t>
  1360. </div>
  1361. </div>
  1362. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1363. <i class="fa fa-chevron-left"></i>
  1364. </div>
  1365. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1366. <i class="fa fa-chevron-right"></i>
  1367. </div>
  1368. </ul>
  1369. </li>
  1370. </t>
  1371. </div>
  1372. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1373. <t t-foreach="product_categories" t-as="category">
  1374. <li class="col-sm-4 inline-block">
  1375. <ul>
  1376. <li class="dropdown-header">
  1377. <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 ''">
  1378. <t t-esc="category.name"/>
  1379. </a>
  1380. </li>
  1381. <t t-if="category.child_id">
  1382. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1383. <li class="categories">
  1384. <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 ''">
  1385. <t t-esc="categ.name"/>
  1386. </a>
  1387. </li>
  1388. </t>
  1389. </t>
  1390. </ul>
  1391. </li>
  1392. </t>
  1393. </div>
  1394. </t>
  1395. </div>
  1396. <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 ''">
  1397. <div class="footer">
  1398. <t t-raw='submenu.menu_footer'/>
  1399. </div>
  1400. </div>
  1401. </ul>
  1402. </t>
  1403. <!-- 4 Column -->
  1404. <t t-if="submenu.megamenu_type == '4_col'">
  1405. <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 ''">
  1406. <div class="row">
  1407. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1408. <t t-if="not product_categories">
  1409. <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 ''">
  1410. Still, No category assigned to this menu.!!!
  1411. </li>
  1412. </t>
  1413. <t t-if="product_categories">
  1414. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1415. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1416. <t t-if="submenu.category_slider">
  1417. <li class="margin">
  1418. <ul>
  1419. <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 ''">
  1420. <t t-esc="submenu.carousel_header_name"/>
  1421. </li>
  1422. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1423. <div class="carousel-inner">
  1424. <t t-value='0' t-set='a'/>
  1425. <t t-foreach="product_categories" t-as="categ">
  1426. <div t-att-class="'item active' if a == 0 else 'item'">
  1427. <t t-value='a+1' t-set='a'/>
  1428. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1429. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1430. t-att-alt="categ.name"
  1431. class="img-responsive"/>
  1432. </a>
  1433. <h4>
  1434. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1435. <t t-esc='categ.name'/>
  1436. </small>
  1437. </h4>
  1438. </div>
  1439. </t>
  1440. </div>
  1441. </div>
  1442. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1443. <i class="fa fa-chevron-left"></i>
  1444. </div>
  1445. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1446. <i class="fa fa-chevron-right"></i>
  1447. </div>
  1448. </ul>
  1449. </li>
  1450. </t>
  1451. </div>
  1452. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1453. <t t-foreach="product_categories" t-as="category">
  1454. <li class="col-sm-3 inline-block">
  1455. <ul>
  1456. <li class="dropdown-header">
  1457. <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 ''">
  1458. <t t-esc="category.name"/>
  1459. </a>
  1460. </li>
  1461. <t t-if="category.child_id">
  1462. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1463. <li class="categories">
  1464. <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 ''">
  1465. <t t-esc="categ.name"/>
  1466. </a>
  1467. </li>
  1468. </t>
  1469. </t>
  1470. </ul>
  1471. </li>
  1472. </t>
  1473. </div>
  1474. </t>
  1475. </div>
  1476. <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 ''">
  1477. <div class="footer">
  1478. <t t-raw='submenu.menu_footer'/>
  1479. </div>
  1480. </div>
  1481. </ul>
  1482. </t>
  1483. </li>
  1484. </xpath>
  1485. </template>
  1486. <!-- First / Last pager -->
  1487. <template id="website_pager_addition" inherit_id="website.pager">
  1488. <xpath expr="//ul/li" position='before'>
  1489. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1490. <li t-att-class=" 'disabled' if pager['page']['num'] == 1 else '' ">
  1491. <a t-att-href=" pager['page_first']['url'] if pager['page']['num'] != 1 else ''">First</a>
  1492. </li>
  1493. </t>
  1494. </xpath>
  1495. <xpath expr="//ul/li[last()]" position='after'>
  1496. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1497. <li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else '' ">
  1498. <a t-att-href="pager['page_last']['url'] if pager['page']['num'] != pager['page_count'] else ''">Last</a>
  1499. </li>
  1500. </t>
  1501. </xpath>
  1502. </template>
  1503. <!-- 404 page -->
  1504. <template id="404_page_template" inherit_id="website.404" customize_show="True">
  1505. <xpath expr="//div[@id='wrap']" position="replace">
  1506. <div class="container">
  1507. <div class="row section-404 well">
  1508. <div class="col-md-12 text-center">
  1509. <div class="content-404">
  1510. <img src="/kingfisher_pro/static/src/img/kingfisher-pro-404.png"/>
  1511. <label>404</label>
  1512. </div>
  1513. <p class="text-center not-found-message">This is not the webpage you are looking for</p>
  1514. <p class="text-center try-pages">Please try one of the following pages
  1515. <span>
  1516. <a t-attf-href="/page/website.homepage" title="Writizmo">Home page</a>
  1517. </span>
  1518. </p>
  1519. </div>
  1520. </div>
  1521. </div>
  1522. </xpath>
  1523. </template>
  1524. </data>
  1525. </openerp>