Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
15
site/plugins/helpers/index.php
Normal file
15
site/plugins/helpers/index.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
function layoutsColumnsToRows($layouts) {
|
||||
$rows = [];
|
||||
foreach ($layouts as $layout) {
|
||||
foreach ($layout->columns() as $column) {
|
||||
$blockIndex = 0;
|
||||
foreach ($column->blocks() as $block) {
|
||||
$rows[$blockIndex][] = $block->text();
|
||||
$blockIndex++;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue