3
1
Back

Tags elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Two Lumps elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Drugs and Wires elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Cyanide & Happiness // Cyanide & Happiness // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful.

New Pull Request