find('.module_timed-item.is--full'); foreach($div as $element) { $item = array(); $item['enclosures'] = array(); $title = $element->find('h2', 0)->plaintext; $item['title'] = $title; $author = trim($element->find('.module_timed-item--artist a', 0)->plaintext); $item['author'] = $author; $item['uri'] = static::URI; $content = '

' . $title . ' by ' . $author . '

'; $photos = $element->find('a.img'); foreach($photos as $photo) { $content = $content . "
"; $item['enclosures'][] = $photo->src; } $item['content'] = $content; $this->items[] = $item; } } }