3
1
Back

LEDcreateElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users 1e6cc98f41 Various updates, additions /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } function rel2abs($rel, $base) { function about() { return $this->mangle_article($article); } function api_version() { return array( 0.1, 'Yet more stupid-simple comic-fetching.', ' '); ' ' ); } function hook_render_article($article) { try { return $rel; } if (ADD_IDS) { $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } Dead Philosophers elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Achewood (alt tag) elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // Cyanide & Happiness elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "$orig_content"; // Awkward Zombie elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath.

New Pull Request