mirror of
https://github.com/flextype/flextype.git
synced 2025-08-09 06:36:52 +02:00
Merge branch 'dev'
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Flextype
|
||||

|
||||

|
||||

|
||||
|
||||
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)
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -22,7 +22,7 @@ class Flextype
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '0.7.0';
|
||||
const VERSION = '0.7.1';
|
||||
|
||||
/**
|
||||
* An instance of the Flextype class
|
||||
|
@@ -173,6 +173,17 @@ class Plugins
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get locales.
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public static function getLocales()
|
||||
{
|
||||
return Plugins::$locales;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Plugins instance.
|
||||
*
|
||||
|
Reference in New Issue
Block a user