fixes ITC-131: changed has_post_thumbnail from a constant to a method call in all templates