3
1
Back

Quotes) // Doghouse Diaries, which has broken alt tags elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Gunnerkrigg Court elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Scenes From A Multiverse (to get alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Cyanide & Happiness elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $doc = NULL) { foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] = $img; } //Sites that provide images and just need alt tags elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; // only keep everything starting at the first // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); } } // Awkward Zombie elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { //noop elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Breaking Cat News // Something Positive Some comics supported elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } // Timothy Winchester (People I.

New Pull Request