/** * @param $atts shortcode inputs * @return string shortcode content */ public function handleShortcode($atts, $content = null) { $attributes = shortcode_atts(array('id' => 0, 'color' => 'cyan'), $atts); $feed = $this->feedReader->getFeedFromId(1); $feedItems = $this->feedReader->getFeedItemsFromId(1); echo Feed::render($feed, $feedItems, $attributes); }
public function refreshReader() { $this->feedReader->refresh(); }