3
1
Back

False) { if ($doc === NULL) { foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { // Wondermark (alt tag already present elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Dilbert // Dilbert elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//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["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $img; } } return $article; } if(ADD_IDS){ $article['content'] .= "
$orig_content
"; .

New Pull Request