3
1
Back

Preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Three Panel Soul elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; // $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Three Panel Soul // Three Panel Soul * Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = new DOMXpath($doc); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // smoothing the top surface of the hole in the appropriate comment.

New Pull Request