3
1
Back

!== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); // elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a few due to referer checks elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Some comics supported elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { if (!$title_text || $title_text == $article['title'] || strpos($article['title.

New Pull Request