[wp-trac] [WordPress Trac] #18561: Better Way to Insert Things Below Individual Posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 1 10:37:52 UTC 2011
#18561: Better Way to Insert Things Below Individual Posts
-------------------------+------------------------------
Reporter: jane | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: minor | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by satollo):
Themes are too much different to standardize them. Even if there are some
commons parts on each theme, breaking up them with too much part is not so
good (IMHO). I prefer an approach like the sidebar.
There are many themes that use the sidebars to define NOT sidebars but
generic content area. Technically a theme can define sidebars even before
and after the post or after the title and the user can add widgets there.
If widgets will be created to add social button with that kind of sidebars
in mindthe problem is solved... even if the average user (in my
experience) is not very skilled with widgets.
An alternative is to define "template zones". A theme can "declare" as
many zone as it wants, may be some zones can be documented as de facto
standard. On that zones the theme calls do_action('zone_{name}') while it
declared register_zone({name/id}, 'Long descriptive name').
The declaration is used by plugins for their configuration panel so they
can ask: "where do you want to inject the social button" showing a list of
checkboxes or a drop down selection. Plugins will call "get_zones()" to
have all defined zones.
This is far wawy more simple that writing a widget, the plugin must only
attach to the action and print out the content...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18561#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list