Esempio n. 1
0
 function do_inline($page, $param1, $param2)
 {
     $id = htmlspecialchars(trim($param1));
     $html = convert_inline($param2, $page->getpagename());
     $str = mb_eregi_replace('(?:<a\\s.*?>|</a>)', '', $html);
     return "<a href=\"#{$id}\">" . $str . '</a>';
 }
Esempio n. 2
0
 function do_inline($page, $param1, $param2)
 {
     $url = SCRIPTURL . '?' . htmlspecialchars($param1);
     if (trim($param2) == '') {
         $alias = htmlspecialchars($url);
     } else {
         $alias = mb_eregi_replace('(?:<a\\s.*?>|</a>)', '', convert_inline($param2, $page->getpagename()));
     }
     return "<a href=\"{$url}\">{$alias}</a>";
 }
Esempio n. 3
0
 function do_inlinetag($page, $param1, $param2)
 {
     static $list = array('href', 'title', 'target');
     $arg = tagparam2array($param1);
     $array = array();
     foreach ($list as $key) {
         if (isset($arg[$key])) {
             $array[] = htmlspecialchars($key) . '="' . htmlspecialchars($arg[$key]) . '"';
         }
     }
     $html = convert_inline($param2, $page->getpagename());
     $str = mb_eregi_replace('(?:<a\\s.*?>|</a>)', '', $html);
     $attr = join(' ', $array);
     return "<a {$attr}>{$str}</a>";
 }
Esempio n. 4
0
 function do_inline($page, $param1, $param2)
 {
     $size = htmlspecialchars(trim($param1));
     return "<span style=\"font-size: {$size}\">" . convert_inline($param2, $page->getpagename()) . '</span>';
 }
Esempio n. 5
0
 function do_inline($page, $param1, $param2)
 {
     $color = htmlspecialchars(trim($param1));
     return "<span style=\"color: {$color}\">" . convert_inline($param2, $page->getpagename()) . '</span>';
 }
Esempio n. 6
0
 function do_inline($page, $param1, $param2)
 {
     return "<del>" . convert_inline($param2, $page->getpagename()) . '</del>';
 }