/** * Render the Button * @param $options, array of shortcode options */ public function renderView($options) { $this->setOptions($options); return get_clear_favorites_button($this->options['site_id'], $this->options['text']); }
/** * Print the clear favorites button * @param $site_id int, defaults to current blog/site * @param $text string, button text - defaults to site setting * @return html */ function the_clear_favorites_button($site_id = null, $text = null) { echo get_clear_favorites_button($site_id, $text); }