| version 1.25, 2006/07/20 09:48:21 |
version 1.26, 2006/08/06 09:27:27 |
| Line 78 function ezin_get_special_tags_flags($st |
|
| Line 78 function ezin_get_special_tags_flags($st |
|
| 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('|<page-link\s[^>]+>|i', $str) && $ret .= 'A'; // same as articles |
| |
preg_match('|<article-print-link\s[^>]+>|i', $str) && $ret .= 'P'; |
| |
preg_match('|<print-link\s[^>]+>|i', $str) && $ret .= 'P'; |
| preg_match('|<include\s[^>]+>|i', $str) && $ret .= 'I'; |
preg_match('|<include\s[^>]+>|i', $str) && $ret .= 'I'; |
| return $ret; |
return $ret; |
| } /* }}} */ |
} /* }}} */ |
| Line 209 function ezin_handle_special_tags(&$str, |
|
| Line 211 function ezin_handle_special_tags(&$str, |
|
| $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>'; |
| } /* }}} */ |
} /* }}} */ |
| |
if (strpos($mask, 'P') !== false) { /* {{{ */ |
| |
$sub_url = $link_file_type ? 'print.php?' : '?ezin_print=1&ezin_article_id='; |
| |
$pattern[] = '|<article-print-link\s+([^>\s]+)([^>]*)>((?:(?!<article-print-link).){0,499}?)' |
| |
.'</article-printlink>|si'; |
| |
$pattern[] = '|<article-print-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>'; |
| |
$pattern[] = '|<print-link\s+([^>\s]+)([^>]*)>((?:(?!<print-link).){0,499}?)</print-link>|si'; |
| |
$pattern[] = '|<print-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='; |
| $pattern[] = '|<author-link\s+([^>\s]+)([^>]*)>((?:(?!<author-link).){0,499}?)</author-link>|si'; |
$pattern[] = '|<author-link\s+([^>\s]+)([^>]*)>((?:(?!<author-link).){0,499}?)</author-link>|si'; |