<?php

/**
 * The config file is optional. It accepts a return array with config options
 * Note: Never include more than one return statement, all options go within this single return array
 * In this example, we set debugging to true, so that errors are displayed onscreen. 
 * This setting must be set to false in production.
 * All config options: https://getkirby.com/docs/reference/system/options
 */
return [
    'debug' => true,
    'languages' => true,
    'yaml.handler' => 'symfony', // already makes use of the more modern Symfony YAML parser: https://getkirby.com/docs/reference/system/options/yaml (will become the default in a future Kirby version)
    'panel.vue.compiler' => true,

    'date'  => [
        'handler' => 'intl'
    ],

    'cache'  => [
        'pages' => [
            'active' => false
        ]
    ],

    'panel' => [
        //'css' => 'assets/css/custom-panel.css'
    ],


    /***
     * 
     * srcset thumbs
     * 
     */

    'thumbs' => [
        'srcsets' => [
            'default' => [
                '375w'  => ['width' => 375, 'quality' => 80],
                '600w'  => ['width' => 600, 'quality' => 80],
                '900w'  => ['width' => 900, 'quality' => 80],
                '1080w' => ['width' => 1080, 'quality' => 80],
                '1440w' => ['width' => 1440, 'quality' => 80],
                '1600w' => ['width' => 1600, 'quality' => 80],
                '1920w' => ['width' => 1920, 'quality' => 80]
            ],
            'avif' => [
                '375w'  => ['width' => 375, 'format' => 'avif', 'quality' => 80],
                '600w'  => ['width' => 600, 'format' => 'avif', 'quality' => 80],
                '900w'  => ['width' => 900, 'format' => 'avif', 'quality' => 80],
                '1080w' => ['width' => 1080, 'format' => 'avif', 'quality' => 80],
                '1440w' => ['width' => 1440, 'format' => 'avif', 'quality' => 80],
                '1600w' => ['width' => 1600, 'format' => 'avif', 'quality' => 80],
                '1920w' => ['width' => 1920, 'format' => 'avif', 'quality' => 80],
            ],
            'webp' => [
                '375w'  => ['width' => 375, 'format' => 'webp', 'quality' => 80],
                '600w'  => ['width' => 600, 'format' => 'webp', 'quality' => 80],
                '900w'  => ['width' => 900, 'format' => 'webp', 'quality' => 80],
                '1080w' => ['width' => 1080, 'format' => 'webp', 'quality' => 80],
                '1440w' => ['width' => 1440, 'format' => 'webp', 'quality' => 80],
                '1600w' => ['width' => 1600, 'format' => 'webp', 'quality' => 80],
                '1920w' => ['width' => 1920, 'format' => 'webp', 'quality' => 80],
            ],
        ]
    ],

    /***
     * 
     * cookieconsent
     * 
     */

    'zephir.cookieconsent' => [
        'root' => '#cc-container',
        'revision' => 1,
        'autoShow' => true,
        'disablePageInteraction' => true,
        'categories' => [
            'necessary' => [
                'enabled' => true,
                'readOnly' => true
            ],
            'experience' => [
                'enabled' => false,
                'readOnly' => false
            ],
            'measurement' => false,
            'functionality' => [
                'enabled' => false,
                'readOnly' => false
            ],
            'marketing' => false
        ],
        /*  'translations' => [
            'de' => require_once(__DIR__ . '/../cc-translations/de.php'),
            'en' => require_once(__DIR__ . '/../cc-translations/en.php'),
            ],  */
        'language' => [
            'locale' => 'de',
            'direction' => 'ltr'
        ],
    ],

    /***
     * 
     * Kirby SEO
     * 
     */
    'tobimori.seo.lang' => 'de_DE',
    'tobimori.seo.canonicalBase' => 'https://impulsefestival.de',
    'tobimori.seo.sitemap' => [
        'active' => true,
        'excludeTemplates' => ['error', 'search'], // Exclude templates from sitemap
        'changefreq' => 'weekly', // Change frequency, can be a string or a function
    ],
    'tobimori.seo.robots' => [
        'sitemap' => 'https://impulsefestival.de/sitemap.xml',
        'active' => true,
        'content' => [
            '*' => [
                'Allow' => ['/media'],
                'Disallow' => ['/kirby', '/panel', '/content', '/site']
            ],
            'WebReaper' => [],
            'WebCopier' => [],
            'Offline Explorer' => [],
            'HTTrack' => [],
            'Microsoft.URL.Control' => [],
            'EmailCollector' => [],
            'penthesilea' => ['Disallow' => ['/']],
        ]
    ],
];
