3
1
Back

For if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; } } // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } // Camp Weedonwantcha elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Drugs and Wires elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Three Panel Soul elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { //No matches if ($img->getAttribute('title')) { // PhD Unknown // Robot Hugs $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { $article['content'] .= "Alt: $alt_text.

New Pull Request