diff --git a/plugins/01-PicoParsePagesContent.php b/plugins/01-PicoParsePagesContent.php deleted file mode 100644 index 6611c90..0000000 --- a/plugins/01-PicoParsePagesContent.php +++ /dev/null @@ -1,40 +0,0 @@ -prepareFileContent($pageData['raw_content'], $pageData['meta']); - $pageData['content'] = $this->parseFileContent($pageData['content']); - } - } -} diff --git a/plugins/02-PicoExcerpt.php b/plugins/02-PicoExcerpt.php deleted file mode 100644 index 00cae14..0000000 --- a/plugins/02-PicoExcerpt.php +++ /dev/null @@ -1,81 +0,0 @@ -createExcerpt( - strip_tags($pageData['content']), - $this->getConfig('excerpt_length') - ); - } - } - - /** - * Helper function to create a excerpt of a string - * - * @param string $string the string to create a excerpt from - * @param int $wordLimit the maximum number of words the excerpt should be long - * @return string excerpt of $string - */ - protected function createExcerpt($string, $wordLimit) - { - $words = explode(' ', $string); - if (count($words) > $wordLimit) { - return trim(implode(' ', array_slice($words, 0, $wordLimit))) . '…'; - } - return $string; - } -}