Labels Milestones
Back(some) stages. Needs a _big_ knob, these are some setup variables... You probably won't need to call out for) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Drugs and Wires drugs & wires, pilotside 2018-11-20 08:29:13 -08:00 // Poorly Drawn Lines elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } Clean up code formatting; added a few comics; standardized.
New Pull Request