3
1
Back

(preg_match("@.*(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[@class='comic-wrap']//img[@class='comic']", $article); } // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Dinosaur Comics Cleanup $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Something Positive elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] .= "

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

"; } } // Timothy Winchester (People I Know foreach ($imgs as $img) { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] .= "
ID.

New Pull Request