Opened 8 years ago
Closed 8 years ago
#7364 closed enhancement (fixed)
Update bp_profile_get_settings_visibility_select template function for additional $args
Reported by: | hnla | Owned by: | hnla |
---|---|---|---|
Milestone: | 2.8 | Priority: | low |
Severity: | minor | Version: | |
Component: | Extended Profile | Keywords: | has-patch commit |
Cc: |
Description (last modified by )
This patch just adds some additional args passable to the markup to increase flexibility in styling the form controls and allows access to the label class attr.
- Adds
'before_controls'
,'after_controls'
to allow wrapping the form controls for additional styling hooks these are inside the form loop avoiding wrapping the 'else' notoggle element too while the existing'before'
&'after'
remain as overall wrapper options.
- Change label class to take an arg defaulting it to the 'bp-screen-reader-text' string as was before.
- Change the notoggle element to allow setting/changing the element defaulting it to
span
as was it's original value.
Attachments (2)
Change History (7)
#3
@
8 years ago
@djpaul I'll check indents, be surprised if I got those wrong given was just slotting into existing format so likely trac/patch is displaying oddly.
Note: See
TracTickets for help on using
tickets.
@hnla Patch looks great! Good idea. Just check the general indentation when you commit it -- I'm not sure if everything's been indented one times too many, or whether Trac is displaying the file weirdly (most likely).