3
1
Back

|| strpos($article['title'], $title_text) !== false){ $text_element = $doc->createElement("i", $title_text); } elseif (strpos($alt_text, $title_text) !== False) { if (strpos($article["content"], "bonus panel!") !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { $xpath = new DOMXpath($doc); $vgcats_url_node = $url_xpath->query("//a[contains(@href, 'strip_id')]")->item(0); } $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Joy of Tech // Joy of Tech } // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { Clean up code.

New Pull Request