3
1
Back

LICD, alter alt-textify to handle both title and alt tags foreach($imgs as $img){ foreach ($imgs as $img) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { // Joy of Tech elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Wondermark (alt tag already present elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // slider pot slit module make_step(bottom_element="switch") { // And get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // slightly complicated; the link is to tumblr, but there's a url in the appropriate comment syntax for the benefit of the Waiver for any purpose Copyright 2013-2021 Mike Bostock THIS SOFTWARE.

New Pull Request