2021-09-07 12:33:18 +00:00
|
|
|
<?php
|
2021-09-07 13:05:53 +00:00
|
|
|
/**
|
|
|
|
* @brief cinecturlink2, a plugin for Dotclear 2
|
|
|
|
*
|
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
|
|
|
*
|
|
|
|
* @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-07 12:33:18 +00:00
|
|
|
|
|
|
|
if (!defined('DC_RC_PATH')) {
|
2021-09-07 13:05:53 +00:00
|
|
|
return null;
|
2021-09-07 12:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-09-07 13:05:53 +00:00
|
|
|
$d = dirname(__FILE__) . '/inc/';
|
2021-09-07 12:33:18 +00:00
|
|
|
|
2021-09-07 13:05:53 +00:00
|
|
|
$__autoload['cinecturlink2'] = $d . 'class.cinecturlink2.php';
|
|
|
|
$__autoload['cinecturlink2Context'] = $d . 'lib.cinecturlink2.context.php';
|
|
|
|
$__autoload['sitemapsCinecturlink2'] = $d . 'lib.sitemaps.cinecturlink2.php';
|
|
|
|
$__autoload['cinecturlink2ActivityReportBehaviors'] = $d . 'lib.cinecturlink2.activityreport.php';
|
2021-09-07 12:33:18 +00:00
|
|
|
|
|
|
|
$core->url->register(
|
2021-09-07 13:05:53 +00:00
|
|
|
'cinecturlink2',
|
|
|
|
'cinecturlink',
|
|
|
|
'^cinecturlink(?:/(.+))?$',
|
|
|
|
['urlCinecturlink2', 'c2Page']
|
2021-09-07 12:33:18 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$core->addBehavior(
|
2021-09-07 13:05:53 +00:00
|
|
|
'sitemapsDefineParts',
|
|
|
|
['sitemapsCinecturlink2', 'sitemapsDefineParts']
|
2021-09-07 12:33:18 +00:00
|
|
|
);
|
|
|
|
$core->addBehavior(
|
2021-09-07 13:05:53 +00:00
|
|
|
'sitemapsURLsCollect',
|
|
|
|
['sitemapsCinecturlink2', 'sitemapsURLsCollect']
|
2021-09-07 12:33:18 +00:00
|
|
|
);
|
2021-09-07 13:05:53 +00:00
|
|
|
|
|
|
|
if (defined('ACTIVITY_REPORT')) {
|
|
|
|
cinecturlink2ActivityReportBehaviors::add($core);
|
|
|
|
}
|