3
1
Back

"//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Wondermark (alt tag already present) // Wondermark (alt tag already present) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // CTRL+ALT+DEL // Three Panel Soul elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Something Positive elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Girls with Slingshots // CTRL+ALT+DEL // Three Panel Soul elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Awkward Zombie elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { //also get the blog $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($imgs as $img) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, //and sometimes necessary for old.

New Pull Request