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:
@@ -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'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user