From be9603a83acc985f4613a7ec45e4988d536c0cc7 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 22 Feb 2019 22:19:17 +0300 Subject: [PATCH] Flextype Core: New Fieldsets API - improvements --- flextype/Themes.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/flextype/Themes.php b/flextype/Themes.php index 56cc4b74..f7f1aae1 100644 --- a/flextype/Themes.php +++ b/flextype/Themes.php @@ -160,33 +160,6 @@ class Themes return $templates; } - /** - * Get Fieldsets for current theme - * - * @access public - * @return array - */ - public static function getFieldsets() : array - { - $fieldsets = []; - - // Get fieldsets files - $_fieldsets = Filesystem::listContents(PATH['themes'] . '/' . Registry::get('settings.theme') . '/fieldsets/'); - - // If there is any template file then go... - if (count($_fieldsets) > 0) { - foreach ($_fieldsets as $fieldset) { - if ($fieldset['type'] == 'file' && $fieldset['extension'] == 'yaml') { - $fieldset_content = YamlParser::decode(Filesystem::read($fieldset['path'])); - $fieldsets[$fieldset['basename']] = $fieldset_content['title']; - } - } - } - - // return fieldsets - return $fieldsets; - } - /** * Get the Themes instance. *