Opened 7 years ago
Last modified 7 years ago
#7364 closed enhancement
Update bp_profile_get_settings_visibility_select template function for additional $args — at Initial Version
Reported by: | hnla | Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | low |
Severity: | minor | Version: | |
Component: | Extended Profile | Keywords: | has-patch commit |
Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.