[TIDY] ignore license file, remove old stuff
This commit is contained in:
parent
702483e599
commit
6c0770b60f
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/site/accounts
|
/site/accounts
|
||||||
/site/cache
|
/site/cache
|
||||||
|
/site/config/.license
|
||||||
/site/sessions
|
/site/sessions
|
||||||
/media
|
/media
|
||||||
/content
|
/content
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
<?php
|
|
||||||
# from https://getkirby.com/docs/cookbook/extensions/columns-in-kirbytext
|
|
||||||
# copied at 2021-01-23
|
|
||||||
|
|
||||||
Kirby::plugin('kirby/columns', [
|
|
||||||
'hooks' => [
|
|
||||||
'kirbytags:before' => function ($text, array $data = []) {
|
|
||||||
|
|
||||||
$text = preg_replace_callback('!\(columns(…|\.{3})\)(.*?)\((…|\.{3})columns\)!is', function($matches) use($text, $data) {
|
|
||||||
|
|
||||||
$columns = preg_split('!(\n|\r\n)\+{4}\s+(\n|\r\n)!', $matches[2]);
|
|
||||||
$html = [];
|
|
||||||
$classItem = $this->option('kirby.columns.item', 'column');
|
|
||||||
$classContainer = $this->option('kirby.columns.container', 'columns');
|
|
||||||
|
|
||||||
foreach ($columns as $column) {
|
|
||||||
$html[] = '<div class="' . $classItem . '">' . $this->kirbytext($column, $data) . '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
return '<div class="' . $classContainer . '">' . implode($html) . '</div>';
|
|
||||||
|
|
||||||
}, $text);
|
|
||||||
|
|
||||||
return $text;
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
|
||||||
]);
|
|
Loading…
Reference in a new issue