moreCSS/_prepend.php

30 lines
655 B
PHP
Raw Normal View History

2022-12-31 13:28:34 +00:00
<?php
/**
* @brief moreCSS, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Osku and contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')) {
return null;
}
dcCore::app()->url->register(
basename(__DIR__),
'morecss.css',
'^morecss\.css(.*?)$',
function ($args) {
header('Content-Type: text/css; charset=UTF-8');
echo "/* CSS for plugin moreCss */ \n";
echo (string) base64_decode((string) dcCore::app()->blog->settings->get('themes')->get('morecss_min'));
exit;
}
);