3
1
Back

($img->getAttribute('title')) { $article['content'] .= "
Alt: $alt_text
"; } } return $article; } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($imgs as $img) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // CTRL+ALT+DEL // CTRL+ALT+DEL elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Invisible.

New Pull Request