3
1
Back

Alt or title tag. Function alt_textify($article, $doc = NULL) { if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { } function hook_render_article($article) { try { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article($article) { return $this->mangle_article($article); } function hook_render_article($article) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } // Joy of Tech Scenes From A Multiverse (to get alt tags if (preg_match("@.*()@", $article['content'], $matches)) { if ($img->getAttribute('title')) { $article['content'] = $img_tag . $article['content']; } // Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Something Positive elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // The Better To Find You With (http://sorcery101.net/) elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // CTRL+ALT+DEL // Three Panel Soul elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } Various updates, additions Fix for two different ranges (e.g. 0-2.5v / 0-5v Gate out, with switch 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 elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*( New Pull Request