3
1
Back

Hole for shaft jesus and mo, maintenance Fixes for CAD and sorcery101 Fix 3-panel soul drugs & wires, pilotside elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users 1e6cc98f41 Various updates, additions Various updates, additions $alt_element = $doc->createElement("i", $title_text); } function hook_render_article_cdm($article) { return $rel; } /* absolute URL is ready! */ Assorted updates elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Something Positive Some comics supported Some comics supported elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // Joy of Tech * Girls with Slingshots elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'png')]", $article); } // Scenes From A Multiverse (to get alt tags textified. $article['content'] .= "
Alt: " . $article['id']; } function get_img_tags($xpath, $query, $article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); $new_src = $this->rel2abs($orig_src, $base_url); foreach($attributes as $attrib_name => $node){ } function get_xpath_dealie($link) { } //Sites that provide images and just need alt.

New Pull Request