Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
16
site/controllers/projects.php
Normal file
16
site/controllers/projects.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
return function ($site, $pages, $page) {
|
||||
$projects = $page->children()->published();
|
||||
|
||||
if (param('type')) {
|
||||
$projects = $projects->filterBy('category', 'categories/'.param('type'), ',');
|
||||
}
|
||||
|
||||
return array(
|
||||
'ptemplate' => $page->intendedTemplate(),
|
||||
'projects' => $projects,
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue