/** * Return a formatted list of collections the current collection crosses over with. * * <code class="php"> * // render a comma-separated list of collections the current collection crosses over with * webcomic_collection_crossovers(); * * // render an unordered list of collection thumbnail posters linked to the first webcomic that crosses over with the current collection * webcomic_collection_crossovers( '<ul><li>', '</li><li>', '</li></ul>', 'first', 'thumbnail' ); * * // render an ordered list of collectios collection 42 crosses over with * webcomic_collection_crossovers( '<ol><li>', '</li><li>', '</li></ol>', 'archive', 'webcomic42' ); * </code> * * <code class="bbcode"> * // render a comma-separated list of collections the current collection crosses over with * [webcomic_collection_crossovers] * * // render an unordered list of collection thumbnail posters linked to the first webcomic that crosses over with the current collection * [webcomic_collection_crossovers before="<ul><li>" sep="</li><li>" after="</li></ul>" target="first" image="thumbnail"] * * // render an ordered list of collectios collection 42 crosses over with * [webcomic_collection_crossovers before="<ol><li>" sep="</li><li>" after="</li></ol>" collection="webcomic42"] * </code> * @package Webcomic * @param string $before Before list. * @param string $sep Separate items using this. * @param string $after After list. * @param string $target Where the term links should point to, one of 'archive', 'first', 'last', or 'random'. * @param string $image Image size to use when displaying crossover collections images for links. * @param string $collection The collection to retrieve crossovers for. * @uses WebcomicTag::webcomic_collection_crossovers() */ function webcomic_collection_crossovers($before = '', $sep = ', ', $after = '', $target = 'archive', $image = '', $collection = '') { echo WebcomicTag::webcomic_collection_crossovers($before, $sep, $after, $target, $image, $collection); }
/** * Handle webcomic_collection_crossovers shortcode. * * @param array $atts Shortcode attributes. * @return string * @uses WebcomicTag::webcomic_term_crossovers() */ public function webcomic_collection_crossovers($atts) { extract(shortcode_atts(array('before' => '', 'sep' => ', ', 'after' => '', 'target' => 'archive', 'image' => '', 'collection' => ''), $atts)); return WebcomicTag::webcomic_collection_crossovers($before, $sep, $after, $target, $image, $collection); }