3
1
Back

Already present foreach($imgs as $img){ $article['content'] .= "

" . $entry->textContent . ""; $img_tag = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Scenes From A Multiverse (to get alt tags textified. Function rel2abs($rel, $base) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Three Panel Soul * Scenes From A Multiverse (to get alt tags textified. } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach.

New Pull Request