3
1
Back

False) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } // Joy of Tech elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } //Sites that provide images and just need alt tags textified. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $title_text); } elseif (strpos($title_text, $alt_text) !== false){ } elseif (strpos($title_text, $alt_text) !== false){ $text_element .

New Pull Request