returnError('Could not request Footito.', 404); foreach($html->find('div.post') as $element) { $item = new Item(); $content = trim($element->innertext); $content = str_replace("content = $content; $title = $element->find('.contenu .texte ', 0)->plaintext; $item->title = $title; $info = $element->find('div.infos', 0); $item->timestamp = strtotime($info->find('time', 0)->datetime); $item->name = $info->find('a.auteur', 0)->plaintext; $this->items[] = $item; } } public function getName(){ return 'footito'; } public function getURI(){ return 'http://www.footito.fr/'; } public function getCacheDuration(){ return 3600; // 1h hours } public function getDescription(){ return "Footito via rss-bridge"; } } ?>