| @@ 1187-1191 (lines=5) @@ | ||
| 1184 | } |
|
| 1185 | list($key, $str) = explode('@', $key, 2); |
|
| 1186 | ||
| 1187 | if (strpos($str, '(')) { |
|
| 1188 | list($context, $option) = explode('(', $str, 2); |
|
| 1189 | } else { |
|
| 1190 | list($context, $option) = array($str, false); |
|
| 1191 | } |
|
| 1192 | ||
| 1193 | if ($option) { |
|
| 1194 | $option = trim($option, ')(\'"`'); |
|
| @@ 695-700 (lines=6) @@ | ||
| 692 | } |
|
| 693 | case 'limit': |
|
| 694 | case 'trim_to': // http://www.movabletype.jp/documentation/appendices/modifiers/trim_to.html |
|
| 695 | if (strpos($opt, '+') !== false) { |
|
| 696 | list($len, $str) = explode('+', $opt, 2); |
|
| 697 | } else { |
|
| 698 | $len = $opt; |
|
| 699 | $str = ''; |
|
| 700 | } |
|
| 701 | if ($len === '') { |
|
| 702 | $len = 100; |
|
| 703 | } |
|