3
1
Back

As $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Poorly Drawn Lines elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'comics')]", $article); } // Dilbert elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic.

New Pull Request