3
1
Back

. $article['content']; } // Something Positive // Timothy Winchester (People I Know elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Gunnerkrigg Court // Gunnerkrigg Court elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } } // Dead Philosophers elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size?) $xpath = new DOMDocument(); elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // XKCD (alt tags we don't need to call out for) $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // XKCD (alt tags we don't need to call out for if(preg_match("@.*()@", $article['content'], $matches)){ if.

New Pull Request