feat(options): logo section as 3 columns (file/margin/per-device) in Top-of-page tab
Prompt M: per logo position (left=brand, center, right) the options page now
shows one column with vertical separators and an <hr> below: file dropdown
with 'No logo' (off) first, top margin as plain number 0-100, and 'Show logo
on' with computer/tablet/mobile checkboxes. New option keys per position:
<pos>logofile, <pos>logotopmargin, <pos>showon{computer,tablet,mobile};
old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, shared
logotopmargin) removed from config.xml. Views map the checkboxes to
Bootstrap display classes per breakpoint and emit per-logo padding-top;
variants/build.php migrates the old json keys to the new ones.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
b44d120d7d
commit
751954c340
1 changed files with 197 additions and 35 deletions
40
config.xml
40
config.xml
|
|
@ -95,20 +95,34 @@
|
|||
<fixnumauto type="buttons" category="Simple options" width="4" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
|
||||
|
||||
<!-- Images
|
||||
HOUSE-STYLE: logos (on/off + file + hide-on-small-screen), logotopmargin,
|
||||
background image and bodybackgroundcolor are set per variant via
|
||||
variants/<client>.json -->
|
||||
HOUSE-STYLE: logos, background image and bodybackgroundcolor are set per
|
||||
variant via variants/<client>.json -->
|
||||
<!-- Images -->
|
||||
<brandlogo type="buttons" category="Images" width="2" title="Display logo on the left of the header" options="on|off" optionlabels="Yes|No">on</brandlogo>
|
||||
<brandlogofile type="imagefile" category="Images" width="7" title="Logo file (left)" parent="brandlogo">./files/logo.png</brandlogofile>
|
||||
<brandlogohideonsmall type="buttons" category="Images" width="3" title="Hide the left logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="brandlogo">on</brandlogohideonsmall>
|
||||
<centerlogo type="buttons" category="Images" width="2" title="Display logo in the center of the header" options="on|off" optionlabels="Yes|No">off</centerlogo>
|
||||
<centerlogofile type="imagefile" category="Images" width="7" title="Logo file (center)" parent="centerlogo">./files/logo.png</centerlogofile>
|
||||
<centerlogohideonsmall type="buttons" category="Images" width="3" title="Hide the center logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="centerlogo">on</centerlogohideonsmall>
|
||||
<rightlogo type="buttons" category="Images" width="2" title="Display logo on the right of the header" options="on|off" optionlabels="Yes|No">off</rightlogo>
|
||||
<rightlogofile type="imagefile" category="Images" width="7" title="Logo file (right)" parent="rightlogo">./files/logo2.png</rightlogofile>
|
||||
<rightlogohideonsmall type="buttons" category="Images" width="3" title="Hide the right logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="rightlogo">on</rightlogohideonsmall>
|
||||
<logotopmargin type="duration" category="Images" width="3" title="Distance from the logo to the top of the screen (use 0px to align a logo exactly with the very top)">15px</logotopmargin>
|
||||
<!-- Logos (Prompt M): per logo (left=brand, center, right) a file dropdown whose
|
||||
FIRST option is "No logo" (value "off", prepended by options.twig), a top
|
||||
margin in px (plain number 0-100; the views add the "px"), and "Show logo
|
||||
on" checkboxes per device (Bootstrap breakpoints: mobile < 768px,
|
||||
tablet 768-991px, computer >= 992px). Defaults: left logo on with
|
||||
logo.png, center/right "off" (no logo); margin 15; show on computer and
|
||||
tablet, NOT on mobile (same as the old hide-on-small default).
|
||||
The old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, the shared
|
||||
logotopmargin) were removed; variants/build.php maps the variant json's
|
||||
old keys onto these new keys. -->
|
||||
<brandlogofile type="imagefile" category="Images" width="12" title="Logo file (left)">./files/logo.png</brandlogofile>
|
||||
<brandlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (left), in px (0-100)">15</brandlogotopmargin>
|
||||
<brandshowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</brandshowoncomputer>
|
||||
<brandshowontablet type="checkbox" category="Images" width="12" title="Tablet">on</brandshowontablet>
|
||||
<brandshowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</brandshowonmobile>
|
||||
<centerlogofile type="imagefile" category="Images" width="12" title="Logo file (center)">off</centerlogofile>
|
||||
<centerlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (center), in px (0-100)">15</centerlogotopmargin>
|
||||
<centershowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</centershowoncomputer>
|
||||
<centershowontablet type="checkbox" category="Images" width="12" title="Tablet">on</centershowontablet>
|
||||
<centershowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</centershowonmobile>
|
||||
<rightlogofile type="imagefile" category="Images" width="12" title="Logo file (right)">off</rightlogofile>
|
||||
<rightlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (right), in px (0-100)">15</rightlogotopmargin>
|
||||
<rightshowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</rightshowoncomputer>
|
||||
<rightshowontablet type="checkbox" category="Images" width="12" title="Tablet">on</rightshowontablet>
|
||||
<rightshowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</rightshowonmobile>
|
||||
<backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
|
||||
<backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll">scroll</backgroundimagefixed>
|
||||
<backgroundimagedisplay type="buttons" category="Images" width="4" title="Background image display" options="tile|cover" optionlabels="Tile|Cover">tile</backgroundimagedisplay>
|
||||
|
|
|
|||
Loading…
Reference in a new issue