3
1
Back

Both. $alt_element = $doc->createElement("i", $alt_text); } elseif (strpos($alt_text, $title_text) !== False) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // PhD Unknown elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Dead Philosophers 2015-02-25 15:05:54 -08:00 // Poorly Drawn.

New Pull Request