Hi,
I just purchased Roots-Share-Buttons and damn, nice work guys. Most share button plugins are a nightmare and yours is a dream. Thank you for such a great tool.
I noticed that you offer an override of the included template and I wanted to offer a suggestion for an easier method of doing this that I’ve used in some of my work:
Gamajo Template Loader lets you specify your views in your plugin and lets the user override the template just by placing a template file in the right directory in their theme, the way WooCommerce and others do.
Their installation instructions explain the whole thing better than I ever could. Of particular note is set_template_data()
which lets you pass data to the template.
Anyway, I thought this might be a nice way to drop in a template system with easy overrides that work in a predictable (the same as other plugins) way. No need for an action; it just works. I would be happy to submit a Pull Request if there was a repo somewhere.
Thanks again for the great tools!