3
1
Back

20], center=true); } // Wondermark (alt tag already present elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // only keep everything starting at the first } // SBMC elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debug']) { } function api_version() { $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; $n > 0; $abs = preg_replace($re, '/', $abs, -1, $n.