3
1
Back

$this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Poorly Drawn Lines elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } //noop elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] .= "Bonus comic:" . $aftercomic . "

"; } } // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { } //Sites that provide images and just need alt tags if both.

New Pull Request