diff --git a/CHANGELOG.md b/CHANGELOG.md index d0c03bcb..59466813 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# Flextype 0.7.1, 2018-11-17 +* Plugins: New method getLocales() added +* Content: processPage() - ability to ignore content parsing - added. + # Flextype 0.7.0, 2018-11-16 * Update Symfony YAML to 4.1.1 * Update Text Component to 1.1.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d0697d95..d6615bed 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,5 @@ ## CONTRIBUTE Flextype is an open source project and community contributions are essential to its growing and success. Contributing to the Flextype is easy and you can give as little or as much time as you want. -* Help on the [Forum.](http://forum.flextype.org) * Develop a new plugin. * Create a new theme. * Find and [report issues.](https://github.com/flextype/flextype/issues) diff --git a/README.md b/README.md index 55c65358..55569581 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Flextype -![Version](https://img.shields.io/badge/version-0.7.0-brightgreen.svg?style=flat-square) +![Version](https://img.shields.io/badge/version-0.7.1-brightgreen.svg?style=flat-square) ![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square) Flextype is Open Source, fast and flexible file-based Content Management System. @@ -60,7 +60,6 @@ gulp ## COMMUNITY Flextype is open source, community driven project, and maintained by community! -* [Forum](http://forum.flextype.org) * [Github Repository](https://github.com/flextype/flextype) * [Gitter](https://gitter.im/flextype/flextype) @@ -80,7 +79,6 @@ With Flextype you can create any project you want. ## CONTRIBUTE Flextype is an open source project and community contributions are essential to its growing and success. Contributing to the Flextype is easy and you can give as little or as much time as you want. -* Help on the [Forum.](http://forum.flextype.org) * Develop a new plugin. * Create a new theme. * Find and [report issues.](https://github.com/flextype/flextype/issues) @@ -90,7 +88,6 @@ Flextype is an open source project and community contributions are essential to ## LINKS - [Site](http://flextype.org) -- [Forum](http://forum.flextype.org) - [Documentation](http://flextype.org/documentation) diff --git a/flextype/Content.php b/flextype/Content.php index 3238e876..4324456d 100755 --- a/flextype/Content.php +++ b/flextype/Content.php @@ -313,11 +313,12 @@ class Content * $page = Content::processPage(PATH['pages'] . '/home/page.html'); * * @access public - * @param string $file_path File path - * @param string $raw Raw or not raw content + * @param string $file_path File path + * @param bool $raw Raw or not raw content + * @param bool $ignore_content Ignore content parsing * @return array|string */ - public static function processPage(string $file_path, bool $raw = false) + public static function processPage(string $file_path, bool $raw = false, $ignore_content = false) { // Get page from file $page = trim(Filesystem::getFileContent($file_path)); @@ -361,7 +362,11 @@ class Content $_page['date'] = $_page['date'] ?? date(Registry::get('system.date_format'), filemtime($file_path)); // Create page content item with $page_content - $_page['content'] = Content::processContent($page_content); + if ($ignore_content) { + $_page['content'] = $page_content; + } else { + $_page['content'] = Content::processContent($page_content); + } // Return page return $_page; diff --git a/flextype/Flextype.php b/flextype/Flextype.php index 283d022c..8389ff9b 100755 --- a/flextype/Flextype.php +++ b/flextype/Flextype.php @@ -22,7 +22,7 @@ class Flextype * * @var string */ - const VERSION = '0.7.0'; + const VERSION = '0.7.1'; /** * An instance of the Flextype class diff --git a/flextype/Plugins.php b/flextype/Plugins.php index bddf718c..23bde314 100755 --- a/flextype/Plugins.php +++ b/flextype/Plugins.php @@ -173,6 +173,17 @@ class Plugins } } + /** + * Get locales. + * + * @access public + * @return object + */ + public static function getLocales() + { + return Plugins::$locales; + } + /** * Get the Plugins instance. *