indieweb / wordpress-uf2

add "Microformats 2" classes to your WordPress theme
https://wordpress.org/plugins/wp-uf2/
22 stars 4 forks source link

Add "Microformats2" theme support check #12

Closed pfefferle closed 9 years ago

pfefferle commented 9 years ago

Add a check if theme supports Microformats2 (https://github.com/pfefferle/SemPress/blob/master/sempress/functions.php#L101) to enable/disable the plugin. Perhaps we have to rewrite the plugin a bit for that use case.

dshanske commented 9 years ago

Considering the functionality of TGM, which is used for themes as well as plugins, we could have functions that could be called by a theme, and enabled if the theme doesn't support it.

pfefferle commented 9 years ago

@dshanske What do you think about my quick rewrite?

dshanske commented 9 years ago

Much cleaner. Will need to pull a copy down.