3
1
Back

$result_html = ''; foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $article['content'] = $img; } } if(ADD_IDS){ $article['content'] .= "

$orig_content

"; //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("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // And get blog entry $entries = $xpath->query("//div[@id='signoff-wrapper']"); .

New Pull Request