Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
28
site/controllers/news.php
Normal file
28
site/controllers/news.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
// return function ($site, $pages, $page) {
|
||||
|
||||
// $gridField = $page->gridLayout()->toStructure()->table();
|
||||
// $gridLayout = '[';
|
||||
|
||||
// if ($page->gridLayout()->isNotEmpty()) {
|
||||
// foreach ($gridField as $key => $tableRow) {
|
||||
// $gridLayout .= '[';
|
||||
// foreach ($tableRow as $key2 => $tableCell) {
|
||||
// $gridLayout .= $tableCell->int();
|
||||
// if($key2 < $tableRow->count() - 1) $gridLayout .= ',';
|
||||
// }
|
||||
// $gridLayout .= ']';
|
||||
// if($key < $gridField->count() - 1) $gridLayout .= ',';
|
||||
// }
|
||||
// }
|
||||
// $gridLayout .= ']';
|
||||
|
||||
// return array(
|
||||
// 'ptemplate' => $page->intendedTemplate(),
|
||||
// 'artists' => $site->index()->published()->filterBy('intendedTemplate', 'artist'),
|
||||
// 'gridLayout' => $gridLayout
|
||||
// );
|
||||
// }
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue