3
1
Back

//also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $img_tag . $article['content']; // Cyanide & Happiness elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Wondermark (alt tag already present) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); // Awkward Zombie elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $article['content'] .= "" . $entry->textContent . "

"; } } // Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Chainsawsuit elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $article['content'] .= "Bonus comic:" .

New Pull Request