3
1
Back

10156 Card edge socket with amplifier to handle both title and alt tags elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); $article['content'] .= "" . $entry->textContent . "

"; } } if ($rel[0] == '/') { $path = ''; foreach ($entries as $entry){ $article['content'] .= $aftercomic; $article['content'] .= $aftercomic; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } /* absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready!

New Pull Request