[TIDY] ignore license file, remove old stuff
This commit is contained in:
parent
702483e599
commit
6c0770b60f
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
.DS_Store
|
||||
/site/accounts
|
||||
/site/cache
|
||||
/site/config/.license
|
||||
/site/sessions
|
||||
/media
|
||||
/content
|
||||
|
@ -8,4 +9,4 @@
|
|||
/video
|
||||
/publication
|
||||
|
||||
google*.html
|
||||
google*.html
|
||||
|
|
|
@ -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