From afdaa8c169fc9289e6ec29852e71ecae5babd38b Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 16 Dec 2018 23:23:04 +0300 Subject: [PATCH] Code refactoring and cleanup --- flextype/Content.php | 6 ++++++ flextype/Plugins.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/flextype/Content.php b/flextype/Content.php index c2a36a34..7321c7ee 100755 --- a/flextype/Content.php +++ b/flextype/Content.php @@ -212,8 +212,12 @@ class Content /** * Get pages * + * // Get list of subpages for page 'projects' * $pages = Content::getPages('projects'); * + * // Get list of subpages for page 'projects' and order by date and order type DESC + * $pages = Content::getPages('projects', false, 'date', 'DESC'); + * * @access public * @param string $url Page url * @param bool $raw Raw or not raw content @@ -316,6 +320,8 @@ class Content /** * Front matter parser * + * $content = Content::frontMatterParser($content); + * * @param string $content Content to parse * @access public * @return array diff --git a/flextype/Plugins.php b/flextype/Plugins.php index 84a42b99..3d623cea 100755 --- a/flextype/Plugins.php +++ b/flextype/Plugins.php @@ -168,7 +168,7 @@ class Plugins 'mk' => 'македонски јазик', 'mn' => 'монгол', 'ce' => 'нохчийн мотт', - 'ru' => 'русский язык', + 'ru' => 'Русский язык', 'sr' => 'српски језик', 'tt' => 'татар теле', 'tg' => 'тоҷикӣ',