1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-15 17:44:17 +02:00

Themes: getTemplatesBlueprints() - now it is possible to get blueprint title field

This commit is contained in:
Awilum
2018-12-20 02:34:04 +03:00
parent 29d609afdc
commit 5a7e0fecc1

View File

@@ -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'];
}
}
}