| 1 |
<?php |
| 2 |
|
| 3 |
class WPUPG_Template_Post_Excerpt extends WPUPG_Template_Block { |
| 4 |
|
| 5 |
public $editorField = 'postExcerpt'; |
| 6 |
|
| 7 |
public function __construct( $type = 'post-excerpt' ) |
| 8 |
{ |
| 9 |
parent::__construct( $type ); |
| 10 |
} |
| 11 |
|
| 12 |
public function output( $post, $args = array() ) |
| 13 |
{ |
| 14 |
if( !$this->output_block( $post, $args ) ) return ''; |
| 15 |
|
| 16 |
$output = $this->before_output(); |
| 17 |
$output .= '<span' . $this->style() . '>' . $this->cut_off( $post->post_excerpt ) . '</span>'; |
| 18 |
|
| 19 |
return $this->after_output( $output, $post ); |
| 20 |
} |
| 21 |
} |