3
1
Back

356 lines class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' ' ); } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= "
Alt: " . $article['id']; $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text Fix for when invisible bread has no bread function rel2abs($rel, $base) { function about() { return array(0.1, return array( $html, $content_type ); } /* absolute URL is ready! */ } /* OotS uses some kind of odd LFO. Photos Build notes GitHub repository https://github.com/holmesrichards/precadsr Submodules Latest commits for branch v1.1 Finish PCBs Finish PCBs d74befe391233bd8b162f7f5705c277e04d9b135 Checkpoint after converting most things to SMD From 054c37512afd84e9f4dd43316902a76ae73fd917 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Gunnerkrigg and cleanup of alt-tag-only sites Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup $entries = $xpath->query("//div[@id='blarg']/div[last.

New Pull Request