noodles/_prepend.php

34 lines
741 B
PHP
Raw Normal View History

2021-09-08 22:53:13 +00:00
<?php
/**
2021-09-08 23:05:05 +00:00
* @brief noodles, a plugin for Dotclear 2
*
* @package Dotclear
2021-09-08 23:05:05 +00:00
* @subpackage Plugin
*
2021-09-08 23:05:05 +00:00
* @author Jean-Christian Denis and contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2021-09-08 22:53:13 +00:00
2021-09-09 07:12:31 +00:00
if (!defined('DC_RC_PATH')) {
return null;
2021-09-09 07:12:31 +00:00
}
2021-09-08 22:53:13 +00:00
2021-09-09 07:12:31 +00:00
$__autoload['noodlesImg'] = dirname(__FILE__) . '/inc/lib.noodles.img.php';
$__autoload['noodlesLibImagePath'] = dirname(__FILE__) . '/inc/lib.image.path.php';
2021-09-08 22:53:13 +00:00
$core->blog->settings->addNamespace('noodles');
2021-09-09 07:12:31 +00:00
$core->url->register(
'noodlesmodule',
'noodles',
'^noodles/(.+)$',
2021-09-09 07:12:31 +00:00
['urlNoodles', 'noodles']
);
$core->url->register(
'noodlesservice',
'noodle',
'^noodle/$',
2021-09-09 07:12:31 +00:00
['urlNoodles', 'service']
);