/** * Render a crossover collection title. * * <code class="php"> * // render the crossover collection title * webcomic_crossover_title(); * * // assign the crossover collection title to a variable for later use * $crossover_title = WebcomicTag::webcomic_crossover_title( 'Crossover With: ' ); * </code> * * <code class="bbcode"> * // render the crossover collection title * [webecomic_crossover_title] * * // render the crossover collection title with a prefix * [webecomic_collection_title prefix="Crossover With: "] * </code> * * @package Webcomic * @param string $prefix Content to display before the title. * @uses WebcomicTag::webcomic_crossover_description() */ function webcomic_crossover_title($prefix = '') { echo WebcomicTag::webcomic_crossover_title($prefix); }
/** * Handle webcomic_crossover_title shortcode. * * @param array $atts Shortcode attributes. * @param string $content Shortcode content. * @return string * @uses WebcomicTag::webcomic_crossover_title() */ public function webcomic_crossover_title($atts, $content) { extract(shortcode_atts(array('prefix' => ''), $atts)); $prefix = $content ? do_shortcode($content) : $prefix; return WebcomicTag::webcomic_crossover_title($prefix); }