3
1
Back

Sounds like three 5-rolls before the first if(preg_match("@.*()@", $article['content'], $matches)){ if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "
ID: " . $article['id']; } return $article; } $article = $this->alt_textify($article); $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } // PhD Unknown // Robot Hugs $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $article['content'] = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $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.

New Pull Request