cinecturlink2/_prepend.php

47 lines
1.2 KiB
PHP

<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of cinecturlink2, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2013 Jean-Christian Denis and contributors
# contact@jcdenis.fr http://jcd.lv
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) {
return null;
}
$d = dirname(__FILE__).'/inc/';
$__autoload['cinecturlink2'] = $d.'class.cinecturlink2.php';
$__autoload['cinecturlink2Context'] = $d.'lib.cinecturlink2.context.php';
$__autoload['sitemapsCinecturlink2'] = $d.'lib.sitemaps.cinecturlink2.php';
$core->url->register(
'cinecturlink2',
'cinecturlink',
'^cinecturlink(?:/(.+))?$',
array('urlCinecturlink2', 'c2Page')
);
# Add cinecturlink2 report on plugin activityReport
if (defined('ACTIVITY_REPORT')) {
require_once $d.'lib.cinecturlink2.activityreport.php';
}
# cinecturlink2 libraries for sitemaps
$core->addBehavior(
'sitemapsDefineParts',
array('sitemapsCinecturlink2', 'sitemapsDefineParts')
);
$core->addBehavior(
'sitemapsURLsCollect',
array('sitemapsCinecturlink2', 'sitemapsURLsCollect')
);