Add Project view and templates
This commit is contained in:
parent
1089938956
commit
f7e7c24164
3 changed files with 104 additions and 0 deletions
13
public/site/templates/project.json.php
Normal file
13
public/site/templates/project.json.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
$project = [
|
||||
'title' => $page->title()->value(),
|
||||
'url' => $page->url(),
|
||||
'modified' => $page->modified('Y-MM-d'),
|
||||
'status' => $page->status(),
|
||||
'logo' => $page->client()->toPage()->logo()->toFile()->url()
|
||||
];
|
||||
|
||||
$data = array_merge($genericData, $project);
|
||||
|
||||
echo json_encode($data);
|
||||
1
public/site/templates/project.php
Normal file
1
public/site/templates/project.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?php snippet('generic-template') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue