3
1
Back

.= "Bonus comic:" . $aftercomic . "

"; elseif (strpos($article["link"], "explosm.net/comics") !== 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'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . ""; if (ADD_IDS) { * Use this if you don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also.

New Pull Request