From 5a7e0fecc1bb5866c1262c150cc50328b0f3b516 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 20 Dec 2018 02:34:04 +0300 Subject: [PATCH] Themes: getTemplatesBlueprints() - now it is possible to get blueprint title field --- flextype/Themes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flextype/Themes.php b/flextype/Themes.php index 1d9105ad..ba218c87 100644 --- a/flextype/Themes.php +++ b/flextype/Themes.php @@ -159,7 +159,8 @@ class Themes foreach ($_blueprints as $blueprint) { if (!is_bool(Themes::_strrevpos($blueprint, '/blueprints/'))) { $blueprint_name = str_replace('.yaml', '', substr($blueprint, Themes::_strrevpos($blueprint, '/blueprints/')+strlen('/blueprints/'))); - $blueprints[$blueprint_name] = $blueprint_name; + $blueprint = YamlParser::decode(Filesystem::getFileContent($blueprint)); + $blueprints[$blueprint_name] = $blueprint['title']; } } }