test
This commit is contained in:
parent
4b6540dfcd
commit
965c015c2c
22 changed files with 396 additions and 299 deletions
|
|
@ -5,12 +5,21 @@ class ProjectPage extends Page {
|
|||
$steps = [];
|
||||
|
||||
foreach ($this->children() as $child) {
|
||||
$files = [];
|
||||
|
||||
if ($child->stepName() == 'clientBrief') {
|
||||
foreach ($child->moodboard()->toFiles() as $file) {
|
||||
$files[] = getFileData($file);
|
||||
}
|
||||
}
|
||||
|
||||
$steps[] = [
|
||||
'text' => $child->title()->value(),
|
||||
'value' => $child->stepName()->value(),
|
||||
'index' => $child->stepIndex()->value(),
|
||||
'modified' => $child->modified('Y-MM-dd'),
|
||||
'uri' => $child->uri()
|
||||
'uri' => $child->uri(),
|
||||
'files' => $files
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue