collectExpandableDatas(self::URI . '.atom', 5); } protected function parseItem($newsItem){ $item = parent::parseItem($newsItem); $item['content'] = $this->retrieveLichessPost($item['uri']); return $item; } private function retrieveLichessPost($blog_post_uri){ $blog_post_html = getSimpleHTMLDOMCached($blog_post_uri); $blog_post_div = $blog_post_html->find('#lichess_blog', 0); $post_chapo = $blog_post_div->find('.shortlede', 0)->innertext; $post_content = $blog_post_div->find('.body', 0)->innertext; $content = '

' . $post_chapo . '

'; $content .= '
' . $post_content . '
'; return $content; } }