3
1
Back

"//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } function mangle_article($article) { if (!$alt_text || strpos($article['title'], $alt_text) !== False) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } Assorted updates elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // SBMC elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Breaking Cat News $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title text //also get the blog //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry.

New Pull Request