3
1
Back

Lines 720296ca7c Pain Train (to get alt tag) // Achewood (alt tag) // Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // $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[@id="aftercomic"]//img)', $article); $article['content'] = $img_tag . $article['content']; } Added BCN, Something Positive $alt_text = $entry->getAttribute('title'); $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // } // Dilbert // Dilbert elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // only keep everything starting at the first } // Scenes From A Multiverse (to get alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = preg_replace("@@", '', $article['content']); } .

New Pull Request