示例#1
0
文件: tags.php 项目: ecerta/webcomic
 /**
  * Is the query for a webcomic-related page?
  * 
  * <code class="php">
  * if ( is_webcomic_page() {
  * 	// this is a webcomic-related page
  * }
  * 
  * if ( is_webcomic_page( false, 'webcomic42' ) ) {
  * 	// this is a page related to webcomic collection 42
  * }
  * 
  * if ( is_webcomic_page( 2, 'webcomic42' ) {
  * 	// the page with an ID of 2 is related to webcomic collection 42
  * }
  * </code>
  * 
  * @package Webcomic
  * @param mixed $the_post Post object or ID to check.
  * @param mixed $collection Collection ID or an array of these to check.
  * @return boolean
  * @uses WebcomicTag::is_webcomic_page()
  */
 function is_webcomic_page($the_post = false, $collection = '')
 {
     return WebcomicTag::is_webcomic_page($the_post, $collection);
 }