3
1
Back

(to get alt tags textified. //Sites that provide images and just need alt tags if both exist achewood, gwss fix, fix for when invisiblebread has no bread 2016-05-21 17:02:21 -07:00 elseif (strpos($article["content"], "//www.vgcats.com/comics/?strip_id=") !== FALSE) { // SBMC elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Poly In Pictures elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Questionable Content (cleanup elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); } elseif (strpos($alt_text, $title_text) !== False) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] .= "
Alt: " . $article['id']; $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { foreach ($imgs as $img) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $base.$rel; if ($rel[0] == '/') { } /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ } /* dirty absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re .

New Pull Request