2016-03-31 08:37:32 +00:00
|
|
|
<?php
|
2016-10-16 09:22:05 +00:00
|
|
|
if(!function_exists('panel')) {
|
2017-08-18 23:35:03 +00:00
|
|
|
header("Content-Security-Policy: default-src 'self'; style-src 'self' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; frame-src https://www.youtube-nocookie.com; script-src 'self' 'unsafe-eval' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' 'unsafe-inline' https://jannikb.aquila.uberspace.de/piwik/; img-src 'self' data: https://jannikb.aquila.uberspace.de/piwik/");
|
2016-10-16 09:22:05 +00:00
|
|
|
}
|
2016-03-31 08:37:32 +00:00
|
|
|
//header("X-Content-Type-Options: nosniff"); // enabled at server-side
|
|
|
|
//header("X-Frame-Options: deny"); // enabled at server-side
|
|
|
|
//header("X-Xss-Protection: 1; mode=block"); // enabled at server-side
|
2016-05-31 11:56:46 +00:00
|
|
|
header("Strict-Transport-Security: max-age=31536000");
|
2016-03-31 08:37:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
License Setup
|
|
|
|
*/
|
|
|
|
c::set('license', 'K2-PRO-153c9c6accc73d9547e255a0daba8911');
|
|
|
|
|
|
|
|
/*
|
|
|
|
Kirby Configuration
|
|
|
|
*/
|
|
|
|
c::set('cache', true);
|
2016-04-27 20:48:12 +00:00
|
|
|
c::set('cache.ignore', array('sitemap', 'blog'));
|
2016-03-31 08:37:32 +00:00
|
|
|
|
2016-04-17 22:28:20 +00:00
|
|
|
c::set('smartypants', true);
|
2017-08-18 14:35:29 +00:00
|
|
|
c::set('smartypants.attr', 2); // -- for en-dash, --- for em-dash
|
2016-04-17 22:28:20 +00:00
|
|
|
c::set('smartypants.doublequote.open', '„');
|
|
|
|
c::set('smartypants.doublequote.close', '“');
|
|
|
|
|
2016-03-31 08:37:32 +00:00
|
|
|
c::set('ssl', true);
|
|
|
|
|
|
|
|
/*
|
|
|
|
Modules Configuration
|
|
|
|
*/
|
|
|
|
|
|
|
|
// plg-carousel
|
2016-04-05 16:38:00 +00:00
|
|
|
c::set('plg_carousel.enable', true);
|
|
|
|
c::set('plg_carousel.sort', 'sort'); // sortBy parameter: sort, title, etc.
|
|
|
|
c::set('plg_carousel.dir', 'asc'); // sortBy direction: asc, desc
|
2016-03-31 08:37:32 +00:00
|
|
|
|
|
|
|
// plg-masonry
|
2016-04-05 16:38:00 +00:00
|
|
|
c::set('plg_masonry.enable', true);
|
2016-04-27 20:48:12 +00:00
|
|
|
c::set('plg_masonry.width', 155);
|
2016-04-27 21:21:21 +00:00
|
|
|
c::set('plg_masonry.quality', 75);
|
2016-10-15 16:55:48 +00:00
|
|
|
c::set('plg_masonry.class', 'rounded');
|
2016-03-31 08:37:32 +00:00
|
|
|
//c::set('plg_masonry.sizelimit', 1300); // limit the source image size (long edge)
|
2016-04-05 16:38:00 +00:00
|
|
|
c::set('plg_masonry.sort', 'sort'); // sortBy parameter: sort, title, etc.
|
|
|
|
c::set('plg_masonry.dir', 'asc'); // sortBy direction: asc, desc
|
|
|
|
c::set('plg_masonry.lightbox', 'swipebox');
|
2016-03-31 08:37:32 +00:00
|
|
|
|
|
|
|
// bastians columns.php plugin from https://github.com/getkirby/plugins/tree/master/columns
|
2017-08-18 23:35:03 +00:00
|
|
|
//c::set('columns.container', 'row');
|
|
|
|
//c::set('columns.item', 'col-sm-6 columns');
|
2016-03-31 08:37:32 +00:00
|
|
|
|
|
|
|
// enhanced sitemap by Jannik Beyerstedt:
|
2016-04-22 20:57:29 +00:00
|
|
|
c::set('smap_ignoreSite', array('sitemap', 'error', 'home', 'qr', 'secret', 'test'));
|
2016-04-17 22:29:13 +00:00
|
|
|
c::set('smap_ignoreTemplate', array('carousel', 'redirect'));
|
2016-10-15 17:24:52 +00:00
|
|
|
c::set('smap_showHiddenPagesAtRootLevel', true);
|
2016-03-31 08:37:32 +00:00
|
|
|
c::set('smap_heading_visible', 'Hauptmenü');
|
|
|
|
c::set('smap_heading_invisible', 'weitere Seiten');
|
|
|
|
//c::set('smap_column_class_id', 'class="foo" id="bar"');
|
|
|
|
|
|
|
|
/*
|
|
|
|
Piwik Plugin configuration
|
|
|
|
*/
|
2017-10-01 19:10:19 +00:00
|
|
|
c::set('spicy.piwik.active', false); /* cookie notice needed! */
|
2016-03-31 08:37:32 +00:00
|
|
|
c::set('spicy.piwik.url', 'https://jannikb.aquila.uberspace.de/piwik');
|
|
|
|
c::set('spicy.piwik.id', 2);
|
2016-12-12 23:00:38 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
Routes
|
|
|
|
*/
|
|
|
|
c::set('routes', array(
|
|
|
|
array(
|
|
|
|
'pattern' => 'sitemap.xml',
|
|
|
|
'action' => function() {
|
|
|
|
return site()->visit('sitemap');
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
// redirect legacy urls:
|
|
|
|
// feature/webdesign -> webdesign
|
|
|
|
// feature/fotografie -> fotografie
|
|
|
|
// feature/fotografie/(:any) -> fotografie/(:any)
|
|
|
|
array(
|
|
|
|
'pattern' => 'feature/(:all)',
|
|
|
|
'action' => function($uid) {
|
|
|
|
if (site()->find($uid)) {
|
|
|
|
$target = site()->find($uid)->url();
|
|
|
|
header::redirect($target, 301);
|
|
|
|
}else {
|
|
|
|
go('error');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
));
|