示例#1
0
文件: tags.php 项目: ecerta/webcomic
 /**
  * Is the current webcomic a crossover?
  * 
  * <code class="php">
  * if ( has_webcomic_crossover() ) {
  * 	// this webcomic features characters or storylines from any other collection
  * }
  * 
  * if ( has_webcomic_crossover( 'webcomic42' ) ) {
  * 	// this webcomic crosses over with storylines or characters from collection 42
  * }
  * 
  * if ( has_webcomic_crossover( 'webcomic42_character' ) ) {
  * 	// this webcomic features one or more characters from collection 42
  * }
  * 
  * if ( has_webcomic_crossover( '', 'ford-prefect' ) {
  * 	// this webcomic crosses over with a storyline or character from any collection that has the slug ford-prefect
  * }
  * 
  * if ( has_webcomic_crossover( 'character', 'ford-prefect' ) {
  * 	// this webcomic features a character from any collection that has the slug ford-prefect
  * }
  * 
  * if ( has_webcomic_crossover( 'webcomic42_sotyrline', 'mostly-harmless' ) {
  * 	// this webcomic crosses over with the storyline that has the slug mostly-harmless in collection 42
  * }
  * </code>
  * 
  * @package Webcomic
  * @param mixed $scope Collection ID, taxonomy ID, or shorthand taxonomy ID (one of 'storyline' or 'character') to check.
  * @param mixed $term Term name, ID, slug, or an array of these to check.
  * @param mixed $the_post Post object or ID to check.
  * @return boolean
  */
 function has_webcomic_crossover($scope = '', $term = '', $the_post = false)
 {
     return WebcomicTag::has_webcomic_crossover($scope, $term, $the_post);
 }