1
0
Fork 0

[TIDY] ignore license file, remove old stuff

This commit is contained in:
Jannik Beyerstedt 2021-01-24 23:24:04 +01:00
parent 702483e599
commit 6c0770b60f
2 changed files with 2 additions and 29 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -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;
}
]
]);