3
1
Back

$this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Two Lumps elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $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'] = $doc->saveXML(); } // Joy of Tech // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; // $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $img; } Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Awkward Zombie // Awkward Zombie $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } //Sites that provide images and just need alt tags textified. $article['content'] .= "

" . $entry->textContent . "

"; } } .

New Pull Request