function render_item($row, $item) { if ($row->key == 'message') { return $this->parse_urls(htmlspecialchars($item['title'])) . ' [' . $this->lifestream->get_anchor_html(htmlspecialchars($this->get_option('username')), $item['link']) . ']'; } else { return parent::render_item($row, $item); } }
function render_item($event, $item) { if ($event->key == 'image') { return Lifestream_PhotoFeed::render_item($event, $item); } elseif ($event->key == 'note') { return Lifestream_TumblrFeed::parse_users($this->parse_urls(htmlspecialchars($item['title']))) . ' [' . $this->lifestream->get_anchor_html($this->get_option('username') . htmlspecialchars($item['link'])) . ']'; } else { return parent::render_item($event, $item); } }