Helper::get_excerpt( string $before = '<div class="description">', string $after = '</div>', bool $echo = true )
Parameters
- $before
-
(Optional)
Default value: '<div class="description">'
- $after
-
(Optional)
Default value: '</div>'
- $echo
-
(Optional)
Default value: true
Return
(string|void)
Source
File: includes/libs/themes/helper.class.php
public static function get_excerpt( $before = '<div class="description">', $after = '</div>', $echo = true ){ $video = self::current_video_post(); if( !$video ){ return; } $options = self::get_player_options(); if( !isset( $options['show_excerpts'] ) || !$options['show_excerpts'] ){ return; } $excerpt = self::trim_excerpt(); if( empty( $excerpt ) ){ return; } if( $echo ){ echo $before . $excerpt . $after; } return $before . $excerpt . $after; }