Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 function render_item($event, $item)
 {
     if ($event->key == 'photo') {
         return Lifestream_PhotoFeed::render_item($event, $item);
     } elseif ($event->key == 'checkin') {
         return $this->lifestream->get_anchor_html(htmlspecialchars($item['placename']), $item['placelink']);
     } else {
         return $this->parse_urls(htmlspecialchars($item['text']));
     }
 }