Closed pfefferle closed 7 years ago
I agree fully. I will implement this as well as related options.
I actually didn't need to copy the views in I think it just started that way and I never cleaned up :/
Because I edited class-kind-taxonomy.php with a PR i'll put in now, that resolves this from a themes point of view by by allowing filtering kind_icon_sprite to return nothing.
Added to my existing PR, see - https://github.com/dshanske/indieweb-post-kinds/pull/111
and now I remember why that didn't work ;)
OK i put some work on both the theme and this issue that should give the best of all worldsin #111 .
There's now a setting that allows users to turn the icon off, which a theme can disable/override with a filter.
Kind_Taxonomy::get_icon('note') will always return icon regardless of setting Kind_Taxonomy::display_icon('note') will be empty if the setting/filter is set to false.
This allows a theme that wishes to display the icon elsewhere (like ZenPress) to use Kind_Taxonomy::get_icon to have access to the plugins sprite and all the other filters for overriding the sprite still work.
I am adding back the old text based functionality as part of this.
Closed via recent commit.
The post-kind icon should be optional, @Ruxton had to copy all post-kind templates to only remove the icon from the content: https://github.com/pfefferle/ZenPress/pull/4/files
It would be way easier to disable them with a flag, const or filter.