Labels Milestones
BackNon-browser users if (preg_match("@.*(
" . $entry->textContent . "
"; } } function mangle_article($article) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Pain Train (to get alt tag) elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] .= "$orig_content"; // Awkward Zombie $orig_content = strip_tags($article['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 $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Wondermark (alt tag already present elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } elseif ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } } } // Scenes From A Multiverse Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // replace the