Opened 10 years ago
Closed 10 years ago
#7364 closed enhancement (fixed)
Update bp_profile_get_settings_visibility_select template function for additional $args
| Reported by: | hnla | Owned by: | hnla |
|---|---|---|---|
| Priority: | low | Milestone: | 2.8 |
| Component: | Extended Profile | Version: | |
| Severity: | minor | 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
spanas was it's original value.
Attachments (2)
Change History (7)
#3
@
10 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@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).