3
1
Back

($imgs as $img) { $article['content'] .= $aftercomic; } } foreach($imgs as $img){ $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } achewood, gwss fix, fix for when invisiblebread has no bread Pain Train (to get alt tags elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Wondermark (alt tag already present) // Wondermark (alt tag already present elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } elseif ($alt_text == $title_text){ } elseif (strpos($alt_text, $title_text) !== false){ $text_element = $doc->createElement("i", $title_text); } elseif (strpos($title_text, $alt_text) !== false){ } elseif (strpos($title_text, $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif ($title_text && !$alt_text){ $text_element = $doc->createElement("i", $title_text); .

New Pull Request