3
1
Back

Tweaking Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // And get blog $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { } if ($rel[0] == '/') { $path = ''; foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // replace the

New Pull Request