3
1
Back

'images') and contains(@src, 'png')]", $article); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Pain Train (to get alt tags if both exist elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMXpath($doc); elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // draw a "vertical" wall } // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); // Order of the Stick elseif (strpos(strtolower($article['link']), 'giantitp.com/comics.

New Pull Request