Labels Milestones
BackVCO.png and /dev/null differ From e825437e5db64d4ef13181f883b9fe719cf4c2a1 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Various updates, additions $alt_element = $doc->createElement("i", $alt_text); } elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; } } if ($rel[0]=='#' || $rel[0]=='?') { return $rel; } if ($alt_text && !$title_text){ $text_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos($title_text, $alt_text) !== false){ } elseif ($title_text && !$alt_text){ $text_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); } elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { Fix for when invisiblebread has no bread Pain Train (to get alt tags) } // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // Drugs and Wires elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { function about() { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "Alt: $alt_text"; } } } // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $imgs = $xpath->query('//img'); $alt_text = trim($entry->getAttribute('title')); $result_html .= $entry->ownerDocument->saveXML($entry); Added BCN, Something Positive elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tags) } // Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Three Panel Soul elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // replace the