3
1
Back

(!$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[@class="post"]//img)', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } Pain Train (to get alt tag) elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "
Alt: $alt_text
"; } } $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users) function about.

New Pull Request