3
1
Back

(strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } //noop elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Drugs and.

New Pull Request