Labels Milestones
Back$this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Three Panel Soul elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Three Panel Soul elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // replace the (containing project wonderful) with nothing $article['content'] = $matches[1]; } } // Poly In Pictures elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Assorted updates jesus and mo, maintenance if ($alt_text == $title_text){ } elseif (strpos($title_text, $alt_text) !== False) { $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ $text_element = $doc->createElement("i", $title_text); } else { // Something Positive elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { if (preg_match("@.*(