diff --git a/options/options.twig b/options/options.twig index 7690837..589c4b0 100644 --- a/options/options.twig +++ b/options/options.twig @@ -388,6 +388,16 @@ {% endfor %} +{# HOIST TABS (Prompt D): with optionspage=custom, core renders this whole page inside + one outer "Simple options" tab (ul#theme-options-tabs > li > #simple). Move our tab + buttons into the outer tab bar, our panes into the outer .tab-content and everything + else (spinner, inherit row, hr) above the outer tab bar, then drop the #simple + wrapper — so our category tabs sit at the SAME level as the outer bar. + Inline (rendered into the page HTML, so it runs on every fresh page load even with a + heuristically cached options.js; idempotent). Bootstrap 5 tabs use delegated click + handlers on document, so the moved buttons keep working without re-init. #} +{{ registerScript('respondage-hoist-tabs', "(function(){function hoist(){var outer=document.getElementById('theme-options-tabs');var simple=document.getElementById('simple');if(!outer||!simple){return;}var innerNav=null,innerContent=null,i;var kids=Array.prototype.slice.call(simple.children);for(i=0;i