3
1
Back

(Exception $e) { $article['content'] .= "
$orig_content
"; } // Breaking Cat News elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $article['content'] .= "
" . $msg . ""; } } Dead Philosophers elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Dilbert // Dilbert elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] .= "Bonus comic:" . $aftercomic . "

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

" . $entry->textContent . "

"; } } // Joy of Tech elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { //noop elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] .

New Pull Request