3
1
Back

$doc = NULL) { foreach ($article['debug'] as $msg) { $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } if(ADD_IDS){ $article['content'] .= "

" . $entry->textContent . ""; // Camp Weedonwantcha elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] .= "$orig_content"; // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Three Panel Soul elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } Various updates, additions elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // Scenes From A Multiverse (to get alt tags textified. } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE.

New Pull Request