コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
ファイル: Plugin.php プロジェクト: No3x/wp-feed-mashup
 public function refreshReader()
 {
     $this->feedReader->refresh();
 }