3
1
Back

334 lines if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // SBMC elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] .= "
" . $msg . ""; } } // Awkward Zombie elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Dilbert elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users /* absolute URL is ready! */ return $scheme.'://'.$abs; } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "
ID: " . $article['id']; } return $article; } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); .

New Pull Request