changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / markup / braceabbr.php
1 <?php
2
3 /*
4    As seen in »Textile«, this plugin provides markup for <abbr> using:
5    "TEA(The Explained Abbreviaton)" in any page.
6 */
7
8 $ewiki_plugins["format_source"][] = "ewiki_format_src_brace_abbr";
9
10 function ewiki_format_src_brace_abbr(&$src) {
11    
12    $src = preg_replace(
13       "/\b([A-Z]{2,10})\s?\([^([\])]{5,50}\)/se", 
14       " '<abbr title=\"~[' . urlencode(stripslashes('$2')) .
15         ']\">$1</abbr>' ",
16       $src
17    );
18 }
19
20 ?>