cinecturlink2/_prepend.php

42 lines
1.3 KiB
PHP
Raw Normal View History

2021-09-07 12:33:18 +00:00
<?php
/**
* @brief cinecturlink2, a plugin for Dotclear 2
2021-11-02 22:55:41 +00:00
*
* @package Dotclear
* @subpackage Plugin
2021-11-02 22:55:41 +00:00
*
* @author Jean-Christian Denis and Contributors
2021-11-02 22:55:41 +00:00
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2021-09-07 12:33:18 +00:00
if (!defined('DC_RC_PATH')) {
return null;
2021-09-07 12:33:18 +00:00
}
2022-11-17 21:01:00 +00:00
Clearbricks::lib()->autoload(['cinecturlink2' => __DIR__ . '/inc/class.cinecturlink2.php']);
Clearbricks::lib()->autoload(['cinecturlink2Context' => __DIR__ . '/inc/lib.cinecturlink2.context.php']);
Clearbricks::lib()->autoload(['adminlistCinecturlink2' => __DIR__ . '/inc/lib.cinecturlink2.list.php']);
Clearbricks::lib()->autoload(['sitemapsCinecturlink2' => __DIR__ . '/inc/lib.sitemaps.cinecturlink2.php']);
Clearbricks::lib()->autoload(['cinecturlink2ActivityReportBehaviors' => __DIR__ . '/inc/lib.cinecturlink2.activityreport.php']);
2021-09-07 12:33:18 +00:00
2022-11-17 21:01:00 +00:00
dcCore::app()->url->register(
'cinecturlink2',
'cinecturlink',
'^cinecturlink(?:/(.+))?$',
['urlCinecturlink2', 'c2Page']
2021-09-07 12:33:18 +00:00
);
2022-11-17 21:01:00 +00:00
dcCore::app()->addBehavior(
'sitemapsDefineParts',
['sitemapsCinecturlink2', 'sitemapsDefineParts']
2021-09-07 12:33:18 +00:00
);
2022-11-17 21:01:00 +00:00
dcCore::app()->addBehavior(
'sitemapsURLsCollect',
['sitemapsCinecturlink2', 'sitemapsURLsCollect']
2021-09-07 12:33:18 +00:00
);
if (defined('ACTIVITY_REPORT')) {
2022-11-17 21:01:00 +00:00
cinecturlink2ActivityReportBehaviors::add();
2021-11-02 22:55:41 +00:00
}