3
1
Back

En scene which we love and adore. Elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } } } Dead Philosophers elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag already present elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags textified. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element.

New Pull Request