3
1
Back

(strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { if (preg_match("@.*(query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } // Camp Weedonwantcha elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } // Camp Weedonwantcha // Camp Weedonwantcha elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { if ($rel[0] == '#' || $rel[0] == '?') { return $rel; } if ($rel[0]=='#' || $rel[0]=='?') { return 2; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // Dilbert elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $doc.

New Pull Request