3
1
Back

= $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Drugs and Wires elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && // Cyanide & Happiness elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // And get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Jesus & Mo elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src.

New Pull Request