| version 1.21, 2006/06/29 20:57:18 |
version 1.22, 2006/07/07 09:15:44 |
| Line 72 function ezin_get_special_tags_flags($st |
|
| Line 72 function ezin_get_special_tags_flags($st |
|
| preg_match('|<author-link\s[^>]+>|i', $str) && $ret .= 'U'; |
preg_match('|<author-link\s[^>]+>|i', $str) && $ret .= 'U'; |
| preg_match('|<section-link\s[^>]+>|i', $str) && $ret .= 'S'; |
preg_match('|<section-link\s[^>]+>|i', $str) && $ret .= 'S'; |
| preg_match('|<article-link\s[^>]+>|i', $str) && $ret .= 'A'; |
preg_match('|<article-link\s[^>]+>|i', $str) && $ret .= 'A'; |
| |
preg_match('|<page-link\s[^>]+>|i', $str) && $ret .= 'A'; // same as articles |
| preg_match('|<include\s[^>]+>|i', $str) && $ret .= 'I'; |
preg_match('|<include\s[^>]+>|i', $str) && $ret .= 'I'; |
| return $ret; |
return $ret; |
| } /* }}} */ |
} /* }}} */ |
| Line 198 function ezin_handle_special_tags(&$str, |
|
| Line 199 function ezin_handle_special_tags(&$str, |
|
| $pattern[] = '|<article-link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<article-link\s+([^>\s]+)([^>]*)>|i'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
| |
$pattern[] = '|<page-link\s+([^>\s]+)([^>]*)>((?:(?!<page-link).){0,499}?)</page-link>|si'; |
| |
$pattern[] = '|<page-link\s+([^>\s]+)([^>]*)>|i'; |
| |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
| |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'U') !== false) { /* {{{ */ |
if (strpos($mask, 'U') !== false) { /* {{{ */ |
| $sub_url = $link_file_type ? 'author.php?' : '?ezin_author_id='; |
$sub_url = $link_file_type ? 'author.php?' : '?ezin_author_id='; |