Developer notes
| Item | Value |
|---|---|
| Add-on id | kv_theme_encore |
| Theme | kv_encore (child of responsive) |
| CSS prefix | ec- |
| Tables | ?:kv_ec_clips (product clips: path or https URL, seconds, peaks, side, position, status), ?:kv_ec_rigs (rig slots per category and storefront company) |
| Clip files | storage images, folder kv_ec_clips/<product id>/ (demo clips: kv_ec_clips/demo/) |
| Admin | product tab kv_ec_sound (controllers/backend/products.post.php), kv_encore_rigs.manage, kv_encore_clips.peaks (POST, JSON) |
Product data
Section titled “Product data”gather_additional_products_data_post adds $product.kv_ec on the storefront: cond (k new/bstock/used/vintage, t,
d), year, specs (list of n, v, c), rec (record format), clips (id, t, u, s, len, bars, side).
Catalogue data only, so pages stay full page cache safe. The product page also gets $ec_rig (slots with products).
Templates
Section titled “Templates”Block templates: blocks/categories/kv_ec_deck.tpl, kv_ec_pedals.tpl, kv_ec_promise.tpl, kv_ec_shops.tpl,
kv_ec_sound.tpl, kv_ec_rig.tpl and addons/banners/blocks/kv_ec_rack.tpl. Card hooks:
products:list_price_block pre/post; product page: products:main_info_title post. Partials in
addons/kv_theme_encore/partials/ (kv_ec_play.tpl = play control, kv_ec_cond.tpl, kv_ec_specs.tpl).
Script
Section titled “Script”js/addons/kv_theme_encore/theme.js: one Audio element for every .ec-play__btn[data-src], progress on the waveform
bars, seek by clicking the waveform, Now playing deck, player bar; rig form totals (one pick per slot). The rig form posts
dispatch=checkout.add (hidden field) with product_data[<id>][amount] and a security_hash; the theme script turns it into a core AJAX form (cm-ajax, same request as the stock add-to-cart button). Only the instrument is pre-ticked. Rack end dates are data-kv-end countdowns (kit.js).