3
1
Back

$scheme.'://'.$abs; } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present foreach($imgs as $img){ // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } else { // Girls with Slingshots elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Awkward Zombie elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } // PhD Unknown elseif (strpos($article["link.

New Pull Request