3
1
Back

Playing at the first // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); Assorted updates Assorted updates From 4675f71e05fc19d3608ee6e5061bbe79ae432fb7 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add splits and labels to get what game it's about $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } // Wondermark (alt tag already present) // Wondermark (alt tag already present) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } Dead Philosophers 2015-02-25 15:05:54 -08:00 // Poorly Drawn Lines elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = new DOMXPath($doc); } function hook_render_article($article) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $new_src = $this->rel2abs($orig_src.

New Pull Request