3
1
Back

If ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Drugs and Wires drugs & wires, pilotside Various updates, additions Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text.

New Pull Request