/**
  * Set post excerpt
  *
  * @param int $excLength
  *        	Excerpt length in words
  * @param string $moreText
  *        	More text to be displayed after post excerpt
  * @author Panagiotis Vagenas <*****@*****.**>
  * @since 1.0.0
  */
 public function setExcerpt($excLength, $moreText)
 {
     if (!empty($this->post->post_excerpt)) {
         $exc = $this->post->post_excerpt;
     } else {
         $exc = $this->post->post_content;
     }
     $exc = strip_shortcodes($exc);
     $exc = str_replace(']]>', ']]&gt;', $exc);
     $exc = wp_strip_all_tags($exc);
     $size = $this->options->getExcFontSize();
     $color = $this->options->getExcColor();
     $fontColor = $color !== '#ffffff' ? ' color: ' . $color . '; ' : '';
     $fontSize = $size !== 0 ? ' font-size: ' . $size . 'px; ' : '';
     $openTag = '<span style="' . $fontColor . $fontSize . '">';
     $closeTag = '</span>';
     $tokens = explode(' ', $exc, $excLength + 1);
     if (count($tokens) > $excLength) {
         array_pop($tokens);
     }
     array_push($tokens, ' ' . $moreText);
     $exc = implode(' ', $tokens);
     $this->excerpt = $openTag . $exc . $closeTag;
 }