3
1
Back

Lines } Pain Train (to get alt tag) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Dead Philosophers elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags if both exist achewood, gwss fix, fix for when invisible bread has no bread function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query($query); $result_html = ''; } /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(alt_textify($article); if (GDORN_DEBUG && $article['debug']) { foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $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['debugging']) { foreach ($article['debug'] as $msg) { $article['content'] .= "
Error processing via _comics plugin!" . $e->getMessage(); function mangle_article($article) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags) } // Cyanide & Happiness elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) .

New Pull Request