Right now the before/after content options use Genesis hooks, and is then filterable. We should extend this so it supports non-Genesis sites out of the box.
Issue:
the_content is a filter, not a hook. Which means we'll need to return (not echo) the share buttons, include the $content as well, and position it correctly (before/after $content).
Right now the before/after content options use Genesis hooks, and is then filterable. We should extend this so it supports non-Genesis sites out of the box.
Sample: https://gist.github.com/billerickson/fe625ac669ff38e184e9
General logic:
Issue: the_content is a filter, not a hook. Which means we'll need to return (not echo) the share buttons, include the $content as well, and position it correctly (before/after $content).
I think we should expand the $locations array to include 'hook', 'filter' and 'priority'. Something like this: https://gist.github.com/billerickson/bc10498b20a992f508e7
Then we can either update the display() method to have a return/echo parameter, or just output buffer it.