3
1
Back

Preg_replace('#(width|height)="150"#', '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = new DOMDocument(); $xpath = $this->get_xpath_dealie($article['link']); // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= $aftercomic; } } } } $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= $entry->ownerDocument->saveXML($entry); Added BCN, Something Positive elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // Dilbert elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $article; } function rel2abs($rel, $base) { if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src.

New Pull Request