3
1
Back

Notes Change C13 to 10 nF v1.1 define("GDORN_DEBUG", False); class _comics extends Plugin { function rel2abs($rel, $base $path = ''; $orig_src = $entry->getAttribute('src'); $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debug']) { foreach ($article['debugging'] as $msg) { if ($rel[0] == '#' || $rel[0] == '?') { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function mangle_article($article) { // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } Added The Trenches; yet more code style tweaking Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = false; pokey_outey = [pokey_outey_value, pokey_outey_value,0]; // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } else if (bottom_element=="switch") { } //Sites that provide images and just need alt tags textified. $article['content'] .

New Pull Request