3
1
Back

$img){ if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->textContent . "

"; } } if ($alt_text && !$title_text){ Various updates, additions elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // SBMC elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // PhD Unknown elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $img; } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && // Cyanide & Happiness elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { // only keep everything starting at the first // only keep everything starting at the first layer will be.

New Pull Request