3
1
Back

Polarity Logo, Center Positive Logo Polarity Center Positive Logo Polarity Center Positive Restriction of Hazardous Substances Directive Logo Symbol, Attention, Copper Top, Small, GNU-Logo, GNU-Head, GNU-Kopf, Copper Top, Big, Symbol, Danger, Copper Top, Big, Symbol, CC-Share Alike, Copper Top, Big, Symbol, HighVoltage, Type2, Copper Top, GNU-Logo, GNU-Head, GNU-Kopf, Copper Top, Small, Symbol, Creative Commons Attribution 3.0 Unported License. Based on https://github.com/oguzbilgic/fpd, which has broken alt tags textified. } $article = $this->alt_textify($article); if (ADD_IDS) { $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches //No matches if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } //Sites that provide images and just need alt tags textified. If(ADD_IDS){ $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debug'] as $msg) { $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } Added BCN, Something Positive elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $img_tag.

New Pull Request