3
1
Back

{ $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; } } } } //Sites that provide images and just need alt tags foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Chainsawsuit // Chainsawsuit elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } achewood, gwss fix, fix for when invisiblebread has no bread elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // Breaking Cat News $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } } .

New Pull Request