Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would be great to have a toggle for these. Just created a subtheme, so my navbar would be static, but seems like an overkill :)
Comments
Comment #1
giorgio79 CreditAttribution: giorgio79 commentedComment #2
valkum CreditAttribution: valkum commentedHere is a patch.
Should we use other form types than checkboxes for this? Or is the message enough? in terms of static in combination with fixed?
Comment #3
valkum CreditAttribution: valkum commentedThe UX namespace in theme settings is not final. I'm not sure whats the best name for this tab is.
Comment #4
markhalliwellFollowing the example on #2105257: Add theme setting to toggle "well" on regions, I think we should just create a "Navbar" tab.
Comment #5
markhalliwellShouldn't these three actually be radios, for "position"? The setting name should also probably be
bootstrap_navbar_position
.Just label this as
t('Inverse')
, like the class. This should probably have it's own setting like,bootstrap_navbar_inverse
Lower case "as" inside foreach loops please.
Comment #6
valkum CreditAttribution: valkum commentedComment #7
markhalliwellI like that you put this in here. Perhaps we could also put some JS to toggle a live preview (if their admin theme is Bootstrap based of course) by adding/removing classes to the navbar when they toggle an option?
Tabbed whitespace.
This is better. Don't we want to provide an empty option, like "Default" or something since these are completely optional? @see https://api.drupal.org/api/drupal/developer%21topics%21forms_api_referen...
We probably want to flatten these in
bootstrap_process_page()
instead (so sub-themes could preprocess the array if needed).Comment #8
valkum CreditAttribution: valkum commentedComment #10
markhalliwellReroll
Comment #11
markhalliwellThanks @valkum!
Committed 85498e9 to 7.x-3.x.
Comment #12
valkum CreditAttribution: valkum commented