Labels Milestones
BackTrim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } } } // Scenes From A Multiverse (to get alt tags textified. If(ADD_IDS){ $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { $article['content'] = $img_tag . $article['content']; } // Dead Philosophers elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Invisible Bread (make the bread visible) $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // Chainsawsuit elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Added The Trenches; yet more code style tweaking elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = new DOMDocument(); // replace the