3
1
Back

$text_element = $doc->createElement("i", $title_text); } elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // SBMC elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'jpg')]", $article, "http://vgcats.com/comics/"); // Invisible Bread (make the bread visible if (preg_match("@.*(get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Dead Philosophers elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Camp Weedonwantcha elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Robot Hugs elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] .= "

" . $entry->textContent.

New Pull Request