[buddypress-trac] [BuddyPress] #4637: Add new template function to produce list of activity types
buddypress-trac
noreply at wordpress.org
Wed Oct 31 16:06:33 UTC 2012
#4637: Add new template function to produce list of activity types
-------------------------+------------------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Description changed by DJPaul:
Old description:
> Attached patch contains a proposed template function to produce a list of
> all the registered activity types for use in a <select> element, or as
> <input type="checkbox">.
>
> When working on turtleshell, I wanted to add filter controls to the
> activity directory, just like how BP-Default has a dropdown box.
> Unfortunately, these are hardcoded into the BP-Default templates. We
> already register activity types, but we don't have a template function to
> output the data.
>
> My patch implements such a template function and allows choice between
> rendering the activity types as a dropdown box or as radio buttons.
New description:
Attached patch contains a proposed template function to produce a list of
all the registered activity types for use in a <select> element, or as
<input type="checkbox">.
When working on turtleshell, I wanted to add filter controls to the
activity directory, just like how BP-Default has a dropdown box.
Unfortunately, these are hardcoded into the BP-Default templates. We
already register activity types, but we don't have a template function to
output the data.
My patch implements such a template function and allows choice between
rendering the activity types as a dropdown box or as a select dropdown.
--
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4637#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list