3
1
Back

// $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Two Lumps // Two Lumps elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train alt tag, Alice Grove bigger img Pain Train (to get alt tag) elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions // PhD Unknown elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] .= $aftercomic; } } // Joy of Tech elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] .= "
Alt: " . $article['id']; } return $article; } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query($query); $result_html = ''; $orig_src = $entry->getAttribute('src'); $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debug']) { } module external_direction_indicator() { if(pointy_external_indicator == true module set_screw_hole() { if(set_screw == true } module external_direction_indicator() { if(pointy_external_indicator == true } module smoothing() { // Girls with Slingshots elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // Poorly Drawn Lines elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $doc.

New Pull Request