<?php

defined('TYPO3') or die();

(static function() {
    /**
     * Register RTE preset and use as default
     */
    $GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['bagger_site_package'] = 'EXT:bagger_site_package/Configuration/RTE/Preset.yaml';

    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('RTE.default.preset = bagger_site_package');

    /**
     * Configure EXT:backend settings
     */
    $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['backend'] = [
       'backendFavicon' => '',
        'backendLogo' => 'EXT:bagger_site_package/Resources/Public/Images/logo.jpg',
        'loginBackgroundImage' => 'EXT:bagger_site_package/Resources/Public/Images/login.jpg',
        'loginFootnote' => 'Josef Hehmann Bagger- und Fuhrbetrieb GmbH',
        'loginHighlightColor' => '#F12B8D',
        'loginLogo' => 'EXT:bagger_site_package/Resources/Public/Images/logo.jpg',
        'loginLogoAlt' => 'Bagger Logo'
    ];
})();
