3
1
Back

15, 16] if (h < four_hole_threshold) { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); } elseif (strpos($title_text, $alt_text) !== false){ $text_element = $doc->createElement("i", $title_text); } elseif (strpos($alt_text, $title_text) !== false){ } elseif (strpos($title_text, $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); } elseif (strpos($title_text, $alt_text) !== false){ } elseif ($alt_text == $title_text){ } elseif ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts.

New Pull Request