3
1
Back

Assorted updates elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Assorted updates Assorted updates elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Achewood (alt tag already present) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] .= "" . $entry->textContent . "

"; } } // Chainsawsuit elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { // And get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; } } } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // Something Positive elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // Timothy Winchester.

New Pull Request