3
1
Back

= $xpath->query($query); $result_html = ''; $orig_src = $entry->getAttribute('src'); $result_html .= "Alt: " . $img->getAttribute('title') . ""; } } if (ADD_IDS) { $article['content'] .= "Alt: " . $article['id']; } return $article; } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { foreach ($article['debug'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Added The Trenches; yet more code style tweaking Added The Trenches; yet more code style tweaking Added The Trenches; yet more code style tweaking elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Awkward Zombie // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content.

New Pull Request