Hi,
Can anyone tell me what all the available in_context() are? I've seen:
in_context(ZP_ALBUM)
in_context(ZP_IMAGE)
in_context(ZP_SEARCH)
I am trying to display different content based on this function. Also is there something for zenpage distinguishing pages, news, and news article?
Thanks!
Comments
`
in_context(ZP_ZENPAGE_NEWS_ARTICLE)
in_context(ZP_ZENPAGE_NEWS_CATEGORY)
in_context(ZP_ZENPAGE_PAGE)
in_context(ZP_ZENPAGE_NEWS_DATE)
`
But you can also use the zenpage-template-functions like `is_Page(), is_NewsArticle()` etc. See the quick reference pdf that is included in the package or the documentation.
What are you trying to do? If you use the standard theme files you don't need to check. You can also check via the objects.
I suppose I could make separate sidebar files for each context, but I would rather use conditional statements in one sidebar for all...:)
The pdfs were introduced with 1.2.6.