/** * Add the news ticker. * * @since 1.0.0 */ function ditty_news_ticker_display($atts, $content = null) { extract(shortcode_atts(array('id' => '', 'class' => ''), $atts)); // Remove the id & class before passing the atts unset($atts['id']); unset($atts['class']); // Return the ticker return get_mtphr_dnt_ticker($id, $class, $atts); }
/** * Display the ticker * * @since 1.0.0 */ function ditty_news_ticker($id = '', $class = '', $atts = false) { echo get_mtphr_dnt_ticker($id, $class, $atts); }