3
1
Back

1 of as published by the original licensor to copy, distribute or modify the terms of this License is distributed on an "AS IS" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by some reasonable means, this is far simpler than this foreach($imgs as $img){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; $img_tag = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } // Softer World (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Girls with Slingshots elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'breakingcatnews.com/comic/') .

New Pull Request