inline', '/__/', ' '); foreach($PCache[$pn] as $key => $val) { if (substr($key,0,3)!="=p_") continue; $word=substr($key,3); $phrase=preg_replace('/__/', ' ', $word); if ($phrase != $word) { $searchword = $phrase . '|' . $word; } else { $searchword = $word; } $val=MarkupToUnstyled($pagename, $val); $val=preg_replace("/'/",'',$val); // If word is all uppercase (like an acronym), do not do case insensitive search // Prevents words like "it" being matched up with a term called "IT" if (preg_match('/[^A-Z]/',$word)) { $i='i'; } else { $i=''; } Markup('searchptv'.$word, ')/$i", "$1"); $HTMLStylesFmt["ptvpopspan"] = "#wikitext .ptvpop { border-bottom: 1px dashed #000; }"; $HTMLStylesFmt["ptvpopsearch"] = "#wikitext .ptvpop:hover:after { background: rgba(20,0,0,0.85) none repeat scroll 0 0;border-radius: 6px;color: #fff;content: attr(def);margin-left:10px;margin-top:-10px;padding:3px 6px 3px 6px;position: absolute;max-width:300px;font-size:small; }"; } } } ?>