3
1
Back

'//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Invisible Bread (make the bread visible) // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // SBMC elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function hook_render_article($article) { return 2; } } // Poly In Pictures elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } Clean up code formatting; added.

New Pull Request