Changeset 1472719
- Timestamp:
- 08/12/2016 02:15:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
responsive-portfolio-gallery/tags/1.1/shortcodes/shortcodes.php
r1472715 r1472719 264 264 265 265 public function the_excerpt_max_charlength($charlength) { 266 $result = ""; 266 267 $excerpt = get_the_excerpt(); 267 268 $charlength++; … … 272 273 $excut = - ( mb_strlen( $exwords[ count( $exwords ) - 1 ] ) ); 273 274 if ( $excut < 0 ) { 274 echomb_substr( $subex, 0, $excut );275 $result .= mb_substr( $subex, 0, $excut ); 275 276 } else { 276 echo$subex;277 $result .= $subex; 277 278 } 278 echo'[...]';279 $result .= '[...]'; 279 280 } else { 280 echo $excerpt; 281 } 281 $result = $excerpt; 282 } 283 return $result; 282 284 } 283 285 }
Note: See TracChangeset
for help on using the changeset viewer.