3
1
Back

Foreach ($article['debug'] as $msg) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $img; } } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // PhD Unknown // Robot Hugs elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // And get blog elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // And get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ foreach ($entries as $entry) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Two Lumps elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) .

New Pull Request