3
1
Back

342 lines if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Drugs and Wires elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && // Cyanide & Happiness elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= $aftercomic; $article['content'] .= "
ID: " . $article['id']; } return $article; } Some comics supported Some comics supported elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Cyanide & Happiness elseif.

New Pull Request