3
1
Back

334 lines if ($bread) { $bread_page_url = $bread->getAttribute('href'); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $imgs = $xpath->query('//img'); $alt_text = $entry->getAttribute('title'); $alt_text = $entry->getAttribute('alt'); $alt_text = $entry->getAttribute('title'); $alt_text = $entry->getAttribute('title'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } /* OotS uses some kind of odd LFO. Current draw From.

New Pull Request