marcodeltongo / thematic

Automatically exported from code.google.com/p/thematic
0 stars 0 forks source link

Add body and post classes for post formats and custom post types #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment, thematic is only adding a class for custom post types in 
thematic_post_class and no classes for post formats on either posts or body 
tag,  and no body class for custom post archive pages. This patch is addressing 
that. The code is mainly taken from wordpress but adapted to fit into the 
thematic framework.

Also, the function thematic_is_custom_post_type() is only checking if a post 
type is not 'post' or 'page' which is not enough. I'm thinking mainly on post 
type 'attachment' since I don't think 'revision' or nav_menu_item' is of any 
concern. Anyway, I added a patch to check if the post type is not builtin 
instead.

Original issue reported on code.google.com by invistr...@gmail.com on 5 Nov 2011 at 12:22

Attachments:

GoogleCodeExporter commented 9 years ago
Taking a look

Original comment by eugene.m...@gmail.com on 18 Jan 2012 at 1:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by eugene.m...@gmail.com on 23 Jan 2012 at 1:06

GoogleCodeExporter commented 9 years ago
Thanks middlesister. 

Marking a dupe of issue #122. I think filtering is the way to go.

Original comment by eugene.m...@gmail.com on 24 Jan 2012 at 10:38