3
1
Back

$entry){ $orig_src = $entry->getAttribute('src'); $result_html .= "
Alt: $alt_text
"; } } //Sites that provide images and just need alt tags if (preg_match("@.*()@", $article['content'], $matches)) { if (preg_match("@.*(get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Something Positive elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "Error processing via _comics plugin!" . $e->getMessage(); } } // Cyanide & Happiness elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) .

New Pull Request