3
1
Back

|| strpos($article['title'], $title_text) !== False) { if (anchor_hole=="right" || anchor_hole=="both") { if (!$alt_text || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); } function hook_render_article($article) { try { return $this->mangle_article($article); } function rel2abs($rel, $base) { $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $base.$rel; } extract(parse_url($base)); $path = ''; } /* absolute URL is ready! */ Assorted updates Assorted updates elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $article['content'] = $img; } } // XKCD (alt tags we don't lose it Futura Heavy BT.ttf => Panels/Futura Heavy BT.ttf → Panels/Futura Heavy BT.ttf | Bin 0 -> 30552 bytes From 8a9583e7df3009c52174c16ce501729b9c90d7ac Mon Sep 17 00:00:00 2001 Subject: [PATCH] jesus and mo, maintenance if ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); } elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // label the whole thing? // surface("FIREBALL VCO.png", center=true, invert=false); Binary files /dev/null and b/Images/retrigger.png differ From 2ce1144628c5b348c6a2166a7b906cc45e80a76d Mon Sep 17 00:00:00 2001 Subject: [PATCH 2/2] Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users.

New Pull Request