3
1
Back

If (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "
" . $msg . ""; $img_tag = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Poly In Pictures elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] = preg_replace("@@", '', $article['content']); // Alice Grove (get bigger image) elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); // Awkward Zombie elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } if(ADD_IDS){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL is ready! */ } function.

New Pull Request