Changeset 3830:f37739d615bc for inc/public
- Timestamp:
- 08/29/18 23:56:57 (7 years ago)
- Branch:
- 2.14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.tpl.context.php
r3752 r3830 119 119 { 120 120 $args[0] = &$str; 121 $params = new ArrayObject($args);122 121 123 122 # --BEHAVIOR-- publicBeforeContentFilter 124 $res = $GLOBALS['core']->callBehavior('publicBeforeContentFilter', $GLOBALS['core'], $tag, $ params);125 $str = $ params[0];126 127 if ($ params['strip_tags']) {123 $res = $GLOBALS['core']->callBehavior('publicBeforeContentFilter', $GLOBALS['core'], $tag, $args); 124 $str = $args[0]; 125 126 if ($args['strip_tags']) { 128 127 $str = self::strip_tags($str); 129 128 } 130 if ($ params['remove_html']) {129 if ($args['remove_html']) { 131 130 $str = self::remove_html($str); 132 131 $str = preg_replace('/\s+/', ' ', $str); 133 132 } 134 if ($ params['encode_xml'] || $params['encode_html']) {133 if ($args['encode_xml'] || $args['encode_html']) { 135 134 $str = self::encode_xml($str); 136 135 } 137 136 138 if ($ params['cut_string'] > 0) {139 $str = self::cut_string($str, (integer) $ params['cut_string']);140 } 141 142 if ($ params['lower_case']) {137 if ($args['cut_string'] > 0) { 138 $str = self::cut_string($str, (integer) $args['cut_string']); 139 } 140 141 if ($args['lower_case']) { 143 142 $str = self::lower_case($str); 144 } elseif ($ params['capitalize']) {143 } elseif ($args['capitalize']) { 145 144 $str = self::capitalize($str); 146 } elseif ($ params['upper_case']) {145 } elseif ($args['upper_case']) { 147 146 $str = self::upper_case($str); 148 147 } 149 148 150 if ($ params['encode_url']) {149 if ($args['encode_url']) { 151 150 $str = self::encode_url($str); 152 151 } 153 152 154 153 # --BEHAVIOR-- publicAfterContentFilter 155 $res = $GLOBALS['core']->callBehavior('publicAfterContentFilter', $GLOBALS['core'], $tag, $ params);156 $str = $ params[0];154 $res = $GLOBALS['core']->callBehavior('publicAfterContentFilter', $GLOBALS['core'], $tag, $args); 155 $str = $args[0]; 157 156 158 157 return $str;
Note: See TracChangeset
for help on using the changeset viewer.