3
1
Back

$xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Joy of Tech elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { if ($img->getAttribute('title')) { // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } } function.

New Pull Request